* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif; }
:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --dark: #1a1a2e;
    --accent: #ffd166;
}
body { background:#f5f7fa; color:#333; line-height:1.6; }

/* ══ SHOW/HIDE HELPERS ══ */
.mobile-only  { display: none; }
.desktop-only { display: block; }

/* ══════════════════════════════════════
   DESKTOP STYLES  (>= 601px)
══════════════════════════════════════ */
.desktop-header {
    position: sticky; top:0; z-index:100;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color:white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0 1.5rem;
}
.header-content {
    display:flex; align-items:center; justify-content:space-between;
    gap:1.5rem; min-height:65px; max-width:1400px; margin:0 auto;
    position:relative;
}
.desktop-search {
    display:flex; align-items:center; gap:0.6rem;
    background:rgba(255,255,255,0.18);
    border:1px solid rgba(255,255,255,0.32);
    border-radius:30px;
    padding:0.55rem 1.1rem;
    /* No longer stretches from the far left edge. Instead it sits
       toward the middle/right of the header, close to the profile,
       About and cart cluster (margin-left:auto pushes it away from
       the empty left side; max-width keeps it from touching nav-links
       flush, so there's still a visible gap between search and icons). */
    flex:0 1 460px;
    width:100%;
    max-width:460px;
    margin-left:auto;
    transition:background 0.2s, border-color 0.2s;
}
.desktop-search:focus-within {
    background:rgba(255,255,255,0.28);
    border-color:rgba(255,255,255,0.6);
}
.desktop-search i { color:rgba(255,255,255,0.9); font-size:0.9rem; flex-shrink:0; }
.desktop-search input {
    background:transparent; border:none; outline:none;
    color:#fff; font-size:0.9rem; width:100%; font-family:inherit;
}
.desktop-search input::placeholder { color:rgba(255,255,255,0.75); }

.nav-links { display:flex; gap:1rem; align-items:center; }
.nav-links a {
    color:white; text-decoration:none; font-weight:500; font-size:0.95rem;
    padding:0.4rem 0.7rem; border-radius:4px; transition:background 0.3s;
}
.nav-links a:hover, .nav-links a.active { background:rgba(255,255,255,0.2); }
.profile-icon {
    display:flex; align-items:center; gap:0.4rem;
    font-size:1.4rem; color:white; text-decoration:none;
    padding:0.3rem 0.7rem 0.3rem 0.5rem; border-radius:30px;
    transition:background 0.3s;
}
.profile-icon:hover { background:rgba(255,255,255,0.2); }
.profile-icon .profile-label {
    font-size:0.9rem; font-weight:600; white-space:nowrap;
}
.profile-icon img {
    width:28px; height:28px; border-radius:50%;
    object-fit:cover; border:2px solid rgba(255,255,255,0.85);
}
.cart-icon {
    position:relative; cursor:pointer; font-size:1.6rem; color:white;
}
.cart-count {
    position:absolute; top:-8px; right:-8px;
    background:var(--accent); color:var(--dark);
    border-radius:50%; width:20px; height:20px;
    display:flex; align-items:center; justify-content:center;
    font-size:0.75rem; font-weight:bold;
}
.header-right-icons { display:flex; align-items:center; gap:1.2rem; }
.wishlist-icon {
    position:relative; cursor:pointer; font-size:1.5rem; color:white;
    transition: transform 0.2s;
}
.wishlist-icon:hover { transform:scale(1.08); }
.wishlist-badge {
    position:absolute; top:-8px; right:-8px;
    background:var(--accent); color:var(--dark);
    border-radius:50%; width:20px; height:20px;
    display:flex; align-items:center; justify-content:center;
    font-size:0.75rem; font-weight:bold;
}
.notif-icon {
    position:relative; cursor:pointer; font-size:1.5rem; color:white;
    transition: transform 0.2s;
}
.notif-icon:hover { transform:scale(1.08); }
.notif-badge {
    position:absolute; top:-8px; right:-8px;
    background:var(--accent); color:var(--dark);
    border-radius:50%; width:20px; height:20px;
    display:flex; align-items:center; justify-content:center;
    font-size:0.75rem; font-weight:bold;
}

/* Desktop hero */
.desktop-hero {
    position:relative; overflow:hidden;
    background:#57575d center/cover; /* fallback color/photo if the video can't load */
    height:480px; display:flex; align-items:center; justify-content:center;
    text-align:center; color:white; gap:2rem; padding:2rem;
    margin-bottom:2rem;
}
.hero-video {
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover; object-position:center;
    z-index:0;
}
.hero-overlay {
    position:absolute; inset:0;
    background:rgba(0,0,0,0.55);
    z-index:1;
}
.home-img, .hero-content { position:relative; z-index:2; }
.home-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-img img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.hero-content { max-width:600px; }
.hero-content h1 { font-size:3rem; margin-bottom:1rem; text-shadow:2px 2px 4px rgba(0,0,0,0.5); }
.typed-accent { color: var(--accent); }
.typed-cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--accent);
    animation: heroCursorBlink 0.8s step-end infinite;
}
@keyframes heroCursorBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}
.hero-content p  { font-size:1.1rem; margin-bottom:1.5rem; }
.btn {
    display:inline-block; background:var(--accent); color:var(--dark);
    padding:12px 28px; border-radius:30px; text-decoration:none;
    font-weight:600; font-size:1rem; transition:all 0.3s;
}
.btn:hover { transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,0.15); }

