/**
 * Modern Shop Theme — main stylesheet
 * ------------------------------------------------------------------
 * Extracted from the original light theme HTML.
 * Every color/spacing value is preserved; the structural layout
 * matches the homepage pixel-for-pixel.
 *
 * Design tokens live under :root so assets/css/dark.css can swap them
 * without re-declaring component styles.
 * ------------------------------------------------------------------
 */

:root {
    /* Brand */
    --primary:           #FF2E63;
    --primary-gradient:  linear-gradient(135deg, #FF2E63 0%, #FF6B6B 100%);
    --secondary:         #08D9D6;
    --secondary-gradient:linear-gradient(135deg, #08D9D6 0%, #00FFF5 100%);
    --accent:            #FF9F43;

    /* Surfaces (light) */
    --bg-body:           #F4F7FE;
    --card-bg:           #FFFFFF;
    --card-border:       #F1F5F9;
    --card-border-strong:#E2E8F0;
    --header-bg:         rgba(255, 255, 255, 0.95);
    --header-blur:       blur(12px);
    --input-bg:          #F8FAFC;
    --input-bg-focus:    #FFFFFF;
    --input-border:      #E2E8F0;
    --input-focus-ring:  0 0 0 4px rgba(255, 46, 99, 0.15);
    --thumb-bg:          #F8FAFC;
    --timer-bg:          #1E293B;
    --timer-color:       #FFFFFF;

    /* Text */
    --text-main:         #2D3748;
    --text-muted:        #718096;
    --text-strong:       #1E293B;
    --text-heading:      #0F172A;
    --text-white:        #1E293B; /* headings on cards in light mode */
    --footer-text:       #94A3B8;
    --footer-text-muted: #64748B;
    --footer-divider:    #1E293B;
    --footer-bg:         #0F172A;
    --mobile-bar-bg:     #FFFFFF;
    --mobile-bar-shadow: 0 -4px 25px rgba(0,0,0,0.08);
    --mobile-item-color:#64748B;

    /* Radii */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-soft:       0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-glow:       0 12px 35px rgba(255, 46, 99, 0.25);
    --shadow-cyan-glow:  0 12px 35px rgba(8, 217, 214, 0.20);
    --shadow-hover-card: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-hero:       0 20px 40px rgba(108, 92, 231, 0.25);

    /* Hero */
    --hero-bg:           linear-gradient(135deg, #FF2E63 0%, #6C5CE7 100%);
    --hero-glow:         rgba(255, 255, 255, 0.12);
    --hero-tag-bg:       rgba(255, 255, 255, 0.2);
    --hero-tag-color:    #FFFFFF;
    --hero-h1-color:     #FFFFFF;
    --hero-p-color:      rgba(255,255,255,0.95);
    --hero-btn-bg:       #FFFFFF;
    --hero-btn-color:    #1E293B;
    --hero-btn-shadow:   0 10px 25px rgba(0,0,0,0.15);

    /* Flash sale side card */
    --side-card-border:  #FFE2E6;
    --badge-flash-bg:    #FFE2E6;
    --badge-flash-color: var(--primary);
    --side-buy-bg:       var(--primary-gradient);
    --side-buy-color:    #FFFFFF;
    --side-buy-shadow:   var(--shadow-glow);

    /* Feature icon */
    --feature-icon-bg:   rgba(8, 217, 214, 0.12);
    --feature-icon-color:#00B4B1;

    /* Buttons */
    --btn-add-cart-bg:   #F1F5F9;
    --btn-add-cart-color: #1E293B;

    /* Article thumb */
    --article-thumb-bg:  linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    --article-thumb-icon: #0284C7;
    --article-link-color: var(--primary);

    /* View all chip */
    --view-all-bg:       rgba(255, 46, 99, 0.08);
    --view-all-color:    var(--primary);

    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ----------------------------------------------------------------- */
/* Reset & base                                                       */
/* ----------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 70px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ----------------------------------------------------------------- */
/* Top announcement bar                                              */
/* ----------------------------------------------------------------- */
.top-banner {
    background: linear-gradient(90deg, #FF2E63, #FF6B6B, #FF9F43);
    background-size: 200% 200%;
    animation: gradientBG 5s ease infinite;
    color: white;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ----------------------------------------------------------------- */
/* Header                                                            */
/* ----------------------------------------------------------------- */
header {
    background: var(--header-bg);
    backdrop-filter: var(--header-blur);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img { height: 42px; width: auto; }

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.logo span { color: var(--text-strong); }

.search-box {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 22px 14px 52px;
    border-radius: 50px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    background: var(--input-bg-focus);
    box-shadow: var(--input-focus-ring);
}

.search-box button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--primary-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.search-box button:hover { transform: translateY(-50%) scale(1.05); }

.user-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--input-border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-strong);
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
    background: transparent;
}

.btn-auth:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 46, 99, 0.04);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-strong);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

.cart-btn {
    position: relative;
    background: var(--primary-gradient);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 46, 99, 0.35);
}

.cart-badge {
    background: white;
    color: var(--primary);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
}

/* eNamad badge container */
.enamad-badge {
    position: absolute;
    bottom: -34px;
    left: 24px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 6px;
    z-index: 999;
    border: 1px solid var(--card-border);
}
.enamad-badge img { display: block; max-height: 80px; width: auto; }

/* Navigation */
.header-nav {
    border-top: 1px solid var(--card-border);
    background: var(--card-bg);
    display: none;
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 36px;
}

.nav-item {
    padding: 14px 0;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-item i { font-size: 1.05rem; color: #94A3B8; transition: var(--transition); }

.nav-item:hover, .nav-item.active { color: var(--primary); }
.nav-item:hover i, .nav-item.active i { color: var(--primary); }

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px 3px 0 0;
}

/* ----------------------------------------------------------------- */
/* Container                                                         */
/* ----------------------------------------------------------------- */
.container {
    max-width: 1320px;
    margin: 32px auto;
    padding: 0 24px;
}

/* ----------------------------------------------------------------- */
/* Hero section                                                      */
/* ----------------------------------------------------------------- */
.hero-section {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.hero-main-card {
    background: var(--hero-bg);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hero);
}

.hero-main-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 350px;
    height: 350px;
    background: var(--hero-glow);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-tag {
    background: var(--hero-tag-bg);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    width: fit-content;
    margin-bottom: 16px;
    color: var(--hero-tag-color);
    letter-spacing: 0.5px;
}

.hero-main-card h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--hero-h1-color);
    position: relative;
    z-index: 1;
}

.hero-main-card p {
    font-size: 1.1rem;
    color: var(--hero-p-color);
    margin-bottom: 32px;
    max-width: 90%;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--hero-btn-bg);
    color: var(--hero-btn-color);
    padding: 14px 34px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.98rem;
    width: fit-content;
    transition: var(--transition);
    box-shadow: var(--hero-btn-shadow);
    position: relative;
    z-index: 1;
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    color: var(--primary);
}

