/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Sky Blue & White Theme)
   ========================================================================= */
:root {
    /* Color Palette */
    --color-sky-lightest: #f0f9ff;
    --color-sky-light: #e0f2fe;
    --color-sky-brand: #0284c7;
    --color-sky-brand-hover: #0369a1;
    --color-sky-dark: #0f172a;
    --color-sky-slate: #64748b;
    --color-white: #ffffff;
    --color-bg-gray: #f8fafc;
    --color-border: #e2e8f0;
    --color-danger: #ef4444;
    --color-danger-bg: #fee2e2;
    --color-success: #22c55e;
    --color-success-bg: #dcfce7;
    --color-warning: #eab308;
    --color-warning-bg: #fef9c3;

    /* Fonts */
    --font-heading: 'Outfit', 'Sarabun', sans-serif;
    --font-body: 'Sarabun', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(2, 132, 199, 0.08), 0 4px 6px -2px rgba(2, 132, 199, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* Official Seller Badge Tag */
.official-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 12px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 4px;
    box-shadow: 0 1px 2px rgba(2, 132, 199, 0.1);
}

.official-seller-badge i {
    color: #0284c7;
    font-size: 11px;
}

.dark-theme .official-seller-badge {
    background: #0369a1;
    color: #e0f2fe;
    border-color: #0284c7;
}

.dark-theme .official-seller-badge i {
    color: #38bdf8;
}

/* ==========================================================================
   THEME STYLES & TRANSITIONS
   ========================================================================== */
.dark-theme {
    color-scheme: dark;
    --color-bg-gray: #0b1329;
    --color-white: #131d35;
    --color-card-bg: #131d35;
    --color-sky-dark: #f8fafc;
    --color-border: #283756;
    --color-sky-lightest: #1b2847;
    --color-sky-light: #2c3e66;
    --color-sky-slate: #94a3b8;
}

.dark-theme .role-switcher {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: #334155;
    color: #f8fafc;
}

.dark-theme .role-switcher strong {
    color: var(--color-sky-brand);
}

body,
.product-card,
.modal-card,
.cart-item,
.catalog-filters,
.auth-card,
.market-category-nav,
.app-header,
.role-switcher,
.pdpa-banner,
.form-control,
.btn,
.nav-link,
.market-category-item,
.market-category-icon,
.detail-img-box,
.settings-dropdown,
.settings-header,
.settings-item-title,
.settings-item-desc {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-gray);
    color: var(--color-sky-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-sky-dark);
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-sky-brand);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-sky-brand-hover);
}

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

/* ==========================================================================
   PDPA BANNER STYLE
   ========================================================================== */
.pdpa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 2px solid var(--color-sky-light);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    animation: slideUpPdpa 0.4s ease-out;
}

