/* Combined styles for PickArts: base, layout, pages, and auth */

/* === Base & Layout (from style.css) === */

/* =========================
   PickArts Base Styles
   Color theme:
   - Primary: #2B1E1D
   - Secondary: #FFFFFF
   ========================= */

:root {
    --color-primary: #2B1E1D;
    --color-primary-soft: #4A3633;
    --color-bg: #FFFFFF;
    --color-surface: #F8F5F4;
    --color-border-subtle: #E1D8D5;
    --color-text-main: #2B1E1D;
    --color-text-muted: #6A5651;
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.75rem;
    --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.06);
    --transition-fast: 150ms ease-out;
    --transition-med: 200ms ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    /* Default text color tuned for dark background image */
    color: rgba(255, 255, 255, 0.94);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    height: 100%;
}

html {
    scroll-behavior: smooth;
    /* Optimize scrolling performance */
    -webkit-overflow-scrolling: touch;
}

body {
    /* Same background as manager pages */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../../img/bg/bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-color: #0f0b0a; /* fallback */
    position: relative;
    z-index: 0;
    /* Optimize scroll performance */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Layout for sticky footer */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Brown glass overlay like manager pages */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: rgba(43, 30, 29, 0.32); /* primary brown with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(18px);
    z-index: -1;
}

/* Paragraph text: white by default for readability on dark background (all pages) */
p {
    color: #ffffff;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

.main {
    padding-top: 0; /* Removed padding since event banner is before main */
    /* Allow main content to grow and push footer down */
    flex: 1 0 auto;
    /* Optimize main content rendering */
    contain: layout style;
    transform: translateZ(0);
}

/* =========================
   Welcome Banner
   ========================= */

.welcome-banner {
    min-height: calc(100vh - 18rem) !important;
    height: calc(100vh - 18rem) !important;
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}

/* Ensure welcome-banner height accounts for event banner container (180px = ~11.25rem) */
body:has(.event-banner-container) .welcome-banner {
    min-height: calc(100vh - 18rem) !important;
    height: calc(100vh - 18rem) !important;
}

.welcome-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    position: relative;
}

.welcome-heading {
    margin: 0;
    font-size: clamp(2.4rem, 4.4vw, 3.1rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.97);
    transform: translateY(-20vh);
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast), bottom 0.3s ease;
    position: absolute;
    left: 50%;
    bottom: 4rem;
    transform: translateX(-50%);
    z-index: 10;
}

/* Adjust scroll-down position when welcome message appears */
.welcome-alert-bar:not(.collapsed) ~ .main .scroll-down,
body:has(.welcome-alert-bar:not(.collapsed)) .welcome-banner .scroll-down {
    bottom: 5.5rem; /* Move up when welcome message is visible */
}

.scroll-down-text {
    opacity: 0.9;
}

.scroll-down-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(-45deg);
    border-radius: 2px;
    position: relative;
}

.scroll-down:hover {
    transform: translateX(-50%) translateY(4px);
    opacity: 1;
}

.scroll-down:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}


/* =========================
   Header & Navigation
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 3000; /* ensure header and dropdown sit above all page content */
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(209, 196, 193, 0.6);
    color: var(--color-text-main);
    /* Optimize sticky header performance */
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 1.75rem 1.25rem 0.5rem;
    min-height: 84px;
    position: relative;
}

/* Tuck the header container closer to the left edge without affecting others */
.site-header .container {
    max-width: 1600px;
    padding-left: 0.75rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.logo-image {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    border: 1px solid rgba(43, 30, 29, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: radial-gradient(circle at 20% 10%, #4A3633, #2B1E1D);
    color: #FFFFFF;
}

.logo-text {
    font-size: 0.95rem;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon-link,
.profile-icon-link,
.notifications-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-primary);
    background-color: transparent;
    border: 1px solid rgba(43, 30, 29, 0.3);
    transition: all var(--transition-fast);
    text-decoration: none;
    margin-top: 0.75rem;
    position: relative;
    /* Optimize icon button interactions */
    will-change: transform, background-color;
    transform: translateZ(0);
    touch-action: manipulation;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: badgePulse 0.3s ease;
}

/* Notifications Badge */
.notifications-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #e67e22;
    color: #ffffff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Badge animation when count updates */
@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.cart-badge.updating {
    animation: badgePulse 0.3s ease;
}

.cart-icon-link:hover,
.profile-icon-link:hover,
.notifications-icon-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
    transform: scale(1.05) translateZ(0);
}

.cart-icon-link.is-active,
.profile-icon-link.is-active,
.notifications-icon-link.is-active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

.cart-icon-link svg,
.profile-icon-link svg,
.notifications-icon-link svg {
    width: 20px;
    height: 20px;
}

.profile-icon-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Responsive cart badge */
@media (max-width: 640px) {
    .cart-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
        padding: 0 3px;
        top: -2px;
        right: -2px;
        border-width: 1.5px;
    }
}

.btn-compact {
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    margin-top: 0.75rem;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    margin-top: 2rem;
    padding: 0;
}

/* Mobile navigation overlay (separate layer under the nav panel) */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 120; /* below nav-list (140), above page content */
    transition: opacity var(--transition-med, 220ms ease-out);
}

.nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Desktop: hide text Profile item (only show in mobile nav) */
.nav-item-profile-link {
    display: none;
}

/* Hide close button on desktop */
.nav-close-wrapper {
    display: none;
}

/* Store nav item uses same vertical alignment as other items */
.nav-item.nav-has-dropdown {
    margin-top: 6px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
    padding: 0.4rem 0 0.55rem;
    line-height: 1;
    border-bottom: 1px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
    opacity: 0.8;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color-primary);
    border-color: rgba(43, 30, 29, 0.35);
    opacity: 1;
}

.nav-link.is-active {
    color: var(--color-primary);
    border-color: rgba(43, 30, 29, 0.8);
    opacity: 1;
}

.nav-has-dropdown {
    position: relative;
    z-index: 9999; /* High z-index for dropdown parent */
    padding-bottom: 0.4rem;
}

.nav-caret {
    display: inline-block;
    margin-left: 0.35rem;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    vertical-align: middle;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    margin-top: 0.5rem; /* mt-2 equivalent */
    min-width: 192px; /* w-48 equivalent */
    width: 192px;
    border-radius: 0.75rem; /* rounded-xl */
    /* Dark glassmorphism background - using website primary brown color */
    background-color: rgba(43, 30, 29, 0.95); /* primary color #2B1E1D with 95% opacity */
    backdrop-filter: blur(24px); /* backdrop-blur-xl */
    -webkit-backdrop-filter: blur(24px);
    /* High contrast border and shadow - shadow-2xl */
    border: 1px solid rgba(255, 255, 255, 0.15); /* subtle white border */
    box-shadow: 0 25px 50px -12px rgba(43, 30, 29, 0.4); /* shadow using primary color */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* start slightly above, then drop down into place */
    transform: translate(-50%, -8px) translateZ(0);
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast),
        visibility var(--transition-fast);
    /* Optimize dropdown rendering */
    will-change: opacity, transform;
    contain: layout style paint;
    z-index: 9999 !important; /* FORCE dropdown above everything - highest priority */
}

/* Portal dropdown when rendered to body */
.nav-dropdown-portal {
    position: fixed !important;
    z-index: 9999 !important;
}

.nav-dropdown-title {
    padding: 0.2rem 0.9rem 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.8;
    pointer-events: none;
}

/* Hide original dropdown on desktop (we use portal instead) */
@media (min-width: 769px) {
    .nav-has-dropdown:hover .nav-dropdown:not(.nav-dropdown-portal),
    .nav-has-dropdown.nav-open .nav-dropdown:not(.nav-dropdown-portal) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Mobile: Show original dropdown */
@media (max-width: 768px) {
    .nav-has-dropdown:hover .nav-dropdown,
    .nav-has-dropdown.nav-open .nav-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0) translateZ(0);
    }
}

.nav-dropdown-link {
    display: block;
    padding: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    text-transform: uppercase;
    border-radius: 0.375rem; /* rounded */
    /* White text for high contrast */
    color: #FFFFFF; /* text-white */
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-align: left;
}

.nav-dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.12); /* hover:bg-white/12 - slightly brighter */
    color: #FFFFFF; /* text-white */
    /* Add subtle glow on hover */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid rgba(209, 196, 193, 0.8);
    background-color: #FFFFFF;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    /* Optimize toggle button */
    will-change: transform, background-color;
    transform: translateZ(0);
    touch-action: manipulation;
}

.nav-toggle:hover {
    background-color: rgba(43, 30, 29, 0.05);
    border-color: var(--color-primary);
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background-color: var(--color-primary);
    transition: all var(--transition-fast);
    border-radius: 1px;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg) translateZ(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scale(0) translateZ(0);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg) translateZ(0);
}

/* =========================
   Hero
   ========================= */

.hero {
    padding: 4rem 0 4.5rem;
    scroll-margin-top: 5rem; /* Account for sticky header when scrolling */
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    background: rgba(43, 30, 29, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.96);
    animation: fadeInUp 0.6s ease-out;
    text-align: center;
}

.hero-tagline {
    font-size: 1.1rem;
    margin: 0 0 0.6rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
    text-align: center;
}

.hero-subtext {
    margin: 0 0 2rem;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    text-align: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
    justify-content: center;
}

.btn-hero {
    position: relative;
    overflow: hidden;
}

.btn-hero svg {
    transition: transform 0.3s ease;
}

.btn-hero:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Make btn-secondary in hero section match btn-primary style */
.btn-hero.btn-secondary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 14px 26px rgba(43, 30, 29, 0.25);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.btn-hero.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(43, 30, 29, 0.3);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
    justify-content: center;
    width: 100%;
}

.hero-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-feature-item svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

.hero-card {
    position: relative;
    padding: 1.6rem 1.8rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 0% 0%, #4A3633, #2B1E1D);
    color: #FFFFFF;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.hero-card-decoration {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-card-tag {
    position: absolute;
    top: 1.2rem;
    left: 1.6rem;
    padding: 0.3rem 0.85rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
}