/* Side flash sale card */
.hero-side-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 2px solid var(--side-card-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.flash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.badge-flash {
    background: var(--badge-flash-bg);
    color: var(--badge-flash-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timer-box {
    display: flex;
    gap: 6px;
    direction: ltr;
}

.timer-unit {
    background: var(--timer-bg);
    color: var(--timer-color);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 900;
    min-width: 32px;
    text-align: center;
}

.side-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-strong);
    margin: 14px 0 8px;
    line-height: 1.4;
}

.side-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.side-price .current {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

.side-price .old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.progress-bar-wrap {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: #F1F5F9;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.btn-side-buy {
    background: var(--side-buy-bg);
    color: var(--side-buy-color);
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    display: block;
    transition: var(--transition);
    box-shadow: var(--side-buy-shadow);
}

.btn-side-buy:hover { opacity: 0.95; transform: translateY(-2px); }

/* ----------------------------------------------------------------- */
/* Categories section                                                */
/* ----------------------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.cat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.cat-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 25px rgba(255, 46, 99, 0.12);
}

.cat-card:hover .cat-icon {
    background: var(--primary-gradient);
    color: white;
    transform: rotate(-8deg) scale(1.1);
}

.cat-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-strong);
}

/* ----------------------------------------------------------------- */
/* Features grid                                                     */
/* ----------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.feature-box {
    background: var(--card-bg);
    padding: 22px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--feature-icon-bg);
    color: var(--feature-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-strong);
}

.feature-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ----------------------------------------------------------------- */
/* Section title                                                     */
/* ----------------------------------------------------------------- */
.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 8px;
    height: 26px;
    background: var(--primary-gradient);
    border-radius: 10px;
}

.view-all {
    color: var(--view-all-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    background: var(--view-all-bg);
    padding: 8px 18px;
    border-radius: 20px;
}

.view-all:hover {
    background: var(--primary);
    color: white;
    gap: 10px;
}

/* ----------------------------------------------------------------- */
/* Products grid & card                                              */
/* ----------------------------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover-card);
    border-color: var(--card-border-strong);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: var(--thumb-bg, #F8FAFC);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    padding: 8px;
}

.product-thumb i {
    font-size: 4.5rem;
    color: #CBD5E1;
    transition: var(--transition);
}

.product-card:hover .product-thumb i {
    color: var(--primary);
    transform: scale(1.12) rotate(-4deg);
}

.discount-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.product-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 14px;
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-title a { color: inherit; }

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
}

.price-wrap {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-heading);
}

.btn-add-cart {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--btn-add-cart-bg);
    color: var(--btn-add-cart-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-add-cart:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
    transform: rotate(90deg);
}

/* ----------------------------------------------------------------- */
/* Articles grid & card                                              */
/* ----------------------------------------------------------------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover-card);
}

.article-thumb {
    width: 100%;
    height: 190px;
    background: var(--article-thumb-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-thumb i {
    font-size: 4rem;
    color: var(--article-thumb-icon);
    transition: var(--transition);
}

.article-card:hover .article-thumb i { transform: scale(1.15); }

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 12px;
    line-height: 1.5;
}
.article-title a { color: inherit; }

.article-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-link {
    margin-top: auto;
    color: var(--article-link-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.article-link:hover { gap: 10px; }

/* ----------------------------------------------------------------- */
/* Footer                                                            */
/* ----------------------------------------------------------------- */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 24px 28px;
    margin-top: 80px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer-wrap {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 22px;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.9;
}

.footer-social { margin-top: 18px; display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: var(--footer-text);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #FFFFFF;
    transform: translateX(-6px);
}

.copyright-text {
    text-align: center;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--footer-divider);
    font-size: 0.85rem;
    color: var(--footer-text-muted);
}

/* ----------------------------------------------------------------- */
/* Mobile bottom bar                                                 */
/* ----------------------------------------------------------------- */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 68px;
    background: var(--mobile-bar-bg);
    box-shadow: var(--mobile-bar-shadow);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--mobile-item-color);
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.mobile-item i { font-size: 1.25rem; }
.mobile-item.active { color: var(--primary); }