/* Shared container */
.container { max-width:1400px; margin:0 auto; padding:0 1.5rem; }
.section-title {
    text-align:center; margin:2rem 0 2.5rem;
    font-size:2.2rem; color:var(--dark); position:relative;
}
.section-title::after {
    content:''; position:absolute; bottom:-8px; left:50%; transform:translateX(-50%);
    width:70px; height:4px; background:var(--primary); border-radius:2px;
}

/* Categories */
.categories {
    display:flex; justify-content:center; gap:1rem;
    margin-bottom:2.5rem; flex-wrap:wrap;
}
.category-btn {
    padding:9px 22px; background:white; border:2px solid #e0e0e0;
    border-radius:30px; cursor:pointer; font-weight:500; font-size:0.9rem;
    transition:all 0.3s;
}
.category-btn:hover, .category-btn.active {
    background:var(--primary); color:white; border-color:var(--primary);
}

/* Products grid — desktop */
.products-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
    gap:1rem; margin-bottom:4rem;
    scroll-margin-top: 80px; /* clears the sticky header when jumped to via search */
}
.product-card {
    background:white; border-radius:8px; overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.07); transition:transform 0.3s;
}
.product-card:hover { transform:translateY(-6px); }
.product-image { height:150px; overflow:hidden; background:#f0f0f0; }
.product-image img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.product-card:hover .product-image img { transform:scale(1.08); }
.product-info { padding:0.7rem 0.8rem; }
.product-category { color:var(--primary); font-size:0.68rem; text-transform:uppercase; font-weight:600; margin-bottom:3px; }
.product-name  { font-size:0.85rem; color:var(--dark); margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.product-price { font-size:1rem; font-weight:700; color:var(--dark); margin:6px 0; }
.product-actions { display:flex; justify-content:flex-end; }
.add-to-cart {
    background:var(--secondary); color:white; border:none;
    padding:6px 14px; border-radius:30px; cursor:pointer;
    font-weight:600; font-size:0.78rem; transition:background 0.3s;
}
.add-to-cart:hover { background:#3dbdb4; }

/* Cart panel */
.cart-container {
    position:fixed; top:0; right:-420px; width:390px; height:100vh;
    background:white; box-shadow:-5px 0 15px rgba(0,0,0,0.12);
    z-index:1000; transition:right 0.4s ease; display:flex; flex-direction:column;
}
.cart-container.active { right:0; }
.cart-header {
    padding:1.2rem 1.5rem; background:var(--primary); color:white;
    display:flex; justify-content:space-between; align-items:center;
}
.close-cart { background:none; border:none; color:white; font-size:1.4rem; cursor:pointer; }
.cart-items  { flex:1; overflow-y:auto; padding:1.2rem 1.5rem; }
.cart-item   { display:flex; gap:1rem; padding:1rem 0; border-bottom:1px solid #eee; transition:opacity 0.2s; }
.cart-item.unselected { opacity:0.45; }
.cart-item-checkbox {
    display:flex; align-items:flex-start; padding-top:2px; flex-shrink:0;
}
.cart-item-checkbox input {
    width:19px; height:19px; cursor:pointer; accent-color:var(--primary);
}
.cart-select-all-row {
    display:flex; align-items:center; justify-content:space-between;
    padding:0 0 0.8rem; margin-bottom:0.8rem; border-bottom:1px solid #eee;
}
.cart-select-all {
    display:flex; align-items:center; gap:8px; font-size:0.85rem; font-weight:600;
    color:#333; cursor:pointer; user-select:none;
}
.cart-select-all input { width:17px; height:17px; cursor:pointer; accent-color:var(--primary); }
.cart-select-count { font-size:0.78rem; color:#999; }
.cart-item-image { width:75px; height:75px; border-radius:8px; overflow:hidden; background:#f0f0f0; flex-shrink:0; }
.cart-item-image img { width:100%; height:100%; object-fit:cover; }
.cart-item-details { flex:1; }
.cart-item-name  { font-weight:600; margin-bottom:4px; font-size:0.95rem; }
.cart-item-price { color:var(--primary); font-weight:700; margin-bottom:6px; }
.cart-item-controls { display:flex; align-items:center; gap:0.5rem; }
.quantity-btn {
    width:28px; height:28px; border-radius:50%; border:1px solid #ddd;
    background:white; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.quantity { min-width:28px; text-align:center; }
.remove-item { color:#ff6b6b; background:none; border:none; cursor:pointer; margin-left:auto; }
.cart-footer { padding:1.2rem 1.5rem; border-top:1px solid #eee; }
.delivery-note {
    display:flex; align-items:center; gap:8px;
    background:#f6f7fb; border:1px solid #ececf4; border-radius:8px;
    padding:10px 12px; margin-bottom:1rem; font-size:0.8rem; color:#555;
}
.delivery-note i { color:var(--secondary); font-size:1rem; flex-shrink:0; }
.delivery-note span { flex:1; }
.delivery-note a {
    color:var(--primary); font-weight:600; text-decoration:none; font-size:0.78rem;
    white-space:nowrap;
}
.delivery-note a:hover { text-decoration:underline; }
.delivery-note.missing { background:#fff5f3; border-color:#ffd6cf; color:#c0392b; }
.delivery-note.missing i { color:#ff6b6b; }
.cart-total  { display:flex; justify-content:space-between; font-size:1.15rem; font-weight:700; margin-bottom:1.2rem; }
.checkout-btn {
    width:100%; padding:13px; background:var(--primary); color:white;
    border:none; border-radius:8px; font-size:1rem; font-weight:600;
    cursor:pointer; transition:background 0.3s;
}
.checkout-btn:hover { background:#ff5252; }
.checkout-btn:disabled { background:#ddd; color:#999; cursor:not-allowed; }
.checkout-btn:disabled:hover { background:#ddd; }
.cart-empty { text-align:center; padding:2rem; color:#888; }
.cart-empty i { font-size:2.5rem; margin-bottom:1rem; color:#ddd; display:block; }

.overlay {
    position:fixed; inset:0; background:rgba(0,0,0,0.5);
    z-index:999; opacity:0; visibility:hidden; transition:all 0.4s;
}
.overlay.active { opacity:1; visibility:visible; }

/* Desktop footer */
.desktop-footer {
    background:var(--dark); color:white;
    padding:3rem 0 1.5rem; margin-top:3rem;
}
.footer-content {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:2rem; max-width:1400px; margin:0 auto; padding:0 1.5rem;
}
.footer-column h3 {
    font-size:1.2rem; margin-bottom:1.2rem;
    padding-bottom:0.5rem; position:relative;
}
.footer-column h3::after {
    content:''; position:absolute; bottom:0; left:0;
    width:40px; height:3px; background:var(--primary);
}
.footer-links { list-style:none; }
.footer-links li { margin-bottom:0.7rem; font-size:0.9rem; color:#bbb; }
.footer-links a { color:#bbb; text-decoration:none; transition:color 0.3s; }
.footer-links a:hover { color:var(--accent); }
.footer-links li i { margin-right:6px; }
.social-links { display:flex; gap:0.8rem; margin-top:1rem; flex-wrap:wrap; }
.social-links a {
    display:flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:50%;
    background:rgba(255,255,255,0.1); color:white; transition:all 0.3s;
}
.social-links a:hover { background:var(--primary); transform:translateY(-3px); }
.desktop-footer marquee { color:#aaa; font-size:0.8rem; padding:0.8rem 1.5rem; display:block; }
.copyright { text-align:center; padding-top:1.5rem; margin-top:1.5rem; border-top:1px solid rgba(255,255,255,0.1); color:#aaa; font-size:0.85rem; }

/* Hide mobile elements on desktop */
.mobile-header, .mobile-banner, .flash-bar,
.mobile-bottom-nav { display:none; }


/* ══════════════════════════════════════
   MOBILE STYLES  (<= 600px)
══════════════════════════════════════ */
@media (max-width: 600px) {
    /* swap visibility */
    .mobile-only  { display: block; }
    .desktop-only { display: none !important; }
    .desktop-header, .desktop-hero, .desktop-footer { display:none !important; }
    .mobile-header, .mobile-banner, .flash-bar, .mobile-bottom-nav { display:flex; }
    .mobile-banner { display:block; }
    .flash-bar { display:flex; }

    body { padding-bottom: 65px; background:#f0f0f0; }

    /* ── Mobile top header ── */
    .mobile-header {
        position:sticky; top:0; z-index:100;
        background:white; padding:10px 12px;
        align-items:center; gap:10px;
        box-shadow:0 2px 8px rgba(0,0,0,0.1);
    }
    .mobile-search-bar {
        flex:1; display:flex; align-items:center; gap:8px;
        background:#f2f2f2; border-radius:8px; padding:9px 12px;
    }
    .mobile-search-bar i { color:#888; font-size:0.9rem; }
    .mobile-search-bar input {
        border:none; background:transparent; outline:none;
        font-size:0.9rem; width:100%; color:#333;
    }
    .mobile-search-bar input::placeholder { color:#aaa; }
    .mobile-cart-icon {
        position:relative; font-size:1.4rem; color:var(--dark); flex-shrink:0; cursor:pointer;
    }
    .mobile-cart-count {
        position:absolute; top:-6px; right:-6px;
        background:var(--primary); color:white;
        border-radius:50%; width:17px; height:17px;
        display:flex; align-items:center; justify-content:center;
        font-size:0.65rem; font-weight:bold;
    }

    /* ── Mobile banner slider ── */
    .mobile-banner {
        position:relative; overflow:hidden; margin:0;
    }
    .banner-slide {
        display:none; padding:18px 16px;
        align-items:center; justify-content:space-between;
        min-height:150px;
        animation: fadeSlide 0.5s ease;
    }
    .banner-slide.active { display:flex; }
    @keyframes fadeSlide { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }
    .banner-text { color:white; }
    .banner-tag { font-size:0.65rem; text-transform:uppercase; background:rgba(255,255,255,0.25); display:inline-block; padding:2px 8px; border-radius:20px; margin-bottom:5px; }
    .banner-text h2 { font-size:1.3rem; margin-bottom:4px; }
    .banner-text p  { font-size:0.85rem; }
    .banner-btn {
        display:inline-block; margin-top:8px; background:white;
        color:var(--dark); padding:5px 14px; border-radius:20px;
        font-size:0.78rem; font-weight:700; text-decoration:none;
    }
    .banner-img { font-size:3.5rem; color:rgba(255,255,255,0.35); }
    .banner-dots { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); display:flex; gap:5px; }
    .dot { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,0.5); cursor:pointer; transition:background 0.3s; }
    .dot.active { background:white; }

    /* ── Flash bar ── */
    .flash-bar {
        background:#c8102e; color:white;
        padding:10px 14px; align-items:center; justify-content:space-between;
        margin:0;
    }
    .flash-left { display:flex; align-items:center; gap:8px; font-size:0.85rem; font-weight:700; }
    .flash-left i { color:#ffd166; }
    .flash-left small { background:rgba(0,0,0,0.25); padding:2px 8px; border-radius:4px; font-size:0.75rem; }
    .see-all { color:white; text-decoration:none; font-size:0.85rem; font-weight:600; }

    /* ── Container on mobile ── */
    .container { padding:10px 10px 0; }

    /* ── Categories on mobile — horizontal scroll ── */
    .categories {
        display:flex; justify-content:flex-start;
        gap:8px; margin-bottom:12px;
        overflow-x:auto; flex-wrap:nowrap;
        scrollbar-width:none; padding-bottom:4px;
    }
    .categories::-webkit-scrollbar { display:none; }
    .category-btn {
        padding:6px 14px; font-size:0.78rem; white-space:nowrap;
        flex-shrink:0; border-radius:20px;
    }

    /* ── Products grid — 2 columns like Jumia ── */
    .products-grid {
        display:grid; grid-template-columns:1fr 1fr;
        gap:8px; margin-bottom:80px;
    }
    .product-card {
        border-radius:8px;
        box-shadow:0 2px 6px rgba(0,0,0,0.08);
    }
    .product-card:hover { transform:none; }
    .product-image { height:150px; }
    .product-info { padding:8px; }
    .product-category { font-size:0.65rem; }
    .product-name  { font-size:0.82rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .product-price { font-size:0.95rem; color:var(--primary); margin:4px 0; }
    .product-actions { margin-top:4px; }
    .add-to-cart {
        width:100%; padding:6px 0; font-size:0.75rem;
        border-radius:6px; text-align:center;
    }

    /* Cart panel full width on mobile */
    .cart-container { width:100%; right:-100%; }

    /* ── Mobile bottom nav ── */
    .mobile-bottom-nav {
        position:fixed; bottom:0; left:0; right:0;
        background:white; border-top:1px solid #e0e0e0;
        display:flex; z-index:200;
        box-shadow:0 -2px 10px rgba(0,0,0,0.1);
        height:58px;
    }
    .mob-nav-item {
        flex:1; min-width:0;
        display:flex; flex-direction:column;
        align-items:center; justify-content:center;
        padding:6px 2px; text-decoration:none;
        color:#666; gap:2px;
        position:relative; text-align:center;
    }
    .mob-nav-item > i {
        font-size:1.15rem; flex-shrink:0; line-height:1;
    }
    .mob-nav-item > span.nav-label {
        font-size:0.58rem; width:100%; text-align:center;
        overflow:hidden; text-overflow:ellipsis;
        white-space:nowrap; line-height:1;
    }
    .mob-nav-item.active       { color:var(--primary); }
    .mob-nav-item.active > i   { color:var(--primary); }
    .mob-nav-badge {
        position:absolute; top:4px; left:50%;
        transform:translateX(4px);
        background:var(--primary); color:white;
        border-radius:50%; width:15px; height:15px;
        display:flex; align-items:center; justify-content:center;
        font-size:0.55rem; font-weight:bold; line-height:1;
    }
}

/* Tablet (601–900px) */
@media (min-width:601px) and (max-width:900px) {
    .products-grid { grid-template-columns:repeat(2,1fr); }
    .desktop-hero  { height:350px; }
    .hero-content h1 { font-size:2rem; }
    .footer-content { grid-template-columns:repeat(2,1fr); }
    .desktop-search { max-width:180px; }
}

/* ══════════════════════════════════════
   HEART / WISHLIST BUTTON
══════════════════════════════════════ */
.heart-btn {
    position: absolute;
    top: 8px; right: 8px;
    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;
    font-size: 1rem;
    color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.25s;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.heart-btn:hover { transform: scale(1.15); color: #ff6b6b; }
.heart-btn.active { color: #ff6b6b; background: #fff0f0; }
.heart-btn.active i { animation: heartPop 0.3s ease; }
@keyframes heartPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Mobile heart button — slightly smaller */
@media (max-width: 600px) {
    .heart-btn { width: 28px; height: 28px; font-size: 0.82rem; top: 6px; right: 6px; }
}

/* ══════════════════════════════════════
   PRODUCT DETAIL MODAL
══════════════════════════════════════ */
#productModal {
    display: none;
    position: fixed; inset: 0;
    z-index: 2500;
    align-items: flex-end;
    justify-content: center;
}
#productModal.open { display: flex; }

.pm-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}
.pm-sheet {
    position: relative;
    background: white;
    width: 100%; max-width: 560px;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    animation: sheetUp 0.35s cubic-bezier(.32,1,.23,1);
    z-index: 1;
}
@keyframes sheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* On desktop, center it like a dialog */
@media (min-width: 601px) {
    #productModal { align-items: center; }
    .pm-sheet {
        border-radius: 20px;
        max-height: 88vh;
        max-width: 520px;
        animation: dialogIn 0.3s ease;
    }
    @keyframes dialogIn {
        from { transform: scale(0.92); opacity: 0; }
        to   { transform: scale(1);    opacity: 1; }
    }
}

.pm-close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.12); border: none;
    color: #444; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: background 0.2s;
}
.pm-close:hover { background: rgba(0,0,0,0.22); }

/* Gallery */
.pm-gallery {
    width: 100%; height: 280px;
    background: #f7f7f7; overflow: hidden;
    border-radius: 24px 24px 0 0;
    position: relative;
}
@media (min-width: 601px) { .pm-gallery { height: 320px; border-radius: 20px 20px 0 0; } }

.pm-main-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.25s;
}
.pm-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: #ddd;
}

/* Thumbnails */
.pm-thumbs {
    display: flex; gap: 8px; padding: 10px 16px 0;
    overflow-x: auto; scrollbar-width: none;
}
.pm-thumbs::-webkit-scrollbar { display: none; }
.pm-thumb {
    width: 58px; height: 58px; border-radius: 10px;
    object-fit: cover; cursor: pointer; flex-shrink: 0;
    border: 2.5px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.65;
}
.pm-thumb.active, .pm-thumb:hover { border-color: var(--primary); opacity: 1; }

/* Body */
.pm-body { padding: 16px 20px 28px; }
.pm-cat {
    font-size: 0.72rem; text-transform: uppercase;
    font-weight: 700; color: var(--primary); margin-bottom: 4px;
}
.pm-name {
    font-size: 1.25rem; color: var(--dark);
    font-weight: 700; margin-bottom: 6px;
}
.pm-price {
    font-size: 1.5rem; font-weight: 800;
    color: var(--primary); margin-bottom: 6px;
}
.pm-seller {
    font-size: 0.78rem; color: #888;
    margin-bottom: 14px; display: flex; align-items: center; gap: 5px;
}
.pm-desc-label {
    font-size: 0.78rem; font-weight: 700;
    color: #aaa; text-transform: uppercase;
    margin-bottom: 6px; letter-spacing: 0.5px;
}
.pm-desc {
    font-size: 0.9rem; color: #555;
    line-height: 1.65; margin-bottom: 20px;
}
.pm-actions {
    display: flex; gap: 10px;
}
.pm-wishlist-btn, .pm-cart-btn {
    flex: 1; padding: 13px 10px;
    border-radius: 12px; border: none;
    font-size: 0.92rem; font-weight: 700;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    gap: 7px; transition: all 0.2s; font-family: inherit;
}
.pm-wishlist-btn {
    background: #fff0f0; color: var(--primary);
    border: 2px solid #ffd6d6;
}
.pm-wishlist-btn:hover  { background: #ffe0e0; }
.pm-wishlist-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.pm-cart-btn {
    background: var(--secondary); color: white;
    flex: 2;
}
.pm-cart-btn:hover { background: #3dbdb4; }

/* ══════════════════════════════════════
   WISHLIST PANEL (slides in like cart)
══════════════════════════════════════ */
.wishlist-panel {
    position: fixed; top: 0; right: -420px;
    width: 390px; height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.12);
    z-index: 1001; transition: right 0.4s ease;
    display: flex; flex-direction: column;
}
.wishlist-panel.active { right: 0; }

.wishlist-header {
    padding: 1.2rem 1.5rem;
    background: var(--primary); color: white;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.wishlist-header h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.close-wishlist {
    background: none; border: none; color: white;
    font-size: 1.4rem; cursor: pointer;
}

.wishlist-items {
    flex: 1; overflow-y: auto; padding: 1rem 1.2rem;
}

/* Each wishlist item row */
.wl-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid #f0f0f0; align-items: center;
}
.wl-item:last-child { border-bottom: none; }
.wl-item-img {
    width: 68px; height: 68px; border-radius: 10px;
    object-fit: cover; background: #f5f5f5; flex-shrink: 0;
}
.wl-item-info { flex: 1; min-width: 0; }
.wl-item-cat   { font-size: 0.68rem; color: var(--primary); text-transform: uppercase; font-weight: 700; }
.wl-item-name  { font-size: 0.9rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-item-price { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-top: 2px; }

.wl-item-btns { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.wl-add-cart {
    background: var(--secondary); color: white;
    border: none; border-radius: 7px; padding: 6px 10px;
    font-size: 0.72rem; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: background 0.2s;
}
.wl-add-cart:hover { background: #3dbdb4; }
.wl-remove {
    background: #fff0f0; color: var(--primary);
    border: none; border-radius: 7px; padding: 6px 10px;
    font-size: 0.72rem; font-weight: 700; cursor: pointer;
    transition: all 0.2s;
}
.wl-remove:hover { background: var(--primary); color: white; }

.wishlist-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.4s;
}
.wishlist-overlay.active { opacity: 1; visibility: visible; }

/* Mobile — full width */
@media (max-width: 600px) {
    .wishlist-panel { width: 100%; right: -100%; }
}

/* ══════════════════════════════════════
   ORDER SUCCESS MODAL
══════════════════════════════════════ */
#successModal {
    position: fixed; inset: 0; z-index: 4000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
#successModal.open { display: flex; }
.sm-backdrop {
    position: absolute; inset: 0; background: rgba(26,26,46,0.55);
    backdrop-filter: blur(2px);
}
.sm-box {
    position: relative; background: white; border-radius: 20px;
    width: 100%; max-width: 400px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: smPop 0.35s ease;
    text-align: center;
}
@keyframes smPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sm-top {
    background: linear-gradient(135deg, var(--secondary), #1DBF73);
    padding: 34px 24px 26px; color: white;
}
.sm-check {
    width: 68px; height: 68px; border-radius: 50%;
    background: rgba(255,255,255,0.2); margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; animation: smCheck 0.5s ease 0.1s;
}
@keyframes smCheck { from { transform: scale(0); } to { transform: scale(1); } }
.sm-top h2 { font-size: 1.3rem; margin-bottom: 4px; }
.sm-top p { font-size: 0.85rem; opacity: 0.9; }
.sm-body { padding: 22px 26px 26px; }
.sm-ref {
    font-size: 0.78rem; color: #888; background: #f6f7fb;
    border-radius: 8px; padding: 8px 12px; margin-bottom: 14px;
    font-family: monospace; letter-spacing: 0.3px;
}
.sm-ref b { color: var(--dark); }
.sm-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: #555; padding: 7px 0; border-bottom: 1px solid #f0f0f0;
}
.sm-row:last-of-type { border-bottom: none; }
.sm-row .val { font-weight: 700; color: var(--dark); }
.sm-note {
    display: flex; align-items: flex-start; gap: 8px; text-align: left;
    background: #f0fbf8; border: 1px solid #d4f2ec; border-radius: 10px;
    padding: 10px 12px; margin: 14px 0 18px; font-size: 0.78rem; color: #333;
}
.sm-note i { color: var(--secondary); margin-top: 2px; }
.sm-actions { display: flex; flex-direction: column; gap: 10px; }
.sm-btn {
    display: block; width: 100%; padding: 12px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none;
    text-decoration: none; font-family: inherit; transition: opacity 0.2s;
}
.sm-btn.primary { background: var(--primary); color: white; }
.sm-btn.secondary { background: #f0f0f0; color: var(--dark); }
.sm-btn.whatsapp { background: #25D366; color: white; }
.sm-btn.whatsapp i { margin-right: 4px; }
.sm-btn:hover { opacity: 0.9; }
