:root {
    --bg-color: #FDF8F5;
    /* Warm Linen/Paper */
    --text-color: #4A4238;
    /* Dark Warm Grey/Brown */
    --accent-color: #B08968;
    /* Muted Bronze/Clay */
    --accent-hover: #967259;
    --light-gray: #F2EBE5;
    /* Soft Warm Gray */
    --border-color: #E6DCCF;
    --card-bg: #FFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --spacing-unit: 1rem;
    --shadow-soft: 0 10px 30px rgba(93, 64, 55, 0.08);
    --radius-soft: 12px;
    --radius-pill: 30px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #3E3630;
}

.logo {
    cursor: pointer;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Buttons */
button {
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    background: none;
    border-radius: var(--radius-pill);
}

.btn-text {
    color: var(--text-color);
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0 0.2rem;
}

.btn-text:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2.5rem;
    box-shadow: 0 4px 15px rgba(176, 137, 104, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 137, 104, 0.6);
}

.btn-primary:disabled,
.btn-primary.btn-disabled {
    background-color: #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

.btn-secondary:disabled,
.btn-secondary.btn-disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

.config-needed-banner {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    border: 2px solid var(--border-color);
    padding: 0.7rem 2rem;
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: #fff;
}

.full-width {
    width: 100%;
}

/* Header */
.header {
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background-color: rgba(253, 248, 245, 0.95);
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 220, 207, 0.5);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-user-greeting {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-style: italic;
    color: #8c827a;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    z-index: 102;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    border-color: var(--accent-color);
    background: #faf7f2;
}

.mobile-menu-toggle .hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.25s ease;
    pointer-events: none;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.mobile-nav-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #8C8275;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: var(--text-color);
}

.mobile-nav-user-card {
    background: #FAF7F2;
    border: 1px solid #EADCCF;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.mobile-nav-user-card .mobile-user-badge {
    font-size: 1.25rem;
}

.mobile-nav-user-card .mobile-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    word-break: break-word;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mobile-nav-btn:hover {
    border-color: var(--border-color);
    background: #FAF7F2;
    color: var(--accent-color);
}

.mobile-nav-btn-highlight {
    background: var(--accent-color) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(176, 137, 104, 0.35);
}

.mobile-nav-btn-highlight:hover {
    background: var(--accent-hover) !important;
    color: #fff !important;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.6rem 0;
}

.mobile-nav-auth-btn {
    color: #8C8275;
}

.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 66, 56, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Language Switcher */
.lang-switcher {
    font-size: 1.5rem;
    padding: 0.4rem;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lang-switcher:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.flag-icon {
    width: 24px;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* Artisans Preview Section */
.artisans-preview {
    text-align: center;
    padding: 2rem 2rem 3rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.artisans-preview-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artisans-preview h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.artisans-expand-toggle {
    display: none;
}

.artisans-expandable-content {
    display: block;
    width: 100%;
}

.artisans-preview-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.avatar-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    /* Reduced top margin */
    flex-wrap: wrap;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    background-color: var(--light-gray);
}

.avatar-circle:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery */
.gallery-section {
    padding: 2rem 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.gallery-item {
    background-color: #fff;
    border-radius: var(--radius-soft);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.gallery-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--light-gray);
    position: relative;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.08);
}

.item-info {
    padding: 1.5rem;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-heading);
    color: #2c2520;
    line-height: 1.2;
}

.item-price {
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
    font-family: var(--font-body);
}

.item-seller-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--light-gray);
    transition: color 0.3s ease;
}

.item-seller-chip:hover {
    color: var(--accent-color);
}

.item-seller-chip:hover .seller-avatar-small {
    border-color: var(--accent-color);
}

.seller-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--light-gray);
}

/* Filter Sidebar */
.gallery-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-toggle-btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    background: #fff;
    transition: all 0.3s ease;
}