@keyframes slideUpPdpa {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.pdpa-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.pdpa-container p {
    font-size: 0.85rem;
    color: var(--color-sky-dark);
    margin-bottom: 0;
}

.pdpa-container p a {
    text-decoration: underline;
    font-weight: 500;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-sky {
    background-color: var(--color-sky-brand);
    color: var(--color-white);
}

.btn-sky:hover {
    background-color: var(--color-sky-brand-hover);
}

.btn-sky-outline {
    background-color: transparent;
    border-color: var(--color-sky-brand);
    color: var(--color-sky-brand);
}

.btn-sky-outline:hover {
    background-color: var(--color-sky-lightest);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-sky-brand);
}

.btn-white:hover {
    background-color: var(--color-sky-lightest);
}

.btn-danger-outline {
    background-color: transparent;
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.btn-danger-outline:hover {
    background-color: var(--color-danger-bg);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-center {
    text-align: center;
}

.width-auto {
    width: auto !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.25rem;
}

.badge-sky {
    background-color: var(--color-sky-brand);
    color: #ffffff;
}

.badge-success {
    background-color: var(--color-success);
    color: #ffffff;
}

.badge-warning {
    background-color: var(--color-warning);
    color: #ffffff;
}

.badge-danger {
    background-color: var(--color-danger);
    color: #ffffff;
}

.badge-dark {
    background-color: #334155;
    color: #f8fafc;
}

/* ==========================================================================
   FLOATING ROLE SWITCHER
   ========================================================================== */
.role-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-sky-light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.role-indicator {
    font-size: 0.85rem;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.app-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.admin-header {
    border-bottom: 3px solid var(--color-sky-brand);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sky-dark);
}

.logo span span {
    color: var(--color-sky-brand);
}

.logo-icon {
    color: var(--color-sky-brand);
}

/* Navbar Search Bar Style */
.header-search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 450px;
    margin: 0 1.5rem;
    border: 1px solid var(--color-sky-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.header-search-bar input {
    flex-grow: 1;
    border: none;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.header-search-bar button {
    border: none;
    background-color: var(--color-sky-brand);
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-search-bar button:hover {
    background-color: var(--color-sky-brand-hover);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--color-sky-slate);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-sky-brand);
    background-color: var(--color-sky-lightest);
}

.seller-header .nav-link {
    color: #FFFFFF !important;
}

.seller-header .nav-link i {
    color: #FFFFFF !important;
}

.seller-header .nav-link:hover {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    opacity: 0.9;
}

.seller-header .nav-link.active {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    font-weight: 600;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-trigger {
    position: relative;
    font-size: 1.3rem;
    color: var(--color-sky-dark);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-sky-brand);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-status-btn {
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-profile-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-sky-brand);
    background-color: var(--color-sky-lightest);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    background-color: var(--color-white);
    color: var(--color-sky-dark);
}

.form-control::placeholder {
    color: var(--color-sky-slate);
    opacity: 0.8;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-sky-brand);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
    resize: vertical;
}

/* ==========================================================================
   APP CONTENT CONTAINER
   ========================================================================== */
.app-content {
    padding-top: 2rem;
    padding-bottom: 5rem;
    min-height: calc(100vh - 140px);
}

.page-section {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   AUTH PAGE
   ========================================================================== */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-back-to-shop {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.auth-back-to-shop a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

body.dark-mode .auth-back-to-shop a {
    border-color: var(--color-border);
    color: var(--color-sky-light);
}

body.dark-mode .auth-back-to-shop a:hover {
    background-color: rgba(14, 165, 233, 0.15);
    color: #ffffff;
}

.auth-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-gray);
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-sky-slate);
    transition: var(--transition-smooth);
}

.auth-tab-btn.active {
    background-color: var(--color-white);
    color: var(--color-sky-brand);
    border-bottom: 2px solid var(--color-sky-brand);
}

.auth-form {
    padding: 2rem;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--color-sky-slate);
    margin-bottom: 1.5rem;
}

.auth-tip {
    margin-top: 1.25rem;
    background-color: var(--color-sky-lightest);
    border: 1px solid var(--color-sky-light);
    color: var(--color-sky-brand);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
/* ==========================================================================
   HERO BANNER SLIDER SYSTEM (2026 PREMIUM UPGRADE)
   ========================================================================== */
.hero-banner-slider-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.hero-banner-slider {
    position: relative;
    height: 340px;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 3rem;
    gap: 2rem;
}

.hero-slide-left {
    max-width: 60%;
    animation: slideInLeft 0.5s ease-out forwards;
}

.hero-slide-left h1 {
    font-size: 2.3rem;
    color: var(--color-sky-dark);
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1.25;
}

.hero-slide-left p {
    font-size: 1rem;
    color: var(--color-sky-slate);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Right-side Member Card Widget */
.hero-slide-right {
    width: 320px;
    flex-shrink: 0;
    animation: fadeInRight 0.6s ease-out forwards;
}

.hero-interactive-widget {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatWidget 6s ease-in-out infinite alternate;
}

.hero-interactive-widget:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.12);
}

/* Glassmorphism details inside widgets */
.widget-guest-card,
.widget-member-card {
    display: flex;
    flex-direction: column;
}

.widget-guest-card p {
    font-size: 12.5px;
    color: #475569;
    margin-top: 5px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.widget-user-icon,
.widget-member-icon {
    font-size: 20px;
    vertical-align: middle;
}

.widget-points-box {
    text-align: center;
}

/* Slider Controls: Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.1);
    color: var(--color-sky-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.slider-arrow:hover {
    background: var(--color-sky-brand);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 15px;
}

.next-arrow {
    right: 15px;
}

/* Slider Controls: Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dots .dot.active {
    background: var(--color-sky-brand);
    width: 24px;
    border-radius: 4px;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatWidget {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   DARK THEME SLIDER INTEGRATION (Deep Tint Gradients)
   ========================================================================== */
.dark-theme .hero-banner-slider-container {
    border-color: var(--color-border);
}

.dark-theme .hero-slide {
    background: linear-gradient(135deg, #0b1329, #131d35, #0b1329);
}

.dark-theme .hero-slide[data-slide-index="0"] {
    background: linear-gradient(135deg, #075985 0%, #0369a1 40%, #0b1329 100%) !important;
}

.dark-theme .hero-slide[data-slide-index="1"] {
    background: linear-gradient(135deg, #881337 0%, #9f1239 40%, #0b1329 100%) !important;
}

.dark-theme .hero-slide[data-slide-index="2"] {
    background: linear-gradient(135deg, #065f46 0%, #047857 40%, #0b1329 100%) !important;
}

.dark-theme .hero-slide[data-slide-index="3"] {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 40%, #0b1329 100%) !important;
}

.dark-theme .hero-slide[data-slide-index="4"] {
    background: linear-gradient(135deg, #581c87 0%, #6b21a8 40%, #0b1329 100%) !important;
}

.dark-theme .hero-slide-left h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dark-theme .hero-slide-left p {
    color: #f1f5f9 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-theme .hero-interactive-widget {
    background: rgba(19, 29, 53, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.dark-theme .widget-guest-card p {
    color: #cbd5e1;
}

.dark-theme .slider-arrow {
    background: rgba(19, 29, 53, 0.85);
    color: #f8fafc;
}

.dark-theme .slider-arrow:hover {
    background: var(--color-sky-brand);
    color: #ffffff;
}

/* ==========================================================================
   Lazada/Shopee Multi-Category Icon Navigation Bar
   ========================================================================== */
.market-category-nav {
    display: flex;
    justify-content: space-between;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
    gap: 1rem;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.market-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-width: 90px;
    text-align: center;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    user-select: none;
}

.market-category-item:hover,
.market-category-item.active {
    transform: translateY(-3px);
    background-color: var(--color-sky-lightest);
}

.market-category-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-sky-lightest);
    color: var(--color-sky-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.market-category-item:hover .market-category-icon,
.market-category-item.active .market-category-icon {
    background-color: var(--color-sky-brand);
    color: var(--color-white);
}

.market-category-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-sky-dark);
}

/* ==========================================================================
   CATALOG LAYOUT
   ========================================================================== */
.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.catalog-filters {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.dark-theme .catalog-filters {
    background-color: var(--color-card-bg, #1e293b);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.85rem;
}

.filter-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-sky-dark);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-header h3 i {
    color: var(--color-sky-brand);
}

.btn-clear-filters {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-sky-slate);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    color: var(--color-danger, #ef4444);
    background-color: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Accordion Collapsible Header & Group */
.filter-group {
    margin-bottom: 1.2rem;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
    padding-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.dark-theme .filter-group {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 2px 0;
}

.filter-group-header label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    margin-bottom: 0 !important;
    font-size: 0.88rem;
    color: var(--color-sky-dark);
    cursor: pointer;
}

.filter-group-header label i {
    color: var(--color-sky-brand);
    font-size: 0.85rem;
}

.filter-toggle-icon {
    font-size: 0.75rem;
    color: var(--color-sky-slate);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-group-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.25s ease, margin-top 0.25s ease;
}

.filter-group.active .filter-toggle-icon,
.filter-group.open .filter-toggle-icon {
    transform: rotate(90deg);
}

.filter-group.active .filter-group-content,
.filter-group.open .filter-group-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.6rem;
}

/* Price Range Inputs & Quick Price Presets */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range-inputs input {
    width: 100%;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.price-range-inputs input:focus {
    border-color: var(--color-sky-brand);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.price-separator {
    color: var(--color-sky-slate);
    font-weight: 600;
}

.quick-price-chips {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.quick-price-chip {
    flex: 1;
    padding: 4px 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-sky-slate);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-price-chip:hover {
    border-color: var(--color-sky-brand);
    color: var(--color-sky-brand);
}

.quick-price-chip.active {
    background: var(--color-sky-brand);
    color: #ffffff;
    border-color: var(--color-sky-brand);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.dark-theme .quick-price-chip {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.dark-theme .quick-price-chip:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.dark-theme .quick-price-chip.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Promotions & Perks Chips */
.promotion-filter-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promo-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    color: var(--color-sky-dark);
    margin-bottom: 0 !important;
}

.promo-chip input[type="checkbox"] {
    accent-color: var(--color-sky-brand);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.promo-chip:hover {
    border-color: var(--color-sky-brand);
    background-color: rgba(2, 132, 199, 0.04);
}

.promo-chip.active {
    border-color: var(--color-sky-brand);
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--color-sky-brand);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

.dark-theme .promo-chip {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
}

.dark-theme .promo-chip:hover {
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.08);
}

.dark-theme .promo-chip.active {
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
}

/* Rating Search Mode Toggle (Segmented Control) */
.rating-mode-toggle {
    display: flex;
    gap: 4px;
    background-color: var(--color-sky-lightest, #f1f5f9);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.6rem;
}

.dark-theme .rating-mode-toggle {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.rating-mode-btn {
    flex: 1;
    text-align: center;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    color: var(--color-sky-slate);
    margin-bottom: 0 !important;
}

.rating-mode-btn input[type="radio"] {
    display: none;
}

.rating-mode-btn:hover {
    color: var(--color-sky-dark);
}

.rating-mode-btn.active {
    background-color: var(--color-white);
    color: var(--color-sky-brand);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dark-theme .rating-mode-btn {
    color: #94a3b8;
}

.dark-theme .rating-mode-btn.active {
    background-color: #0f172a;
    color: #38bdf8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Compact Horizontal Rating Chips Row */
.rating-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rating-chips-row .rating-chip {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    color: var(--color-sky-dark);
    margin-bottom: 0 !important;
    flex: 0 0 auto;
}

.rating-chips-row .rating-chip input[type="radio"] {
    display: none;
}

.rating-chips-row .rating-chip:hover {
    border-color: var(--color-sky-brand);
    background-color: rgba(2, 132, 199, 0.04);
}

.rating-chips-row .rating-chip.active {
    border-color: var(--color-sky-brand);
    background-color: rgba(2, 132, 199, 0.12);
    color: var(--color-sky-brand);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

.dark-theme .rating-chips-row .rating-chip {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
}

.dark-theme .rating-chips-row .rating-chip:hover {
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.08);
}

.dark-theme .rating-chips-row .rating-chip.active {
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
}

/* Stock Status Segmented Buttons */
.status-filter-buttons {
    display: flex;
    gap: 6px;
    background-color: var(--color-sky-lightest, #f1f5f9);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.dark-theme .status-filter-buttons {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.status-btn {
    flex: 1;
    text-align: center;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    color: var(--color-sky-slate);
    margin-bottom: 0 !important;
}

.status-btn input[type="radio"] {
    display: none;
}

.status-btn:hover {
    color: var(--color-sky-dark);
}

.status-btn.active {
    background-color: var(--color-white);
    color: var(--color-sky-brand);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dark-theme .status-btn {
    color: #94a3b8;
}

.dark-theme .status-btn.active {
    background-color: #0f172a;
    color: #38bdf8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Active Filter Tags Bar (Above Product Grid) */
.active-filter-tags-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 12px;
    margin-top: 0.85rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.dark-theme .active-filter-tags-wrapper {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
}

.active-filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-sky-brand);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-sky-brand);
    color: var(--color-sky-brand);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.1);
}

.dark-theme .active-tag {
    background: #0f172a;
    border-color: #38bdf8;
    color: #38bdf8;
}

.active-tag i.remove-tag-btn {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.75;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.active-tag i.remove-tag-btn:hover {
    opacity: 1;
    color: var(--color-danger, #ef4444);
    transform: scale(1.2);
}

.btn-clear-all-tags {
    background: transparent;
    border: none;
    color: var(--color-sky-slate);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    margin-left: auto;
    transition: color 0.15s ease;
}

.btn-clear-all-tags:hover {
    color: var(--color-danger, #ef4444);
}

.color-checkboxes,
.size-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    transition: var(--transition-smooth);
    user-select: none;
}

.filter-chip:hover {
    border-color: var(--color-sky-brand);
}

.filter-chip.active {
    background-color: var(--color-sky-brand);
    color: var(--color-white);
    border-color: var(--color-sky-brand);
}

/* Catalog Main list */
.catalog-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.catalog-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.dark-theme .product-card {
    background-color: var(--color-card-bg, #1e293b);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -4px rgba(2, 132, 199, 0.14);
    border-color: rgba(2, 132, 199, 0.35);
}

.dark-theme .product-card:hover {
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.5);
    border-color: rgba(56, 189, 248, 0.4);
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-image-wrapper {
    background-color: var(--color-sky-lightest);
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dark-theme .product-image-wrapper {
    background-color: rgba(15, 23, 42, 0.8);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Wishlist Heart Overlay style */
.product-wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 15;
    background-color: rgba(255, 255, 255, 0.92);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #94a3b8;
}

.dark-theme .product-wishlist-btn {
    background-color: rgba(15, 23, 42, 0.85);
    color: #64748b;
}

.product-wishlist-btn:hover {
    transform: scale(1.15);
    color: var(--color-danger, #ef4444);
    background-color: #ffffff;
}

.product-wishlist-btn.active {
    color: var(--color-danger, #ef4444);
}

.product-details {
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.72rem;
    color: var(--color-sky-brand);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.product-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-sky-dark);
    margin-bottom: 0.6rem;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dark-theme .product-title {
    color: #f1f5f9;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--color-sky-slate);
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}

.dark-theme .product-meta-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.product-seller-name {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.product-rating-inline {
    font-weight: 600;
    color: #f59e0b;
    font-size: 0.8rem;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.4rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-sky-brand);
    letter-spacing: -0.02em;
}

.dark-theme .product-price {
    color: #38bdf8;
}

.btn-card-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--color-sky-brand);
    background-color: rgba(2, 132, 199, 0.06);
    color: var(--color-sky-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-action:hover {
    background-color: var(--color-sky-brand);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.dark-theme .btn-card-action {
    background-color: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #38bdf8;
}

.dark-theme .btn-card-action:hover {
    background-color: #38bdf8;
    color: #0f172a;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1.5rem;
    cursor: pointer;
    animation: fadeInOverlay 0.2s ease-out;
}

.modal-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    cursor: default;
    animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Store Profile Modal Specific Styling */
.store-profile-card {
    max-width: 580px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px;
}

.dark-theme .store-profile-card {
    background-color: var(--color-card-bg, #1e293b);
}

.store-cover-banner-modal {
    height: 140px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    position: relative;
}

.store-vacation-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.store-profile-header-modal {
    padding: 0.85rem 1.75rem 1.25rem 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.store-avatar-modal {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    background: var(--color-sky-lightest);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
    font-size: 2.2rem;
    color: var(--color-sky-brand);
    margin-top: -52px;
}

.dark-theme .store-avatar-modal {
    border-color: #131d35;
    background: #0b1329;
}

.store-avatar-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-info-modal {
    flex-grow: 1;
    margin-top: 0;
    padding-top: 0.1rem;
}

.store-title-modal {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-sky-dark);
    text-shadow: none;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dark-theme .store-title-modal {
    color: #f8fafc !important;
    text-shadow: none;
}

.store-company-modal {
    font-size: 0.82rem;
    color: var(--color-sky-slate);
    text-shadow: none;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dark-theme .store-company-modal {
    color: #cbd5e1 !important;
    text-shadow: none;
}

.store-slogan-modal {
    font-size: 0.85rem;
    color: var(--color-sky-slate);
    text-shadow: none;
    font-style: italic;
    line-height: 1.4;
}

.dark-theme .store-slogan-modal {
    color: #cbd5e1 !important;
    text-shadow: none;
}

.store-badges-grid-modal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1.75rem;
    margin-bottom: 1.25rem;
}

.store-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 12px;
    font-size: 0.8rem;
}

.dark-theme .store-badge-item {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

.store-badge-item i {
    font-size: 1.1rem;
}

.badge-title {
    display: block;
    font-size: 0.7rem;
    color: var(--color-sky-slate);
}

.dark-theme .badge-title {
    color: #94a3b8;
}

.badge-val {
    display: block;
    font-weight: 600;
    color: var(--color-sky-dark);
}

.dark-theme .badge-val {
    color: #f8fafc;
}

.store-stats-row-modal {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.75rem;
    margin-bottom: 1.5rem;
}

.store-stat-box {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--color-sky-lightest, #f8fafc);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.dark-theme .store-stat-box {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-sky-brand);
}

.dark-theme .stat-num {
    color: #38bdf8;
}

.stat-lbl {
    display: block;
    font-size: 0.72rem;
    color: var(--color-sky-slate);
    margin-top: 2px;
}

.dark-theme .stat-lbl {
    color: #cbd5e1;
}

.store-actions-modal {
    padding: 0 1.75rem 1.75rem 1.75rem;
}

.modal-lg {
    max-width: 900px;
}

.modal-md {
    max-width: 600px;
}

.modal-sm {
    max-width: 400px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-sky-slate);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-sky-dark);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

.detail-img-box {
    background-color: var(--color-sky-lightest);
    border-radius: var(--border-radius);
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-box {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-sky-brand);
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--color-sky-slate);
}

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

.option-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.option-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-chart-link {
    font-size: 0.8rem;
    margin-left: auto;
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.size-chart-table th,
.size-chart-table td {
    border: 1px solid var(--color-border);
    padding: 0.4rem;
    text-align: center;
}

.size-chart-table th {
    background-color: var(--color-sky-lightest);
}

/* ==========================================================================
   CART PAGE LAYOUT
   ========================================================================== */
.cart-layout {
    display: block;
    max-width: 850px;
    margin: 0 auto;
}
.cart-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}
@media (max-width: 768px) {
    .cart-actions-bar {
        flex-direction: column-reverse;
    }
    .cart-actions-bar .btn {
        width: 100%;
    }
}

.cart-items-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background-color: var(--color-sky-lightest);
    border-radius: 4px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 1rem;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--color-sky-slate);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    border: none;
    background: none;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    font-weight: bold;
}

.quantity-btn:hover {
    background-color: var(--color-sky-lightest);
}

.quantity-val {
    padding: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-sky-brand);
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-sky-slate);
    cursor: pointer;
    font-size: 1.1rem;
}

.cart-item-remove:hover {
    color: var(--color-danger);
}

/* Cart Summary Card */
.summary-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.total-row {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-sky-brand);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.coupon-box {
    margin: 1.25rem 0;
    background-color: var(--color-bg-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px dashed var(--color-border);
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.coupon-input-group input {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-transform: uppercase;
}

.coupon-status {
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

/* ==========================================================================
   CHECKOUT PAGE LAYOUT
   ========================================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2rem;
}

.checkout-form-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.row {
    display: flex;
    gap: 1rem;
}

.col-md-6,
.col-md-4 {
    flex: 1;
}

.payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.payment-method-label:hover {
    background-color: var(--color-sky-lightest);
    border-color: var(--color-sky-brand);
}

.payment-method-label input[type="radio"] {
    margin-top: 0.25rem;
}

.payment-method-info strong {
    display: block;
    font-size: 0.95rem;
}

.payment-method-info p {
    font-size: 0.8rem;
    color: var(--color-sky-slate);
}

.payment-qr-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.qr-box {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    background-color: var(--color-bg-gray);
    flex: 1;
}

.promptpay-badge {
    margin-bottom: 0.75rem;
}

.promptpay-badge .pp-p {
    color: #0c4a6e;
    font-weight: 800;
    font-size: 1.2rem;
    font-style: italic;
}

.promptpay-badge .pp-pay {
    color: #0284c7;
    font-weight: 800;
    font-size: 1.2rem;
    font-style: italic;
}

.qr-mock-img {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    width: 160px;
    height: 160px;
    margin: 0 auto 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-mock-img i {
    font-size: 5rem;
    color: var(--color-sky-dark);
}

.qr-target-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-sky-brand);
    margin-top: 0.25rem;
}

.qr-tip {
    font-size: 0.8rem;
    color: var(--color-sky-slate);
}

.slip-upload-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slip-upload-label {
    border: 2px dashed var(--color-sky-light);
    background-color: var(--color-sky-lightest);
    color: var(--color-sky-brand);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.slip-upload-label:hover {
    background-color: var(--color-sky-light);
    border-color: var(--color-sky-brand);
}

.slip-upload-label i {
    font-size: 2.5rem;
}

.slip-preview-container {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    background-color: var(--color-white);
}

.slip-preview-container img {
    max-width: 100%;
    max-height: 150px;
    margin: 0.5rem 0;
    object-fit: contain;
    border: 1px solid var(--color-border);
}

.checkout-summary-panel .checkout-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
}

.checkout-mini-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* ==========================================================================
   ORDER SUCCESS SCREEN
   ========================================================================== */
.success-screen-wrapper {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 550px;
    margin: 2rem auto;
}

.success-icon {
    font-size: 4.5rem;
    color: var(--color-success);
    margin-bottom: 1.5rem;
}

.success-subtitle {
    font-size: 0.95rem;
    color: var(--color-sky-slate);
}

.success-details-card {
    background-color: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.success-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.success-details-row:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   ORDER HISTORY & TRACKING
   ========================================================================== */
.order-status-tabs-container {
    display: flex;
    justify-content: space-between;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.order-status-tab {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-sky-slate);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.order-status-tab:hover {
    color: var(--color-sky-brand);
    background-color: var(--color-sky-lightest);
}

.order-status-tab.active {
    color: #f97316;
    /* Shopee Orange */
    border-bottom-color: #f97316;
    font-weight: bold;
}

.tab-badge {
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

.history-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-card {
    background-color: var(--color-white);
    border: 1px solid #e8edf2;
    border-radius: 8px;
    overflow: hidden;
}

.history-card-header {
    background-color: #fafbfc;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.history-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.history-order-id {
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
}

.history-order-date {
    font-size: 0.78rem;
    color: var(--color-sky-slate);
}

.history-card-body {
    padding: 12px 16px;
}

/* Compact item row */
.oh-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.oh-item-row:last-child {
    border-bottom: none;
}

.oh-item-img {
    width: 68px;
    height: 68px;
    border-radius: 6px;
    border: 1px solid #e8edf2;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f8fafc;
}

.oh-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oh-item-img .oh-return-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 165, 233, 0.85);
    color: #fff;
    font-size: 9px;
    text-align: center;
    padding: 1px 0;
    line-height: 1.3;
}

.oh-item-info {
    flex: 1;
    min-width: 0;
}

.oh-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oh-item-variant {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.oh-item-price {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-sky-brand);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.oh-item-qty {
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

/* Footer actions row */
.oh-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    gap: 8px;
}

.oh-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #64748b;
}

.oh-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Collapsible detail panel */
.oh-detail-panel {
    display: none;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #475569;
}

.oh-detail-panel.open {
    display: block;
}

/* Keep tracking bar styles for admin/seller but hide in compact history */
.history-tracking-bar {
    margin-bottom: 2rem;
    background-color: var(--color-bg-gray);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.tracking-status-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}

.tracking-status-flow::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 5%;
    right: 5%;
    height: 3px;
    background-color: var(--color-border);
    z-index: 1;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 25%;
}

.tracking-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--color-sky-slate);
    transition: var(--transition-smooth);
}

.tracking-step-label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
}

.tracking-step.active .tracking-step-dot {
    border-color: var(--color-sky-brand);
    background-color: var(--color-sky-brand);
    color: var(--color-white);
}

.tracking-step.active .tracking-step-label {
    color: var(--color-sky-brand);
    font-weight: 600;
}

.tracking-number-box {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-sky-brand);
    background-color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--color-sky-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy-tracking {
    background: none;
    border: none;
    color: var(--color-sky-slate);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-copy-tracking:hover {
    color: var(--color-sky-brand);
}

.late-pay-wrapper {
    background-color: var(--color-sky-lightest);
    border: 1px dashed var(--color-sky-brand);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-top: 1rem;
}

.late-pay-upload-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   ADMIN PANELS
   ========================================================================== */
.admin-section {
    animation: fadeIn 0.4s ease-in-out;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.kpi-card.danger {
    border-left: 4px solid var(--color-danger);
}

.kpi-icon {
    font-size: 2.25rem;
    color: var(--color-sky-brand);
    background-color: var(--color-sky-lightest);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-card.danger .kpi-icon {
    color: var(--color-danger);
    background-color: var(--color-danger-bg);
}

.kpi-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-sky-slate);
    margin-bottom: 0.25rem;
}

.kpi-info .kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-sky-dark);
}

.admin-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.table-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-table-container {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    background-color: var(--color-bg-gray);
    color: var(--color-sky-dark);
}

.table tbody tr:hover {
    background-color: var(--color-sky-lightest);
}

.stock-variant-edit-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.stock-variant-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-input-sm {
    width: 60px;
    padding: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
}

.stock-price-input {
    width: 100px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-weight: bold;
}

.stock-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.orders-table tbody td {
    font-size: 0.85rem;
}

.order-items-mini-list {
    list-style: none;
    padding: 0;
}

.order-items-mini-list li {
    margin-bottom: 0.25rem;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 0.25rem;
}

.slip-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    cursor: pointer;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.slip-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: var(--color-sky-brand);
}

.expanded-slip-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.coupon-manager-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

/* ==========================================================================
   SYSTEM FOOTER
   ========================================================================== */
.app-footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--color-sky-slate);
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
        justify-content: space-between;
    }
    .header-container > .logo { order: 1; }
    .nav-menu { order: 2; margin: 0 auto; }
    .header-actions { order: 3; }
    .header-search-bar {
        order: 4;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 15px 0 10px 0;
    }
}

@media (max-width: 768px) {
    /* 1. จัด Header ใหม่ (เอาเมนูกลับมาแสดงในบรรทัดที่ 2) */
    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 10px 15px;
    }
    .header-container > .logo { order: 1; }
    .header-actions { order: 2; gap: 10px; }
    .nav-menu {
        display: flex !important; /* ยกเลิกการซ่อนเมนู */
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
        gap: 5px;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    .header-search-bar {
        order: 4;
        flex: 0 0 100%;
        margin: 10px 0 5px 0;
    }

    /* 2. ย่อขนาดการ์ดสินค้าให้แสดง 2 คอลัมน์ */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-image-wrapper {
        height: 160px; /* ลดความสูงรูปภาพให้พอดีจอ */
    }
    .product-details {
        padding: 0.75rem;
    }
    .product-title {
        font-size: 0.85rem;
        height: 36px;
        margin-bottom: 0.4rem;
    }
    .product-price {
        font-size: 1.05rem;
    }
    .product-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .btn-card-action {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    /* 3. แก้แบนเนอร์หาย (ของเดิม) */
    .hero-banner-slider-container { height: auto; }
    .hero-banner-slider { height: 580px; }
    .hero-slide-content {
        flex-direction: column;
        padding: 2rem 1.2rem;
        gap: 1.5rem;
        text-align: center;
        justify-content: center;
    }
    .hero-slide-left { max-width: 100%; }
    .hero-slide-right { width: 100%; max-width: 320px; }
    .slider-arrow { display: none !important; }
    
    /* 4. ปรับ Layout หน้าอื่นๆ (ของเดิม) */
    .product-detail-layout,
    .cart-layout,
    .checkout-layout,
    .coupon-manager-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .row { flex-direction: column; gap: 0; }
    .payment-qr-container { flex-direction: column; gap: 1rem; }
}

/* Hide print elements on normal screen */
.print-only,
#printPackingSlipContainer {
    display: none !important;
}

/* ==========================================================================
   SETTINGS DROPDOWN
   ========================================================================== */
.settings-container {
    position: relative;
    display: inline-block;
}

.settings-trigger {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--color-sky-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.settings-trigger:hover {
    background-color: var(--color-sky-lightest);
    color: var(--color-sky-brand);
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

.settings-dropdown.active {
    display: flex;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-sky-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-sky-lightest);
}

.settings-body {
    padding: 0.5rem 0;
}

.settings-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.settings-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.settings-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-sky-dark);
}

.settings-item-desc {
    font-size: 0.75rem;
    color: var(--color-sky-slate);
}

/* ==========================================================================
   PRINT STYLES (Printable packing slip page setup)
   ========================================================================== */
@media print {
    body * {
        visibility: hidden;
    }

    #printPackingSlipContainer,
    #printPackingSlipContainer * {
        visibility: visible;
    }

    #printPackingSlipContainer {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000;
        background-color: #fff;
        padding: 20px;
        font-family: 'Sarabun', sans-serif;
    }

    .print-slip-box {
        border: 2px solid #000;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .print-slip-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .print-slip-title {
        font-size: 24px;
        font-weight: bold;
    }

    .print-slip-info {
        text-align: right;
        font-size: 12px;
    }

    .print-slip-addresses {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #000;
        padding-bottom: 15px;
    }

    .print-address-title {
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 5px;
        text-decoration: underline;
    }

    .print-address-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .print-slip-items-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    .print-slip-items-table th,
    .print-slip-items-table td {
        border: 1px solid #000;
        padding: 8px;
        font-size: 12px;
        text-align: left;
    }

    .print-slip-items-table th {
        background-color: #f2f2f2;
    }

    .print-barcode-wrapper {
        text-align: center;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .print-barcode {
        width: 250px;
        height: 60px;
        background: repeating-linear-gradient(90deg,
                #000,
                #000 2px,
                #fff 2px,
                #fff 6px,
                #000 6px,
                #000 8px,
                #fff 8px,
                #fff 10px,
                #000 10px,
                #000 14px,
                #fff 14px,
                #fff 16px);
        margin-bottom: 5px;
    }

    .print-barcode-text {
        font-size: 11px;
        letter-spacing: 3px;
        font-family: monospace;
    }
}

/* ==========================================================================
   PREMIUM FEATURES STYLING (Upgrades 2026)
   ========================================================================== */

/* 1. Horizontal Shipping Stepper */
.tracking-details-container {
    padding: 1.5rem 0;
}

.tracking-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-sky-light, #e0f2fe);
    color: var(--color-sky-slate, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
    border: 2px solid var(--color-border, #e2e8f0);
}

.dark-theme .step-circle {
    background-color: var(--color-white, #1e293b);
    color: var(--color-sky-slate, #94a3b8);
    border-color: var(--color-border, #334155);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-sky-slate, #64748b);
    max-width: 100px;
    line-height: 1.3;
}

.dark-theme .step-label {
    color: var(--color-sky-slate, #94a3b8);
}

.step-line {
    height: 4px;
    background-color: var(--color-border, #e2e8f0);
    flex-grow: 1;
    margin: 0 -20px;
    position: relative;
    top: -23px;
    /* Align vertically with circles' centers */
    z-index: 1;
    transition: var(--transition-smooth);
}

.dark-theme .step-line {
    background-color: var(--color-border, #334155);
}

/* Active and Completed Stepper States */
.tracking-step.active .step-circle {
    background-color: #22c55e;
    color: #ffffff;
    border-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.tracking-step.active .step-label {
    color: #22c55e;
    font-weight: 600;
}

.dark-theme .tracking-step.active .step-label {
    color: #4ade80;
}

.dark-theme .tracking-step.active .step-circle {
    background-color: #22c55e;
    border-color: #22c55e;
}

.step-line.active {
    background-color: #22c55e;
}

.tracking-info-box {
    background-color: var(--color-bg-gray, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-sky-dark);
}

.tracking-info-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-sky-brand, #0ea5e9);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.tracking-info-box p {
    margin: 0.25rem 0;
}

/* 2. Coupon Showcase */
.coupon-showcase-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.coupon-showcase-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-sky-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-showcase-section h3 i {
    color: var(--color-sky-brand);
}

.coupon-cards-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-sky-light) transparent;
}

.coupon-cards-container::-webkit-scrollbar {
    height: 6px;
}

.coupon-cards-container::-webkit-scrollbar-thumb {
    background-color: var(--color-sky-light);
    border-radius: 3px;
}

.coupon-card {
    display: flex;
    background-color: var(--color-sky-lightest);
    border: 1px dashed var(--color-sky-brand);
    border-radius: 8px;
    overflow: hidden;
    min-width: 250px;
    max-width: 270px;
    flex: 0 0 auto;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.coupon-card-left {
    background-color: var(--color-sky-brand);
    color: white;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: relative;
}

.coupon-card-left::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--color-white);
    border-radius: 50%;
    z-index: 2;
}

.dark-theme .coupon-card-left::after {
    background-color: var(--color-white);
}

.coupon-card-right {
    padding: 10px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.coupon-discount {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-sky-brand);
    margin-bottom: 2px;
}

.coupon-min-spend {
    font-size: 0.78rem;
    color: var(--color-sky-slate);
    margin-bottom: 8px;
}

.coupon-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.coupon-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-sky-dark);
    background-color: rgba(2, 132, 199, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.dark-theme .coupon-code {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}



/* 4. Admin Dashboard Analytics Side-By-Side Layout */
.category-stats-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.category-stats-layout .admin-dashboard-card {
    flex: 1 1 450px;
    min-width: 320px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.chart-container-card {
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Order Details Modal Grid & Cards Layout */
.order-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .order-modal-grid {
        grid-template-columns: 1fr;
    }
}

.order-info-card {
    background-color: var(--color-bg-gray, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--border-radius, 8px);
    padding: 1.25rem;
}

.dark-theme .order-info-card {
    background-color: rgba(30, 41, 59, 0.4);
}

.order-info-card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-sky-brand, #0284c7);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.order-info-content {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-sky-dark);
}

.order-modal-items {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 5px;
}

.order-modal-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 0.5rem;
}

.order-modal-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-modal-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.order-modal-item-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.order-modal-item-info {
    display: flex;
    flex-direction: column;
}

.order-modal-item-name {
    font-weight: 500;
    color: var(--color-sky-dark);
}

.order-modal-item-variant {
    font-size: 0.75rem;
    color: var(--color-sky-slate);
}

.order-modal-item-right {
    text-align: right;
    white-space: nowrap;
}

.order-modal-item-price {
    font-weight: 600;
    color: var(--color-sky-dark);
}

.order-modal-item-qty {
    font-size: 0.75rem;
    color: var(--color-sky-slate);
}

.order-modal-totals {
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.order-modal-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-modal-total-line.grand-total {
    font-weight: 700;
    color: var(--color-sky-brand);
    font-size: 1rem;
    border-top: 1px dashed var(--color-border);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    background: var(--color-white);
    color: var(--color-sky-dark);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-notification.success {
    border-left: 4px solid #22c55e;
}

.toast-notification.danger {
    border-left: 4px solid #ef4444;
}

.toast-content {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--color-sky-slate);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s ease;
}

.toast-close-btn:hover {
    color: var(--color-sky-dark);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================================================
   REVIEW MODAL & STAR INPUTS
   ========================================================================== */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    font-size: 28px;
    margin-top: 5px;
}

.star-rating-input label {
    color: #cbd5e1;
    transition: color 0.15s ease-in-out;
}

.star-rating-input input:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: #f59e0b;
}

/* ==========================================================================
   SELLER STORE HEADER BANNER
   ========================================================================== */
.seller-store-banner {
    background: linear-gradient(135deg, var(--color-bg-gray) 0%, var(--color-sky-lightest) 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.seller-store-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.seller-store-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-sky-brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
}

.seller-store-details h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--color-sky-dark);
}

.seller-store-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-sky-slate);
}

.seller-store-rating i {
    color: #f59e0b;
}

.seller-store-actions {
    display: flex;
    gap: 10px;
}

/* High Contrast Styling when Banner has Cover Image Overlay */
.seller-store-banner.has-cover,
.seller-store-banner[style*="background:"] {
    color: #ffffff;
    position: relative;
}

.seller-store-banner.has-cover .seller-store-details h3,
.seller-store-banner.has-cover .seller-store-title,
.seller-store-banner[style*="background:"] .seller-store-details h3,
.seller-store-banner[style*="background:"] .seller-store-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6);
}

.seller-store-banner.has-cover .seller-store-details,
.seller-store-banner[style*="background:"] .seller-store-details {
    color: #ffffff;
}

.seller-store-banner.has-cover .seller-store-details div,
.seller-store-banner[style*="background:"] .seller-store-details div {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.seller-store-banner.has-cover .seller-store-rating,
.seller-store-banner[style*="background:"] .seller-store-rating {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.seller-store-banner.has-cover .seller-store-rating span,
.seller-store-banner[style*="background:"] .seller-store-rating span {
    color: rgba(255, 255, 255, 0.9);
}

.seller-store-banner.has-cover .btn-sky-outline,
.seller-store-banner[style*="background:"] .btn-sky-outline {
    color: #38bdf8;
    border-color: #38bdf8;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.seller-store-banner.has-cover .btn-sky-outline:hover,
.seller-store-banner[style*="background:"] .btn-sky-outline:hover {
    color: #ffffff;
    background-color: #0284c7;
    border-color: #0284c7;
}

/* ==========================================================================
   UI REFINEMENT AND SYMMETRY
   ========================================================================== */
.dark-theme .product-image-wrapper {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.product-bottom .view-detail-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ==========================================================================
   PREMIUM UI/UX EFFECT UPGRADES
   ========================================================================== */
.product-card:hover .product-img {
    transform: scale(1.06);
}

/* Minimalist Themed Scrollbar for Category Navigation */
.market-category-nav::-webkit-scrollbar {
    height: 5px;
}

.market-category-nav::-webkit-scrollbar-track {
    background: transparent;
}

.market-category-nav::-webkit-scrollbar-thumb {
    background-color: var(--color-sky-light);
    border-radius: 4px;
}

.market-category-nav::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-sky-brand);
}

/* Support for dark mode scrollbar */
.dark-theme .market-category-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .market-category-nav::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-sky-brand);
}

/* ==========================================================================
   DARK THEME HIGH CONTRAST & ACCENT REFINEMENTS
   ========================================================================== */
/* 1. Hero Banner text contrast improvement */
.dark-theme .hero-content h1,
.dark-theme .banner-slide h1,
.dark-theme .hero-slide-left h1 {
    color: #f8fafc !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

.dark-theme .hero-content p,
.dark-theme .banner-slide p,
.dark-theme .hero-slide-left p {
    color: #cbd5e1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* 2. Market Category Labels readability */
.dark-theme .market-category-label {
    color: #cbd5e1 !important;
    transition: var(--transition-smooth);
}

.dark-theme .market-category-item:hover .market-category-label,
.dark-theme .market-category-item.active .market-category-label {
    color: #38bdf8 !important;
}

/* 3. Product Cards layout contrast improvements */
.dark-theme .product-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2) !important;
}

.dark-theme .product-image-wrapper {
    background-color: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
}

/* Invert SVG line icons to neon/glowing white in dark mode */
.dark-theme .product-card .product-img {
    filter: brightness(0.85) opacity(0.9) !important;
}

.dark-theme .product-card .product-title {
    color: #f8fafc !important;
}

.dark-theme .product-card .product-meta-row {
    color: #94a3b8 !important;
}

.dark-theme .product-card .product-bottom {
    border-top: 1px solid #334155 !important;
}

.dark-theme .product-card .product-price {
    color: #38bdf8 !important;
    /* sky blue accent price */
}

/* ==========================================================================
   CONSOLIDATED PROFILE DROPDOWN (UX/UI UPGRADE)
   ========================================================================== */
.profile-container {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.profile-trigger:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 125%;
    right: 0;
    width: 270px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
    transform-origin: top right;
    animation: slideDownDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownDropdown {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 10px;
}

.profile-dropdown-header span {
    display: block;
}

.profile-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: default;
}

.profile-dropdown-item:hover {
    background-color: var(--color-sky-lightest);
}

/* Dark theme support for profile dropdown */
.dark-theme .profile-trigger {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
}

.dark-theme .profile-trigger:hover {
    background: rgba(56, 189, 248, 0.15);
}

.dark-theme .profile-dropdown {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.dark-theme .profile-dropdown-header {
    border-bottom-color: #334155 !important;
}

.dark-theme .profile-dropdown-item:hover {
    background-color: #334155 !important;
}

/* ==========================================================================
   USER & SELLER PROFILE SETTINGS & SAVED ADDRESS STYLES
   ========================================================================== */
.profile-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.profile-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-gray);
    border-radius: var(--border-radius);
    border: 1px dashed var(--color-border);
}

.profile-avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-sky-brand);
    box-shadow: var(--shadow-md);
    background: #ffffff;
}

.address-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.address-card {
    position: relative;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 16px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.address-card:hover {
    border-color: var(--color-sky-brand);
    box-shadow: var(--shadow-md);
}

.address-card.default-address {
    border-color: var(--color-sky-brand);
    background: var(--color-sky-lightest);
}

.dark-theme .address-card.default-address {
    background: rgba(2, 132, 199, 0.15);
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.address-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-sky-dark);
}

.address-card-phone {
    font-size: 0.85rem;
    color: var(--color-sky-slate);
    margin-bottom: 8px;
}

.address-card-detail {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-sky-dark);
    margin-bottom: 12px;
}

.address-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
    margin-top: 8px;
}

/* Checkout Saved Address Radio Options */
.checkout-address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-address-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-white);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.checkout-address-label:hover {
    border-color: var(--color-sky-brand);
}

.checkout-address-label input[type="radio"]:checked+.checkout-address-info {
    color: var(--color-sky-dark);
}

.checkout-address-label input[type="radio"]:checked~.checkout-address-card-wrapper,
.checkout-address-label.selected {
    border-color: var(--color-sky-brand);
    background: var(--color-sky-lightest);
}

.dark-theme .checkout-address-label.selected {
    background: rgba(2, 132, 199, 0.15);
}

.checkout-address-info {
    flex: 1;
}

/* ==========================================================================
   SELLER SHOP SETTINGS & VACATION MODE STYLES
   ========================================================================== */
.seller-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.seller-settings-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.seller-settings-card h3 {
    font-size: 1.05rem;
    color: var(--color-sky-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-banner-upload-box {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.seller-banner-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-banner-upload-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

/* Toggle Switch */
.vacation-switch-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: var(--color-bg-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: #f59e0b;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.vacation-alert-banner {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.dark-theme .vacation-alert-banner {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

.dark-theme .seller-settings-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-theme .vacation-switch-box {
    background: #0f172a;
    border-color: #334155;
}

/* ==========================================================================
   ADMIN USER, SELLER & BAN MANAGEMENT SYSTEM STYLES
   ========================================================================== */
.official-seller-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid #0284c7;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.official-seller-badge-lg i {
    color: #38bdf8;
}

.badge-regular-seller {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.dark-theme .badge-regular-seller {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

.badge-status-active {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dark-theme .badge-status-active {
    background: rgba(22, 101, 52, 0.3);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.badge-status-banned {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dark-theme .badge-status-banned {
    background: rgba(153, 27, 27, 0.3);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-warning-outline {
    background: transparent;
    color: #d97706;
    border: 1px solid #f59e0b;
}

.btn-warning-outline:hover {
    background: #f59e0b;
    color: #ffffff;
}

.dark-theme .btn-warning-outline {
    color: #fbbf24;
    border-color: #f59e0b;
}

.dark-theme .btn-warning-outline:hover {
    background: #f59e0b;
    color: #0f172a;
}

/* ==========================================================================
 * ORDER CANCELLATION SYSTEM STYLES
 * ========================================================================== */
.badge-cancelled {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dark-theme .badge-cancelled {
    background: rgba(185, 28, 28, 0.25);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}

.refund-info-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 14px;
}

.dark-theme .refund-info-box {
    background: rgba(20, 83, 45, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.cancel-details-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 12.5px;
    color: #9f1239;
    line-height: 1.5;
}

.dark-theme .cancel-details-box {
    background: rgba(136, 19, 55, 0.25);
    border-color: rgba(244, 63, 94, 0.35);
    color: #fda4af;
}

/* ==========================================================================
 * ACCOUNT SWITCHER & SAVED ACCOUNTS STYLING
 * ========================================================================== */
.saved-accounts-dropdown-list {
    max-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 2px;
}

.dropdown-account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(14, 165, 233, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: var(--transition-smooth);
}

.dropdown-account-item:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--color-sky-brand);
    transform: translateX(2px);
}

.dark-theme .dropdown-account-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-theme .dropdown-account-item:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

.dropdown-add-account-btn:hover {
    background: rgba(14, 165, 233, 0.08);
}

.dark-theme .dropdown-add-account-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Saved Accounts Bar on Auth Login Page */
.saved-accounts-auth-container {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
}

.dark-theme .saved-accounts-auth-container {
    background: rgba(19, 29, 53, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
}

.saved-account-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.saved-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.saved-account-chip:hover {
    border-color: var(--color-sky-brand);
    background: rgba(14, 165, 233, 0.06);
    transform: translateY(-1px);
}

.dark-theme .saved-account-chip {
    background: #131d35;
    border-color: #283756;
}

.dark-theme .saved-account-chip:hover {
    background: #1b2847;
    border-color: #38bdf8;
}

.saved-account-chip-remove {
    margin-left: 4px;
    color: var(--color-sky-slate);
    font-size: 0.75rem;
    padding: 2px;
    border-radius: 50%;
    transition: color 0.2s;
}

.saved-account-chip-remove:hover {
    color: #ef4444;
}

/* Switch Account Confirmation Modal */
#switchAccountModal .modal-card {
    max-width: 400px;
    border-radius: 20px;
}

.switch-account-user-card {
    background: var(--color-bg-gray);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.dark-theme .switch-account-user-card {
    background: rgba(11, 19, 41, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   FLYING CART & CART BUMP ANIMATION
   ========================================================================== */
.flying-cart-item {
    position: fixed;
    z-index: 99999;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes cartBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-bump i,
.cart-bump {
    animation: cartBump 0.4s ease-in-out;
    display: inline-block;
}

/* ==========================================================================
   MICRO-INTERACTION ANIMATIONS (WISHLIST & SKELETON LOADING)
   ========================================================================== */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.product-wishlist-btn.active i {
    animation: heartbeat 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    color: #ef4444;
}
.product-wishlist-btn.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid #ef4444;
    animation: heartRipple 0.6s ease-out forwards;
}
@keyframes heartRipple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes floatUpFade {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    20% { opacity: 1; transform: translateY(-15px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-50px) scale(1.2); }
}

.floating-text {
    position: absolute;
    color: #22c55e;
    font-weight: bold;
    font-size: 18px;
    pointer-events: none;
    animation: floatUpFade 1.5s ease-out forwards;
    z-index: 100;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-box {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.dark-theme .skeleton-box {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

.skeleton-card {
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-card .skeleton-img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
}

.skeleton-card .skeleton-title {
    width: 80%;
    height: 20px;
}

.skeleton-card .skeleton-price {
    width: 40%;
    height: 24px;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav { 
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background-color: var(--color-white); 
    border-top: 1px solid var(--color-border); 
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05); 
    z-index: 1000; 
    justify-content: space-around; 
    padding: 10px 0; 
    padding-bottom: calc(10px + env(safe-area-inset-bottom)); 
    transition: background-color 0.3s ease, border-color 0.3s ease; 
}
.dark-theme .mobile-bottom-nav { 
    background-color: var(--color-card-bg); 
    border-top-color: var(--color-border); 
}
.bottom-nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 4px; 
    color: var(--color-sky-slate); 
    font-size: 10px; 
    text-decoration: none; 
    transition: color 0.2s ease; 
    width: 20%; 
}
.bottom-nav-item i { 
    font-size: 20px; 
    transition: transform 0.2s ease; 
}
.bottom-nav-item.active { 
    color: var(--color-sky-brand); 
    font-weight: 600; 
}
.bottom-nav-item.active i { 
    transform: scale(1.15); 
}

@media (max-width: 768px) {
    /* แสดง Bottom Nav เฉพาะเมื่ออยู่ในบทบาท Client บนมือถือเท่านั้น */
    .mobile-bottom-nav { 
        display: none; 
    }
    body[data-role="client"] .mobile-bottom-nav { 
        display: flex; 
    }
    /* ปรับระยะดันก้นจอและตำแหน่งปุ่มเปลี่ยน Role ให้สัมพันธ์กับบทบาท */
    body[data-role="client"] .app-content {
        padding-bottom: 80px;
    }
    body[data-role="client"] .app-footer {
        padding-bottom: 80px;
    }
    body[data-role="client"] .role-switcher {
        bottom: 80px;
    }

    /* สำหรับ Admin และ Seller ในมือถือ ให้ปุ่มเปลี่ยน Role แนบก้นจอปกติ */
    body[data-role="admin"] .role-switcher,
    body[data-role="seller"] .role-switcher {
        bottom: 20px;
    }
}

/* ==========================================================================
   PRODUCT IMAGE GALLERY & FOMO PURCHASE POPUP NOTIFICATIONS
   ========================================================================== */
.detail-img-wrapper { display: flex; flex-direction: column; gap: 10px; }
.detail-thumbnails-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.detail-thumb-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid var(--color-border); cursor: pointer; opacity: 0.6; transition: all 0.2s ease; }
.detail-thumb-img:hover, .detail-thumb-img.active { opacity: 1; border-color: var(--color-sky-brand); transform: scale(1.05); }

.fomo-notification { position: fixed; bottom: 20px; left: 20px; z-index: 999; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.12); max-width: 320px; animation: fomoSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.dark-theme .fomo-notification { background: #1e293b; border-color: #334155; }
.fomo-notification img { width: 45px; height: 45px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border); }
.fomo-content { font-size: 12px; line-height: 1.3; color: var(--color-sky-dark); }
.fomo-title { font-size: 11px; color: var(--color-sky-slate); }
.fomo-prod { font-weight: 600; color: var(--color-sky-brand); margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.fomo-time { font-size: 10px; color: var(--color-sky-slate); }
@keyframes fomoSlideIn { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 768px) { .fomo-notification { bottom: 70px; left: 10px; right: 10px; max-width: none; } }

/* ==========================================================================
   QUANTITY SELECTOR & MULTI-IMAGE GALLERY STYLES
   ========================================================================== */
.qty-selector-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-white);
}
.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-bg-gray);
    color: var(--color-sky-dark);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.qty-btn:hover:not(:disabled) {
    background: var(--color-sky-brand);
    color: #ffffff;
}
.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.qty-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.gallery-thumb-item {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    border: 2px solid var(--color-border);
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}
.gallery-thumb-item:hover,
.gallery-thumb-item.active {
    opacity: 1;
    border-color: var(--color-sky-brand);
    transform: scale(1.05);
}

/* ซ่อนลูกศรขึ้น-ลงพื้นฐานของเบราว์เซอร์สำหรับ input type="number" */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield; /* รองรับ Firefox */
}

/* ==========================================================================
   IMAGE UPLOADER MANAGER (SELLER CENTER STYLE)
   ========================================================================== */
.image-upload-manager {
    background: var(--color-bg-gray);
    border: 1px dashed var(--color-sky-brand);
    border-radius: var(--border-radius-lg, 12px);
    padding: 16px;
    margin-top: 6px;
}

.image-upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.upload-thumb-card {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.upload-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-thumb-card .main-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(2, 132, 199, 0.9);
    color: #ffffff;
    font-size: 9px;
    text-align: center;
    padding: 2px 0;
    font-weight: 600;
}

.upload-thumb-card .remove-img-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-thumb-card .remove-img-btn:hover {
    background: #ef4444;
    transform: scale(1.15);
}

.upload-add-card {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px dashed var(--color-sky-brand);
    background: var(--color-sky-lightest);
    color: var(--color-sky-brand);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.upload-add-card i {
    font-size: 20px;
}

.upload-add-card:hover {
    background: var(--color-sky-brand);
    color: #ffffff;
    border-style: solid;
}

.dark-theme .image-upload-manager {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(56, 189, 248, 0.4);
}

.dark-theme .upload-thumb-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-theme .upload-add-card {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    color: #38bdf8;
}

.dark-theme .upload-add-card:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* ==========================================================================
   QUANTITY SELECTOR & NUMBER INPUT STYLING
   ========================================================================== */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

.qty-selector-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.qty-selector-wrapper .qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-bg-gray);
    color: var(--color-sky-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector-wrapper .qty-btn:hover:not(:disabled) {
    background: var(--color-sky-light);
    color: var(--color-sky-primary);
}

.qty-selector-wrapper .qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-selector-wrapper .qty-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-sky-dark);
    outline: none;
    background: #ffffff;
}

/* ==========================================================================
   HERO BANNER SLIDER 2-COLUMN LAYOUT
   ========================================================================== */
.hero-slide-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 3rem;
    gap: 2rem;
}

.hero-slide-left {
    max-width: 60%;
}

.hero-slide-right {
    width: 320px;
    flex-shrink: 0;
}

/* ==========================================================================
   PASSWORD INPUT TOGGLE WRAPPER
   ========================================================================== */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .form-control {
    padding-right: 40px !important;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    color: var(--color-sky-slate, #64748b);
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    padding: 4px;
    transition: color 0.2s ease, transform 0.15s ease;
    z-index: 5;
}

.toggle-password-btn:hover {
    color: var(--color-sky-brand, #0284c7);
    transform: scale(1.1);
}

.dark-theme .toggle-password-btn {
    color: #94a3b8;
}

.dark-theme .toggle-password-btn:hover {
    color: #38bdf8;
}

/* ==========================================================================
   ADMIN ORDER STATUS TABS & REFUND STYLES
   ========================================================================== */
.admin-order-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.admin-tab-btn {
    background: var(--color-bg-gray);
    color: var(--color-sky-slate);
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab-btn:hover {
    background: rgba(2, 132, 199, 0.08);
    color: var(--color-sky-brand);
}

.admin-tab-btn.active {
    background: var(--color-sky-brand);
    color: #ffffff;
    border-color: var(--color-sky-brand);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.dark-theme .admin-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .admin-tab-btn.active {
    background: var(--color-sky-brand);
    color: #ffffff;
}

.refund-info-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px dashed #f87171;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.8rem;
    margin-top: 6px;
    color: var(--color-sky-dark);
}

.dark-theme .refund-info-box {
    background: rgba(239, 68, 68, 0.15);
    border-color: #f87171;
    color: #fca5a5;
}

/* ==========================================================================
   GLOBAL TOP ANNOUNCEMENT BAR STYLES
   ========================================================================== */
.global-announcement-bar {
    background: linear-gradient(90deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
    position: relative;
    z-index: 1000;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.announcement-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.announcement-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    padding: 0 4px;
}

.announcement-close:hover {
    opacity: 1;
}

.global-announcement-bar.announcement-success {
    background: linear-gradient(90deg, #059669, #047857);
}

.global-announcement-bar.announcement-warning {
    background: linear-gradient(90deg, #d97706, #b45309);
}

.global-announcement-bar.announcement-danger {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

/* ==========================================================================
   ADMIN HEADER RESPONSIVE & LAYOUT ENHANCEMENTS
   ========================================================================== */
.admin-header {
    border-bottom: 3px solid var(--color-sky-brand);
    background-color: var(--color-white);
}

.admin-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: 70px;
    overflow: hidden;
}

.admin-header .logo {
    flex-shrink: 0;
    font-size: 1.35rem;
}

.admin-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-grow: 1;
    flex-shrink: 1;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 4px 0;
    margin: 0 10px;
}

.admin-nav-menu::-webkit-scrollbar {
    height: 4px;
}

.admin-nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.admin-nav-menu::-webkit-scrollbar-thumb {
    background: var(--color-sky-light);
    border-radius: 4px;
}

.admin-nav-menu .nav-link {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    gap: 0.35rem;
    color: var(--color-sky-slate);
    transition: all 0.2s ease;
}

.admin-nav-menu .nav-link:hover,
.admin-nav-menu .nav-link.active {
    color: var(--color-sky-brand);
    background-color: var(--color-sky-lightest);
    font-weight: 600;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.admin-header-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 4px 8px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

.admin-header-actions .admin-profile-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-sky-brand);
    background-color: var(--color-sky-lightest);
    padding: 4px 8px;
    height: 32px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .admin-header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 8px;
        overflow: visible;
    }

    .admin-header .logo {
        order: 1;
        font-size: 1.2rem;
    }

    .admin-header-actions {
        order: 2;
        gap: 5px;
    }

    .admin-nav-menu {
        order: 3;
        width: 100%;
        max-width: 100%;
        border-top: 1px solid var(--color-border);
        padding-top: 6px;
        padding-bottom: 4px;
        margin: 2px 0 0 0;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .admin-header-actions .btn .btn-text,
    .admin-header-actions .admin-profile-badge .badge-text {
        display: none;
    }

    .admin-header-actions .btn,
    .admin-header-actions .admin-profile-badge {
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .admin-nav-menu .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .admin-header-container {
        padding: 6px 8px;
    }

    .admin-header-actions {
        gap: 4px;
    }
}

/* ==========================================================================
   BANNER BACKGROUND GENERATOR STYLES
   ========================================================================== */
.banner-bg-preview-box {
    height: 70px;
    width: 100%;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.banner-bg-preview-box .preview-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-sky-dark);
    background: rgba(255, 255, 255, 0.82);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.color-picker-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.color-picker-input-group input[type="color"] {
    width: 34px;
    height: 30px;
    padding: 2px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--color-border);
}

.small-label {
    font-size: 0.76rem;
    color: var(--color-sky-slate);
    font-weight: 600;
    display: block;
}

.gradient-presets-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.gradient-preset-btn {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 5px 2px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.gradient-preset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

body.dark-mode .banner-bg-preview-box .preview-text {
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
}

body.dark-mode .small-label {
    color: #94a3b8;
}

@media (max-width: 576px) {
    .gradient-presets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* STRUCTURED ADDRESS FORM STYLING */
#addressModal .modal-card {
    max-width: 620px;
}

#addressModal .form-group label,
#sellerProfileForm .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-sky-dark);
    margin-bottom: 4px;
}

#addressModal .form-control,
#sellerProfileForm .form-control {
    font-size: 0.9rem;
    border-radius: 8px;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-sky-slate);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--color-danger);
}

/* LANGUAGE SWITCHER BUTTON STYLING */
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.lang-switch-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.currentLangLabel {
    font-weight: 700;
    letter-spacing: 0.5px;
}