/* ============================================
   CARAMISC - Shared Styles
   ============================================ */

:root {
    --caramel-dark: #2C1810;
    --caramel: #C68E4E;
    --caramel-light: #E6B87A;
    --cream: #F5F0E8;
    --gold: #D4AF37;
    --toffee: #A0522D;
    --whatsapp: #25D366;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 10px 16px;
    padding-top: calc(10px + var(--safe-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.35s ease;
    background: transparent;
    min-height: 56px;
}
.navbar.scrolled {
    background: rgba(44, 24, 16, 0.97);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    z-index: 1002;
    transition: all 0.3s;
    position: relative;
    flex-shrink: 0;
    touch-action: manipulation;
    border-radius: var(--radius-sm);
}
.menu-toggle:active { transform: scale(0.92); background: rgba(255,255,255,0.1); }

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}
.nav-logo .ar {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.nav-cart {
    position: relative;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s;
    touch-action: manipulation;
    border: none;
}
.nav-cart:active { background: rgba(255,255,255,0.25); transform: scale(0.92); }
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.6rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid rgba(44,24,16,0.8);
    pointer-events: none;
    min-width: 20px;
}

/* ========== Side Menu ========== */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80%, 320px);
    height: 100vh;
    height: 100dvh;
    background: rgba(20, 12, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    list-style: none;
    padding: calc(80px + var(--safe-top)) 20px calc(30px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
.nav-menu.open { transform: translateX(0); }
.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: all 0.25s;
    display: block;
    min-height: 48px;
    display: flex;
    align-items: center;
}
.nav-menu a:hover, .nav-menu a:active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    touch-action: none;
}
.menu-overlay.show { opacity: 1; visibility: visible; }

/* ========== Sections ========== */
.section {
    padding: 56px 16px;
    padding-bottom: calc(56px + var(--safe-bottom));
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    text-align: center;
    margin-bottom: 8px;
    color: var(--caramel-dark);
    font-weight: 600;
    line-height: 1.3;
}
.section-subtitle {
    text-align: center;
    color: var(--caramel);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

/* ========== Product Cards ========== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (min-width: 480px) { .products-grid { gap: 16px; } }
@media (min-width: 600px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 900px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    position: relative;
    touch-action: manipulation;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card:active { transform: scale(0.97); box-shadow: var(--shadow-sm); }
.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(145deg, #f9f0e0, #eedbba);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}
.product-emoji {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
    z-index: 2;
}
.product-info { padding: 14px 14px 16px; }
.product-name {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--caramel-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-origin {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.3;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--toffee);
    white-space: nowrap;
}
.btn-quick-add {
    width: 38px; height: 38px;
    min-width: 38px; min-height: 38px;
    border-radius: 50%;
    border: 2px solid var(--caramel);
    background: #fff;
    color: var(--caramel);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    touch-action: manipulation;
    padding: 0;
}
.btn-quick-add:active { background: var(--caramel); color: #fff; transform: scale(0.9); }

.gift-ribbon {
    position: absolute;
    top: 10px;
    left: -28px;
    background: var(--gold);
    color: var(--caramel-dark);
    padding: 4px 32px;
    font-size: 0.6rem;
    font-weight: 700;
    transform: rotate(-45deg);
    z-index: 5;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ========== Filter Tabs ========== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 0 4px;
}
.filter-tab {
    padding: 9px 18px;
    background: #fff;
    border: 1.5px solid #e0d5c8;
    color: var(--text-dark);
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
    min-height: 40px;
    touch-action: manipulation;
}
.filter-tab:active { transform: scale(0.95); }
.filter-tab.active {
    background: var(--caramel-dark);
    color: #fff;
    border-color: var(--caramel-dark);
    box-shadow: 0 2px 8px rgba(44,24,16,0.2);
}

/* ========== Timeline ========== */
.timeline-section { background: var(--caramel-dark); color: #fff; }
.timeline-section .section-title { color: #fff; }
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 10px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    right: 16px;
    top: 0; bottom: 0;
    width: 2px;
    background: rgba(212,175,55,0.35);
}
.timeline-item {
    position: relative;
    padding-right: 48px;
    margin-bottom: 32px;
}
.timeline-dot {
    position: absolute;
    right: 7px;
    top: 6px;
    width: 20px; height: 20px;
    background: var(--caramel-dark);
    border: 3px solid var(--gold);
    border-radius: 50%;
    z-index: 2;
    flex-shrink: 0;
}
.timeline-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 2px;
}
.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}
.timeline-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* ========== Gifts ========== */
.gift-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 520px) { .gift-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .gift-grid { grid-template-columns: repeat(3, 1fr); } }
.gift-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.25s;
}
.gift-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gift-card:active { transform: scale(0.98); }
.gift-icon { font-size: 2.4rem; margin-bottom: 12px; }
.gift-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; line-height: 1.3; }
.gift-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }
.gift-price { font-size: 1.2rem; font-weight: 700; color: var(--toffee); margin-bottom: 16px; }
.btn-add {
    width: 100%;
    padding: 13px;
    background: var(--caramel-dark);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
    min-height: 46px;
    touch-action: manipulation;
}
.btn-add:active { background: var(--gold); color: var(--caramel-dark); transform: scale(0.97); }

