/* ════════════════════════════════════════════════════
   ICORSTORE — category.css
   Shared styles for all category pages
   Light theme — cream/white background
════════════════════════════════════════════════════ */

/* ── BODY / PAGE ── */
body.category-page {
    background: #F5F0E8;
    color: #1a1a2e;
}

/* ── CART DRAWER — force correct colors on light pages ── */
body.category-page #cartDrawer,
body.category-page #cartDrawer * {
    color: inherit;
}
body.category-page #cartDrawer {
    background: #0D1C30 !important;
    color: #F4EFE4 !important;
}
body.category-page #cartDrawer .cart-item-name,
body.category-page #cartDrawer .cart-item-price,
body.category-page #cartDrawer div[style*="F4EFE4"],
body.category-page #cartDrawer div[style*="Barlow"] {
    color: #F4EFE4 !important;
}
body.category-page #cartDrawer div[style*="rgba(244,239,228"] {
    color: rgba(244,239,228,0.5) !important;
}
/* Cart backdrop */
body.category-page #cartBackdrop {
    background: rgba(0,0,0,0.65) !important;
}

/* ── LIGHT HEADER ── */
.site-header.light-header {
    background: #fff !important;
    border-bottom: 1px solid #e8e0d0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.dark-logo .logo-store { color: #0D1C30 !important; }
.dark-logo .logo-store span { color: #C8973A !important; }
.dark-logo .logo-sub { color: #999 !important; }
.dark-emblem { background: #0D1C30 !important; }
.dark-nav a { color: rgba(244,239,228,0.95) !important; }
body.category-page .main-nav a,
body.category-page .main-nav .nav-dropdown-trigger { color: rgba(244,239,228,0.90) !important; }
body.category-page .main-nav a:hover,
body.category-page .main-nav a.active { color: #C8973A !important; }
.dark-nav .nav-dropdown-trigger { color: rgba(244,239,228,0.95) !important; }
.dark-nav a:hover,
.dark-nav a.active { color: #C8973A !important; }
.dark-icon { color: #0D1C30 !important; }
.dark-burger span { background: #0D1C30 !important; }
.cart-bubble { background: #C8940A !important; color: #fff !important; }

/* ── CATEGORY HERO ── */
.cat-hero {
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cat-hero-men    { background: linear-gradient(135deg, #0D1C30 0%, #1a2e4a 100%); }
.cat-hero-women  { background: linear-gradient(135deg, #2c0d1e 0%, #4a1a33 100%); }
.cat-hero-boys   { background: linear-gradient(135deg, #0d2030 0%, #1a3a55 100%); }
.cat-hero-girls  { background: linear-gradient(135deg, #2c1a0d 0%, #4a3020 100%); }
.cat-hero-hats   { background: linear-gradient(135deg, #1a2c0d 0%, #2a4a1a 100%); }
.cat-hero-home   { background: linear-gradient(135deg, #1a1a0d 0%, #302c1a 100%); }

.cat-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(200,151,58,0.12) 0%, transparent 70%);
}

.cat-breadcrumb {
    font-family: 'Barlow', sans-serif;
    font-size: 12px; color: rgba(244,239,228,0.4);
    display: flex; gap: 8px; align-items: center;
    justify-content: center; margin-bottom: 24px;
    position: relative; z-index: 1;
}
.cat-breadcrumb a {
    color: rgba(200,151,58,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.cat-breadcrumb a:hover { color: #C8973A; }

.cat-icon-wrap {
    font-size: 56px;
    margin-bottom: 16px;
    position: relative; z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.cat-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700; color: #F4EFE4;
    margin-bottom: 12px; line-height: 1.1;
    position: relative; z-index: 1;
}

.cat-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 15px; color: rgba(244,239,228,0.55);
    max-width: 520px; margin: 0 auto 16px;
    line-height: 1.6;
    position: relative; z-index: 1;
}

.cat-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: rgba(200,151,58,0.7);
    position: relative; z-index: 1;
}

/* ── SORT BAR ── */
.sort-bar {
    background: #fff;
    border-bottom: 1px solid #e8e0d0;
    position: sticky; top: 72px; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sort-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 12px 0; gap: 16px;
    flex-wrap: wrap;
}
.sort-left { display: flex; align-items: center; gap: 8px; }
.sort-label {
    font-family: 'Barlow', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 1px; color: #999;
}
.sort-btn {
    font-family: 'Barlow', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 1px; color: #666;
    background: none; border: 1px solid #e0d8cc;
    padding: 6px 14px; border-radius: 2px;
    cursor: pointer; transition: all 0.2s;
}
.sort-btn:hover { border-color: #C8973A; color: #C8973A; }
.sort-btn.active {
    background: #0D1C30; color: #C8973A;
    border-color: #0D1C30;
}
.result-count {
    font-family: 'Barlow', sans-serif;
    font-size: 12px; color: #aaa;
    letter-spacing: 1px;
}

/* ── PRODUCTS SECTION ── */
.products-section.light-section {
    padding: 48px 0 80px;
    background: #F5F0E8;
}

/* ── PRODUCT GRID ── */
.product-grid.light-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* ── PRODUCT CARD — LIGHT ── */
.product-card.light-card {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}
.product-card.light-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card-image.light-card-image {
    height: 260px;
    background: #f0ebe0;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.card-image.light-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card.light-card:hover .card-image.light-card-image img {
    transform: scale(1.04);
}

.card-overlay {
    position: absolute; inset: 0;
    background: rgba(13,28,48,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.product-card.light-card:hover .card-overlay { opacity: 1; }
.overlay-btn {
    background: #C8973A; color: #0D1C30;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 12px 28px; border: none; cursor: pointer;
    transition: background 0.2s;
}
.overlay-btn:hover { background: #e0a940; }

.card-body.light-card-body { padding: 16px 18px 18px; }
.card-cat.light-cat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: #C8973A; margin-bottom: 6px;
}
.card-name.light-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px; font-weight: 700;
    color: #0D1C30; margin-bottom: 12px;
    line-height: 1.3;
}
.card-footer.light-footer {
    display: flex; align-items: center;
    justify-content: space-between;
}
.card-price.light-price {
    font-family: 'Barlow', sans-serif;
    font-size: 18px; font-weight: 700;
    color: #0D1C30;
}
.card-add-btn.light-add {
    width: 36px; height: 36px;
    background: #0D1C30; color: #C8973A;
    border: none; border-radius: 50%;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.card-add-btn.light-add:hover {
    background: #C8973A; color: #0D1C30;
    transform: scale(1.1);
}

/* ── 250 LIMITED EDITION BADGE ── */
.limited-ribbon {
    position: absolute;
    top: 0; left: 0;
    z-index: 10;
    width: 80px; height: 80px;
    overflow: hidden;
    pointer-events: none;
}
.limited-ribbon::before {
    content: '★ LIMITED';
    white-space: nowrap;
    position: absolute;
    top: 14px; left: -22px;
    width: 90px;
    background: linear-gradient(135deg, #C8973A, #e0a940);
    color: #0D1C30;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 8px; font-weight: 800;
    letter-spacing: 1px; text-align: center;
    line-height: 1.4; padding: 4px 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.limited-label {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #C8973A, #e0a940);
    color: #0D1C30;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 2px;
    margin-top: 4px; margin-bottom: 2px;
    width: fit-content;
}
.limited-label::before { content: '⭐'; font-size: 8px; }
.skeleton-card {
    background: linear-gradient(90deg, #ede8df 25%, #e0dbd1 50%, #ede8df 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    height: 340px; border-radius: 3px;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── TRUST BAR ── */
.trust-bar.light-trust {
    background: #fff;
    border-top: 1px solid #e8e0d0;
    border-bottom: 1px solid #e8e0d0;
    padding: 32px 0;
}
.trust-bar.light-trust .trust-title { color: #0D1C30 !important; }
.trust-bar.light-trust .trust-desc  { color: #999 !important; }

/* ── EMPTY STATE ── */
.empty-state-light {
    text-align: center; padding: 80px 20px;
}
.empty-state-light .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state-light .empty-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px; letter-spacing: 3px; color: #bbb;
    margin-bottom: 8px;
}
.empty-state-light .empty-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 14px; color: #ccc;
}

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
    .product-grid.light-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .sort-inner { flex-direction: column; align-items: flex-start; }
}
@media(max-width: 480px) {
    .product-grid.light-grid { grid-template-columns: 1fr; }
}

/* ── FIX: restore logo text color on dark header (category pages) ── */
body.category-page .dark-text {
    color: var(--cream) !important;
}
body.category-page .dark-sub {
    color: var(--muted) !important;
}
body.category-page .dark-emblem {
    background: rgba(200,151,58,0.07) !important;
}
