/* ============================================================
   enaija overrides.css
   ============================================================ */

html { overflow-x: hidden; }
* { box-sizing: border-box; }

/* ── FIXED HEADER CLEARANCE ─────────────────────────────────────
   Push ALL page content below the fixed ~82px header.
   The homepage .hero intentionally slides behind the transparent
   header by design, so it cancels this with a negative margin.
   ─────────────────────────────────────────────────────────── */
body {
    overflow-x: hidden;
    padding-top: 82px;
}
@media (max-width: 768px) {
    body { padding-top: 70px; }
}
/* Hero extends behind the transparent header on the homepage */
.hero { margin-top: -82px; }
@media (max-width: 768px) { .hero { margin-top: -70px; } }

/* ── HIDE HELPERS ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn { border: 1px solid transparent; letter-spacing: 0.1em; }
.btn-gold    { border-color: var(--gold); }
.btn-outline { border-color: var(--gold); }
.btn-dark    { border-color: rgba(201,168,76,0.25); }

/* ── MOBILE HEADER ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-inner { gap: 10px; }
    .header-actions { gap: 12px; }
    .logo-img { height: 26px; max-width: 110px; }
}

/* ── LOGO ────────────────────────────────────────────────────── */
.logo-img { height: 36px; width: auto; display: block; max-width: 160px; object-fit: contain; }
.site-logo { display: flex; align-items: center; }

/* ── PAGE LOADER ─────────────────────────────────────────────── */
.loader-img { height: 48px; width: auto; margin-bottom: 20px; display: block; }
.loader-word { display: none; }

/* ── OUT-OF-STOCK BADGE ──────────────────────────────────────── */
.product-badge.out-of-stock {
    background: rgba(231,76,60,0.15);
    color: #E74C3C;
    border: 1px solid rgba(231,76,60,0.3);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.payment-badges { display: none !important; }
.powered-by-row {
    display: flex; align-items: center; gap: 10px;
    padding-top: 16px; border-top: 1px solid var(--walnut);
    margin-top: 16px; font-size: .7rem; color: var(--mocha);
}
.skkai-logo { height: 22px; width: auto; opacity: .7; filter: brightness(1.2); transition: opacity .2s; }
.skkai-logo:hover { opacity: 1; }

/* ── PRODUCT CARDS ───────────────────────────────────────────── */
.product-card { max-width: 100%; overflow: hidden; }
.product-image-wrap img { max-width: 100%; object-fit: cover; }

/* ── MOBILE: WHOLE PRODUCT CARD IS TAPPABLE ─────────────────────
   The product-name link's ::after pseudo-element stretches to cover
   the entire card, making any tap navigate to the product page.
   Action buttons float above it with z-index so they still work.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .product-card {
        position: relative;
        cursor: pointer;
    }
    .product-card .product-name a::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
    }
    .product-card .btn-add-cart,
    .product-card .p-wishlist,
    .product-card .p-action-btn {
        position: relative;
        z-index: 3;
    }
}

/* ── HOME PAGE PRODUCT GRIDS ─────────────────────────────────── */
.new-arrivals-grid { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 1100px) { .new-arrivals-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px) {
    .new-arrivals-grid,
    .products-grid,
    .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}
@media (max-width: 480px) {
    .new-arrivals-grid, .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .product-info { padding: 10px; }
    .product-name { font-size: 0.78rem; }
    .price-current { font-size: 0.82rem; }
    .container { padding: 0 14px; }
}
@media (max-width: 360px) {
    .new-arrivals-grid, .products-grid { grid-template-columns: 1fr !important; }
}

/* ── CONTACT PAGE — STACK ON MOBILE ─────────────────────────── */
@media (max-width: 768px) {
    .contact-cols {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .contact-cols > div {
        position: static !important;
    }
    /* Stack the Name / Email pair inside the contact form */
    .contact-cols [style*="grid-template-columns:1fr 1fr"] {
        display: block !important;
    }
    .contact-cols [style*="grid-template-columns:1fr 1fr"] > div {
        margin-bottom: 16px;
    }
}

/* ── CHECKOUT — STACK ON MOBILE ──────────────────────────────── */
@media (max-width: 768px) {
    .checkout-wrap {
        grid-template-columns: 1fr !important;
    }
    /* Show order summary above the form on mobile */
    .checkout-wrap > div:last-child { order: -1; }
    .form-row { grid-template-columns: 1fr !important; }
}

/* ── CART SIDEBAR MOBILE ─────────────────────────────────────── */
@media (max-width: 480px) {
    .cart-sidebar { width: 100vw !important; right: -100vw; }
    .cart-sidebar.open { right: 0; }
}

/* ── QTY BUTTONS ─────────────────────────────────────────────── */
.qty-btn {
    background: none; border: none; cursor: pointer;
    color: var(--linen); padding: 4px 8px; font-size: 0.85rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.qty-btn:hover { color: var(--gold); }

/* ── HERO BREATHING ROOM ─────────────────────────────────────────
   hero-inner originally had padding-top:80px (desktop) / 100px (mobile).
   Increase by 30px so there is comfortable space between the
   navbar bottom and the hero heading text.
   ─────────────────────────────────────────────────────────── */
.hero-inner { padding-top: 110px !important; }
@media (max-width: 768px) { .hero-inner { padding-top: 120px !important; } }

/* ── CATEGORIES STRIP — hide on mobile ───────────────────────── */
@media (max-width: 768px) {
    .categories-section { display: none !important; }
}

/* ── SHOP NAV LINK — same size as other links ───────────────────
   .nav-item is a <div> inside flex. Without display:flex it can
   create a different height from the sibling <a> tags, making
   the SHOP link appear visually offset or bolder on some browsers.
   ─────────────────────────────────────────────────────────── */
.main-nav .nav-item {
    display: flex;
    align-items: center;
}

/* ── SHOP NAV LINK — force identical rendering to other nav links ────
   The .nav-item wrapper can cause Raleway to render differently from
   direct .main-nav > a children in some browsers (particularly Chrome
   on Windows). Setting every property explicitly guarantees parity.
   ─────────────────────────────────────────────────────────── */
.main-nav > .nav-item {
    display: flex;
    align-items: center;
    position: relative;
}

.main-nav > .nav-item > a {
    font-family: var(--font-body) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--linen) !important;
    line-height: 1 !important;
    padding-bottom: 4px !important;
    align-self: center;
    text-decoration: none;
}

.main-nav > .nav-item > a:hover {
    color: var(--gold) !important;
}

/* ── WHATSAPP WIDGET ─────────────────────────────────────────── */
.wa-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9500;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 12px 18px 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.wa-widget:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 6px 30px rgba(37,211,102,0.6);
    color: #fff;
}
.wa-widget i { font-size: 1.3rem; line-height: 1; }
.wa-label { font-size: 0.78rem; }

@media (max-width: 480px) {
    .wa-label { display: none; }
    .wa-widget { padding: 14px; border-radius: 50%; bottom: 16px; right: 16px; }
}

/* ── CHECKOUT: box fits inside screen on mobile ──────────────── */
@media (max-width: 768px) {
    .checkout-wrap {
        width: 100%;
        overflow-x: hidden;
    }
    .order-summary-card {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    /* Tighter horizontal padding so the card sits centred with breathing room */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}