.hero-card-body {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.hero-card-title {
    margin: 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.hero-card-meta {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.hero-card-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-card-price-main {
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-card-price-min {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.85;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================
   Sections / Layout
   ========================= */

.section {
    padding: 2.5rem 0 3rem;
    /* Optimize section rendering */
    contain: layout style;
}

.section-alt {
    /* Glass-style section using main theme color, similar to footer */
    background-color: rgba(43, 30, 29, 0.3);
    color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.section-header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.section-header-centered {
    text-align: center;
}

.section-header-centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 1.35rem;
    margin: 0 0 0.4rem;
}

.section-subtitle {
    margin: 0;
    max-width: 32rem;
}

/* Light text for sections that sit directly on dark background */
.section:not(.section-alt) .section-title {
    color: rgba(255, 255, 255, 0.96);
}

.section:not(.section-alt) .section-subtitle {
    color: rgba(255, 255, 255, 0.82);
}

.page-header {
    padding-top: 2.5rem;
    padding-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.page-header > div {
    width: 100%;
}

.page-header h1 {
    margin: 0 0 0.3rem;
    font-size: 2.0rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
}

.page-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================
   Home: Welcome Alert
   ========================= */

.welcome-alert-bar {
    padding: 0.9rem 0 0.4rem;
    pointer-events: none; /* purely informative, no interactions (for now) */
    transition: max-height 0.5s ease-in, padding 0.5s ease-in, opacity 0.5s ease-in, margin 0.5s ease-in;
    overflow: visible;
    position: relative;
    z-index: 10;
    margin-top: 1rem; /* Offset for sticky header */
}

.welcome-alert-bar.collapsed {
    max-height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
}

.welcome-alert {
    max-width: 680px;
    margin: 0 auto;
    padding: 0.75rem 1.4rem;
    border-radius: 0.75rem;
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    animation:
        welcomeAlertIn 0.5s ease-out forwards,
        welcomeAlertOut 0.5s ease-in 4.5s forwards;
    opacity: 0;
    transform: translateY(-10px);
    position: relative;
    z-index: 11;
    pointer-events: auto;
    width: 100%;
    box-sizing: border-box;
}

.welcome-alert-text {
    display: block;
    width: 100%;
    line-height: 1.5;
}

.welcome-alert strong {
    font-weight: 600;
}

/* Responsive styles for welcome alert */
@media (max-width: 640px) {
    .welcome-alert-bar {
        margin-top: 1rem;
        padding: 0.75rem 0 0.3rem;
    }
    
    .welcome-alert {
        font-size: 0.85rem;
        padding: 0.65rem 1.2rem;
        max-width: 95%;
    }
}

/* =========================
   Home: Event Banner (Modern Design)
   ========================= */

/* Event banner container - always reserves space for consistent layout */
.event-banner-container {
    min-height: 180px; /* Minimum height to match hidden banner height */
    width: 100%;
    position: relative;
    display: block;
    box-sizing: border-box;
}

/* When event banner is rendered, it fills the container and can grow if needed */
.event-banner-container .event-banner-modern {
    min-height: 180px;
    margin-top: 0;
}

/* When container is empty (no banner), maintain minimum height */
.event-banner-container:empty {
    min-height: 180px;
    height: 180px;
}

.event-banner-modern {
    padding: 1.5rem 0;
    background: transparent;
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: 0.5rem; /* Offset for sticky header */
    transition: margin-top 0.5s ease-in;
    box-sizing: border-box;
}

/* When inside container, remove top margin */
.event-banner-container .event-banner-modern {
    margin-top: 0;
}

/* When welcome message is hidden, move event banner up */
.event-banner-modern.welcome-message-hidden {
    margin-top: 0.5rem;
}

/* Hide banner but preserve space for layout stability */
.event-banner-modern.event-banner-hidden .event-banner-card {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease, height 0.3s ease;
    pointer-events: none;
}

/* Keep container padding and fixed height to preserve exact space when hidden */
.event-banner-modern.event-banner-hidden {
    padding: 1.5rem 0 !important;
    min-height: 180px !important; /* Preserve exact space (140px content + 40px padding) */
    height: 180px !important; /* Fixed height to prevent layout shift */
    max-height: 180px !important;
    display: block !important;
    position: relative !important;
    visibility: visible !important; /* Keep in layout flow */
    margin: 0 !important;
    overflow: hidden;
}

/* Ensure container maintains height even when banner is hidden */
.event-banner-container:has(.event-banner-modern.event-banner-hidden) {
    min-height: 180px !important;
    height: 180px !important;
}

/* Ensure welcome-banner height stays constant regardless of event banner state */
/* The event-banner-container always reserves 180px of space */
.event-banner-container ~ .main .welcome-banner,
body:has(.event-banner-container) .welcome-banner {
    min-height: calc(100vh - 18rem) !important;
    height: calc(100vh - 18rem) !important;
}

/* When event banner is hidden, container still reserves space */
.event-banner-modern.event-banner-hidden ~ .main .welcome-banner,
body:has(.event-banner-modern.event-banner-hidden) .welcome-banner {
    min-height: calc(100vh - 18rem) !important;
    height: calc(100vh - 18rem) !important;
}

.event-banner-card {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(43, 30, 29, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(43, 30, 29, 0.2);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-banner-header {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.event-banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.event-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    transform: scale(1.05);
}

.event-banner-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    min-height: 140px;
}

.event-banner-image {
    width: 100%;
    height: 100%;
    min-height: 140px;
    overflow: hidden;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

.event-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border: 3px solid #2B1E1D;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.event-banner-info {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
}

.event-banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    width: fit-content;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.event-banner-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.event-banner-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.event-banner-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.countdown-separator {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0.2rem;
    line-height: 1;
}

.event-banner-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0.25rem 0 0 0;
}

.event-banner-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: auto;
    position: relative;
    z-index: 11;
}

.event-banner-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.event-banner-button:hover {
    background: #4A3633;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 30, 29, 0.3);
}

.event-banner-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .event-banner-content {
        grid-template-columns: 200px 1fr;
    }
    
    .event-banner-image {
        min-height: 120px;
    }
    
    .event-banner-info {
        padding: 1rem 1.25rem;
    }
    
    .event-banner-title {
        font-size: 1.25rem;
    }
    
    .countdown-value {
        font-size: 1.25rem;
    }
    
    .event-banner-header {
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .event-banner-container {
        min-height: 300px; /* Match mobile hidden banner height */
    }
    
    .event-banner-container:empty {
        height: 300px;
    }
    
    .event-banner-modern {
        padding: 0.75rem 0;
    }
    
    .event-banner-modern.event-banner-hidden {
        min-height: 300px; /* Preserve more space on mobile too */
    }
    
    .event-banner-card {
        border-radius: 10px;
    }
    
    .event-banner-content {
        grid-template-columns: 1fr;
    }
    
    .event-banner-image {
        min-height: 120px;
        max-height: 140px;
    }
    
    .event-banner-info {
        padding: 0.875rem 1rem;
        gap: 0.5rem;
    }
    
    .event-banner-title {
        font-size: 1.1rem;
    }
    
    .event-banner-subtitle {
        font-size: 0.8rem;
    }
    
    .countdown-value {
        font-size: 1.1rem;
    }
    
    .countdown-label {
        font-size: 0.55rem;
    }
    
    .countdown-separator {
        font-size: 1.1rem;
        margin: 0 0.1rem;
    }
    
    .event-banner-header {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.375rem;
    }
    
    .event-banner-button {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .event-banner-close {
        width: 28px;
        height: 28px;
    }
}

/* =========================
   Event Modal
   ========================= */

.event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 30, 29, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-modal-overlay.is-active {
    opacity: 1;
}

.event-modal {
    background: rgba(43, 30, 29, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.event-modal-overlay.is-active .event-modal {
    transform: scale(1) translateY(0);
}

.event-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #FFFFFF;
    z-index: 10;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.event-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.event-modal-content {
    display: flex;
    flex-direction: column;
}

.event-modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, 0.05);
}

.event-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-modal-body {
    padding: 2rem;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-align: center;
}

.event-modal-countdown-wrapper {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-top: 1rem;
}

.event-modal-countdown-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 1rem 0;
    text-align: center;
    letter-spacing: 0.05em;
}

.event-modal-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 70px;
}

.modal-countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.25rem;
    line-height: 1;
}

.event-modal-description {
    text-align: center;
}

.event-modal-description p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

.event-ended {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .event-modal {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .event-modal-image {
        height: 200px;
        border-radius: 12px 12px 0 0;
    }
    
    .event-modal-body {
        padding: 1.5rem;
    }
    
    .event-modal-title {
        font-size: 1.5rem;
    }
    
    .modal-countdown-value {
        font-size: 2rem;
    }
    
    .modal-countdown-label {
        font-size: 0.7rem;
    }
    
    .modal-countdown-separator {
        font-size: 1.5rem;
    }
    
    .event-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .event-modal-body {
        padding: 1.25rem;
    }
    
    .event-modal-title {
        font-size: 1.25rem;
    }
    
    .event-modal-countdown-wrapper {
        padding: 1rem;
    }
    
    .modal-countdown-item {
        min-width: 60px;
    }
    
    .modal-countdown-value {
        font-size: 1.75rem;
    }
    
    .modal-countdown-separator {
        font-size: 1.25rem;
        margin: 0 0.15rem;
    }
}

@keyframes welcomeAlertIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes welcomeAlertOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* =========================
   Buttons
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.35rem;
    font-size: 0.86rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    transition: background-color var(--transition-med), color var(--transition-med), box-shadow var(--transition-med), transform var(--transition-fast), border-color var(--transition-med);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 14px 26px rgba(43, 30, 29, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(43, 30, 29, 0.3);
}

.btn-outline {
    border-color: rgba(43, 36, 29, 0.3);
    color: var(--color-primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

/* Logout button hover - red background */
a[href="logout.php"].btn-outline:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #FFFFFF;
}

.btn-ghost {
    border-color: rgba(43, 30, 29, 0.16);
    color: var(--color-primary);
    background-color: #FFFFFF;
}

.btn-ghost:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

/* =========================
   Floating Chat Button
   ========================= */

.floating-chat-btn {
    position: fixed;
    right: 1.25rem; /* ~20px */
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 130;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.floating-chat-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.floating-chat-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
    background-color: var(--color-primary-soft);
}

.floating-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #dc3545;
    color: #FFFFFF;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 131;
    line-height: 1;
}

.floating-chat-badge:empty {
    display: none;
}

@media (max-width: 768px) {
    .floating-chat-btn {
        width: 48px;
        height: 48px;
        right: 1rem;
        bottom: 1rem;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    }

    .floating-chat-btn svg {
        width: 20px;
        height: 20px;
    }

    .floating-chat-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.7rem;
        padding: 0 5px;
        top: -3px;
        right: -3px;
    }
}

/* =========================
   Floating Chat Widget Panel
   ========================= */

.floating-chat-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 6rem;
    width: min(360px, 92vw);
    height: 520px; /* keep consistent height across tabs */
    background: rgba(43, 30, 29, 0.92);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 140;
}

.floating-chat-widget.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-chat-header {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.75rem;
}

.floating-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.2rem;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-tab {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.floating-tab.active {
    background: #4A3633;
    color: #fff;
}

.floating-tab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.floating-chat-status {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-pane {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden; /* keep input visible; let children manage scroll */
}

.floating-pane-chat {
    display: flex;
}

.floating-pane-body {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.floating-pane-title {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.floating-pane-text {
    margin: 0;
}

.floating-faq-list {
    padding-left: 1rem;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced FAQ Container Styles */
.floating-faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.floating-faq-loading,
.floating-faq-error,
.floating-faq-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.floating-faq-error {
    color: rgba(255, 100, 100, 0.9);
}

.floating-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.floating-faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.floating-faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.floating-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 1rem;
}

.floating-faq-question:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.floating-faq-question:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

.floating-faq-question-text {
    flex: 1;
    line-height: 1.5;
}

.floating-faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease, color 0.2s ease;
}

.floating-faq-item.active .floating-faq-icon {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.9);
}

.floating-faq-answer {
    padding: 0 1.15rem 1rem 1.15rem;
    background: rgba(74, 54, 51, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

.floating-faq-answer-content {
    padding-top: 0.75rem;
    color: rgba(200, 200, 220, 0.95);
    font-size: 0.9rem;
    line-height: 1.7;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive FAQ Styles */
@media (max-width: 480px) {
    .floating-faq-question {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .floating-faq-question-text {
        font-size: 0.9rem;
    }
    
    .floating-faq-icon {
        width: 18px;
        height: 18px;
    }
    
    .floating-faq-answer {
        padding: 0 1rem 0.85rem 1rem;
    }
    
    .floating-faq-answer-content {
        padding-top: 0.65rem;
        font-size: 0.85rem;
    }
    
    .floating-faq-container {
        gap: 0.6rem;
    }
}

.floating-chat-title {
    font-weight: 700;
    font-size: 1rem;
}

.floating-chat-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.floating-chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.floating-chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.floating-chat-close svg {
    width: 18px;
    height: 18px;
}

.floating-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
}

.floating-chat-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.floating-chat-message {
    display: flex;
    width: 100%;
}

.floating-chat-message.sent {
    justify-content: flex-end;
}

.floating-chat-message.received {
    justify-content: flex-start;
}

.floating-chat-bubble {
    max-width: 82%;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-chat-message.sent .floating-chat-bubble {
    background: #2ecc71; /* sent = green */
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
}

.floating-chat-message.received .floating-chat-bubble {
    background: #1d7bff; /* received = blue */
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
}

.floating-chat-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: inherit;
}

.floating-chat-time {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.9;
}

.floating-chat-file {
    margin-top: 0.25rem;
}

.floating-msg-file img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: contain;
}

.floating-msg-file a {
    color: #fff;
    text-decoration: underline;
}

.floating-chat-input {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: flex-end;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-chat-input textarea {
    width: 100%;
    min-height: 46px;
    max-height: 140px;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    resize: none;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.floating-chat-attach,
.floating-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.floating-chat-send {
    background: #2B1E1D;
    border-color: rgba(255, 255, 255, 0.25);
}

.floating-chat-send:hover,
.floating-chat-attach:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.floating-chat-send:disabled,
.floating-chat-attach:disabled,
.floating-chat-input textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.floating-chat-file-preview {
    padding: 0.6rem 0.75rem 0;
    background: rgba(0, 0, 0, 0.15);
}

.floating-file-preview-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.floating-file-icon img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.floating-file-generic {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.floating-file-meta {
    flex: 1;
    min-width: 0;
}

.floating-file-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-file-size {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.floating-file-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem 0.35rem;
}

@media (max-width: 480px) {
    .floating-chat-widget {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        bottom: 4.5rem;
    }
}

/* =========================
   Product Grid & Cards
   ========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    /* Optimize grid rendering */
    contain: layout style;
    transform: translateZ(0);
}

.product-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    /* Optimize product card rendering */
    contain: layout style paint;
    will-change: transform;
    transform: translateZ(0);
}

.product-wrapper:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card {
    border: none;
    background-color: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
    transition: transform var(--transition-fast);
    /* Optimize card rendering */
    contain: layout style;
    will-change: transform;
    transform: translateZ(0);
}

.product-card:hover {
    transform: translateY(-4px) translateZ(0);
}

.product-image {
    border-radius: 0;
    height: 320px;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Optimize image container */
    contain: layout style paint;
    will-change: transform;
    transform: translateZ(0);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevent layout shifts */
    display: block;
    will-change: transform;
}

.product-card:hover .product-image {
    transform: scale(1.01) translateZ(0);
    filter: brightness(0.9);
}

.product-sold-out-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(231, 76, 60, 0.95);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.product-out-of-stock img {
    opacity: 0.5;
}

.add-to-cart-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================
   Product Details Page
   ========================= */

.product-details-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0 auto;
}

.product-details-image-wrapper {
    max-width: 420px;
    flex: 0 0 380px;
    height: 450px;
}

.product-image-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
}

.product-thumbnail {
    width: 80px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1514;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-thumbnail:hover {
    border-color: rgba(255, 69, 0, 0.5);
    transform: scale(1.05);
}

.product-image-large {
    border-radius: 18px;
    overflow: hidden;
    background: #1c1514;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    height: 450px; /* Portrait-style frame; image fills this */
    flex: 1;
    min-width: 0;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-details-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 550px;
    flex: 0 0 520px;
    height: 450px;
}

.product-details-panel {
    background: rgba(43, 30, 29, 0.82);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details-title {
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.product-details-artist {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.product-details-meta {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
}

.product-details-meta .product-details-date {
    display: block;
    margin-top: 0.75rem;
}

.product-details-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-top: 1rem;
}

.product-price-large {
    font-size: 1.5rem;
}

.product-details-stock {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.product-details-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.product-details-description h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.product-details-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
}

.product-details-actions .btn {
    min-width: 150px;
}

.product-details-add-to-cart {
    background: linear-gradient(135deg, #ff7a3c, #ff4b3a);
    border-color: transparent;
    color: #ffffff;
    min-width: 170px;
    border-radius: 2px;
    padding: 0.6rem 1.7rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.product-details-continue-btn {
    background: #4A3633;
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.7);
    min-width: 180px;
    padding: 0.6rem 1.7rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0.9;
}

.product-details-back-link {
    margin-top: 1.5rem;
}

.product-details-actions .add-to-cart-btn {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.product-details-actions .add-to-cart-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

.product-details-actions .add-to-cart-btn:active {
    transform: none !important;
}

.product-reviews {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-reviews-panel {
    margin-top: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: rgba(43, 30, 29, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-reviews-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-reviews-empty {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.add-to-cart-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #0f0b0a;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
    /* Optimize button interactions */
    will-change: transform;
    transform: translateZ(0);
    touch-action: manipulation;
}

.add-to-cart-btn:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 6px 16px rgba(43, 30, 29, 0.4);
    background-color: var(--color-primary-soft);
}

/* I-PICK product details footer (price left, cart right at bottom corners) */

.product-details-ipick {
    position: relative;
}

.product-details-footer-ipick {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-price-ipick {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.add-to-cart-ipick {
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.3);
}

.add-to-cart-btn:active {
    transform: scale(0.95) translateZ(0);
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        -45deg,
        #F1E7E4,
        #F1E7E4 6px,
        #E3D2CD 6px,
        #E3D2CD 12px
    );
    color: rgba(43, 30, 29, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 0.5s ease;
}

.product-card:hover .placeholder-image {
    transform: scale(1.01);
}

/* Product Overlay - appears on hover with title only */
.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(43, 30, 29, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    text-align: center;
    opacity: 0;
    transform: scale(0.95) translateZ(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Optimize overlay rendering */
    will-change: opacity, transform;
    contain: layout style paint;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: scale(1) translateZ(0);
    pointer-events: auto;
}

/* Hide overlay on inactive featured product cards */
.featured-product-card:not(.active) .product-overlay {
    display: none !important;
}

/* Only show overlay when active featured product card is hovered */
.featured-product-card.active:hover .product-overlay {
    opacity: 1;
    transform: scale(1) translateZ(0);
    pointer-events: auto;
    display: flex;
}

.product-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-overlay-content {
    transform: translateY(0);
}

.featured-product-card.active:hover .product-overlay-content {
    transform: translateY(0);
}

.product-overlay-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.product-overlay-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.product-overlay-actions {
    margin-top: 1rem;
}

.btn-overlay {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-overlay:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Featured Products Section */
.section-featured {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.featured-products-carousel-wrapper {
    position: relative;
    padding: 0 3.5rem;
    margin: 2rem auto 0;
}

.featured-products-carousel {
    position: relative;
    overflow: visible;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.featured-products-slider {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    align-items: center;
}

.featured-product-card {
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    width: 200px;
    flex-shrink: 0;
    min-width: 200px;
    opacity: 0.5;
    filter: brightness(0.75);
    cursor: pointer;
    position: relative;
}

.featured-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.featured-product-card.active {
    width: 280px;
    min-width: 280px;
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    z-index: 10;
    cursor: default;
}

.featured-product-card.active::before {
    border-color: rgba(255, 255, 255, 0.2);
}

.featured-product-card.active:hover {
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
}


.featured-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    pointer-events: none;
}

.featured-product-card.active .featured-product-link {
    pointer-events: auto;
}

.featured-product-card .product-image {
    position: relative;
    height: 420px;
    aspect-ratio: 3 / 4;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1e7e4;
}

.featured-product-card:not(.active) .product-image {
    height: 350px;
}

.featured-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(43, 30, 29, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 1.25rem 1.1rem;
    background: rgba(43, 30, 29, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.product-name {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
}

.product-artist {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-info .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
}

.btn-quick-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-quick-view:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-quick-view svg {
    width: 18px;
    height: 18px;
}

/* Disable quick view button on inactive cards */
.featured-product-card:not(.active) .btn-quick-view {
    pointer-events: none;
    opacity: 0.5;
}

.featured-product-card.active .btn-quick-view {
    pointer-events: auto;
    opacity: 1;
}

.section-footer {
    margin-top: 3rem;
    text-align: center;
}

/* Carousel Navigation Arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(43, 30, 29, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.carousel-nav-btn:hover:not(:disabled) {
    background: rgba(43, 30, 29, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.carousel-nav-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    z-index: 15;
}

.carousel-indicator {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.carousel-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.carousel-indicator:hover span {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-indicator.active span {
    width: 32px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.carousel-indicator:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 50%;
}

/* =========================
   Home: Shop by Category
   ========================= */

.section-categories {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.75rem;
    background: rgba(43, 30, 29, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: rgba(248, 245, 244, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(0) translateZ(0);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Optimize card rendering */
    contain: layout style paint;
    will-change: transform;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 300px;
}

.category-card-link {
    display: block;
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f1e7e4;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1) translateZ(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Optimize image rendering */
    will-change: transform;
}

.category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(
        to top,
        rgba(43, 30, 29, 0.92),
        rgba(43, 30, 29, 0.65),
        rgba(43, 30, 29, 0.25),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.category-content {
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-title {
    margin: 0 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.category-description {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.category-card:hover .category-image {
    transform: scale(1.08) translateZ(0);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-card:hover .category-content {
    transform: translateY(0);
}

.category-card:hover .category-cta {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(3px);
}

.product-details {
    padding: 1.25rem 1.1rem;
    background: rgba(43, 30, 29, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    height: 130px;
    min-height: 130px;
    /* Prevent layout shifts */
    contain: layout style;
}

.product-details-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    padding-bottom: 3.5rem; /* Space for absolutely positioned footer */
}

/* Product details meta layout on product_details.php */
.product-details-meta {
    display: block;
}

.product-details-meta .product-details-date {
    display: block;
    margin-top: 0.75rem;
}

.product-details-footer {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Remove duplicate .product-price definition */

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}

.product-meta {
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}


/* Store filters */
.store-filters {
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.25rem;
    border-radius: 999px;
    background-color: rgba(43, 30, 29, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.filter-pill {
    border-radius: 20px;
    border: none;
    padding: 0.25rem 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.filter-pill.is-active {
    background-color: #FFFFFF;
    color: var(--color-primary);
}

.filter-pill:hover {
    transform: translateY(-1px) translateZ(0);
}

/* =========================
   Product Toolbar
   ========================= */

.product-toolbar-section {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.product-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 1.75rem;
    background: rgba(43, 30, 29, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    /* Optimize toolbar rendering */
    contain: layout style;
    transform: translateZ(0);
}

.toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.toolbar-group.toolbar-search {
    flex: 2;
    max-width: 400px;
}

.toolbar-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    margin: 0;
}

.toolbar-select {
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-text-main);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232B1E1D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.toolbar-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: #ffffff;
}

.toolbar-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: #ffffff;
}

.search-wrapper {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color var(--transition-fast);
}

.search-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: #ffffff;
}

.search-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    color: var(--color-text-main);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.search-input::placeholder {
    color: rgba(43, 30, 29, 0.5);
}

.search-btn {
    padding: 0.65rem 1rem;
    border: none;
    background-color: var(--color-primary);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.search-btn:hover {
    background-color: var(--color-primary-soft);
    transform: scale(1.05) translateZ(0);
}

.search-btn:active {
    transform: scale(0.95) translateZ(0);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* =========================
   Mission / Stats
   ========================= */

.mission {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.mission-text p {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.stat-card {
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    border: 1px solid rgba(209, 196, 193, 0.9);
    background-color: #FFFFFF;
    color: var(--color-text-main);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
}

/* =========================
   Bidding / Auction
   ========================= */

.auction-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.auction-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auction-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.auction-list {
    display: flex;
    transition: transform 0.3s ease-out;
    will-change: transform;
    transform: translateZ(0);
}

.auction-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0;
    min-width: 100%;
    flex-shrink: 0;
    padding: 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(209, 196, 193, 0.9);
    background-color: #FFFFFF;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    color: var(--color-text-main);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    align-items: start;
}

.auction-card.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.auction-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: rgba(43, 30, 29, 0.35);
}

.auction-left-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.auction-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auction-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.5rem;
    justify-content: flex-start;
}

.auction-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.auction-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.badge {
    border-radius: 5px;
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-ongoing {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

.badge-upcoming {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-color: rgba(43, 30, 29, 0.35);
}

.auction-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.auction-meta > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auction-description {
    margin-top: 0;
    padding: 1.25rem;
    background-color: rgba(43, 30, 29, 0.01);
}

.auction-left-column .auction-description {
    margin-top: 0;
    padding: 1.25rem;
    background-color: rgba(43, 30, 29, 0.01);
    border-top: 1px solid rgba(209, 196, 193, 0.2);
    width: 100%;
}

.auction-description p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.meta-label {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
}

.meta-value {
    font-weight: 600;
    font-size: 2rem;
    text-align: center;
    display: block;
}

.meta-value-time {
    font-size: 2rem;
    color: #dc3545;
    font-weight: 700;
}

.auction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* =========================
   Place Bid Section
   ========================= */

.place-bid-section {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background-color: rgba(43, 30, 29, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(209, 196, 193, 0.3);
    box-shadow: 0 2px 8px rgba(43, 30, 29, 0.06);
}

.place-bid-title {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: 0.02em;
}

.place-bid-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bid-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bid-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.bid-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 2px solid rgba(209, 196, 193, 0.4);
    border-radius: 8px;
    padding: 0;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 4px rgba(43, 30, 29, 0.04);
}

.bid-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.1);
}

.bid-currency {
    padding: 0.85rem 0.75rem 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    background-color: rgba(43, 30, 29, 0.03);
    border-right: 1px solid rgba(209, 196, 193, 0.3);
    flex-shrink: 0;
}

.bid-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.85rem 1rem 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    background-color: transparent;
    border-radius: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.bid-increment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border: none;
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
    min-width: 48px;
}

.bid-increment-btn:hover {
    background-color: rgba(43, 30, 29, 0.9);
    transform: scale(1.05);
}

.bid-increment-btn:active {
    transform: scale(0.95);
}

.bid-increment-btn svg {
    width: 18px;
    height: 18px;
}

.bid-input::-webkit-outer-spin-button,
.bid-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bid-input::placeholder {
    color: rgba(43, 30, 29, 0.4);
    font-weight: 400;
}

.bid-input:focus {
    outline: none;
}

.bid-submit-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.2);
    transition: all var(--transition-fast);
}

.bid-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 30, 29, 0.3);
}

.bid-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(43, 30, 29, 0.2);
}

/* =========================
   Login Required Section
   ========================= */

.login-required-section {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(43, 30, 29, 0.03) 0%, rgba(43, 30, 29, 0.01) 100%);
    border: 2px dashed rgba(209, 196, 193, 0.4);
}

.login-required-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(43, 30, 29, 0.1) 0%, rgba(43, 30, 29, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.1);
}

.login-required-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: 0.02em;
}

.login-required-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 400px;
}

.login-bid-btn {
    margin-top: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.25);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.login-bid-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 30, 29, 0.35);
}

.login-bid-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(43, 30, 29, 0.2);
}

.login-bid-btn svg {
    width: 18px;
    height: 18px;
}

.login-required-footer {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.login-required-footer .register-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.login-required-footer .register-link:hover {
    color: rgba(43, 30, 29, 0.8);
    text-decoration: underline;
}

/* =========================
   Auction Payment Section
   ========================= */

.auction-payment-section {
    margin-top: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.08) 0%, rgba(255, 69, 0, 0.03) 100%);
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 4px 16px rgba(255, 69, 0, 0.1);
}

.payment-winner-notice {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.payment-winner-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.02em;
}

.payment-winner-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.payment-timer {
    color: #ff4500;
    font-weight: 700;
    font-size: 1.1em;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(209, 196, 193, 0.3);
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.payment-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.payment-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-pay-auction {
    position: relative;
    width: 100%;
    padding: 1.25rem 1.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ff4500 0%, #ff5500 50%, #ff6500 100%);
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 
        0 6px 24px rgba(255, 69, 0, 0.35),
        0 2px 8px rgba(255, 69, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-pay-auction::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-pay-auction:hover::before {
    left: 100%;
}

.btn-pay-auction:hover {
    background: linear-gradient(135deg, #ff5500 0%, #ff6500 50%, #ff7500 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 32px rgba(255, 69, 0, 0.45),
        0 4px 12px rgba(255, 69, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-pay-auction:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 16px rgba(255, 69, 0, 0.35),
        0 2px 6px rgba(255, 69, 0, 0.25),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-pay-auction:focus {
    outline: none;
    box-shadow: 
        0 6px 24px rgba(255, 69, 0, 0.35),
        0 2px 8px rgba(255, 69, 0, 0.25),
        0 0 0 4px rgba(255, 69, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-pay-auction:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #999 0%, #888 50%, #777 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-pay-auction:disabled::before {
    display: none;
}

/* Pulse animation for attention */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 6px 24px rgba(255, 69, 0, 0.35),
            0 2px 8px rgba(255, 69, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(255, 69, 0, 0.5),
            0 4px 12px rgba(255, 69, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.btn-pay-auction:not(:disabled):not(:hover) {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Icon support */
.btn-pay-auction svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    width: 1.2em;
    height: 1.2em;
    transition: transform 0.3s ease;
}

.btn-pay-auction:hover svg {
    transform: translateX(3px);
}

.btn-pay-auction:active svg {
    transform: translateX(1px);
}

.payment-warning {
    margin: 0;
    font-size: 0.85rem;
    color: #ff4500;
    font-weight: 600;
    padding: 0.75rem;
    background-color: rgba(255, 69, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 69, 0, 0.2);
}

/* =========================
   Payment Options Modal
   ========================= */

.payment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.payment-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    margin-block-start: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(43, 30, 29, 0.1);
    overflow: hidden;
}

.payment-modal-overlay.is-active .payment-modal {
    transform: scale(1) translateY(0);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(43, 30, 29, 0.1);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.05) 0%, rgba(255, 69, 0, 0.02) 100%);
}

.payment-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.02em;
}

.payment-modal-close {
    background: transparent;
    border: none;
    color: rgba(43, 30, 29, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.payment-modal-close:hover {
    background: rgba(43, 30, 29, 0.1);
    color: var(--color-text-main);
    transform: rotate(90deg);
}

.payment-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.payment-amount-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(255, 69, 0, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 69, 0, 0.2);
    margin-bottom: 1.5rem;
}

.payment-amount-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.payment-amount-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ff4500;
    letter-spacing: 0.02em;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #FFFFFF;
    border: 2px solid rgba(209, 196, 193, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ff4500;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.payment-option:hover {
    border-color: #ff4500;
    box-shadow: 0 8px 24px rgba(255, 69, 0, 0.15);
    transform: translateX(4px);
}

.payment-option:hover::before {
    transform: scaleY(1);
}

.payment-option:active {
    transform: translateX(2px);
}

.payment-option:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-option-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(255, 69, 0, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4500;
    transition: all 0.3s ease;
}

.payment-option:hover .payment-option-icon {
    background: linear-gradient(135deg, #ff4500 0%, #ff5500 100%);
    color: #FFFFFF;
    transform: scale(1.1);
}

.payment-option-content {
    flex: 1;
    min-width: 0;
}

.payment-option-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.01em;
}

.payment-option-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.payment-option-arrow {
    flex-shrink: 0;
    color: rgba(43, 30, 29, 0.4);
    transition: all 0.3s ease;
}

.payment-option:hover .payment-option-arrow {
    color: #ff4500;
    transform: translateX(4px);
}

.auction-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(209, 196, 193, 0.9);
    background-color: #FFFFFF;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    z-index: 10;
}

.auction-nav-btn:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.15);
}

.auction-nav-btn:active {
    transform: scale(0.95);
}

.auction-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.auction-nav-btn:disabled:hover {
    background-color: #FFFFFF;
    color: var(--color-primary);
    border-color: rgba(209, 196, 193, 0.9);
    transform: none;
    box-shadow: none;
}

.auction-nav-btn svg {
    width: 20px;
    height: 20px;
}

.aside-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    width: 100%;
}

.aside-card {
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(67, 47, 45, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(43, 30, 29, 0.25);
    display: flex;
    flex-direction: column;
}

.aside-title {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
}

.aside-card p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.aside-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.aside-list li + li {
    margin-top: 0.25rem;
}

/* =========================
   Bidding History Table
   ========================= */

.bidding-history {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(209, 196, 193, 0.3);
}

.bidding-history-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.bidding-history-table-wrapper {
    height: 11.5rem;
    max-height: 11.5rem;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(209, 196, 193, 0.3);
    border-radius: 8px;
    background-color: #FFFFFF;
}

/* Custom scrollbar styling */
.bidding-history-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.bidding-history-table-wrapper::-webkit-scrollbar-track {
    background: rgba(43, 30, 29, 0.05);
    border-radius: 4px;
}

.bidding-history-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(209, 196, 193, 0.6);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.bidding-history-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(209, 196, 193, 0.8);
}

.bidding-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background-color: #FFFFFF;
    margin: 0;
    border: 1px solid rgba(209, 196, 193, 0.3);
}

.bidding-history-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #FFFFFF;
}

.bidding-history-table thead tr {
    background-color: rgba(43, 30, 29, 0.05);
}

.bidding-history-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    border-bottom: 2px solid rgba(209, 196, 193, 0.5);
    border-right: 1px solid rgba(209, 196, 193, 0.3);
    background-color: rgba(43, 30, 29, 0.05);
}

.bidding-history-table th:first-child {
    width: 60px;
    text-align: center;
    border-left: none;
}

.bidding-history-table th:last-child {
    text-align: right;
    border-right: none;
}

.bidding-history-table tbody tr {
    border-bottom: 1px solid rgba(209, 196, 193, 0.2);
    transition: background-color var(--transition-fast);
}

.bidding-history-table tbody tr:hover {
    background-color: rgba(43, 30, 29, 0.02);
}

.bidding-history-table tbody tr:last-child {
    border-bottom: none;
}

.bidding-history-table td {
    padding: 0.9rem 1rem;
    color: var(--color-text-main);
    vertical-align: middle;
    border-right: 1px solid rgba(209, 196, 193, 0.2);
}

.bidding-history-table td:first-child {
    text-align: center;
    color: var(--color-text-muted);
    font-weight: 500;
    border-left: none;
}

.bidding-history-table td:last-child {
    text-align: right;
    font-weight: 600;
    border-right: none;
}

.bid-amount {
    color: var(--color-primary);
    font-size: 0.95rem;
}

.bidding-history-table tbody tr.bid-winner-row {
    background-color: rgba(255, 215, 0, 0.12);
    border-left: 3px solid #ffd700;
}

.bidding-history-table tbody tr.bid-winner-row:hover {
    background-color: rgba(255, 215, 0, 0.18);
}

.bidding-history-table tbody tr.bid-winner-row td {
    font-weight: 600;
}

.winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2B1E1D;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.35);
    white-space: nowrap;
}

.winner-badge svg {
    width: 12px;
    height: 12px;
    fill: #2B1E1D;
    stroke: #2B1E1D;
    flex-shrink: 0;
}

/* =========================
   Footer – Glassmorphism
   ========================= */

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0 2.25rem;
    position: relative;
    z-index: 5;
    /* Glass background using main theme color with transparency */
    background: rgba(43, 30, 29, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.notifications-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    margin-top: -0.25rem;
}

.notifications-toolbar-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.notifications-toolbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.notifications-toolbar-btn-danger {
    border-color: rgba(220, 53, 69, 0.9);
    color: #ffdddd;
}

.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Ensure all footer typography and icons are white for contrast */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .logo-text,
.site-footer i,
.site-footer svg {
    color: #ffffff;
}

.site-footer a {
    opacity: 0.9;
    text-decoration: none;
    transition: opacity var(--transition-fast), text-decoration-color var(--transition-fast);
}

.site-footer a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.9);
}

.footer-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-meta {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Slightly softer logo mark in footer to match glass background */
.site-footer .logo-mark {
    border-color: rgba(255, 255, 255, 0.35);
    background: radial-gradient(circle at 20% 10%, #4A3633, #2B1E1D);
    color: #ffffff;
}

/* Responsive footer spacing */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.8rem 0 2.1rem;
    }

    .footer-inner {
        gap: 0.4rem;
    }
}

@media (max-width: 576px) {
    body {
        background-image: none !important;
        background-color: #0f0b0a;
    }
    
    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('../../img/bg/bg.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        z-index: -2;
        pointer-events: none;
    }
    
    body::before {
        position: fixed;
        z-index: -1;
    }
    
    .site-footer {
        padding: 1.6rem 0 1.9rem;
    }

    .footer-text {
        font-size: 0.83rem;
    }

    .footer-meta {
        font-size: 0.76rem;
    }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 2rem;
    }

    .hero-features {
        gap: 1rem;
    }

    .hero-feature-item {
        font-size: 0.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .category-card {
        max-width: 100%;
    }

    .auction-layout {
        gap: 1.75rem;
    }

    .auction-image-wrapper {
        aspect-ratio: 4 / 5;
    }

    .auction-body {
        padding: 1.5rem;
        gap: 0.85rem;
    }
}

/* Prevent background repeating and zooming on mobile */
@media (max-width: 768px) {
    body {
        background-image: none !important;
        background-color: #0f0b0a;
    }
    
    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('../../img/bg/bg.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        z-index: -2;
        pointer-events: none;
    }
    
    body::before {
        position: fixed;
        z-index: -1;
    }
    
    .header-inner {
        padding: 0.85rem 1.25rem;
        min-height: 68px;
    }

    /* Mobile header actions - reduce button sizes and spacing */
    .header-actions {
        gap: 0.5rem;
    }

    .cart-icon-link,
    .profile-icon-link,
    .notifications-icon-link {
        width: 36px;
        height: 36px;
        margin-top: 0;
    }

    .cart-icon-link svg,
    .profile-icon-link svg,
    .notifications-icon-link svg {
        width: 18px;
        height: 18px;
    }

    .btn-compact {
        padding: 0.35rem 0.75rem;
        font-size: 0.72rem;
        margin-top: 0;
    }

    .nav {
        position: static;
        transform: none;
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
        width: 36px;
        height: 36px;
        gap: 4px;
    }

    .nav-toggle span {
        width: 18px;
    }

    /* Hide close button on desktop */
    .nav-close-wrapper {
        display: none;
    }

    /* Mobile navigation off-canvas panel (left side) */
    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 0 0 1.5rem; /* no top padding so panel sits flush at the top */
        background-color: #FFFFFF; /* solid, no blur */
        border: none;
        border-right: 1px solid rgba(209, 196, 193, 0.3);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 220ms ease-out, opacity 220ms ease-out;
        z-index: 140; /* above overlay and page content */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-list.is-open {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Overlay backdrop when menu is open (handled by .nav-overlay element) */

    /* Close button at top of mobile menu */
    .nav-close-wrapper {
        width: 100%;
        padding: 0.75rem 1.5rem 0.75rem; /* small internal padding, no visual gap above panel */
        border-bottom: 1px solid rgba(209, 196, 193, 0.3);
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .nav-close {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: var(--color-text-main);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color var(--transition-fast), transform var(--transition-fast);
        margin: -0.5rem;
    }

    .nav-close:hover {
        color: var(--color-primary);
        transform: scale(1.1);
    }

    .nav-close:active {
        transform: scale(0.95);
    }

    .nav-close svg {
        width: 20px;
        height: 20px;
    }

    /* Navigation items styling in mobile menu */
    .nav-list .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(209, 196, 193, 0.3);
    }

    /* Mobile: show Profile text link inside nav list */
    .nav-list .nav-item-profile-link {
        display: block;
    }

    .nav-list .nav-item:last-child {
        border-bottom: 1px solid rgba(209, 196, 193, 0.3);
    }

    .nav-list .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 1.5rem;
        text-align: left;
        border-bottom: none;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        color: var(--color-text-main);
        opacity: 1;
        font-weight: 500;
        text-transform: uppercase;
        transition: background-color var(--transition-fast), color var(--transition-fast);
    }

    .nav-list .nav-link:hover {
        background-color: rgba(43, 30, 29, 0.05);
        color: var(--color-primary);
        opacity: 1;
    }

    .nav-list .nav-link.is-active {
        background-color: transparent;
        color: var(--color-primary);
        opacity: 1;
        font-weight: 600;
    }

    /* Dropdown toggle button in mobile menu */
    .nav-list .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 1.5rem;
        text-align: left;
        border-bottom: none;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        color: var(--color-text-main);
        opacity: 1;
        font-weight: 500;
        text-transform: uppercase;
        background: none;
        border: none;
        cursor: pointer;
        transition: background-color var(--transition-fast), color var(--transition-fast);
    }

    .nav-list .nav-dropdown-toggle:hover {
        background-color: rgba(43, 30, 29, 0.05);
        color: var(--color-primary);
        opacity: 1;
    }

    .nav-list .nav-dropdown-toggle.is-active {
        background-color: transparent;
        color: var(--color-primary);
        opacity: 1;
        font-weight: 600;
    }

    /* Nav caret (dropdown arrow) in mobile menu */
    .nav-list .nav-caret {
        display: inline-block;
        margin-left: 0.75rem;
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        vertical-align: middle;
        transition: transform var(--transition-fast);
    }

    .nav-list .nav-has-dropdown.nav-open .nav-caret {
        transform: rotate(45deg);
    }

    .nav-has-dropdown .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background-color: rgba(43, 30, 29, 0.02);
        padding: 0;
        margin-top: 0;
        margin-left: 0;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        border-top: 1px solid rgba(209, 196, 193, 0.3);
    }

    .nav-dropdown-link {
        display: block;
        padding: 0.75rem 1.5rem 0.75rem 2.5rem;
        border-radius: 0;
        font-size: 0.9rem;
        color: var(--color-text-main);
        opacity: 1;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(209, 196, 193, 0.3);
        transition: background-color var(--transition-fast), color var(--transition-fast);
    }

    .nav-dropdown-link:last-child {
        border-bottom: none;
    }

    .nav-dropdown-link:hover {
        background-color: rgba(43, 30, 29, 0.05);
        color: var(--color-primary);
        opacity: 1;
    }

    .hero {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.85rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-subtext {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-feature-item {
        font-size: 0.8rem;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .hero-card {
        width: 100%;
        min-width: auto;
    }

    .section {
        padding-top: 2.1rem;
        padding-bottom: 2.3rem;
    }

    .section-categories {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-featured {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.75rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .category-card {
        max-width: 100%;
    }

    .category-overlay {
        padding: 1.5rem 1.25rem;
    }

    .category-description {
        font-size: 0.85rem;
    }

    .category-cta {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }

    .product-image {
        height: 260px;
    }
    
    .featured-product-card .product-image {
        height: 320px;
        aspect-ratio: 3 / 4;
    }

    .product-info {
        padding: 1rem 1rem 1.25rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-artist {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .section-footer {
        margin-top: 2rem;
    }
    
    .featured-products-carousel-wrapper {
        padding: 0 2.5rem;
    }
    
    .carousel-nav-btn {
        width: 48px;
        height: 48px;
    }
    
    .carousel-nav-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
    
    .carousel-indicators {
        margin-top: 1.5rem;
        gap: 0.6rem;
    }
    
    .carousel-indicator span {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active span {
        width: 24px;
        height: 8px;
    }
    
    .featured-products-slider {
        gap: 1.25rem;
    }
    
    .featured-product-card {
        min-width: calc(50% - 0.625rem);
    }

    .mission {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Additional mobile adjustments for new elements */
    .product-overlay-content {
        gap: 0.5rem;
    }

    .product-overlay-title {
        font-size: 1rem;
    }

    .product-overlay-subtitle {
        font-size: 0.8rem;
    }

    .btn-overlay {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: clamp(2rem, 5vw, 2.4rem);
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .category-card {
        max-width: 100%;
    }

    .hero-card {
        padding: 1.25rem 1.5rem;
    }

    .product-image {
        height: 240px;
    }
    
    .featured-product-card .product-image {
        height: 280px;
        aspect-ratio: 3 / 4;
    }
    
    .featured-products-carousel-wrapper {
        padding: 0 2rem;
    }
    
    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-prev {
        left: -0.5rem;
    }
    
    .carousel-next {
        right: -0.5rem;
    }
    
    .featured-products-slider {
        gap: 1rem;
    }
    
    .featured-product-card {
        width: 160px;
        min-width: 160px;
        max-width: 100%;
    }
    
    .featured-product-card.active {
        display: flex !important;
        width: 200px;
        min-width: 200px;
    }
    
    .featured-products-carousel {
        padding: 1rem 0;
        overflow: visible;
    }

    .mission-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auction-layout {
        gap: 1.5rem;
    }

    .auction-slider-wrapper {
        gap: 0.75rem;
    }

    .auction-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .auction-left-column {
        order: 1;
    }

    .auction-body {
        order: 2;
    }

    .auction-image-wrapper {
        aspect-ratio: 4 / 5;
    }

    .auction-left-column .auction-description {
        padding: 1rem;
    }

    .auction-body {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .aside-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .aside-card {
        padding: 1.1rem 1.2rem;
    }

    .place-bid-section {
        margin-top: 1rem;
        padding: 1.25rem;
    }

    .bidding-history {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .place-bid-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .bid-submit-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.88rem;
    }

    .bidding-history-table-wrapper {
        height: 10.5rem;
        max-height: 10.5rem;
    }

    .bidding-history-table {
        font-size: 0.88rem;
    }

    .bidding-history-table th {
        padding: 0.8rem 0.9rem;
    }

    .bidding-history-table td {
        padding: 0.85rem 0.9rem;
    }

    .auction-nav-btn {
        width: 40px;
        height: 40px;
    }

    .auction-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .auction-payment-section {
        padding: 1.25rem;
        margin-top: 1rem;
    }

    .btn-pay-auction {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .btn-pay-auction svg {
        width: 1em;
        height: 1em;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile - further reduce header button sizes */
    .header-inner {
        padding: 0.75rem 1rem;
        min-height: 64px;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .nav-toggle {
        width: 34px;
        height: 34px;
        gap: 3.5px;
    }

    .nav-toggle span {
        width: 16px;
        height: 1.5px;
    }

    .nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .cart-icon-link,
    .profile-icon-link,
    .notifications-icon-link {
        width: 36px;
        height: 36px;
    }

    .cart-icon-link svg,
    .profile-icon-link svg,
    .notifications-icon-link svg {
        width: 17px;
        height: 17px;
    }

    .btn-compact {
        padding: 0.32rem 0.7rem;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .logo-image {
        height: 40px;
    }

    .container {
        padding: 0 1.1rem;
    }

    .hero-text h1 {
        font-size: 2.05rem;
    }

    .hero-subtext {
        font-size: 0.95rem;
    }

    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .add-to-cart-btn {
        width: 40px;
        height: 40px;
    }

    .add-to-cart-btn svg {
        width: 18px;
        height: 18px;
    }

    .auction-slider-wrapper {
        gap: 0.5rem;
    }

    .auction-image-wrapper {
        aspect-ratio: 4 / 5;
    }

    .auction-left-column .auction-description {
        padding: 0.9rem;
    }

    .auction-left-column .auction-description p {
        font-size: 0.85rem;
    }

    .auction-body {
        padding: 1rem;
        gap: 0.7rem;
    }

    .auction-meta {
        gap: 0.5rem;
    }

    .place-bid-section {
        margin-top: 0.9rem;
        padding: 1rem;
    }

    .login-required-section {
        padding: 1.5rem 1rem;
    }

    .login-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .login-icon-wrapper svg {
        width: 28px;
        height: 28px;
    }

    .login-required-title {
        font-size: 1rem;
    }

    .login-required-text {
        font-size: 0.9rem;
    }

    .login-bid-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .login-bid-btn svg {
        width: 16px;
        height: 16px;
    }

    .login-required-footer {
        font-size: 0.8rem;
    }

    .place-bid-title {
        font-size: 0.9rem;
        margin-bottom: 0.9rem;
    }

    .bid-label {
        font-size: 0.8rem;
    }

    .bid-currency {
        padding: 0.75rem 0.65rem 0.75rem 0.85rem;
        font-size: 0.9rem;
    }

    .bid-input {
        padding: 0.75rem 0.85rem;
        font-size: 0.95rem;
    }

    .bid-increment-btn {
        padding: 0.75rem 0.85rem;
        min-width: 42px;
    }

    .bid-increment-btn svg {
        width: 16px;
        height: 16px;
    }

    .bid-submit-btn {
        padding: 0.8rem 1.15rem;
        font-size: 0.85rem;
    }

    .bidding-history {
        margin-top: 0.9rem;
        padding-top: 0.9rem;
    }

    .bidding-history-title {
        font-size: 0.95rem;
        margin-bottom: 0.65rem;
    }

    .auction-payment-section {
        padding: 1rem;
        margin-top: 0.9rem;
    }

    .payment-winner-title {
        font-size: 1rem;
    }

    .payment-winner-text {
        font-size: 0.9rem;
    }

    .btn-pay-auction {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        border-radius: 10px;
    }

    .btn-pay-auction svg {
        width: 18px;
        height: 18px;
        margin-right: 0.4rem;
    }

    .payment-warning {
        font-size: 0.8rem;
        padding: 0.65rem;
    }

    .payment-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }

    .payment-modal-header {
        padding: 1.25rem 1.5rem;
    }

    .payment-modal-title {
        font-size: 1.25rem;
    }

    .payment-modal-body {
        padding: 1.5rem;
    }

    .payment-amount-display {
        padding: 1rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .payment-amount-value {
        font-size: 1.5rem;
    }

    .payment-option {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .payment-option-icon {
        width: 48px;
        height: 48px;
    }

    .payment-option-title {
        font-size: 1rem;
    }

    .payment-option-description {
        font-size: 0.85rem;
    }

    .bidding-history-table-wrapper {
        height: 9.5rem;
        max-height: 9.5rem;
        border-radius: 6px;
    }

    .aside-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.25rem;
    }

    .aside-card {
        padding: 1rem 1.1rem;
    }

    .aside-title {
        font-size: 0.9rem;
        margin-bottom: 0.85rem;
    }

    .aside-list {
        font-size: 0.8rem;
    }

    .bidding-history-table {
        font-size: 0.85rem;
    }

    .bidding-history-table th {
        padding: 0.7rem 0.75rem;
        font-size: 0.8rem;
    }

    .bidding-history-table td {
        padding: 0.75rem;
    }

    .bid-amount {
        font-size: 0.9rem;
    }

    .auction-nav-btn {
        width: 36px;
        height: 36px;
    }

    .auction-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .product-details {
        padding: 1rem 0.9rem;
        gap: 0.75rem;
        height: 120px;
        min-height: 120px;
    }

    .product-details-footer-ipick {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 1rem;
    }

    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem 1.25rem;
    }

    .toolbar-group {
        flex: 1;
    }

    .toolbar-group.toolbar-search {
        flex: 1;
        max-width: 100%;
    }

    .product-image {
        height: 240px;
    }
    
    .featured-product-card .product-image {
        height: 260px;
        aspect-ratio: 3 / 4;
    }

/* =========================
   Product Details Page
   ========================= */

.product-details-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0 auto;
}

.product-details-image-wrapper {
    max-width: 420px;
    flex: 0 0 380px;
    height: 450px;
}

.product-image-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1514;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-thumbnail:hover {
    border-color: rgba(255, 69, 0, 0.5);
    transform: scale(1.05);
}

.product-image-large {
    border-radius: 18px;
    overflow: hidden;
    background: #1c1514;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    height: 480px; /* Portrait-style frame; image fills this */
    flex: 1;
    min-width: 0;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-details-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 550px;
    flex: 0 0 520px;
    height: 450px;
}

.product-details-panel {
    background: rgba(43, 30, 29, 0.82);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details-title {
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.product-details-artist {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.product-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.product-details-meta {
    margin-top: 0.75rem;
}

.product-details-date {
    display: block;
    margin-top: 1rem;
}

.product-details-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-top: 1rem;
}

.product-price-large {
    font-size: 1.5rem;
}

.product-details-stock {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.product-details-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.product-details-description h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.product-details-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
}

.product-details-actions .btn {
    min-width: 150px;
}

.product-details-add-to-cart {
    background: linear-gradient(135deg, #ff7a3c, #ff4b3a);
    border-color: transparent;
    color: #ffffff;
    min-width: 170px;
    border-radius: 2px;
    padding: 0.6rem 1.7rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.product-details-continue-btn {
    background: #4A3633;
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.7);
    min-width: 180px;
    padding: 0.6rem 1.7rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0.9;
}

.product-details-back-link {
    margin-top: 1.5rem;
}

.product-details-actions .add-to-cart-btn {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.product-details-actions .add-to-cart-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

.product-details-actions .add-to-cart-btn:active {
    transform: none !important;
}

.product-details-actions .btn-primary {
    padding-inline: 1.75rem;
}

.product-details-actions .btn-secondary {
    background: rgb(43, 30, 29);
    color: white;
    border: 1px solid var(--color-border-subtle);
}

.product-details-actions .btn-secondary:hover {
    background: rgba(43, 30, 29, 0.14);
    border-color: var(--color-primary);
}

@media (max-width: 900px) {
    .product-details-layout {
        flex-direction: column;
        gap: 1.75rem;
        align-items: center;
    }

    .product-details-image-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }

    .product-image-container {
        flex-direction: column;
        gap: 1rem;
    }

    .product-thumbnails {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4rem;
    }

    .product-thumbnail {
        width: 70px;
        height: 70px;
    }

    .product-image-large {
        width: 100%;
    }

    .product-image-large img {
        height: 100%;
    }
}

    .mission-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-header {
        padding-top: 2rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 420px) {
    /* Product details thumbnails - smaller on very small screens */
    .product-thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-thumbnails {
        gap: 0.4rem;
    }

    /* Very small mobile devices - optimize header buttons further */
    .header-inner {
        padding: 0.7rem 0.85rem;
        min-height: 60px;
    }

    .header-actions {
        gap: 0.35rem;
    }

    .nav-toggle {
        width: 32px;
        height: 32px;
        gap: 3px;
    }

    .nav-toggle span {
        width: 15px;
        height: 1.5px;
    }

    .nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(5.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-5.5px) rotate(-45deg);
    }

    .cart-icon-link,
    .profile-icon-link,
    .notifications-icon-link {
        width: 34px;
        height: 34px;
    }

    .cart-icon-link svg,
    .profile-icon-link svg,
    .notifications-icon-link svg {
        width: 16px;
        height: 16px;
    }

    .btn-compact {
        padding: 0.3rem 0.6rem;
        font-size: 0.68rem;
    }

    .logo-image {
        height: 36px;
    }

    /* Adjust nav menu width for very small screens */
    .nav-list {
        width: 260px;
        max-width: 80vw;
        padding: 4rem 0 1.5rem;
    }

    .nav-list .nav-link,
    .nav-list .nav-dropdown-toggle {
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
    }

    .nav-dropdown-link {
        padding: 0.65rem 1.25rem 0.65rem 2.25rem;
        font-size: 0.85rem;
    }
}

/* === Auth (from auth.css) === */

:root {
  --auth-primary: var(--color-primary, #2b1e1d);
  --auth-primary-soft: rgba(43, 30, 29, 0.06);
  --auth-text-main: var(--color-text-main, #2b1e1d);
  --auth-text-muted: var(--color-text-muted, #7a6e6d);
  --auth-border-subtle: rgba(43, 30, 29, 0.16);
  --auth-error: #c0392b;
  --auth-radius-card: 18px;
  --auth-radius-pill: 999px;
  --auth-transition-fast: 0.22s ease;
  --auth-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.auth-main {
  padding-top: 4.5rem;
  min-height: 100vh;
}

.auth-section {
  padding: 2.75rem 0 3rem;
}

.auth-page {
  min-height: calc(100vh - 30rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5px 1.5rem 24px;
}

.auth-card {
  background: #ffffff;
  border-radius: var(--auth-radius-card);
  box-shadow: var(--auth-shadow-soft);
  max-width: 420px;
  width: 100%;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  color: var(--auth-text-main);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top right,
    rgba(43, 30, 29, 0.08),
    transparent 55%
  );
  opacity: 0.85;
  pointer-events: none;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.auth-logo-image {
  height: 56px;
  width: auto;
  display: block;
}

.auth-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: var(--auth-radius-pill);
  background: var(--auth-primary-soft);
  backdrop-filter: blur(6px);
  margin-top: 4px;
  margin-bottom: 10px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 0;
  border-radius: var(--auth-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-text-muted);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color var(--auth-transition-fast);
}

.toggle-btn.active {
  color: #ffffff;
}

.toggle-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--auth-radius-pill);
  background: var(--auth-primary);
  transition: transform var(--auth-transition-fast);
  z-index: 1;
}

.auth-forms-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
  position: absolute;
  inset: 0;
}

.auth-form.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
  position: relative;
}

/* Password visibility toggle */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--auth-text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.password-toggle:hover {
  color: var(--auth-primary);
}

.auth-form.slide-out-left {
  transform: translateX(-16px);
  opacity: 0;
}

.auth-form.slide-out-right {
  transform: translateX(16px);
  opacity: 0;
}

.form-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.form-subtitle {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--auth-text-muted);
  text-align: center;
}

.auth-mode-badge {
  margin: 0;
  display: inline-flex;
  align-self: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(43, 30, 29, 0.1);
  color: var(--auth-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-text-main);
}

.form-group input {
  border-radius: 10px;
  border: 1px solid var(--auth-border-subtle);
  padding: 9px 10px;
  font-size: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition:
    border-color var(--auth-transition-fast),
    box-shadow var(--auth-transition-fast),
    background-color var(--auth-transition-fast),
    transform 0.08s ease;
}

.form-group input::placeholder {
  color: rgba(122, 110, 109, 0.7);
}

.form-group input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 1px rgba(43, 30, 29, 0.1);
  background: #ffffff;
  transform: translateY(-1px);
}

.form-group input.error {
  border-color: var(--auth-error);
  box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.1);
}

.error-message {
  min-height: 14px;
  font-size: 11px;
  color: var(--auth-error);
}

/* =========================
   Server Message Styles
   ========================= */

.server-message {
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 0.75rem 1.4rem;
  border-radius: 0.75rem;
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  animation: welcomeAlertIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(-10px);
}

.server-message.error-message {
  background-color: #c0392b;
}

.server-message.success-message {
  background-color: #2ed573;
}

@keyframes welcomeAlertIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.server-message.fade-out {
  animation: welcomeAlertOut 0.5s ease-in forwards;
}

@keyframes welcomeAlertOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.primary-btn {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  background: var(--auth-primary);
  color: #ffffff;
  cursor: pointer;
  margin-top: 2px;
  transition:
    background var(--auth-transition-fast),
    transform 0.12s ease,
    box-shadow var(--auth-transition-fast);
  box-shadow: 0 10px 24px rgba(43, 30, 29, 0.28);
}

.primary-btn:hover {
  background: #241816;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(43, 30, 29, 0.32);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(43, 30, 29, 0.22);
}

.link-button {
  border: none;
  background: none;
  padding: 0;
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-primary);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.link-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--auth-primary);
  transition: width 0.22s ease;
}

.link-button:hover::after {
  width: 100%;
}

.switch-text {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--auth-text-muted);
}

.switch-text .link-button {
  font-size: 12px;
}


@media (max-width: 640px) {
  .auth-page {
    align-items: center;
    padding: 18px 1.1rem;
  }

  .auth-card {
    padding: 22px 18px 24px;
    border-radius: 16px;
    max-width: 100%;
  }

  .form-title {
    font-size: 20px;
  }

  .auth-forms-wrapper {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .auth-page {
    padding: 14px 1rem;
  }

  .auth-card {
    padding: 20px 16px 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  }

  .auth-brand .brand-tagline {
    font-size: 10px;
  }

  .form-group input {
    padding: 9px 9px;
  }
}

/* =========================
   Cart Page Styles
   ========================= */

.cart-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
    width: 80%;
    max-width: 100%;
    overflow-x: hidden;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.cart-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* Cart Items Section */
.cart-items-section {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
    max-width: 100%;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.cart-item-card {
    display: flex;
    gap: 1.5rem;
    padding: 0.875rem;
    background: rgba(43, 30, 29, 0.4);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.cart-item-image-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 180px; /* Vertical/portrait aspect ratio */
}

.cart-item-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 30, 29, 0.3);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show whole image without cropping */
    object-position: center;
    display: block;
}

.cart-item-image .placeholder-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.cart-item-remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
}

.cart-item-remove:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
    transform: scale(1.1);
}

.cart-item-remove:active {
    transform: scale(0.95);
}

.cart-item-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-price,
.cart-item-quantity,
.cart-item-total {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-label,
.quantity-label,
.total-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.price-value,
.total-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
    flex-shrink: 0;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-total {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.25rem;
}

.total-value {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.98);
}

/* Order Summary Section */
.cart-summary-section {
    position: sticky;
    max-width: 380px;
    width: 100%;
}

.cart-summary-card {
    background: rgba(43, 30, 29, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
}

.cart-summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.02em;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.summary-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.summary-value {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0.35rem 0;
}

.summary-total {
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.summary-total .summary-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.summary-total .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
}

.btn-checkout {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: all var(--transition-med);
    letter-spacing: 0.02em;
    background-color: #ff4500;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 14px 26px rgba(255, 69, 0, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 69, 0, 0.4);
    background-color: #ff5500;
}

.cart-continue-shopping {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-continue-shopping:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Empty Cart State */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(43, 30, 29, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.6;
}

.cart-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.cart-empty-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* Shopee-style Mobile Cart Header */
.cart-header-mobile {
    display: none; /* Hidden on desktop */
    background: rgba(43, 30, 29, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin: 0 -1rem 1rem -1rem; /* Extend to container edges */
    border-radius: 0;
    width: calc(100% + 2rem);
}

.cart-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.cart-select-all-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.cart-checkbox,
.cart-item-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cart-checkbox-custom,
.cart-item-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dc3545;
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.cart-checkbox:checked + .cart-checkbox-custom,
.cart-item-checkbox:checked + .cart-item-checkbox-custom {
    background: #dc3545;
    border-color: #dc3545;
}

.cart-checkbox:checked + .cart-checkbox-custom::after,
.cart-item-checkbox:checked + .cart-item-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
}

.cart-select-all-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.cart-items-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.cart-clear-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid #dc3545;
    border-radius: var(--radius-sm);
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-clear-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

.cart-clear-btn svg {
    flex-shrink: 0;
}

/* Cart Item Checkbox with Green Bracket Indicator */
.cart-item-checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.cart-item-checkbox-indicator {
    position: absolute;
    left: -8px;
    top: -4px;
    bottom: -4px;
    width: 4px;
    background: rgba(43, 30, 29, 0.6);
    border-radius: 2px 0 0 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.cart-item-checkbox:checked ~ .cart-item-checkbox-indicator {
    opacity: 1;
}

.cart-item-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.cart-item-card .cart-item-checkbox:checked ~ .cart-item-image-wrapper,
.cart-item-card .cart-item-checkbox:checked ~ .cart-item-details {
    opacity: 1;
}

.cart-item-card:has(.cart-item-checkbox:checked) {
    background: rgba(43, 30, 29, 0.15);
    border-color: rgba(43, 30, 29, 0.3);
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.15rem 0;
    line-height: 1.3;
}

.cart-item-artist {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.25rem 0;
}

.cart-item-artist strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.cart-item-price-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.cart-item-price-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.cart-item-stock-warning {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #ffc107;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.4rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.cart-item-stock-warning svg {
    flex-shrink: 0;
}

.cart-item-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.35rem;
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
}

.cart-item-quantity-controls .quantity-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.cart-item-quantity-controls .quantity-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.cart-item-subtotal {
    display: none; /* Hidden on all views */
    align-items: center;
}

.cart-item-subtotal-value {
    display: none; /* Hidden on all views */
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.cart-item-remove-mobile {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.cart-item-card:hover .cart-item-remove-mobile {
    opacity: 1;
    pointer-events: auto;
}

.cart-item-remove-mobile:hover {
    background: rgba(220, 53, 69, 0.25);
    transform: scale(1.1);
}

/* Mobile Footer */
.cart-footer-mobile {
    display: none; /* Hidden on desktop */
    padding: 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.cart-continue-shopping-mobile {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cart-continue-shopping-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Responsive Design */
@media (max-width: 968px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .cart-summary-section {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .cart-summary-card {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    .cart-items-section {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .cart-container {
        padding-top: 0.5rem;
        padding-bottom: 2rem;
        padding-left: 0;
        padding-right: 0;
    }

    /* Show mobile header and footer */
    .cart-header-mobile {
        display: block;
    }

    .cart-footer-mobile {
        display: block;
    }
    
    /* Ensure cart layout doesn't overflow */
    .cart-layout {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure cart items section fits */
    .cart-items-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure summary fits */
    .cart-summary-section {
        width: 100%;
        max-width: 100%;
    }
    
    .cart-summary-card {
        width: 100%;
        max-width: 100%;
    }

    /* Hide desktop section title */
    .cart-section-title {
        display: none;
    }

    /* Shopee-style cart layout */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem; /* Add padding inside layout */
    }
    
    /* Adjust header for mobile */
    .cart-header-mobile {
        margin: 0 -1rem 1rem -1rem;
        padding: 0.875rem 4rem;
    }
    
    .cart-header-content {
        gap: 0.5rem;
    }
    
    .cart-header-left {
        gap: 0.5rem;
    }
    
    .cart-select-all-text {
        font-size: 0.9rem;
    }
    
    .cart-items-count {
        font-size: 0.8rem;
    }
    
    .cart-clear-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .cart-clear-btn span {
        display: none; /* Hide text on very small screens, show only icon */
    }

    .cart-items-list {
        gap: 0.75rem;
    }

    .cart-item-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.6rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        margin-bottom: 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cart-item-card:hover {
        transform: none;
        box-shadow: none;
    }

    .cart-item-checkbox-label {
        margin-top: 0.3rem;
    }


    .cart-item-image-wrapper {
        width: 80px;
        height: 95px;
        flex-shrink: 0;
        min-width: 80px;
    }

    .cart-item-image {
        border-radius: var(--radius-sm);
    }

    .cart-item-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .cart-item-name {
        font-size: 0.9rem;
        line-height: 1.25;
        margin-bottom: 0.1rem;
    }

    .cart-item-artist {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }

    .cart-item-price-row {
        margin-bottom: 0.15rem;
    }

    .cart-item-price-label,
    .cart-item-price-value {
        font-size: 0.85rem;
    }

    .cart-item-stock-warning {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
        margin-bottom: 0.35rem;
    }

    .cart-item-controls-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.35rem;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .cart-item-quantity-controls {
        flex-shrink: 0;
    }

    .cart-item-subtotal-value {
        display: none; /* Hidden on mobile view */
        font-size: 0.95rem;
        white-space: nowrap;
        font-weight: 700;
    }

    .cart-item-remove-mobile {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        opacity: 1;
        pointer-events: auto;
        flex-shrink: 0;
        width: 28px;
        height: 28px;
    }

    /* Hide desktop remove button */
    .cart-item-remove {
        display: none;
    }

    /* Summary section adjustments */
    .cart-summary-section {
        margin-top: 1rem;
    }

    .cart-summary-card {
        padding: 1.25rem;
    }

    .cart-summary-title {
        font-size: 1.2rem;
    }

    .summary-total .summary-label {
        font-size: 1rem;
    }

    .summary-total .summary-value {
        font-size: 1.3rem;
    }

    .btn-checkout {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .cart-item-card {
        padding: 1rem;
    }

    .cart-item-image-wrapper {
        height: 240px; /* Keep vertical aspect ratio on small screens */
    }

    .cart-summary-card {
        padding: 1.25rem;
    }
}

/* =========================
   Checkout Page Styles
   ========================= */

.checkout-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3rem;
    align-items: start;
}

.checkout-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* Checkout Form Section */
.checkout-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-customer-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.checkout-form-subsection {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.checkout-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.01em;
}

.checkout-section-divider {
    height: 1px;
    background: var(--color-border-subtle);
    margin: 2rem 0;
    border: none;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-form .form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    letter-spacing: 0.01em;
}

.checkout-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--color-text-main);
    background: #FFFFFF;
    border: 1px solid var(--color-border-subtle);
    border-radius: 5px;
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.checkout-form .form-input::placeholder {
    color: rgba(122, 110, 109, 0.6);
}

.checkout-form .form-input:focus {
    border-color: var(--color-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(43, 30, 29, 0.1);
    transform: translateY(-1px);
}

.checkout-form .form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

/* Checkout Option Sections (Shipping & Payment) */
.checkout-option-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.checkout-option-section-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem;
}

.checkout-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-option-card {
    display: block;
    position: relative;
    cursor: pointer;
    background: var(--color-surface);
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: all var(--transition-fast);
}

.checkout-option-card:hover {
    background: rgba(43, 30, 29, 0.04);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.checkout-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 2rem;
    position: relative;
}

.checkout-option-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border-subtle);
    border-radius: 50%;
    background: #FFFFFF;
    transition: all var(--transition-fast);
}

.checkout-option-content::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    transition: transform var(--transition-fast);
}

.checkout-radio:checked + .checkout-option-content::before {
    border-color: var(--color-primary);
    background: #FFFFFF;
}

.checkout-radio:checked + .checkout-option-content::after {
    transform: translateY(-50%) scale(1);
}

.checkout-option-card:has(.checkout-radio:checked),
.checkout-option-card.is-selected {
    background: rgba(43, 30, 29, 0.06);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 30, 29, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.checkout-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkout-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: 0.01em;
}

.checkout-option-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.checkout-option-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Checkout Summary Section */
.checkout-summary-section {
    position: sticky;
    top: 5rem;
    margin-top: 6.5rem;
}

.checkout-summary-card {
    background: rgba(43, 30, 29, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.checkout-summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem 0;
    letter-spacing: 0.02em;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.checkout-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.checkout-item-image-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
}

.checkout-item-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.checkout-item-image .placeholder-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

.checkout-item-details {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.checkout-item-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.25rem 0;
}

.checkout-item-artist strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.checkout-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    margin-top: 0.15rem;
}

.checkout-item-quantity {
    color: rgba(255, 255, 255, 0.7);
}

.checkout-item-price {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.checkout-summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Coupon Section */
.checkout-coupon-section {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coupon-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.coupon-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.coupon-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.coupon-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.coupon-select option {
    background: #2B1E1D;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
}

.coupon-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

/* Coupon discount row - hidden by default, no space when hidden */
#coupon-discount-row {
    display: none !important;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

#coupon-discount-row[style*="display: flex"] {
    display: flex !important;
    height: auto;
    margin: 0.25rem 0;
}

#coupon-discount-row[style*="display: flex"] {
    display: flex !important;
}

.btn-place-order {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: all var(--transition-med);
    letter-spacing: 0.02em;
    background-color: #ff4500;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 14px 26px rgba(255, 69, 0, 0.3);
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 69, 0, 0.4);
    background-color: #ff5500;
}

.checkout-back-link {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkout-back-link:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
}


.coupon-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 968px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .checkout-summary-section {
        position: static;
        margin-top: 4rem;
    }

    .checkout-summary-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .checkout-container {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .checkout-section-title,
    .checkout-summary-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .checkout-summary-section {
        margin-top: 3.25rem;
    }

    .checkout-form-section {
        gap: 1.5rem;
    }

    .checkout-customer-card {
        padding: 1.5rem;
    }

    .checkout-form-subsection {
        gap: 1rem;
    }

    .checkout-subsection-title {
        font-size: 1rem;
    }

    .checkout-section-divider {
        margin: 1.5rem 0;
    }

    .checkout-form {
        gap: 1.25rem;
    }

    .checkout-form-row {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .checkout-form .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .checkout-option-card {
        padding: 0.875rem 1rem;
    }

    .checkout-option-content {
        padding-left: 1.75rem;
    }

    .checkout-option-title {
        font-size: 0.95rem;
    }

    .checkout-option-description {
        font-size: 0.8rem;
    }

    .checkout-item {
        gap: 0.65rem;
    }

    .checkout-item-image-wrapper {
        width: 65px;
        height: 65px;
    }

    .checkout-item-name {
        font-size: 0.85rem;
    }

    .checkout-item-artist {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }

    .checkout-item-meta {
        font-size: 0.8rem;
        margin-top: 0.1rem;
    }

    .checkout-summary-card {
        padding: 1.5rem;
    }

    .btn-place-order {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .checkout-coupon-section {
        margin: 0.4rem 0;
        padding: 0.4rem 0;
    }
    
    .coupon-select {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .checkout-summary-section {
        margin-top: 3.25rem;
    }

    .checkout-form-section {
        gap: 1.25rem;
    }

    .checkout-customer-card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .checkout-form-subsection {
        gap: 0.875rem;
    }

    .checkout-subsection-title {
        font-size: 0.95rem;
    }

    .checkout-section-divider {
        margin: 1.25rem 0;
    }

    .checkout-form-row {
        gap: 0.75rem;
    }

    .checkout-form .form-input {
        padding: 0.7rem 0.75rem;
    }

    .checkout-option-card {
        padding: 0.75rem 0.875rem;
    }

    .checkout-option-content {
        padding-left: 1.5rem;
        gap: 0.375rem;
    }

    .checkout-option-content::before {
        width: 18px;
        height: 18px;
    }

    .checkout-option-content::after {
        left: 4px;
        width: 10px;
        height: 10px;
    }

    .checkout-option-title {
        font-size: 0.9rem;
    }

    .checkout-option-price {
        font-size: 0.875rem;
    }

    .checkout-option-description {
        font-size: 0.75rem;
    }

    .checkout-summary-card {
        padding: 1.25rem;
    }

    .checkout-item-image-wrapper {
        width: 60px;
        height: 60px;
    }
}

/* =========================
   Profile Page Styles
   ========================= */

.profile-container {
    max-width: 1120px;
    margin: 0 auto;
}

.profile-card-unified {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-section-wrapper {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.profile-section-wrapper:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.profile-section-wrapper:not(:first-child) {
    padding-top: 2rem;
}

.profile-section-title {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-main);
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.profile-form-row {
    margin-bottom: 0.25rem;
}

.profile-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-main);
    letter-spacing: 0.01em;
}

.profile-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text-main);
    outline: none;
    transition: 
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform 0.08s ease;
}

.profile-input::placeholder {
    color: rgba(122, 110, 109, 0.6);
}

.profile-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 30, 29, 0.1);
    transform: translateY(-1px);
}

.profile-select {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 2.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 400;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text-main);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232B1E1D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    transition: 
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform 0.08s ease,
        background-color var(--transition-fast);
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    line-height: 1.5;
}

.profile-select:hover {
    border-color: var(--color-primary);
    background-color: #fafafa;
}

.profile-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 30, 29, 0.1);
    transform: translateY(-1px);
    background-color: #ffffff;
}

.profile-select option {
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: var(--color-text-main);
    font-size: 0.9rem;
    font-family: inherit;
    border-radius: 0;
    min-height: 2.5rem;
    line-height: 1.5;
}

.profile-select option:hover {
    background: rgba(43, 30, 29, 0.08);
    color: var(--color-text-main);
}

.profile-select option:checked,
.profile-select option:focus {
    background: rgba(43, 30, 29, 0.12);
    color: var(--color-primary);
    font-weight: 500;
}

.profile-select option:disabled {
    color: var(--color-text-muted);
    background: var(--color-surface);
}

/* Override: paragraphs on light backgrounds (keep dark text for readability) */
.profile-card-unified p,
.profile-section-wrapper p,
.auth-card p,
.checkout-customer-card p,
.order-card-detailed p,
.review-modal-body p,
.review-modal-content p,
.notification-card p,
.auction-card p,
.auction-body p,
.payment-modal-body p,
.custom-request-form p,
.request-list-sidebar p,
.form-section p,
.request-list-content p {
    color: #2B1E1D;
}

.profile-card-unified .profile-form-group small,
.profile-section-wrapper small,
.review-modal-body small {
    color: #6A5651;
}

/* Profile Picture Section */
.profile-picture-group {
    margin-bottom: 0.5rem;
}

.profile-picture-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-picture-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-border-subtle);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-file-input {
    display: none;
}

.profile-file-label {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(43, 30, 29, 0.06);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform 0.08s ease;
    display: inline-block;
    min-width: 160px;
    text-align: center;
    box-sizing: border-box;
}

.profile-file-label:hover {
    background: rgba(43, 30, 29, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.profile-file-label:active {
    transform: translateY(0);
}

/* Password Fields in Profile */
.profile-form .password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-form .password-field .profile-input {
    padding-right: 4rem;
}

.profile-form .password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.profile-form .password-toggle:hover {
    color: var(--color-primary);
}

/* Form Actions */
.profile-form-actions {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-subtle);
}

.profile-btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: 
        background var(--transition-fast),
        transform 0.12s ease,
        box-shadow var(--transition-fast);
    display: inline-block;
    min-width: 160px;
    text-align: center;
    box-sizing: border-box;
}

.profile-btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(43, 30, 29, 0.28);
}

.profile-btn-primary:hover {
    background: #241816;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(43, 30, 29, 0.32);
}

.profile-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(43, 30, 29, 0.22);
}

.profile-btn-secondary {
    background: rgba(43, 30, 29, 0.06);
    color: var(--color-primary);
    border: 1px solid var(--color-border-subtle);
}

.profile-btn-secondary:hover {
    background: rgba(43, 30, 29, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.profile-btn-secondary:active {
    transform: translateY(0);
}

/* Account Information List */
.account-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    gap: 1rem;
}

.account-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.account-info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    text-align: right;
    word-break: break-word;
}

.account-status {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-status.active {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-border-subtle);
    padding-bottom: 0;
}

.profile-tab-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: 
        color var(--transition-fast),
        border-color var(--transition-fast);
    margin-bottom: -2px;
    position: relative;
}

.profile-tab-btn:hover {
    color: var(--color-primary);
}

.profile-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* Orders Section - Status Tabs */
.orders-status-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border-subtle);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.orders-status-tabs > * {
    flex: 1;
    min-width: 0;
}

.orders-status-tabs::-webkit-scrollbar {
    height: 4px;
}

.orders-status-tabs::-webkit-scrollbar-track {
    background: var(--color-surface);
}

.orders-status-tabs::-webkit-scrollbar-thumb {
    background: var(--color-border-subtle);
    border-radius: 2px;
}

.orders-status-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: 
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
    white-space: nowrap;
    margin-bottom: -1rem;
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    flex: 1;
    min-width: 0;
}

.orders-status-tab:hover {
    color: var(--color-primary);
    background: rgba(43, 30, 29, 0.04);
}

.orders-status-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: rgba(43, 30, 29, 0.06);
}

.orders-status-tab-label {
    font-weight: 500;
}

.orders-status-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: rgba(43, 30, 29, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.orders-status-tab.active .orders-status-tab-count {
    background: var(--color-primary);
    color: #ffffff;
}

/* Orders List - Detailed View */
.orders-list-detailed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card-detailed {
    background: #FFFFFF;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: 
        box-shadow var(--transition-fast),
        transform 0.12s ease;
}

.order-card-detailed:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.order-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.order-number-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
}

.order-date-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.order-header-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.order-badge {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.payment-badge {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}

.payment-badge.payment-paid {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-badge.status-pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}

.status-badge.status-processing {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.status-badge.status-shipped {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.status-badge.status-delivered {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-badge.status-cancelled {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* Order Items Section */
.order-items-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.order-item-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.order-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.order-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.order-item-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.order-item-spec {
    white-space: nowrap;
}

.order-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: auto;
}

.order-item-total-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-item-total-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.order-card-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-total-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-cancel-order {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid #e74c3c;
    background: #fff;
    color: #e74c3c;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cancel-order:hover {
    background: #e74c3c;
    color: #fff;
}

.order-cancellation-info {
    width: 100%;
    margin-top: 1rem;
}

.cancellation-status-badge {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cancellation-status-badge.cancellation-pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.cancellation-status-badge.cancellation-approved {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.cancellation-status-badge.cancellation-rejected {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.cancellation-rejection-reason {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(231, 76, 60, 0.2);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
}

.review-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: #fff;
    color: var(--color-text-main);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.review-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.order-total-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.order-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Orders Empty State */
.orders-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.orders-empty-icon {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.orders-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.orders-empty-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-card-unified {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .profile-section-wrapper {
        padding-bottom: 1.5rem;
    }

    .profile-section-wrapper:not(:first-child) {
        padding-top: 1.5rem;
    }

    .profile-section-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .profile-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .account-info-value {
        text-align: left;
    }

    .profile-tabs {
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .orders-status-tabs {
        gap: 0.625rem;
        padding-bottom: 0.75rem;
        position: relative;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
        padding-right: 1rem;
        margin-right: -1rem;
    }

    .orders-status-tabs::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.98));
        pointer-events: none;
        z-index: 1;
    }

    .orders-status-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .orders-status-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .orders-status-tabs::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .orders-status-tabs > * {
        flex: 0 0 auto;
        min-width: 120px;
    }

    .orders-status-tab {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        flex: 0 0 auto;
        min-width: 120px;
        white-space: nowrap;
        position: relative;
        z-index: 2;
    }

    .orders-status-tab-label {
        font-size: 0.8125rem;
    }

    .orders-status-tab-count {
        font-size: 0.75rem;
        min-width: 20px;
        height: 20px;
        padding: 0 0.4rem;
    }

    .order-card-detailed {
        padding: 1.25rem;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .order-header-right {
        align-items: flex-start;
        width: 100%;
    }

    .order-item-row {
        flex-wrap: wrap;
    }

    .order-item-total {
        width: 100%;
        align-items: flex-start;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .order-card-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .profile-card-unified {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .profile-section-wrapper {
        padding-bottom: 1.25rem;
    }

    .profile-section-wrapper:not(:first-child) {
        padding-top: 1.25rem;
    }

    .profile-section-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .profile-form {
        gap: 1rem;
    }

    .profile-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .profile-select {
        padding: 0.75rem 0.875rem;
        padding-right: 2.25rem;
        font-size: 0.875rem;
        background-position: right 0.75rem center;
    }

    .profile-select option {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        min-height: 2.25rem;
    }

    .profile-btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
    }

    .profile-picture-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .profile-picture-preview {
        width: 90px;
        height: 90px;
    }
}

/* =========================
   Notifications Page Styles
   ========================= */

.notifications-container {
    max-width: 900px;
    margin: 0 auto;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notifications-empty-state {
    padding: 2rem;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
}

.notification-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-fast);
    position: relative;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(43, 30, 29, 0.2);
}

.notification-card.notification-unread {
    background: #FFFFFF;
}

.notification-icon-wrapper {
    flex-shrink: 0;
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.notification-icon-success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.notification-icon-warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notification-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.notification-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--color-border-subtle);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
    flex-shrink: 0;
}

.notification-action-btn:hover {
    background: rgba(43, 30, 29, 0.06);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.05);
}

.notification-action-btn:active {
    transform: scale(0.95);
}

.notification-delete-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.notification-action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.notification-description {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.notification-timestamp {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notifications-list {
        gap: 0.875rem;
    }

    .notification-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .notification-icon {
        width: 44px;
        height: 44px;
    }

    .notification-icon svg {
        width: 18px;
        height: 18px;
    }

    .notification-title {
        font-size: 1rem;
    }

    .notification-description {
        font-size: 0.9rem;
    }

    .notification-timestamp {
        font-size: 0.8rem;
    }

    .notification-action-btn {
        width: 28px;
        height: 28px;
    }

    .notification-action-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 576px) {
    .notifications-list {
        gap: 0.75rem;
    }

    .notification-card {
        padding: 1rem;
        gap: 0.875rem;
        flex-direction: column;
    }

    .notification-icon-wrapper {
        align-self: flex-start;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
    }

    .notification-icon svg {
        width: 16px;
        height: 16px;
    }

    .notification-header {
        flex-wrap: wrap;
    }

    .notification-title {
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
    }

    .notification-actions {
        gap: 0.375rem;
    }

    .notification-action-btn {
        width: 26px;
        height: 26px;
    }

    .notification-action-btn svg {
        width: 13px;
        height: 13px;
    }

    .notification-description {
        font-size: 0.875rem;
    }

    .notification-timestamp {
        font-size: 0.75rem;
    }
}

/* Profile notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.profile-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.profile-notification-success {
    background: #10b981;
    color: white;
}

.profile-notification-error {
    background: #ef4444;
    color: white;
    }
.welcome-alert strong {
     font-weight: 600;
 }

/* Review Styles */
.order-item-review-section {
    padding: 1rem 0;
    border-top: 1px solid var(--color-border-subtle);
    margin-top: 0.5rem;
    width: 100%;
    text-align: left;
    display: block;
}

.order-item-review-section .order-item-review-card {
    width: 100%;
    margin-top: 0;
}

.order-item-review-section .btn-review-item {
    margin-left: auto;
}

.review-status-text {
    font-size: 0.875rem;
    color: var(--color-success);
    font-weight: 500;
}

.btn-review-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* Order Item Review Card - Displaying Customer's Previous Reviews */
.order-item-review-card {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: block;
    box-sizing: border-box;
}

.order-item-review-card > * {
    text-align: left !important;
}

.order-item-review-card .order-item-review-text {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.order-item-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-item-review-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.review-status-badge {
    font-size: 0.875rem;
    color: #241816;
    font-weight: 600;
}

.order-item-review-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.order-item-review-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.order-item-review-rating .star {
    font-size: 1rem;
    color: #ffc107;
}

.order-item-review-rating .star.empty {
    color: var(--color-border-subtle);
}

.order-item-review-text {
    font-size: 0.875rem;
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0 0 0.75rem 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.order-item-review-text,
.order-item-review-text *,
.order-item-review-card .order-item-review-text,
.order-item-review-section .order-item-review-card .order-item-review-text {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
}

.order-item-review-text {
    unicode-bidi: bidi-override;
    direction: ltr;
}

.order-item-review-text br {
    display: block;
    margin: 0;
    content: "";
}

.order-item-review-image {
    margin-top: 0.75rem;
}

.order-item-review-image img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--color-border-subtle);
}

/* Responsive for review card */
@media (max-width: 768px) {
    .order-item-review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-item-review-card {
        padding: 0.75rem;
    }
}

/* Review Modal */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.review-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem 1.25rem;
    border-bottom: 2px solid rgba(43, 30, 29, 0.08);
    background: linear-gradient(135deg, rgba(43, 30, 29, 0.02) 0%, rgba(43, 30, 29, 0.05) 100%);
    flex-shrink: 0;
}

.review-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2B1E1D;
    margin: 0;
    letter-spacing: -0.02em;
}

.review-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2B1E1D;
    margin: 0;
    letter-spacing: -0.02em;
}

.review-modal-close {
    background: rgba(43, 30, 29, 0.08);
    border: none;
    font-size: 1.5rem;
    color: #6A5651;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.25s ease;
    line-height: 1;
    font-weight: 300;
}

.review-modal-close:hover {
    background: rgba(43, 30, 29, 0.15);
    color: #2B1E1D;
}

.review-modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(95vh - 120px);
}

.review-modal-body .form-group {
    margin-bottom: 0.875rem;
    flex-shrink: 0;
}

.review-modal-body .form-group:last-of-type {
    margin-bottom: 1rem;
}

.review-modal-body .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2B1E1D;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

.review-modal-body .form-group label span {
    font-weight: 400;
    font-size: 0.8rem;
}

.review-modal-body .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(43, 30, 29, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #2B1E1D;
    background: #ffffff;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.review-modal-body .form-control:focus {
    outline: none;
    border-color: #2B1E1D;
    box-shadow: 0 0 0 3px rgba(43, 30, 29, 0.1);
    background: #fafafa;
}

.review-modal-body .form-control::placeholder {
    color: #9A8A85;
    opacity: 0.7;
}

.review-modal-body textarea.form-control {
    resize: none;
    min-height: 50px;
    max-height: 60px;
    line-height: 1.4;
    overflow-y: auto;
}

.review-modal-body textarea.form-control#seller_reason {
    min-height: 60px;
    max-height: 70px;
}

.review-modal-body .form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6A5651;
    line-height: 1.4;
}

.review-product-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.review-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0;
}

.review-rating-section {
    margin-bottom: 1.5rem;
}

.review-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.review-label .required {
    color: var(--color-error);
}

.review-star-rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-star-rating .star {
    font-size: 2rem;
    color: var(--color-border-subtle);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}

.review-star-rating .star:hover,
.review-star-rating .star.hover {
    color: #ffc107;
    transform: scale(1.1);
}

.review-star-rating .star.active {
    color: #ffc107;
}

.review-rating-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    min-height: 1.25rem;
}

.review-text-section {
    margin-bottom: 1.5rem;
}

.review-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.review-image-section {
    margin-bottom: 1.5rem;
}

.review-file-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
}

.review-file-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.review-image-preview {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
}

.review-image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.review-image-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.review-image-remove:hover {
    background: rgba(0, 0, 0, 0.9);
}

.review-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.review-error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Product Reviews Display */
.product-reviews {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-subtle);
}

.product-reviews-panel {
    max-width: 1200px;
    margin: 0 auto;
}

.product-reviews-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.product-reviews-count {
    font-size: 1rem;
    font-weight: 400;
    color: white;
}

.product-reviews-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
}

.product-reviews-average {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-reviews-average-rating {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.product-reviews-average-stars {
    display: flex;
    gap: 0.25rem;
}

.product-reviews-average-stars .star {
    font-size: 1.25rem;
    color: #ffc107;
}

.product-reviews-average-stars .star.empty {
    color: var(--color-border-subtle);
}

.product-reviews-average-stars .star.half {
    background: linear-gradient(90deg, #ffc107 50%, var(--color-border-subtle) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-reviews-empty {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.review-card-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-border-subtle);
}

.review-card-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-card-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.review-card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.review-card-rating {
    display: flex;
    gap: 0.25rem;
}

.review-card-rating .star {
    font-size: 1rem;
    color: #ffc107;
}

.review-card-rating .star.empty {
    color: var(--color-border-subtle);
}

.review-card-text {
    font-size: 0.875rem;
    color: var(--color-text-main);
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.review-card-image {
    margin-top: 1rem;
}

.review-card-image img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* Enhanced Form Actions in Modal */
.review-modal-body .form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(43, 30, 29, 0.08);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: #ffffff;
    z-index: 10;
}

.review-modal-body .form-actions .profile-btn {
    min-width: 100px;
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.review-modal-body .form-actions .profile-btn-secondary {
    background: rgba(43, 30, 29, 0.08);
    color: #2B1E1D;
}

.review-modal-body .form-actions .profile-btn-secondary:hover {
    background: rgba(43, 30, 29, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 30, 29, 0.15);
}

.review-modal-body .form-actions .profile-btn-primary {
    background: #2B1E1D;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(43, 30, 29, 0.3);
}

.review-modal-body .form-actions .profile-btn-primary:hover {
    background: #1a1413;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 30, 29, 0.4);
}

.review-modal-body .form-actions .profile-btn-primary:active {
    transform: translateY(0);
}

.review-modal-body .form-actions .profile-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Error Message Styling in Modal */
.review-modal-body #sellerErrorMessage {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border: 2px solid #fcc;
    border-radius: 8px;
    color: #c33;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    animation: shake 0.4s ease;
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Review Modal */
@media (max-width: 768px) {
    .review-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 98vh;
    }

    .review-modal-header {
        padding: 0.875rem 1rem 0.625rem 1rem;
    }

    .review-modal-header h2 {
        font-size: 1.1rem;
    }

    .review-modal-title {
        font-size: 1.1rem;
    }

    .review-modal-body {
        padding: 0.875rem 1rem;
        max-height: calc(98vh - 100px);
    }

    .review-modal-body .form-group {
        margin-bottom: 0.75rem;
    }

    .review-modal-body .form-control {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }

    .review-modal-body textarea.form-control {
        min-height: 45px;
        max-height: 55px;
    }

    .review-modal-body textarea.form-control#seller_reason {
        min-height: 55px;
        max-height: 65px;
    }

    .review-modal-body .form-actions {
        flex-direction: column-reverse;
        gap: 0.625rem;
        margin-top: 0.875rem;
        padding-top: 0.875rem;
    }

    .review-modal-body .form-actions .profile-btn {
        width: 100%;
        min-width: auto;
        padding: 0.75rem 1.25rem;
    }

    .review-star-rating .star {
        font-size: 1.5rem;
    }

    .review-modal-actions {
        flex-direction: column-reverse;
    }

    .review-modal-actions .btn {
        width: 100%;
    }
}

/* =========================
   Chat Interface Styles
   ========================= */

.chat-container {
    display: flex;
    height: calc(100vh - 12rem);
    min-height: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    position: relative;
    z-index: 10;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 320px;
    background: rgba(43, 30, 29, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-sidebar-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.chat-search-box {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.chat-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.chat-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-search-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.chat-search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.chat-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.chat-conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-conversation-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-conversation-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid rgba(255, 255, 255, 0.8);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.chat-conversation-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-conversation-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conversation-preview {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.chat-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.chat-badge {
    background: #dc3545;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    display: none;
}

/* Chat Main Area */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(43, 30, 29, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.chat-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(43, 30, 29, 0.4);
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-header-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.chat-header-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-action-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(43, 30, 29, 0.2);
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    max-width: 70%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message-sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-received {
    align-self: flex-start;
}

.chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-message-text {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message-received .chat-message-text {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message-sent .chat-message-text {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
}

.chat-message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0.5rem;
}

.chat-message-sent .chat-message-time {
    text-align: right;
}

/* Chat Input Area */
.chat-input-area {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(43, 30, 29, 0.4);
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
}

.chat-attach-btn,
.chat-send-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-attach-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-send-btn {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.chat-send-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
    color: rgba(255, 255, 255, 0.95);
    resize: none;
    outline: none;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.5;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design for Chat */
@media (max-width: 1024px) {
    .chat-sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 8rem);
        border-radius: 0;
    }

    .chat-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        width: 280px;
    }

    .chat-sidebar.is-open {
        transform: translateX(0);
    }

    .chat-main {
        width: 100%;
    }

    .chat-message {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: calc(100vh - 6rem);
    }

    .chat-header {
        padding: 1rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .chat-input-area {
        padding: 1rem;
    }

    .chat-message {
        max-width: 90%;
    }
}