.filter-toggle-btn .icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.filter-toggle-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-sidebar {
    position: fixed;
    top: 0;
    left: -380px;
    width: 350px;
    height: 100vh;
    background-color: #FDF8F5;
    /* Matches bg */
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.filter-sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 66, 56, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-sidebar {
    font-size: 2rem;
    line-height: 1;
    padding: 0.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.filter-section {
    margin-bottom: 3rem;
}

.filter-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: #8c857d;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: #fff;
}

/* Custom Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    position: relative;
    padding-left: 2.2rem;
    transition: color 0.2s;
}

.custom-checkbox:hover {
    color: var(--accent-color);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0.15rem;
    left: 0;
    height: 1.3rem;
    width: 1.3rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Soft square */
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.custom-checkbox:hover input~.checkmark {
    border-color: var(--accent-color);
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sidebar-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Rounded input */
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    /* Custom arrow ideally */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.sidebar-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.1);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 44, 38, 0.7);
    /* Warmer dark overlay */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.4s ease;
    border-radius: var(--radius-soft);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid #fff;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.item-detail-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5% 6rem;
}

.detail-container {
    display: flex;
    width: 100%;
}

.detail-image-wrapper {
    width: 50%;
    background-color: var(--light-gray, #f7f5f2);
    border-radius: var(--radius-soft, 12px);
    overflow: hidden;
}

.detail-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detail-info {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-large {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-weight: 600;
}

.detail-seller {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.detail-description-wrapper {
    margin-bottom: 2rem;
}

.detail-description-wrapper h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.detail-description-wrapper p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    white-space: pre-line;
}

textarea,
select,
input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

textarea {
    resize: vertical;
}

textarea:focus,
select:focus,
input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #555;
}

.image-preview {
    margin-top: 1rem;
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    display: none;
    background-size: cover;
    background-position: center;
}

.hidden {
    display: none !important;
}

/* Responsive for Item Detail & Mobile Layout */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 0.05rem;
    }

    /* Global Headings */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    h2::after {
        width: 36px;
        height: 2px;
        margin: 0.35rem auto 0;
    }

    h3 {
        font-size: 1.15rem;
    }

    /* Artisans Preview on Mobile */
    .artisans-preview {
        padding: 1.25rem 1rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .artisans-preview h2 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .artisans-preview h2::after {
        width: 36px;
        height: 2px;
        margin: 0.35rem auto 0;
    }

    .artisans-expand-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0.45rem 1.1rem;
        border-radius: 20px;
        background: #fff;
        border: 1px solid var(--border-color);
        color: var(--text-color);
        font-size: 0.88rem;
        font-weight: 500;
        cursor: pointer;
        margin: 0.4rem auto 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        transition: all 0.25s ease;
    }

    .artisans-expand-toggle:hover {
        border-color: var(--accent-color);
        color: var(--accent-color);
    }

    .artisans-expand-toggle .artisans-toggle-icon {
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 0.85rem;
    }

    .artisans-expand-toggle.is-expanded .artisans-toggle-icon {
        transform: rotate(180deg);
    }

    .artisans-expandable-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
        margin-top: 0;
    }

    .artisans-expandable-content.is-expanded {
        max-height: 500px;
        opacity: 1;
        margin-top: 0.75rem;
    }

    .artisans-slider-container {
        padding: 0;
    }

    .avatar-row {
        gap: 1.25rem;
        margin-top: 0.5rem;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .avatar-circle {
        width: 62px;
        height: 62px;
        flex-shrink: 0;
    }

    .artisans-preview-footer {
        margin-top: 0.75rem;
    }

    /* Item Detail Responsive */
    .item-detail-view {
        padding: 1rem 1rem 3rem;
    }

    .detail-container {
        flex-direction: column;
    }

    .detail-image-wrapper,
    .detail-info {
        width: 100%;
    }

    .detail-image-wrapper {
        min-height: 280px;
        height: auto;
        max-height: 52vh;
        border-radius: 10px;
        overflow: hidden;
    }

    .detail-main-image-container {
        min-height: 280px;
        height: 320px;
        max-height: 52vh;
    }

    .detail-info {
        padding: 1.25rem 0.25rem;
    }

    .detail-info h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .price-large {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .detail-description-wrapper {
        margin-bottom: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

/* Seller Navigation Group in Top Banner (Matching 'Min Kollektion' and 'Profilinställningar' tabs) */

.seller-header-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #F2EBE5;
    padding: 5px;
    border-radius: 36px;
    border: 1px solid #E6DCCF;
}

.seller-header-nav-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.35rem;
    border-radius: 30px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.88rem;
    font-weight: 500;
    color: #7A6F62;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seller-header-nav-btn:hover {
    color: #3E3630;
}

.seller-header-nav-btn.active {
    background: #FFFFFF;
    color: #3E3630;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 66, 56, 0.08);
}

/* Seller Profile View */
.seller-profile-view {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Unpublished profile preview banner */
.seller-unpublished-banner {
    margin: 1.5rem 0 2rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.seller-unpublished-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.seller-unpublished-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: #92400e;
}

.seller-unpublished-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 2px;
}

.seller-unpublished-banner-text strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #78350f;
}