/* ----------------------------------------------------------------- */
/* Breadcrumb                                                        */
/* ----------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 0.7rem; }
.breadcrumb .current { color: var(--text-strong); font-weight: 700; }

/* ----------------------------------------------------------------- */
/* Pagination                                                        */
/* ----------------------------------------------------------------- */
.theme-pagination { display: flex; justify-content: center; margin: 40px 0 56px; }
.pagination-list { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-link {
    min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 12px;
    padding: 0 14px;
    font-weight: 700; font-size: 0.95rem;
    transition: var(--transition);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary-gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.page-dots { color: var(--text-muted); padding: 0 6px; }

/* ----------------------------------------------------------------- */
/* Empty state                                                       */
/* ----------------------------------------------------------------- */
.empty-state {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 60px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.empty-state i { font-size: 4rem; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.4rem; font-weight: 800; color: var(--text-strong); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ----------------------------------------------------------------- */
/* Generic buttons                                                   */
/* ----------------------------------------------------------------- */
.btn-primary-large {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    font-weight: 800; font-size: 0.98rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    cursor: pointer;
}
.btn-primary-large:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(255, 46, 99, 0.35); }

.btn-secondary-large {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--input-bg);
    color: var(--text-strong);
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid var(--input-border);
    font-weight: 700; font-size: 0.98rem;
    transition: var(--transition);
    cursor: pointer;
}
.btn-secondary-large:hover { border-color: var(--primary); color: var(--primary); }

/* ----------------------------------------------------------------- */
/* Product detail page                                               */
/* ----------------------------------------------------------------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.product-gallery { position: relative; }
.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--thumb-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-main-image img { width: 100%; height: 100%; object-fit: contain; }
.product-main-image i { font-size: 6rem; color: #CBD5E1; }
.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.product-thumbs .product-thumb-img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--card-border);
    cursor: pointer;
    transition: var(--transition);
}
.product-thumbs .product-thumb-img:hover,
.product-thumbs .product-thumb-img.active { border-color: var(--primary); }

.product-info { display: flex; flex-direction: column; }
.product-detail-title {
    font-size: 1.6rem; font-weight: 900; color: var(--text-heading); margin-bottom: 16px; line-height: 1.4;
}
.product-detail-meta {
    display: flex; flex-wrap: wrap; gap: 18px;
    color: var(--text-muted); font-size: 0.88rem;
    padding-bottom: 18px; border-bottom: 1px solid var(--card-border);
    margin-bottom: 18px;
}
.product-detail-meta span { display: flex; align-items: center; gap: 6px; }
.stock-status.in-stock { color: #10B981; }
.stock-status.out-stock { color: #EF4444; }

.product-price-box {
    background: var(--input-bg);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 22px;
    display: flex; flex-direction: column; gap: 6px;
}
.product-price-box .old-price { font-size: 1rem; }
.product-price-box .current-price { font-size: 1.6rem; color: var(--primary); }

.product-attrs { margin-bottom: 22px; }
.product-attr-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--card-border);
    font-size: 0.9rem;
}
.attr-label { color: var(--text-muted); }
.attr-value { color: var(--text-strong); font-weight: 700; }

.product-actions-row { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.product-actions-row .btn-primary-large,
.product-actions-row .btn-secondary-large { flex: 1; justify-content: center; min-width: 180px; }

.product-trust-row {
    display: flex; flex-wrap: wrap; gap: 18px;
    padding-top: 18px; border-top: 1px solid var(--card-border);
    color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
}
.product-trust-row span { display: flex; align-items: center; gap: 6px; }
.product-trust-row i { color: var(--primary); }

.product-description { margin-bottom: 50px; }
.related-products { margin-bottom: 30px; }
.prose { color: var(--text-main); line-height: 2; font-size: 1rem; }
.prose p { margin-bottom: 16px; }
.prose h2, .prose h3 { margin: 22px 0 12px; color: var(--text-heading); }
.prose ul, .prose ol { padding-right: 24px; margin-bottom: 16px; }
.prose img { border-radius: var(--radius-md); margin: 14px 0; }

/* ----------------------------------------------------------------- */
/* Shop page                                                          */
/* ----------------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.shop-filter-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    position: sticky; top: 110px;
}
.filter-title { font-size: 1.05rem; font-weight: 800; color: var(--text-strong); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--card-border); }
.filter-list li { margin-bottom: 4px; }
.filter-list a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-main); font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.filter-list a:hover,
.filter-list a.active { background: rgba(255, 46, 99, 0.08); color: var(--primary); }
.filter-list a i { color: var(--text-muted); width: 18px; text-align: center; }

.shop-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.shop-title { font-size: 1.5rem; font-weight: 900; color: var(--text-heading); }
.shop-sort select {
    padding: 10px 16px; border-radius: 12px;
    border: 1px solid var(--input-border); background: var(--card-bg);
    color: var(--text-strong); font-family: inherit; font-size: 0.88rem;
    cursor: pointer;
}

/* ----------------------------------------------------------------- */
/* Single article                                                     */
/* ----------------------------------------------------------------- */
.single-article { margin-bottom: 50px; }
.single-thumb {
    width: 100%; height: 360px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}
.single-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-thumb i { font-size: 7rem; }
.single-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}
.single-title { font-size: 1.9rem; font-weight: 900; color: var(--text-heading); margin: 18px 0; line-height: 1.4; }
.single-excerpt { font-size: 1.1rem; color: var(--text-muted); font-style: italic; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--card-border); }
.single-share {
    display: flex; align-items: center; gap: 14px;
    margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--card-border);
    color: var(--text-muted); font-weight: 600;
}
.single-share a {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--input-bg); color: var(--text-strong);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.single-share a:hover { background: var(--primary-gradient); color: #fff; }

/* ----------------------------------------------------------------- */
/* Cart page                                                          */
/* ----------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.cart-items {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 8px 18px;
    box-shadow: var(--shadow-soft);
}
.cart-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px; align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--card-border);
}
.cart-row:last-child { border-bottom: none; }
.cart-row-img {
    width: 80px; height: 80px;
    border-radius: 12px; overflow: hidden;
    background: var(--thumb-bg);
    display: flex; align-items: center; justify-content: center;
}
.cart-row-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-row-img i { font-size: 2.2rem; color: #CBD5E1; }
.cart-row-info { display: flex; flex-direction: column; gap: 4px; }
.cart-row-title { font-size: 0.95rem; font-weight: 800; color: var(--text-strong); }
.cart-row-price { font-size: 0.85rem; color: var(--text-muted); }
.cart-row-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg); color: var(--text-strong);
    font-size: 1.1rem; font-weight: 700;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input {
    width: 50px; text-align: center;
    border: 1px solid var(--input-border); border-radius: 8px;
    background: var(--input-bg); color: var(--text-strong);
    padding: 6px; font: inherit;
}
.cart-row-total { font-weight: 900; color: var(--text-heading); min-width: 110px; text-align: left; }
.cart-row-remove {
    width: 36px; height: 36px;
    border-radius: 50%; border: none;
    background: rgba(239, 68, 68, 0.08); color: #EF4444;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.cart-row-remove:hover { background: #EF4444; color: #fff; }

.cart-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    position: sticky; top: 110px; align-self: start;
}
.summary-title { font-size: 1.1rem; font-weight: 800; color: var(--text-strong); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--card-border); }
.coupon-form { display: flex; gap: 8px; margin-bottom: 18px; }
.coupon-form input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--input-border); background: var(--input-bg); font: inherit; }
.coupon-form button { padding: 0 18px; border: none; border-radius: 10px; background: var(--primary-gradient); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; color: var(--text-main); }
.summary-row.discount { color: #10B981; font-weight: 700; }
.summary-row.grand-total {
    margin-top: 10px;
    padding-top: 14px; border-top: 2px dashed var(--card-border);
    font-weight: 900; font-size: 1.1rem; color: var(--text-heading);
}
.checkout-cta { width: 100%; justify-content: center; margin-top: 18px; margin-bottom: 10px; }

/* ----------------------------------------------------------------- */
/* Checkout page                                                      */
/* ----------------------------------------------------------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.form-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}
.form-section-title { font-size: 1.05rem; font-weight: 800; color: var(--text-strong); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.form-section-title i { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--text-strong); }
.form-group .req { color: var(--primary); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    font: inherit; font-size: 0.92rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--input-bg-focus);
    box-shadow: var(--input-focus-ring);
}
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700; color: var(--text-strong);
}
.payment-option:hover { border-color: var(--primary); }
.payment-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.payment-option:has(input:checked) { border-color: var(--primary); background: rgba(255, 46, 99, 0.05); box-shadow: var(--input-focus-ring); }
.checkout-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    position: sticky; top: 110px; align-self: start;
}
.checkout-items { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--card-border); }
.checkout-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; color: var(--text-main); }
.checkout-item small { color: var(--text-muted); }
.checkout-trust { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 0.82rem; }
.checkout-trust i { color: #10B981; }

/* ----------------------------------------------------------------- */
/* Static page                                                        */
/* ----------------------------------------------------------------- */
.static-page {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}
.page-title { font-size: 1.9rem; font-weight: 900; color: var(--text-heading); margin-bottom: 22px; padding-bottom: 16px; border-bottom: 2px solid var(--card-border); }

/* ----------------------------------------------------------------- */
/* Error pages                                                        */
/* ----------------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.error-code.error-500 {
    background: linear-gradient(135deg, #EF4444 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.error-title { font-size: 1.8rem; font-weight: 900; color: var(--text-heading); margin-bottom: 12px; }
.error-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 1.05rem; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------- */
/* Responsive                                                         */
/* ----------------------------------------------------------------- */
@media (min-width: 768px) {
    .header-nav { display: block; }
    .mobile-bottom-bar { display: none; }
    body { padding-bottom: 0; }
}

@media (max-width: 992px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-main-card h1 { font-size: 2.1rem; }
    .product-detail { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .shop-filter-card { position: static; }
    .cart-summary, .checkout-summary { position: static; }
}

@media (max-width: 640px) {
    .header-main { flex-wrap: wrap; }
    .search-box { order: 3; flex-basis: 100%; max-width: 100%; }
    .btn-auth span { display: none; }
    .cart-btn span:not(.cart-badge) { display: none; }
    .product-detail { padding: 18px; }
    .product-detail-title { font-size: 1.3rem; }
    .form-grid { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 60px 1fr auto; row-gap: 8px; }
    .cart-row-qty { grid-column: 2; }
    .cart-row-total { grid-column: 3; }
    .cart-row-remove { grid-column: 3; grid-row: 1; }
    .error-code { font-size: 5rem; }
}

/* ----------------------------------------------------------------- */
/* Dark-mode auto toggle (when color_mode=auto)                      */
/* ----------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    body.auto-mode:not(.force-light) {
        /* JS will add .dark-mode and load dark.css */
    }
}