/* ========== Footer ========== */
.footer {
    background: #1a0f0a;
    color: #ccc;
    padding: 48px 16px 28px;
    padding-bottom: calc(28px + var(--safe-bottom));
    text-align: center;
}
.footer-brand { font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.footer-desc { font-size: 0.82rem; max-width: 360px; margin: 10px auto 16px; line-height: 1.6; }
.footer-location { font-size: 0.85rem; color: var(--caramel-light); margin-bottom: 10px; }
.footer-location a { color: var(--gold); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    margin-top: 12px;
    font-size: 0.72rem;
    color: #777;
}

/* ========== Cart Drawer ========== */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    touch-action: none;
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed;
    top: 0; left: 0;
    width: min(92%, 420px);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    border-radius: 0 16px 16px 0;
    box-shadow: 6px 0 30px rgba(0,0,0,0.2);
    overscroll-behavior-y: contain;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
    padding: 18px 20px;
    padding-top: calc(18px + var(--safe-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.cart-header h3 { font-size: 1.1rem; }
.cart-close-btn {
    background: none; border: none;
    font-size: 1.4rem; cursor: pointer;
    padding: 8px;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    touch-action: manipulation;
}
.cart-close-btn:active { background: #f0f0f0; }
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}
.cart-item-row {
    display: flex; gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.cart-item-thumb {
    width: 60px; height: 60px;
    background: #fdf3e4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .name { font-weight: 700; font-size: 0.88rem; line-height: 1.3; margin-bottom: 2px; }
.cart-item-info .meta { font-size: 0.7rem; color: #888; margin-bottom: 4px; }
.cart-item-info .price { font-weight: 600; color: var(--toffee); font-size: 0.88rem; }
.qty-controls {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px;
}
.qty-btn {
    width: 32px; height: 32px;
    min-width: 32px; min-height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    padding: 0;
    transition: all 0.15s;
}
.qty-btn:active { background: var(--caramel-dark); color: #fff; border-color: var(--caramel-dark); }
.cart-footer-area {
    padding: 18px 20px;
    padding-bottom: calc(18px + var(--safe-bottom));
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.btn-whatsapp {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
    min-height: 52px;
    touch-action: manipulation;
}
.btn-whatsapp:active { background: #1da851; transform: scale(0.97); }
.empty-cart-msg {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

/* ========== Product Detail Modal ========== */
.pdp-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 3000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    touch-action: none;
}
.pdp-overlay.active { opacity: 1; visibility: visible; }
.pdp-box {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.pdp-overlay.active .pdp-box { transform: translateY(0); }
.pdp-close-btn {
    position: absolute;
    top: 14px; left: 14px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    transition: all 0.2s;
}
.pdp-close-btn:active { background: #f0f0f0; transform: scale(0.9); }
.pdp-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(145deg, #fbf3e4, #f5e0c0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
}
.pdp-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.pdp-details {
    padding: 20px 20px 28px;
    padding-bottom: calc(28px + var(--safe-bottom));
}
.pdp-details h2 { font-size: 1.25rem; margin-bottom: 4px; line-height: 1.3; }
.pdp-details .origin { font-size: 0.82rem; color: #888; margin-bottom: 12px; }
.pdp-details .price { font-size: 1.5rem; font-weight: 700; color: var(--toffee); margin-bottom: 14px; }
.pdp-details .desc { font-size: 0.88rem; color: #555; line-height: 1.7; margin-bottom: 20px; }
.pdp-actions {
    display: flex; gap: 12px; align-items: center;
}
.qty-box {
    display: flex; align-items: center;
    border: 1.5px solid #ddd; border-radius: 25px;
    overflow: hidden;
    flex-shrink: 0;
}
.qty-box button {
    width: 44px; height: 46px;
    border: none; background: #f7f7f7;
    font-size: 1.2rem; cursor: pointer;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.qty-box button:active { background: #e0e0e0; }
.qty-box span { width: 44px; text-align: center; font-weight: 700; font-size: 0.95rem; }
.btn-pdp-add {
    flex: 1;
    padding: 14px;
    background: var(--caramel-dark);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: 'Cairo', sans-serif;
    min-height: 50px;
    touch-action: manipulation;
    transition: all 0.2s;
}
.btn-pdp-add:active { background: var(--gold); color: var(--caramel-dark); transform: scale(0.97); }

/* ========== Toast ========== */
.toast-msg {
    position: fixed;
    bottom: max(100px, calc(90px + var(--safe-bottom)));
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #1a1a1a;
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 5000;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 90vw;
    text-align: center;
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== WhatsApp Float ========== */
.whatsapp-float-btn {
    position: fixed;
    bottom: max(22px, calc(14px + var(--safe-bottom)));
    right: max(18px, calc(14px + var(--safe-right)));
    width: 58px; height: 58px;
    min-width: 58px; min-height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    border: none;
    font-size: 1.7rem;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    touch-action: manipulation;
}
.whatsapp-float-btn:active { transform: scale(0.9); box-shadow: 0 3px 10px rgba(37,211,102,0.3); }

/* ========== Reveal Animations ========== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== New Arrivals ========== */
.new-arrivals {
    background: linear-gradient(180deg, #fff8f0 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}
.new-arrivals::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.new-badge-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}
.new-flash {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4); }
}
.new-products-grid .product-card {
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.new-products-grid .product-card:hover { border-color: var(--gold); }
.new-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    z-index: 5;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}
.new-products-grid .product-img { background: linear-gradient(145deg, #fff5e6, #ffe4c4); }
.new-products-grid .product-price { color: #c0392b; }
.btn-new-quick {
    width: 38px; height: 38px;
    min-width: 38px; min-height: 38px;
    border-radius: 50%;
    border: 2px solid #c0392b;
    background: #fff;
    color: #c0392b;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    touch-action: manipulation;
    padding: 0;
}
.btn-new-quick:active { background: #c0392b; color: #fff; transform: scale(0.9); }

/* ========== Hero ========== */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--caramel-dark);
    padding-top: var(--safe-top);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 25%, rgba(198,142,78,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 65% 55%, rgba(230,184,122,0.3) 0%, transparent 45%);
}
#particleCanvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    width: 100%;
    max-width: 600px;
}
.hero-brand {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 12vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    line-height: 1.1;
}
.hero-brand .ar {
    font-family: 'Cairo', sans-serif;
    font-size: 0.48em;
    display: block;
    letter-spacing: 4px;
    margin-top: 10px;
    font-weight: 700;
    color: var(--gold);
}
.hero-tagline {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    color: var(--caramel-light);
    margin-bottom: 32px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.5;
}
.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    min-height: 50px;
    touch-action: manipulation;
}
.hero-cta:hover { background: var(--gold); color: var(--caramel-dark); }
.hero-cta:active { transform: scale(0.96); }

.scroll-hint {
    position: absolute;
    bottom: max(28px, var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    z-index: 10;
    animation: bounce 2.5s infinite ease-in-out;
    pointer-events: none;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========== Scrollbar ========== */
.cart-items-list, .pdp-box, .nav-menu {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.cart-items-list::-webkit-scrollbar,
.pdp-box::-webkit-scrollbar,
.nav-menu::-webkit-scrollbar { width: 4px; }
.cart-items-list::-webkit-scrollbar-thumb,
.pdp-box::-webkit-scrollbar-thumb,
.nav-menu::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* ========== No Select ========== */
.product-card, .gift-card, .btn-quick-add, .btn-add, .btn-pdp-add,
.btn-whatsapp, .filter-tab, .menu-toggle, .nav-cart, .qty-btn,
.qty-box button, .pdp-close-btn, .cart-close-btn, .whatsapp-float-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ========== Responsive ========== */
@media (max-width: 380px) {
    .products-grid { gap: 10px; }
    .product-info { padding: 10px 10px 12px; }
    .product-name { font-size: 0.8rem; }
    .product-price { font-size: 0.9rem; }
    .btn-quick-add { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
    .hero-brand { font-size: clamp(2.2rem, 11vw, 3rem); }
    .gift-grid { gap: 12px; }
}

@media (min-width: 768px) {
    .pdp-overlay { align-items: center; padding: 20px; }
    .pdp-box { border-radius: 18px; max-height: 85vh; transform: translateY(30px) scale(0.95); }
    .pdp-overlay.active .pdp-box { transform: translateY(0) scale(1); }
    .section { padding: 72px 24px; padding-bottom: calc(72px + var(--safe-bottom)); }
}