.seller-unpublished-banner-text p {
    margin: 0;
    font-size: 0.88rem;
    color: #92400e;
    line-height: 1.4;
}

.seller-unpublished-action-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: #d97706;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.seller-unpublished-action-btn:hover {
    background: #b45309;
    color: #ffffff !important;
}

.seller-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    margin: 2rem 0 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.seller-profile-main-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1 1 auto;
    min-width: 280px;
}

.seller-profile-image-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--light-gray);
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.seller-profile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-profile-info h1 {
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
    line-height: 1.15;
}

.seller-subheading {
    font-size: 1.35rem;
    color: #666;
    font-family: var(--font-heading);
    margin-top: -0.1rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.seller-profile-info .subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-style: italic;
    font-family: var(--font-heading);
}

.seller-profile-side-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 1 auto;
    justify-content: flex-end;
}

/* Seller Bio Atelier Card */
.seller-profile-bio-box {
    background: #faf8f5;
    border: 1px solid rgba(210, 195, 180, 0.4);
    border-left: 3px solid var(--accent-color);
    border-radius: 6px;
    padding: 1rem 1.4rem;
    max-width: 420px;
    min-width: 240px;
    max-height: 180px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(45, 30, 15, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seller-profile-bio-box::-webkit-scrollbar {
    width: 4px;
}

.seller-profile-bio-box::-webkit-scrollbar-thumb {
    background: rgba(210, 195, 180, 0.5);
    border-radius: 2px;
}

.seller-profile-bio-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 30, 15, 0.07);
}

.seller-profile-bio-box .seller-bio {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4a453e;
    font-style: normal;
    white-space: pre-line;
}

.seller-personal-image-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--light-gray);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.seller-personal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seller-social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

#back-to-gallery-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0;
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#back-to-gallery-btn:hover {
    opacity: 1;
}