/* === HAMBURGER MENU (mobile) === */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}
.mobile-menu-toggle:hover {
    background: var(--bg-body);
    color: var(--primary);
}

@media (max-width: 767px) {
    .mobile-menu-toggle { display: flex; align-items: center; }
    .header-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--card-bg);
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
        z-index: 9999;
        padding: 80px 16px 20px;
        overflow-y: auto;
        flex-direction: column;
    }
    .header-nav.mobile-open {
        display: flex;
    }
    .header-nav .nav-container {
        flex-direction: column;
        gap: 0;
    }
    .header-nav .nav-item {
        padding: 14px 12px;
        border-bottom: 1px solid var(--card-border);
        justify-content: flex-start;
    }
    .search-box {
        display: none !important;
    }
    .header-main {
        padding: 12px 16px;
    }
    .logo {
        font-size: 1.4rem;
    }
    .btn-auth span, .cart-btn span {
        display: none;
    }
}

/* === PRODUCT CARD SPACING FIX === */
.product-card {
    padding: 16px;
}
.product-thumb img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-md);
}

/* === NAV DROPDOWN (Issue #4) === */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 1000;
    padding: 8px 0;
    flex-direction: column;
    gap: 0;
}
.nav-dropdown-wrapper:hover .nav-dropdown {
    display: flex;
}
.nav-dropdown .nav-item {
    padding: 10px 16px;
    border: none;
    font-size: 0.85rem;
}
.nav-dropdown .nav-item:hover {
    background: var(--bg-body, #F4F7FE);
}

/* === ACTIVE MENU (Issue #8) === */
.nav-item.active {
    color: var(--primary);
    font-weight: 800;
}
.nav-item.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin-top: 2px;
}

