/* ============================================================
   Niyyat — shared brand chrome & shop styles
   Refined Islamic editorial: deep green + gold, Amiri + Poppins.
   Used by the landing page and all /shop pages for cohesion.
   ============================================================ */

:root {
    --ink: #1d2d29;
    --ink-2: #2a423c;
    --ink-soft: #3d5750;
    --gold: #c9a227;
    --gold-2: #e8c547;
    --gold-deep: #a8841c;
    --cream: #faf8f5;
    --cream-2: #f3ede3;
    --paper: #ffffff;
    --text: #223330;
    --muted: #6b7c75;
    --line: rgba(29, 45, 41, 0.10);
    --shadow-sm: 0 4px 18px rgba(29, 45, 41, 0.06);
    --shadow-md: 0 16px 44px rgba(29, 45, 41, 0.12);
    --shadow-gold: 0 12px 34px rgba(201, 162, 39, 0.28);
    --radius: 18px;
    --maxw: 1160px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.serif { font-family: 'Amiri', serif; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}

/* ---------- Sticky header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(29, 45, 41, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}
.site-header .bar {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.site-header .brand img { height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.cart-link:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.cart-link svg { width: 18px; height: 18px; }
.cart-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gold);
    color: #3a2e05;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    font-family: inherit;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
    color: #3a2e05;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 46px rgba(201, 162, 39, 0.4); }
.btn-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-dark:hover { transform: translateY(-3px); background: var(--ink-2); }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid rgba(29, 45, 41, 0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Sections & headings ---------- */
.section { padding: 92px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
    content: '';
    display: inline-block;
    width: 26px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 10px;
}
.section-head h2 {
    font-family: 'Amiri', serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 46px 22px 40px;
    text-align: center;
}
.site-footer img { height: 40px; width: auto; margin: 0 auto 14px; opacity: 0.95; }
.site-footer p { font-size: 0.92rem; }
.site-footer .fine { opacity: 0.5; font-size: 0.8rem; margin-top: 10px; }

/* ---------- Shop layout (cart / checkout / success) ---------- */
.shop-wrap { max-width: 960px; margin: 0 auto; padding: 48px 22px 80px; }
.shop-wrap h1 {
    font-family: 'Amiri', serif;
    font-size: 2.1rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.shop-wrap .lede { color: var(--muted); margin-bottom: 30px; }

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.panel + .panel { margin-top: 22px; }
.panel-pad { padding: 26px 26px; }

.cart-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info h3 { font-size: 1.08rem; color: var(--ink); }
.cart-row .info p { font-size: 0.86rem; color: var(--muted); }
.cart-row .tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    background: rgba(201, 162, 39, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
}
.cart-row .info .pukal-note { margin-top: 6px; font-size: 0.82rem; color: var(--gold-deep); font-weight: 600; }
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-form input[type=number] {
    width: 64px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem; /* ≥16px — smaller triggers iOS focus-zoom, breaking mobile editing */
    text-align: center;
}
.cart-row .price { font-weight: 700; color: var(--ink); min-width: 90px; text-align: right; }
.link-danger {
    background: none;
    border: none;
    color: #b23b3b;
    cursor: pointer;
    font-size: 0.82rem;
    text-decoration: underline;
    font-family: inherit;
    padding: 4px;
}

.totals { padding: 22px 26px; }
.totals .line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--muted);
}
.totals .line.grand {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 16px;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Amiri', serif;
}
.totals .line.grand .amt { color: var(--gold-deep); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .ico { font-size: 2.6rem; margin-bottom: 12px; }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem; /* ≥16px — smaller triggers iOS focus-zoom, breaking mobile editing */
    background: var(--paper);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.16);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--muted); }

.alert {
    background: #fdecec;
    border: 1px solid #f3c3c3;
    color: #a02c2c;
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.notice {
    background: rgba(201, 162, 39, 0.10);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--ink);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.order-summary .cart-row { padding: 14px 22px; }
.order-summary .cart-row .info h3 { font-size: 0.98rem; }

@media (max-width: 760px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .cart-row { flex-wrap: wrap; }
    .cart-row .info { flex-basis: 100%; }
    .cart-row .price { min-width: 0; margin-left: auto; }
    .section { padding: 66px 0; }
}