.clickable-link {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.clickable-link:hover {
    color: var(--accent-color);
    /* Fallback */
    opacity: 0.7;
}

@media (max-width: 900px) {
    .seller-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .seller-profile-side-content {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .seller-profile-bio-box {
        max-width: 100%;
        max-height: none;
        flex: 1 1 250px;
    }
}

@media (max-width: 600px) {
    .seller-profile-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .seller-profile-side-content {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .seller-social-links {
        justify-content: center;
    }
    .seller-profile-bio-box {
        width: 100%;
        max-height: none;
        text-align: left;
    }
}

/* Seller Collection Header & View Selector */
.seller-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.seller-collection-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.seller-collection-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.seller-items-count {
    font-size: 0.95rem;
    color: #888;
    font-family: var(--font-body);
}

.view-mode-selector {
    display: inline-flex;
    background: #f2ede7;
    border-radius: 30px;
    padding: 3px;
    gap: 3px;
    border: 1px solid #e2dad0;
}

.view-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.view-mode-btn svg {
    flex-shrink: 0;
}

.view-mode-btn:hover {
    color: #1a1a1a;
}

.view-mode-btn.active {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Default items hidden in standard grid, visible only in specific modes */
.item-category {
    display: none;
}

.item-action-arrow {
    display: none;
}

/* 1. Compact Grid Mode */
.gallery-grid.view-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.gallery-grid.view-compact .gallery-item {
    border-radius: 6px;
}

.gallery-grid.view-compact .item-info {
    padding: 0.75rem 0.9rem;
    gap: 0.35rem;
}

.gallery-grid.view-compact .item-title {
    font-size: 0.95rem;
    line-height: 1.25;
}

.gallery-grid.view-compact .item-price {
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-grid.view-compact .item-seller-chip {
    font-size: 0.78rem;
    padding-top: 0.35rem;
    gap: 0.35rem;
}

.gallery-grid.view-compact .seller-avatar-small {
    width: 20px;
    height: 20px;
}

/* 2. List View Mode */
.gallery-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-grid.view-list .gallery-item {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1.25rem;
    gap: 1.25rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #ebe5dc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-grid.view-list .gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: #d8cfc4;
}

.gallery-grid.view-list .gallery-image-container {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 6px;
    aspect-ratio: auto;
    overflow: hidden;
}

.gallery-grid.view-list .item-info {
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    gap: 1.25rem;
    background: transparent;
}

.gallery-grid.view-list .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.gallery-grid.view-list .item-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.gallery-grid.view-list .item-title {
    font-size: 1.05rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.gallery-grid.view-list .item-category {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
}

.gallery-grid.view-list .item-seller-chip {
    margin-top: 0.25rem;
    padding-top: 0;
    border-top: none;
    font-size: 0.8rem;
}

.gallery-grid.view-list .item-price-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.gallery-grid.view-list .item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.gallery-grid.view-list .item-action-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f2ed;
    color: #777;
    font-size: 1.1rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-grid.view-list .gallery-item:hover .item-action-arrow {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .seller-collection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .view-btn-label {
        display: none;
    }

    .view-mode-btn {
        padding: 6px 10px;
    }

    .gallery-grid.view-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .gallery-grid.view-list .gallery-item {
        padding: 0.6rem 0.85rem;
        gap: 0.85rem;
    }

    .gallery-grid.view-list .gallery-image-container {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }

    .gallery-grid.view-list .item-title {
        font-size: 0.95rem;
    }

    .gallery-grid.view-list .item-price {
        font-size: 0.95rem;
    }
}

.profile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-danger {
    background-color: transparent;
    color: #ce3838;
    border: 1px solid #ce3838;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    border-radius: var(--radius-pill);
}

.btn-danger:hover {
    background-color: #ce3838;
    color: white;
}

/* Confirmation Modal */
.confirm-modal-content {
    max-width: 450px;
    text-align: center;
}

.confirm-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.confirm-modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-actions button {
    flex: 1;
    max-width: 150px;
}

/* Footer */
.site-footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    color: #888;
    font-size: 0.9rem;
    background-color: #fff;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.btn-text-small {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: #aaa;
    cursor: pointer;
}

.btn-text-small:hover {
    color: var(--text-color);
}

/* Artisans View (Detailed List) */
.artisans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 4rem 0;
}

.artisan-card {
    text-align: center;
    background: #fff;
    padding: 3rem 2rem;
    border-radius: var(--radius-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.artisan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.artisan-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--light-gray);
}

.artisan-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artisan-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.artisan-info .subtitle {
    color: #888;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Contact Seller View */
.contact-seller-view {
    padding: 2rem 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-nav {
    margin-bottom: 2rem;
}

.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-main {
    flex: 2;
}

.contact-sidebar {
    flex: 1;
}

.contact-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.size-reminder-box {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.size-reminder-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.size-reminder-box p {
    font-size: 0.95rem;
    margin: 0;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-soft);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.form-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

.item-preview-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-soft);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.item-preview-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.preview-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--light-gray);
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.preview-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-details {
    text-align: center;
}

.preview-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.preview-seller {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.preview-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column-reverse;
    }

    .item-preview-card {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Multiple Image Support & Full Image Display */
.detail-image-wrapper {
    display: flex;
    flex-direction: column;
    background-color: var(--light-gray, #f7f5f2);
    border-radius: var(--radius-soft, 12px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.detail-main-image-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    background-color: #f7f5f2;
}

.detail-main-image-container img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-main-image-container:hover img {
    transform: scale(1.015);
}

/* Magnifying Glass Indicator Button (Safeguard for Wide Images & Direct Zoom) */
.detail-zoom-btn {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-color, #2b2622);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    padding: 7px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 15;
    white-space: nowrap;
    user-select: none;
    animation: fadeIn 0.3s ease;
}

.detail-zoom-btn:hover {
    background: #ffffff;
    color: var(--accent-color, #786c5f);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: translateX(-50%) translateY(-2px);
}

.detail-zoom-btn:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.detail-zoom-btn.hidden {
    display: none !important;
}

.detail-zoom-btn svg {
    flex-shrink: 0;
}

.detail-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #fff;
    overflow-x: auto;
    border-top: 1px solid var(--border-color);
    min-height: 80px;
    flex-shrink: 0;
}

/* Multiple Image Preview in Add Modal */
.image-preview {
    display: none;
    /* hidden by default */
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    height: auto;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Slideshow Navigation */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-arrow:hover {
    background-color: #fff;
    color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}


/* Artisans View (Detailed List) Main Container */
.artisans-view {
    padding: 2rem 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ==========================================
   Category Chips & Selector Component
   ========================================== */
.category-form-group {
    margin-bottom: 1.25rem;
}

.category-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 36px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #d9d4cc;
    background: #faf8f5;
    color: #4a453e;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    line-height: 1.2;
}

.category-chip:hover {
    border-color: #8b7355;
    background: #f3efe9;
    transform: translateY(-1px);
}

.category-chip.selected {
    background: #2c2825;
    color: #ffffff;
    border-color: #2c2825;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.category-chip .chip-check {
    font-size: 0.8rem;
    display: none;
    margin-left: 2px;
}

.category-chip.selected .chip-check {
    display: inline;
}

.category-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.category-add-input {
    flex: 1;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d9d4cc;
    border-radius: 4px;
    font-size: 0.88rem;
    background: #ffffff;
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s;
}

.category-add-input:focus {
    border-color: #8b7355;
    outline: none;
}

.category-add-btn {
    white-space: nowrap;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #7a756f;
}

/* Detail View Category Tags */
.detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0.5rem 0 1rem 0;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: #f3efe9;
    color: #554d45;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ==========================================
   Legal Notice & Contact Consent
   ========================================== */
.legal-notice-box {
    background-color: #FAF6F0;
    border: 1px solid #EADBCE;
    border-left: 4px solid var(--accent-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.legal-notice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #3E3630;
}

.legal-notice-icon {
    font-size: 1.1rem;
}

.legal-notice-box p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #5A524A;
    margin: 0;
}

.legal-consent-group {
    margin: 0.85rem 0 1.25rem;
    padding: 0;
    background: transparent;
    border: none;
}

.legal-consent-group label,
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #6C6257;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-text {
    flex: 1;
    font-size: 0.82rem;
    color: #6C6257;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.btn-link-inline {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    display: inline;
}

.btn-link-inline:hover {
    color: var(--accent-hover);
}

/* ==========================================
   Site Footer
   ========================================== */
.site-footer {
    padding: 3rem 5% 2.5rem;
    background-color: #F8F2EB;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-link {
    background: none;
    border: none;
    color: #6C6257;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.2rem 0.4rem;
    font-family: var(--font-body);
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bullet {
    color: #C0B7AB;
    font-size: 0.8rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #8C8275;
    margin-bottom: 1.25rem;
}

.btn-text-small {
    font-size: 0.8rem;
    color: #8C8275;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-text-small:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ==========================================
   Legal & Information Modal
   ========================================== */
.legal-modal-content {
    max-width: 740px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border-radius: var(--radius-soft);
    background: var(--bg-color);
}

.legal-modal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.legal-modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.legal-modal-header h2::after {
    display: none;
}

.legal-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.legal-tab-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.legal-tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.legal-tab-btn.active {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

.legal-modal-body {
    overflow-y: auto;
    padding-right: 0.75rem;
    max-height: 60vh;
}

.legal-tab-panel h3 {
    font-size: 1.35rem;
    margin: 0.5rem 0 1rem;
    color: #3E3630;
}

.legal-tab-panel h4 {
    font-size: 1.05rem;
    margin: 1.35rem 0 0.5rem;
    color: #4A4238;
    font-family: var(--font-body);
    font-weight: 600;
}

.legal-tab-panel p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #554D45;
    margin-bottom: 0.85rem;
}

.legal-tab-panel ul {
    margin: 0.5rem 0 1rem 1.5rem;
    font-size: 0.92rem;
    color: #554D45;
    line-height: 1.7;
}

.legal-tab-panel li {
    margin-bottom: 0.4rem;
}

.legal-highlight-box {
    background: #FAF7F2;
    border: 1px solid #EADCCF;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin: 1rem 0 1.25rem;
}

.legal-highlight-box p {
    margin-bottom: 0.5rem;
}

.legal-mail-link {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: underline;
}

.legal-mail-link:hover {
    color: var(--accent-hover);
}

@media (max-width: 600px) {
    .legal-modal-content {
        padding: 1.75rem 1.25rem;
        max-height: 92vh;
    }

    .legal-tabs {
        gap: 0.35rem;
    }

    .legal-tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   Admin Dashboard & Responsive Actions
   ========================================================================== */

.admin-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-header-title-wrap h2 {
    margin: 0;
}

.admin-action-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-dropdown-wrapper {
    position: relative;
}


/* Admin Stats Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stats-card {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.admin-stats-card h3 {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

.admin-stats-card p {
    font-size: 2.5rem;
    margin: 0.5rem 0 0;
    color: #1a1a2e;
    font-weight: 500;
}

/* Stats Enhancements */
.admin-stats-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: #3e3630;
    margin: 1.5rem 0 0.85rem;
    font-family: var(--font-heading, inherit);
}

.admin-stats-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .admin-stats-two-col {
        grid-template-columns: 1fr;
    }
}

.admin-stats-box {
    background: #fff;
    border: 1px solid #e5ded7;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.admin-stats-box-title {
    font-size: 1rem;
    font-weight: 600;
    color: #3e3630;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f2ebe5;
}

.admin-stats-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    border-bottom: 1px solid #faf7f4;
}

.admin-stats-list-item:last-child {
    border-bottom: none;
}

.admin-stats-list-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #444;
}

.admin-stats-list-val {
    font-weight: 600;
    color: #222;
}

.admin-stats-bar-wrap {
    flex: 1;
    max-width: 80px;
    height: 6px;
    background: #f0eae4;
    border-radius: 3px;
    margin: 0 0.75rem;
    overflow: hidden;
}

.admin-stats-bar-fill {
    height: 100%;
    background: var(--accent-color, #b08968);
    border-radius: 3px;
}

.admin-stats-summary-bar {
    background: #fdfaf7;
    border: 1px solid #eee5dc;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
    color: #555;
}

.admin-stats-summary-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-stats-gdpr-notice {
    margin-top: 1.5rem;
    text-align: center;
    color: #7a7065;
    font-size: 0.82rem;
    padding-bottom: 2rem;
}

/* Desktop defaults: all action buttons displayed inline in row */
@media (min-width: 769px) {
    .admin-dropdown-btn {
        display: none !important;
    }

    .admin-dropdown-wrapper {
        display: contents;
    }

    .admin-dropdown-menu {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .admin-menu-item {
        padding: 0.75rem 1.4rem;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        background: #fff;
        color: var(--text-color);
        font-family: var(--font-body);
        font-size: 0.85rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.25s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .admin-menu-item:hover {
        border-color: var(--accent-color);
        color: var(--accent-color);
        background: #FAF7F2;
    }

    .admin-menu-item .menu-item-icon {
        display: none;
    }
}

/* Mobile Admin Layout */
@media (max-width: 768px) {
    .admin-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .admin-header-title-wrap h2 {
        font-size: 1.35rem;
        margin: 0;
        text-align: left;
    }

    .admin-header-title-wrap h2::after {
        margin: 0.35rem 0 0 !important;
    }

    .admin-action-bar {
        display: flex;
        width: 100%;
        gap: 0.5rem;
        position: relative;
    }

    .admin-btn-main {
        flex: 1.3;
        min-width: 0;
        font-size: 0.82rem !important;
        padding: 0.65rem 0.6rem !important;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 8px;
    }

    .admin-dropdown-wrapper {
        position: relative;
        flex: 1;
        min-width: 0;
    }

    .admin-dropdown-btn {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.65rem 0.75rem !important;
        font-size: 0.82rem !important;
        font-weight: 500;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: #fff;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

    .admin-dropdown-btn:hover,
    .admin-dropdown-wrapper.is-open .admin-dropdown-btn {
        border-color: var(--accent-color);
        color: var(--accent-color);
        background: #FAF7F2;
    }

    .dropdown-chevron {
        font-size: 0.75rem;
        transition: transform 0.25s ease;
        margin-left: 4px;
    }

    .admin-dropdown-wrapper.is-open .dropdown-chevron {
        transform: rotate(180deg);
    }

    .admin-dropdown-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        width: max-content;
        min-width: 195px;
        max-width: 260px;
        background: #ffffff;
        border: 1px solid #EADCCF;
        border-radius: 10px;
        box-shadow: 0 10px 28px rgba(74, 66, 56, 0.16);
        padding: 6px;
        z-index: 1050;
        display: flex;
        flex-direction: column;
        gap: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        pointer-events: none;
    }

    .admin-dropdown-wrapper.is-open .admin-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .admin-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 0.65rem 0.75rem;
        text-align: left;
        background: none;
        border: none;
        border-radius: 6px;
        font-family: var(--font-body);
        font-size: 0.86rem;
        font-weight: 500;
        color: var(--text-color);
        cursor: pointer;
        transition: background 0.18s ease, color 0.18s ease;
        box-sizing: border-box;
    }

    .admin-menu-item:hover,
    .admin-menu-item:active {
        background: #FAF7F2;
        color: var(--accent-color);
    }

    .menu-item-icon {
        font-size: 1.05rem;
        line-height: 1;
        flex-shrink: 0;
    }

    /* Seller Tabs on mobile */
    .seller-tabs {
        display: flex;
        gap: 0.4rem;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid #eee;
    }

    .seller-tab-btn {
        flex: 1;
        font-size: 0.95rem !important;
        padding: 0.5rem 0.35rem 0.65rem !important;
        text-align: center;
        white-space: nowrap;
    }

    /* Seller Cards in admin on mobile */
    .artisans-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0.5rem 0 1.5rem !important;
    }

    .artisan-card {
        padding: 1.25rem 1rem !important;
        border-radius: 10px !important;
    }

    .artisan-image-wrapper {
        width: 72px !important;
        height: 72px !important;
        margin: 0 auto 0.75rem !important;
    }

    .artisan-info h3 {
        font-size: 1.2rem !important;
    }

    .artisan-card .btn-small {
        font-size: 0.78rem !important;
        padding: 0.45rem 0.7rem !important;
    }


    /* Admin Stats Grid on mobile */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .admin-stats-card {
        padding: 1rem 0.5rem !important;
    }

    .admin-stats-card h3 {
        font-size: 0.8rem !important;
    }

    .admin-stats-card p {
        font-size: 1.8rem !important;
    }

    .create-seller-container {
        margin: 1rem auto !important;
        padding: 0 12px !important;
    }

    .create-seller-form-panel {
        padding: 1.25rem 1rem !important;
    }
}

/* Full Image Lightbox Modal */
.image-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.image-lightbox-modal.hidden {
    display: none !important;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 15, 12, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 2001;
    max-width: 95vw;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    outline: none;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2010;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.lightbox-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 84vh;
}

.lightbox-image-wrapper img {
    max-width: 95vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: block;
    user-select: none;
    animation: fadeIn 0.2s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2005;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.hidden {
    display: none !important;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}

.lightbox-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.lightbox-counter {
    background: rgba(255, 255, 255, 0.18);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.lightbox-counter.hidden {
    display: none !important;
}

.lightbox-title {
    font-weight: 500;
}

/* Item Detail / Edit View (Shared between Seller and Admin) */
.item-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.item-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    margin-right: 1.5rem;
    transition: color 0.2s;
}

.item-detail-back:hover {
    color: #1a1a2e;
}

.item-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.item-detail-images {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.item-detail-images h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.item-detail-main-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: block;
}

.item-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.item-thumb-wrapper {
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.item-thumb-wrapper.active,
.item-thumb-wrapper:hover {
    border-color: #1a1a2e;
}

.item-thumb-wrapper img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.item-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(200, 50, 50, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.item-thumb-wrapper:hover .item-thumb-remove {
    opacity: 1;
}

.item-detail-form-panel {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.item-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.item-detail-actions .btn-primary {
    flex: 1;
}

.item-detail-actions .btn-danger {
    flex: 0 0 auto;
}

/* Mobile responsive for Item Detail / Edit View */
@media (max-width: 768px) {
    .item-detail-container {
        margin: 1rem auto;
        padding: 0 12px;
    }

    .item-detail-grid {
        grid-template-columns: 1fr;
    }

    #item-detail-title-heading {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
        text-align: left;
    }

    #item-detail-title-heading::after {
        display: none;
    }

    .item-detail-images {
        padding: 1rem;
    }

    .item-detail-main-image {
        max-height: 240px;
    }

    .item-detail-form-panel {
        padding: 1rem;
    }

    .item-detail-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .item-detail-actions button {
        width: 100%;
    }
}

/* ==========================================
   PASSWORD PEEK / REVEAL FEATURE
   ========================================== */
.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 2.75rem !important;
}

.password-toggle-btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    padding: 0.4rem;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8c8275;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    z-index: 2;
    line-height: 1;
}

.password-toggle-btn:hover {
    color: var(--secondary-color, #2c2621);
    background-color: rgba(0, 0, 0, 0.05);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid var(--accent-color, #b08968);
    outline-offset: 1px;
}

.password-toggle-btn.is-pressed,
.password-toggle-btn:active {
    color: var(--accent-color, #b08968);
    background-color: rgba(176, 137, 104, 0.15);
    transform: translateY(-50%) scale(0.95);
}

.password-toggle-btn svg {
    display: block;
    pointer-events: none;
}

.password-toggle-btn .eye-icon-hide {
    display: none;
}

.password-toggle-btn .eye-icon-show {
    display: block;
}

.password-toggle-btn.is-pressed .eye-icon-show {
    display: none;
}

.password-toggle-btn.is-pressed .eye-icon-hide {
    display: block;
}