/* === FLASH SALE PRO (Issue #9) === */
.hero-side-card {
    position: relative;
    overflow: hidden;
}
.hero-side-card .flash-product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.flash-timer-display {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 10px 0;
}
.flash-timer-unit {
    background: var(--dark-bg, #0F172A);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    min-width: 40px;
    text-align: center;
}
.flash-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 700;
}
.flash-progress-bar {
    height: 10px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
}
.flash-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 24px 0;
}
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.product-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #F8FAFC;
}
.product-detail-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}
.product-detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.product-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stock-status.in-stock { color: #16a34a; }
.stock-status.out-stock { color: #dc2626; }
.stock-status i { font-size: 0.5rem; }

/* === SHOP SIDEBAR (Issue #10) === */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin: 20px 0;
}
.shop-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
    align-self: start;
}
.shop-sidebar h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    color: var(--text-main);
}
.filter-list {
    list-style: none;
    margin-bottom: 20px;
}
.filter-list li {
    margin-bottom: 6px;
}
.filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px 0;
}
.filter-list input[type="checkbox"] {
    accent-color: var(--primary);
}
.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-range input {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.8rem;
}
.filter-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
}
.sort-select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        position: static;
    }
}

/* === PROFILE PAGE STYLING (Issue #5) === */
.profile-page {
    max-width: 800px;
    margin: 20px auto;
}
.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}
.profile-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-card h2::before {
    content: '';
    width: 6px;
    height: 22px;
    background: var(--primary-gradient);
    border-radius: 6px;
}
.profile-field {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.9rem;
}
.profile-field:last-child { border-bottom: none; }
.profile-field .label { color: var(--text-muted); font-weight: 600; }
.profile-field .value { color: var(--text-main); font-weight: 700; }
.profile-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.profile-orders-table th {
    background: var(--bg-body, #F4F7FE);
    padding: 10px;
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
}
.profile-orders-table td {
    padding: 10px;
    border-bottom: 1px solid #E2E8F0;
    color: var(--text-main);
}
.order-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}
.order-status-badge.pending { background: #FEF3C7; color: #92400E; }
.order-status-badge.processing { background: #DBEAFE; color: #1E40AF; }
.order-status-badge.shipped { background: #D1FAE5; color: #065F46; }
.order-status-badge.completed { background: #D1FAE5; color: #065F46; }
.order-status-badge.cancelled { background: #FEE2E2; color: #991B1B; }
