/* ============================================================
   PRODUCTS PAGE — FULL UI REDESIGN (cards untouched)
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.products-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 70px;
    text-align: center;
    background: #0f0221;
}

/* Animated gradient orbs */
.products-hero::before,
.products-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.products-hero::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(194,24,91,0.55) 0%, transparent 70%);
    top: -200px; right: -100px;
    animation: heroOrb1 8s ease-in-out infinite alternate;
}
.products-hero::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(61,13,107,0.7) 0%, transparent 70%);
    bottom: -150px; left: -80px;
    animation: heroOrb2 10s ease-in-out infinite alternate;
}
@keyframes heroOrb1 { from{transform:translate(0,0) scale(1)} to{transform:translate(-60px,40px) scale(1.15)} }
@keyframes heroOrb2 { from{transform:translate(0,0) scale(1)} to{transform:translate(50px,-30px) scale(1.1)} }

/* Dot grid overlay */
.products-hero-inner {
    position: relative;
    z-index: 2;
}
.products-hero-inner::before {
    content: '';
    position: absolute;
    inset: -80px -24px;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 5px 14px;
    margin-bottom: 22px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.hero-breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb span { color: rgba(255,255,255,0.3); }

.products-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 40px rgba(194,24,91,0.4);
}

/* Gradient text accent on last word */
.products-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #ff6bb5, #c2185b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* Hero stats strip */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.hero-stat {
    padding: 10px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 3px;
}
.hero-stat span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Wave bottom */
.products-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 3;
}
.products-hero-wave svg { display: block; width: 100%; }

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar-wrap {
    background: #fff;
    border-bottom: 1px solid #ede9f6;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(15,2,33,0.08);
}
.filter-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f4fd;
    border: 1.5px solid #e8e2f5;
    border-radius: 50px;
    padding: 8px 16px;
    min-width: 185px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.filter-search-box:focus-within {
    border-color: #c2185b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(194,24,91,0.1);
}
.filter-search-box i { color: #b8aed4; font-size: 0.8rem; }
.filter-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.84rem;
    color: #2d1a4e;
    width: 120px;
}
.filter-search-box input::placeholder { color: #b8aed4; }

.filter-divider {
    width: 1px;
    height: 24px;
    background: #e8e2f5;
    flex-shrink: 0;
}

.filter-chips { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1.5px solid #e8e2f5;
    background: #fff;
    color: #7a6a9e;
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}
.filter-chip:hover { border-color: #c2185b; color: #c2185b; background: #fff5f8; }
.filter-chip.active {
    background: linear-gradient(135deg, #2d0a5e, #c2185b);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(194,24,91,0.35);
}

/* ── PAGE WRAP ────────────────────────────────────────────── */
.products-page-wrap {
    background: #f0edf8;
    background-image:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(194,24,91,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(45,10,94,0.09) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239b8ec0' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    min-height: 70vh;
    padding: 40px 0 100px;
}
.products-page-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── TOP BAR ──────────────────────────────────────────────── */
.products-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}
.products-count-label {
    font-size: 0.88rem;
    color: #9b8ec0;
    font-weight: 500;
}
.products-count-label strong { color: #1a0533; font-weight: 700; }

.sort-select {
    background: #fff;
    border: 1.5px solid #e8e2f5;
    border-radius: 50px;
    padding: 8px 36px 8px 16px;
    font-size: 0.82rem;
    color: #4a3570;
    cursor: pointer;
    outline: none;
    font-weight: 600;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23c2185b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.sort-select:focus { border-color: #c2185b; box-shadow: 0 0 0 3px rgba(194,24,91,0.1); }

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

/* ── PRODUCT CARD ─────────────────────────────────────────── */
.pcard {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(15,2,33,0.08);
    transition: transform 0.32s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(15,2,33,0.05);
}
.pcard:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(194,24,91,0.18), 0 4px 16px rgba(15,2,33,0.08);
    border-color: rgba(194,24,91,0.12);
}

/* Badges */
.pcard-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.badge-sale {
    background: linear-gradient(135deg, #ff3366, #c2185b);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(194,24,91,0.45);
}
.badge-new {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Wishlist */
.pcard-wishlist {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 5;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.88rem;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(6px);
}
.pcard-wishlist:hover { color: #c2185b; transform: scale(1.15); background: #fff; }
.pcard-wishlist.active { color: #c2185b; }

/* Image area */
.pcard-img-wrap {
    position: relative;
    background: linear-gradient(145deg, #fdf3ff 0%, #fff0f6 55%, #f5f0ff 100%);
    padding: 28px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    overflow: hidden;
    cursor: zoom-in;
    transition: background 0.3s ease;
}
.pcard:hover .pcard-img-wrap {
    background: linear-gradient(145deg, #fce8ff 0%, #ffe0ee 55%, #ede8ff 100%);
}
.pcard-img-wrap::before {
    content: '';
    position: absolute;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(194,24,91,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease;
}
.pcard:hover .pcard-img-wrap::before { transform: translate(-50%, -50%) scale(1.4); }

/* Zoom hint */
.pcard-img-wrap::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px; right: 10px;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.88);
    border-radius: 50%;
    font-size: 0.7rem;
    color: #c2185b;
    opacity: 0;
    transition: opacity 0.2s ease;
    line-height: 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.pcard:hover .pcard-img-wrap::after { opacity: 1; }

.pcard-img {
    width: 100%;
    max-width: 170px;
    height: 180px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.34,1.4,0.64,1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.14));
}
.pcard:hover .pcard-img { transform: scale(1.1) translateY(-6px); }

/* Thumbnails */
.pcard-thumbs {
    display: flex;
    gap: 5px;
    justify-content: center;
    padding: 8px 14px 0;
    background: #fff;
}
.pcard-thumb {
    width: 34px; height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.55;
}
.pcard-thumb:hover, .pcard-thumb.active {
    border-color: #c2185b;
    opacity: 1;
    transform: scale(1.08);
}

/* Body */
.pcard-body {
    padding: 14px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pcard-category {
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #c2185b;
    margin-bottom: 5px;
}
.pcard-name {
    font-size: 0.97rem;
    font-weight: 700;
    color: #1a0533;
    line-height: 1.4;
    margin: 0 0 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description + read more */
.pcard-desc-wrap { margin-bottom: 10px; }
.pcard-desc {
    font-size: 0.8rem;
    color: #9b8ec0;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}
.pcard-desc.expanded {
    -webkit-line-clamp: unset;
    display: block;
}
.pcard-read-more {
    background: none;
    border: none;
    color: #c2185b;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 3px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: opacity 0.2s;
}
.pcard-read-more:hover { opacity: 0.75; }

/* Rating */
.pcard-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}
.pcard-stars { color: #f59e0b; font-size: 0.78rem; letter-spacing: 0.5px; }
.pcard-rating-count { font-size: 0.72rem; color: #b8aed4; }

/* Price */
.pcard-price-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pcard-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a0533;
    letter-spacing: -0.5px;
}
.pcard-price-original {
    font-size: 0.83rem;
    color: #c4bcd8;
    text-decoration: line-through;
    font-weight: 500;
}
.pcard-save {
    font-size: 0.7rem;
    color: #00b894;
    font-weight: 700;
    background: #e6faf5;
    padding: 2px 8px;
    border-radius: 50px;
}

/* Add to Cart */
.pcard-btn {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #1a0533 0%, #c2185b 100%);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(194,24,91,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
}
.pcard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(194,24,91,0.45);
    background: linear-gradient(135deg, #c2185b 0%, #1a0533 100%);
}
.pcard-btn:active { transform: translateY(0); }

/* ── SKELETON ─────────────────────────────────────────────── */
.skeleton-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15,2,33,0.06);
}
.skeleton-img {
    height: 230px;
    background: linear-gradient(90deg, #ede9f8 25%, #e4dff5 50%, #ede9f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 14px 18px 20px; }
.skeleton-line {
    height: 11px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ede9f8 25%, #e4dff5 50%, #ede9f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 9px;
}
.skeleton-line.short { width: 42%; }
.skeleton-line.medium { width: 68%; }
.skeleton-btn {
    height: 42px;
    border-radius: 50px;
    background: linear-gradient(90deg, #ede9f8 25%, #e4dff5 50%, #ede9f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-top: 12px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(15,2,33,0.06);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.3; }
.empty-state h3 { font-size: 1.3rem; color: #1a0533; margin-bottom: 8px; font-weight: 700; }
.empty-state p { color: #9b8ec0; font-size: 0.9rem; margin-bottom: 20px; }
.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    background: linear-gradient(135deg, #1a0533, #c2185b);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(194,24,91,0.3);
}
.empty-state-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(194,24,91,0.4); }

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10,2,25,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(8px);
}
.img-lightbox.open { opacity: 1; pointer-events: all; }
.img-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.img-lightbox img {
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), opacity 0.15s ease;
}
.img-lightbox.open img { transform: scale(1); }
.img-lightbox-close {
    position: absolute;
    top: -44px; right: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none; color: #fff;
    font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.img-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.img-lightbox-thumbs {
    display: flex; gap: 8px;
    justify-content: center; flex-wrap: wrap;
}
.img-lightbox-thumbs img {
    width: 52px; height: 52px;
    object-fit: cover; border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer; opacity: 0.6;
    transition: all 0.2s;
    max-width: unset; max-height: unset;
    box-shadow: none; transform: none !important;
}
.img-lightbox-thumbs img:hover,
.img-lightbox-thumbs img.active { border-color: #c2185b; opacity: 1; }
.img-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none;
    color: #fff; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.img-lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.img-lightbox-nav.prev { left: -52px; }
.img-lightbox-nav.next { right: -52px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .products-grid-modern { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
    .hero-stats { display: none; }
}
@media (max-width: 600px) {
    .products-hero { padding: 56px 16px 48px; }
    .products-page-inner { padding: 0 14px; }
    .products-page-wrap { padding: 20px 0 60px; }
    .filter-bar-inner { padding: 0 14px; height: 56px; }
    .products-grid-modern { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .img-lightbox-nav { display: none; }
}

