﻿:root {
    --pink: #e91e8c;
    --pink-dark: #c2177a;
    --pink-light: #fce4f3;
    --cream: #fffaf7;
    --ink: #1a1018;
    --muted: #7a6e76;
    --border: #f0e8ed;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
}

.display-font {
    font-family: 'Playfair Display', serif;
}

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
    background: #fff;
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--pink);
    cursor: pointer;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.location-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--muted);
    background: #f9f0f6;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .location-pill:hover {
        background: var(--pink-light);
    }

.search-wrap {
    flex: 1;
    position: relative;
    max-width: 640px;
}

.search-input {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 11px 20px 11px 48px;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

    .search-input:focus {
        border-color: var(--pink);
        background: #fff;
    }

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-icon-btn {
    position: relative;
    font-size: 1.3rem;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}

    .nav-icon-btn:hover {
        color: var(--pink);
    }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--pink);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.6);
    }

    100% {
        transform: scale(1);
    }
}

.badge-pop {
    animation: badgePop 0.3s cubic-bezier(.36,.07,.19,.97);
}

/* ── CATEGORY NAV ──────────────────────────── */
.cat-nav {
    background: var(--ink);
    overflow-x: auto;
    scrollbar-width: none;
}

    .cat-nav::-webkit-scrollbar {
        display: none;
    }

.cat-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    height: 46px;
    align-items: center;
}

.cat-link {
    color: #ccc;
    font-size: 0.83rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

    .cat-link:hover, .cat-link.active {
        color: #fff;
        border-bottom-color: var(--pink);
    }

    .cat-link.fire {
        color: #fb923c;
        font-weight: 700;
    }

/* ── HERO SLIDER ────────────────────────────── */
.hero-wrap {
    position: relative;
    overflow: hidden;
    background: #1a1018;
}

.hero-skeleton {
    height: 500px;
    background: linear-gradient(90deg, #2a1f26 25%, #3a2f36 50%, #2a1f26 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.slides-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 500px;
    position: relative;
    flex-shrink: 0;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    color: #fff;
}

.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.slide-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

.slide-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--pink);
    color: #fff;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: 'DM Sans', sans-serif;
}

    .btn-primary:hover {
        background: var(--pink-dark);
        transform: translateY(-2px);
    }

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'DM Sans', sans-serif;
}

    .btn-outline:hover {
        background: rgba(255,255,255,0.15);
    }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .slider-arrow:hover {
        background: rgba(255,255,255,0.4);
    }

    .slider-arrow.left {
        left: 1.5rem;
    }

    .slider-arrow.right {
        right: 1.5rem;
    }

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    width: 8px;
}

    .dot.active {
        background: var(--pink);
        width: 28px;
    }

/* ── FLASH SALE ──────────────────────────────── */
.flash-bar {
    background: linear-gradient(90deg, #b91c1c, #e11d48);
    color: #fff;
    padding: 14px 1.5rem;
}

.flash-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flash-text {
    font-size: 0.95rem;
}

    .flash-text strong {
        font-size: 1.1rem;
    }

.countdown {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ── SECTION WRAPPER ─────────────────────────── */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .view-all:hover {
        text-decoration: underline;
    }

/* ── PRODUCT GRID ────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 860px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 580px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* skeleton */
.skel-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--border);
}

.skel-img {
    height: 200px;
    background: #f0e8ed;
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
}

.skel-body {
    padding: 1rem;
}

.skel-line {
    height: 12px;
    border-radius: 6px;
    background: #f0e8ed;
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
    margin-bottom: 10px;
}

    .skel-line.w75 {
        width: 75%;
    }

    .skel-line.w50 {
        width: 50%;
    }

.skel-btn {
    height: 40px;
    border-radius: 10px;
    background: #f0e8ed;
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
}

/* product card */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 48px rgba(233,30,140,0.12);
    }

.card-img-wrap {
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .card-img {
    transform: scale(1.06);
}

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-stock {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
}

.badge-out {
    background: #6b7280;
}

.badge-low {
    background: #f97316;
}

.card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 0.9rem;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pink);
    font-family: 'Playfair Display', serif;
}

.card-old {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: line-through;
}

.card-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-add {
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'DM Sans', sans-serif;
}

    .btn-add:hover:not(:disabled) {
        background: var(--pink-dark);
    }

    .btn-add:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-buy {
    background: transparent;
    color: var(--pink);
    border: 1.5px solid var(--pink);
    border-radius: 10px;
    padding: 10px 0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'DM Sans', sans-serif;
}

    .btn-buy:hover {
        background: var(--pink-light);
    }

/* ── CATEGORIES ──────────────────────────────── */
.cat-grid-section {
    background: #fff;
    padding: 4rem 0;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
}

@media (max-width: 900px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 540px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cat-card {
    cursor: pointer;
    text-align: center;
    transition: transform 0.25s;
}

    .cat-card:hover {
        transform: scale(1.06);
    }

    .cat-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 18px;
        transition: box-shadow 0.25s;
    }

    .cat-card:hover img {
        box-shadow: 0 12px 32px rgba(233,30,140,0.15);
    }

    .cat-card p {
        font-weight: 600;
        font-size: 0.88rem;
        margin-top: 10px;
        color: var(--ink);
    }

/* skeleton cat */
.skel-cat-img {
    height: 160px;
    border-radius: 18px;
    background: #f0e8ed;
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
}

.skel-cat-txt {
    height: 12px;
    width: 60%;
    border-radius: 6px;
    background: #f0e8ed;
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
    margin: 10px auto 0;
}

/* ── WHY US STRIP ─────────────────────────────── */
.why-strip {
    background: var(--pink);
    color: #fff;
    padding: 2.5rem 1.5rem;
}

.why-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 700px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-item i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.why-item strong {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
}

.why-item span {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
    background: var(--ink);
    color: #a0909a;
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--pink);
    margin-bottom: 0.8rem;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    font-size: 0.83rem;
    color: #a0909a;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

    .footer-link:hover {
        color: var(--pink);
    }

.social-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0909a;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    .social-icon:hover {
        background: var(--pink);
        color: #fff;
    }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── TOAST ───────────────────────────────────── */
#toastBox {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--ink);
    color: #fff;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 0.87rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    pointer-events: auto;
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }

    .toast i {
        color: var(--pink);
    }

.toast-cart-btn {
    margin-left: 6px;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
}

    .toast-cart-btn:hover {
        background: var(--pink-dark);
    }

/* ── MOBILE SEARCH HIDE ──────────────────────── */
@media (max-width: 640px) {
    .search-wrap {
        display: none;
    }

    .location-pill {
        display: none;
    }
}
