@font-face {
    font-family: AjwaSans;
    src: local("Tahoma");
}

:root {
    --brand: #063f2d;
    --gold: #bd8b35;
    --paper: #fbf6ec;
    --ink: #14281f;
    --muted: #6f716a;
    --line: rgba(78, 56, 23, .16);
    --white: #fffdf8;
    --shadow: 0 24px 70px -44px rgba(31, 26, 14, .55);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: AjwaSans, Tahoma, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 10%, rgba(189, 139, 53, .13), transparent 28rem),
        linear-gradient(180deg, #fffaf0 0%, var(--paper) 36%, #f4ead8 100%);
}
body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    opacity: .35;
    background-image: linear-gradient(rgba(20, 40, 31, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 40, 31, .035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: middle; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
}
.service-strip {
    min-height: 34px;
    padding: 8px clamp(18px, 4vw, 52px);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #f1d7a3;
    background: #062d22;
    font-size: 13px;
}
.nav-shell {
    min-height: 78px;
    padding: 14px clamp(18px, 4vw, 52px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 252, 246, .86);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.logo { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    padding: 6px;
    border-radius: 16px 5px 16px 5px;
    background: #fff8e8;
    border: 1px solid rgba(189, 139, 53, .85);
    box-shadow: 0 10px 24px rgba(6,63,45,.12), inset 0 1px 0 rgba(255,255,255,.55);
    overflow: hidden;
}
.logo-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    padding: 6px;
    border-radius: 16px 5px 16px 5px;
    background: #fff8e8;
    border: 1px solid rgba(189, 139, 53, .85);
    box-shadow: 0 10px 24px rgba(6,63,45,.12), inset 0 1px 0 rgba(255,255,255,.55);
    overflow: hidden;
}
.brand-mark img, .logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-logo { background: #fff8e8; }
.logo strong, .logo b { display: block; font-size: 18px; }
.logo small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.brand-lockup strong { display: block; font-size: 18px; letter-spacing: 0; }
.brand-lockup small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.nav-links { justify-self: center; display: flex; gap: clamp(14px, 2.5vw, 34px); font-size: 15px; color: #31483f; }
.nav-links a { position: relative; padding: 8px 0; transition: color .28s var(--ease); }
.nav-links a:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .32s var(--ease);
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover:after { width: 100%; }
.nav-actions { display: flex; gap: 10px; }
.icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.55);
    color: var(--brand);
    transition: transform .28s var(--ease), background .28s var(--ease);
}
.icon-button:hover { transform: translateY(-2px); background: #fffaf0; }
.icon-button:active, .button:active { transform: translateY(1px) scale(.985); }
.icon-button span {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff9e9;
    background: var(--gold);
    font-size: 11px;
    font-weight: 800;
}

.hero-section {
    min-height: min(760px, calc(100dvh - 112px));
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: clamp(28px, 6vw, 92px);
    align-items: center;
    padding: clamp(42px, 7vw, 86px) clamp(18px, 6vw, 80px) 56px;
    overflow: hidden;
}
.hero-copy { max-width: 650px; justify-self: end; }
.overline {
    margin: 0 0 14px;
    color: #8b6428;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 {
    max-width: 10ch;
    color: var(--brand);
    font-size: clamp(42px, 6.6vw, 88px);
    line-height: .98;
    font-weight: 900;
}
.hero-text {
    max-width: 58ch;
    margin: 24px 0 0;
    color: #3f4f48;
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
.button:disabled,
.submit-button:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: .62;
}
.btn {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
.btn.primary {
    color: #fff8df;
    background: linear-gradient(135deg, #0b4e39, var(--brand));
    box-shadow: 0 18px 34px -22px rgba(6, 63, 45, .8), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn.ghost {
    color: var(--brand);
    background: rgba(255,255,255,.72);
    border: 1px solid var(--line);
}
.btn.danger {
    color: #fff8ef;
    background: #8a2f20;
}
.btn.full { width: 100%; }
.btn:hover { transform: translateY(-2px); }
.button-primary {
    color: #fff8df;
    background: linear-gradient(135deg, #0b4e39, var(--brand));
    box-shadow: 0 18px 34px -22px rgba(6, 63, 45, .8), inset 0 1px 0 rgba(255,255,255,.14);
}
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -26px rgba(6, 63, 45, .95); }
.button-soft {
    color: var(--brand);
    background: rgba(255,255,255,.72);
    border: 1px solid var(--line);
}
.button-compact {
    min-height: 38px;
    padding: 9px 16px;
    color: #fff8df;
    background: var(--brand);
    border-radius: 12px;
    font-size: 14px;
}
.trust-row {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 12px;
}
.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #355146;
    background: rgba(255,255,255,.54);
}
.trust-row svg { color: var(--gold); }
.hero-visual {
    position: relative;
    min-height: 520px;
}
.product-stage {
    position: absolute;
    inset: 0 0 0 70px;
    margin: 0;
    border-radius: 36px 6px 36px 6px;
    overflow: hidden;
    background: #eadfce;
    box-shadow: var(--shadow);
    transform: rotate(-1.5deg);
}
.product-stage:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,250,239,.9), rgba(255,250,239,.14) 52%, rgba(6,63,45,.72));
    z-index: 1;
}
.product-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% 52%;
    transform: scale(1.02);
    filter: saturate(.94) contrast(1.02);
}
.product-stage figcaption {
    position: absolute;
    right: 26px;
    bottom: 26px;
    z-index: 2;
    width: min(260px, calc(100% - 52px));
    padding: 18px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 20px;
    color: #fff8df;
    background: rgba(6, 45, 34, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
}
.product-stage figcaption span, .product-stage figcaption strong { display: block; }
.product-stage figcaption strong { margin-top: 8px; font-size: 26px; color: #e5bd6f; }
.vertical-badge {
    position: absolute;
    top: 44px;
    left: 0;
    width: 134px;
    min-height: 310px;
    display: grid;
    place-items: center;
    padding: 22px 14px;
    text-align: center;
    border-radius: 28px 4px 28px 4px;
    color: #edcf8b;
    background: linear-gradient(180deg, #062e22, #0a4634);
    box-shadow: var(--shadow);
}
.vertical-badge span { writing-mode: vertical-rl; font-size: 38px; font-weight: 900; }
.vertical-badge small { color: #f2dfb0; line-height: 1.7; }

.quick-gallery,
.section-shell,
.category-tabs,
.product-grid,
.best-section,
.branches-section,
.order-section,
.adsense,
.admin-shortcuts {
    width: min(1220px, calc(100% - 40px));
    margin-inline: auto;
}
.quick-gallery {
    margin-top: -28px;
    display: grid;
    grid-template-columns: 1.25fr .85fr 1fr .9fr;
    gap: 12px;
    position: relative;
    z-index: 2;
}
.quick-gallery button {
    min-height: 102px;
    border: 1px solid rgba(189,139,53,.35);
    border-radius: 22px;
    overflow: hidden;
    color: var(--brand);
    background:
        linear-gradient(90deg, rgba(255,252,246,.98) 0 40%, rgba(255,252,246,.66) 56%, rgba(255,252,246,.12) 100%),
        url("../img/products/generated-hero-ajwa.png") right center / auto 128% no-repeat;
    text-align: left;
    padding: 18px 18px 18px 28px;
    box-shadow: var(--shadow);
    transition: transform .32s var(--ease);
}
.quick-gallery button:hover { transform: translateY(-4px); }
.quick-gallery span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,250,239,.9);
    font-weight: 900;
    box-shadow: 0 10px 26px -22px rgba(6,63,45,.6);
}

.section-shell { padding: 74px 0 24px; }
.split-intro {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 42px;
    align-items: end;
}
.split-intro h2, .quality-copy h2, .section-heading h2, .drive-panel h2, .form-heading h2 {
    color: var(--brand);
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.14;
}
.split-intro p:last-child, .quality-copy p, .drive-panel p {
    color: #58675f;
    line-height: 1.9;
    font-size: 17px;
}
.category-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 8px;
    border: 1px solid rgba(6,63,45,.14);
    border-radius: 22px;
    background: rgba(6,63,45,.93);
    box-shadow: var(--shadow);
}
.category-tabs button {
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    color: #f5e8c9;
    background: transparent;
    font-weight: 800;
    transition: background .28s var(--ease), color .28s var(--ease);
}
.category-tabs button.active {
    color: var(--brand);
    background: #fff9ec;
}

.product-grid {
    padding: 26px 0 60px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-auto-flow: dense;
    gap: 18px;
}
.product-card {
    min-height: 276px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(220px, 1.08fr);
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 30px 8px 30px 8px;
    background: rgba(255, 252, 246, .84);
    box-shadow: var(--shadow);
    animation: rise .62s var(--ease) both;
    animation-delay: calc(var(--i) * 80ms);
}
.product-card[hidden] { display: none; }
.product-card:nth-child(1) {
    grid-row: span 2;
    min-height: 570px;
    grid-template-columns: minmax(0, .78fr) minmax(260px, 1.22fr);
}
.product-card:nth-child(4) {
    grid-column: span 2;
    min-height: 320px;
    grid-template-columns: minmax(0, .72fr) minmax(320px, 1.28fr);
}
.pack-art, .mini-art {
    margin: 0;
    overflow: hidden;
    border-radius: 24px 6px 24px 6px;
    background: #efe3cf;
    border: 8px solid rgba(255,255,255,.64);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 18px 38px -30px rgba(0,0,0,.7);
}
.pack-art {
    min-height: 220px;
    height: 100%;
    aspect-ratio: auto;
    order: 2;
}
.pack-art img, .mini-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s var(--ease), filter .5s var(--ease);
}
.product-card:hover .pack-art img, .best-item:hover .mini-art img { transform: scale(1.045); filter: saturate(1.04) contrast(1.04); }
.product-card:nth-child(1) .pack-art { min-height: 500px; }
.product-card:nth-child(1) .pack-art img { object-position: 58% 54%; }
.product-card:nth-child(2) .pack-art img { object-position: 50% 48%; }
.product-card:nth-child(3) .pack-art img { object-position: 48% 48%; }
.product-card:nth-child(4) .pack-art img { object-position: 52% 54%; }
.product-body {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    order: 1;
    position: relative;
    z-index: 1;
}
.product-kicker { margin: 0 0 12px; color: #9a7030; font-weight: 900; font-size: 15px; }
.product-card h3, .best-item h3, .branch-grid h3 { color: var(--brand); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; }
.product-card p { color: #657169; line-height: 1.8; max-width: 26ch; }
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
}
.price-row strong, .best-item strong { color: #98651e; font-size: 24px; white-space: nowrap; }

.quality-panel {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto 66px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    min-height: 430px;
    overflow: hidden;
    border-radius: 42px 10px 42px 10px;
    color: #f7ead0;
    background: linear-gradient(135deg, #052b20, var(--brand));
    box-shadow: var(--shadow);
}
.quality-image {
    min-height: 360px;
    background:
        linear-gradient(90deg, rgba(6, 45, 34, .08), rgba(6, 45, 34, .78)),
        url("../img/products/generated-hero-ajwa.png") center / cover;
}
.quality-copy { padding: clamp(30px, 5vw, 70px); align-self: center; }
.quality-copy h2 { color: #e1b760; }
.quality-copy p { color: #f3e3c2; }
.metric-strip {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.16);
}
.metric-strip span { padding: 18px 12px 0 0; border-left: 1px solid rgba(255,255,255,.16); }
.metric-strip span:last-child { border-left: 0; }
.metric-strip b { display: block; color: #e5bd6f; font-size: 34px; }
.metric-strip small { color: #f4e5c7; }

.best-section, .branches-section { padding: 4px 0 56px; }
.section-heading { margin-bottom: 24px; }
.best-list {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line);
}
.best-item {
    min-height: 108px;
    display: grid;
    grid-template-columns: 112px 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.mini-art { width: 112px; height: 78px; border-width: 4px; flex: none; }
.mini-art img { object-position: 54% 50%; }
.best-item p { color: #657169; margin: 7px 0 0; }

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.branch-grid article,
.branch-grid a {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px 8px 28px 8px;
    background:
        linear-gradient(135deg, rgba(255,252,246,.92), rgba(255,252,246,.66)),
        var(--branch-image, url("../img/products/generated-hero-ajwa.png")) center / cover;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
}
.branch-card {
    display: block;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.branch-card[href]:hover {
    transform: translateY(-2px);
    border-color: rgba(189,139,53,.7);
    box-shadow: 0 24px 44px rgba(6,63,45,.14);
}
.branch-photo {
    position: relative;
    overflow: hidden;
    color: #fff5d9;
    background:
        linear-gradient(180deg, rgba(5,43,32,.2), rgba(5,43,32,.82)),
        var(--branch-image, url("../img/products/generated-branch-uhud.png")) center / cover !important;
}
.branch-photo h3, .branch-photo p, .branch-photo svg { position: relative; z-index: 1; color: #fff5d9; }
.branch-photo:before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: inherit;
    pointer-events: none;
}
.branch-grid svg { color: var(--gold); font-size: 30px; }
.branch-grid p { color: #5c665f; line-height: 1.75; }
.contact-card { background: rgba(255,252,246,.9) !important; }
.contact-card p { margin: 6px 0; direction: ltr; text-align: right; }
.contact-phone-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.contact-phone {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(189,139,53,.28);
    border-radius: 18px 6px 18px 6px;
    background: rgba(255,248,232,.7);
}
.contact-phone b {
    color: var(--brand);
    font-family: Consolas, "Courier New", monospace;
    font-size: 16px;
    text-align: right;
}
.contact-phone div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.contact-phone a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 4px 14px 4px;
    color: #fff8e8;
    background: var(--brand);
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(6,63,45,.2);
}
.contact-phone a:last-child {
    color: var(--brand);
    background: #fff8e8;
    border-color: rgba(189,139,53,.5);
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.social-links a,
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(189,139,53,.34);
    border-radius: 14px 4px 14px 4px;
    color: var(--brand);
    background: rgba(255,248,232,.82);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.social-links a:hover,
.footer-social a:hover {
    transform: translateY(-1px);
    border-color: rgba(189,139,53,.78);
    background: #fff8e8;
}
.social-links.compact { margin-top: 10px; justify-content: flex-end; }

.order-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 20px;
    padding: 0 0 34px;
}
.order-form, .drive-panel {
    border: 1px solid var(--line);
    border-radius: 34px 8px 34px 8px;
    background: rgba(255,252,246,.9);
    box-shadow: var(--shadow);
}
.order-form { padding: clamp(22px, 4vw, 38px); }
.form-heading { margin-bottom: 22px; }
.notice {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(106, 145, 95, .42);
    color: #24482f;
    background: #edf7e8;
}
.notice.error {
    color: #7a2d1f;
    background: #fff0e8;
    border-color: rgba(122,45,31,.3);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
label { display: grid; gap: 8px; color: #2a4238; font-weight: 800; }
label small { color: #77776f; font-weight: 400; line-height: 1.5; }
.span-2 { grid-column: span 2; }
.order-items {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.42);
}
.order-items-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    padding: 2px 2px 8px;
}
.order-items-head strong { color: var(--brand); font-size: 18px; }
.order-items-head small { color: #77776f; line-height: 1.6; }
.order-item {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(67,55,32,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    transition: border-color .24s var(--ease), background .24s var(--ease), transform .24s var(--ease);
}
.order-item.selected {
    border-color: rgba(189,139,53,.55);
    background: rgba(255,248,232,.92);
}
.order-item img {
    width: 76px;
    height: 62px;
    display: block;
    object-fit: cover;
    border-radius: 14px 5px 14px 5px;
}
.order-item h3 {
    margin: 0;
    color: var(--brand);
    font-size: 17px;
}
.order-item p {
    margin: 4px 0;
    color: #6b716b;
    font-size: 13px;
}
.order-item strong {
    color: #98651e;
    font-size: 15px;
}
.variant-list { display: grid; gap: 8px; }
.variant-row {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) auto minmax(138px, .8fr);
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,248,232,.62);
}
.variant-row span { color: var(--brand); font-weight: 900; }
.variant-row b { color: #9a681e; }
.quantity-stepper {
    display: grid;
    grid-template-columns: 38px 62px 38px;
    gap: 6px;
    align-items: center;
}
.quantity-stepper input {
    min-height: 38px;
    padding: 8px 4px;
    text-align: center;
}
.qty-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--brand);
    background: #fffaf0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.qty-btn:hover { background: #f6e8cd; }
.qty-btn:active { transform: translateY(1px) scale(.97); }
input, select, textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(67, 55, 32, .2);
    border-radius: 14px;
    outline: none;
    padding: 11px 14px;
    color: var(--ink);
    background: rgba(255,255,255,.72);
    transition: border-color .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: rgba(189,139,53,.72);
    box-shadow: 0 0 0 4px rgba(189,139,53,.14);
}
.submit-button { width: 100%; margin-top: 20px; min-height: 54px; font-size: 17px; }
.drive-panel {
    padding: 30px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.process-line {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}
.process-line span {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.58);
    font-weight: 800;
}
.process-line i {
    width: 1px;
    height: 18px;
    margin: auto;
    background: var(--gold);
}

.adsense {
    min-height: 72px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    border: 1px dashed rgba(151,101,30,.42);
    border-radius: 22px;
    color: #766b58;
    background: rgba(255,252,246,.68);
}
.admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-bottom: 36px;
}
.admin-shortcuts a {
    min-height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,252,246,.86);
    color: var(--brand);
    font-weight: 800;
}

.site-footer {
    padding: 36px clamp(18px, 6vw, 80px) 20px;
    display: grid;
    grid-template-columns: 1fr 1fr .75fr;
    gap: 36px;
    color: #f6e7c6;
    background: linear-gradient(135deg, #052b20, #073d2d);
}
.site-footer p { max-width: 44ch; color: #e7d2a8; line-height: 1.8; }
.footer-social { display: grid; gap: 12px; align-content: center; }
.footer-social b { color: #f6e7c6; }
.footer-social div { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter { display: grid; gap: 12px; align-content: center; }
.newsletter label { color: #f6e7c6; }
.newsletter div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter button {
    border: 1px solid rgba(229,189,111,.7);
    border-radius: 14px;
    color: #f6e7c6;
    background: transparent;
    padding: 0 18px;
}
.site-footer small { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; color: #d8bf8b; }

.install-page, .admin-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #052b20, #f7eddc);
}
.installer, .admin-shell { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 36px 0; }
.installer { min-height: 100vh; display: grid; place-items: center; }
.installer-card, .admin-card {
    max-width: 760px;
    margin: auto;
    padding: 32px;
    text-align: center;
    background: rgba(255, 251, 242, .9);
    border: 1px solid #d9c6a4;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.admin-header, .admin-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    background: rgba(255,250,240,.9);
    border: 1px solid #d9c6a4;
    border-radius: 22px;
}
.admin-tabs { justify-content: center; flex-wrap: wrap; }
.admin-tabs a { padding: 10px 18px; border-radius: 12px; background: #fff7e7; border: 1px solid #d9c6a4; }
.admin-card { max-width: none; text-align: right; }
.login-card { max-width: 460px; }
.settings-card label, .product-edit label { display: grid; gap: 8px; font-weight: 700; color: #295141; }
.settings-card > label { margin-bottom: 14px; }
.settings-panel {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px 6px 22px 6px;
    background: rgba(255,248,232,.58);
}
.settings-panel h2 { margin-top: 0; color: var(--brand); }
.settings-panel .form-grid { margin: 14px 0; }
.product-edit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: center; margin-bottom: 12px; }
.admin-help {
    margin: -6px 0 22px;
    color: #657169;
    line-height: 1.8;
}
.product-manager-card h2 {
    margin: 28px 0 14px;
    color: var(--brand);
}
.product-edit-full {
    grid-template-columns: 150px repeat(4, minmax(130px, 1fr));
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.45);
}
.admin-product-preview {
    margin: 0;
    width: 132px;
    height: 112px;
    overflow: hidden;
    border-radius: 18px 6px 18px 6px;
    border: 4px solid rgba(255,255,255,.72);
    background: #efe3cf;
}
.admin-product-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.branch-preview img { object-position: center; }
.wide-field { grid-column: span 2; }
.variant-edit {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,248,232,.58);
}
.variant-edit > div {
    display: grid;
    grid-template-columns: 1fr 110px auto;
    gap: 8px;
    align-items: center;
}
.mini-check {
    min-height: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px !important;
}
.mini-check input { width: auto; min-height: auto; }
.product-edit-full textarea { min-height: 88px; }
.check-row {
    min-height: 48px;
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.55);
}
.check-row input { width: auto; min-height: auto; }
.check-row.danger { color: #8a2f20; border-color: rgba(138,47,32,.24); }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { border: 1px solid #e1d3ba; padding: 10px; white-space: nowrap; }
th { background: var(--brand); color: #fff5d8; }
.orders-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 18px;
}
.mono-date {
    direction: ltr;
    unicode-bidi: plaintext;
    font-family: Consolas, "Courier New", monospace;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
}
.status-pill.delivered { color: #225231; background: #e5f5e8; }
.status-pill.pending { color: #7a4e13; background: #fff1d2; }
.phone-actions {
    display: grid;
    gap: 5px;
}
.phone-actions b {
    direction: ltr;
    text-align: right;
    font-family: Consolas, "Courier New", monospace;
}
.phone-actions small, .block-muted {
    display: block;
    color: #77776f;
}
.phone-actions a {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 10px;
    color: var(--brand);
    background: #fff7e7;
    border: 1px solid var(--line);
    font-weight: 800;
}
.order-type-lines {
    display: grid;
    gap: 4px;
    white-space: normal;
    min-width: 150px;
}
.order-type-lines span {
    display: block;
    padding: 3px 0;
    border-bottom: 1px solid rgba(225,211,186,.65);
}
.order-type-lines span:last-child { border-bottom: 0; }
.order-actions {
    display: grid;
    gap: 8px;
    min-width: 132px;
}
.order-actions form { margin: 0; }
.order-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
}
.btn.whatsapp {
    color: #fff;
    background: #1f9d55;
    border-color: #1f9d55;
    text-decoration: none;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
    .nav-shell { grid-template-columns: 1fr auto; }
    .nav-links { grid-column: 1 / -1; justify-self: stretch; justify-content: center; flex-wrap: wrap; }
    .hero-section, .split-intro, .quality-panel, .order-section, .site-footer { grid-template-columns: 1fr; }
    .hero-copy { justify-self: stretch; }
    h1 { max-width: 12ch; }
    .hero-visual { min-height: 440px; }
    .product-stage { inset: 0 0 0 44px; }
    .quick-gallery, .product-grid, .branch-grid, .admin-shortcuts { grid-template-columns: 1fr 1fr; }
    .product-card, .product-card:nth-child(1), .product-card:nth-child(4) { grid-column: auto; grid-row: auto; min-height: 360px; grid-template-columns: 1fr; }
    .product-card:nth-child(1) .pack-art { min-height: 240px; }
    .pack-art { min-height: 240px; order: 1; }
    .product-body { order: 2; }
    .best-item { grid-template-columns: 90px 1fr auto; }
    .best-item .button { grid-column: 2 / -1; justify-self: start; }
}

@media (max-width: 720px) {
    body { overflow-x: hidden; }
    .site-header { position: static; }
    .nav-shell { grid-template-columns: 1fr; gap: 14px; }
    .brand-lockup, .logo { min-width: 0; }
    .brand-lockup span:last-child, .logo span:last-child { min-width: 0; }
    .brand-lockup strong, .logo strong, .logo b { font-size: 16px; }
    .brand-lockup small, .logo small { white-space: normal; }
    .nav-actions { justify-self: stretch; justify-content: center; }
    .service-strip { flex-direction: column; gap: 4px; }
    .hero-section { padding-top: 34px; }
    h1 { max-width: none; font-size: clamp(34px, 10vw, 52px); }
    .hero-visual { min-height: 360px; }
    .product-stage { inset: 0; border-radius: 28px 8px 28px 8px; }
    .vertical-badge { display: none; }
    .trust-row, .quick-gallery, .category-tabs, .product-grid, .branch-grid, .form-grid, .admin-shortcuts { grid-template-columns: 1fr; }
    .quick-gallery button {
        background:
            linear-gradient(90deg, rgba(255,252,246,.98) 0 48%, rgba(255,252,246,.58) 70%, rgba(255,252,246,.18) 100%),
            url("../img/products/generated-hero-ajwa.png") right center / auto 122% no-repeat;
    }
    .span-2 { grid-column: auto; }
    .best-item { grid-template-columns: 1fr; text-align: right; }
    .mini-art { width: 130px; }
    .contact-phone div { grid-template-columns: 1fr; }
    .social-links.compact { justify-content: stretch; }
    .social-links.compact a { flex: 1 1 110px; }
    .newsletter div { grid-template-columns: 1fr; }
    .product-edit { grid-template-columns: 1fr; }
    .product-edit-full { grid-template-columns: 1fr; }
    .wide-field { grid-column: auto; }
    .order-items-head, .order-item { grid-template-columns: 1fr; }
    .order-items-head { align-items: start; }
    .order-item img { width: 100%; height: 150px; }
    .variant-row { grid-template-columns: 1fr; }
    .quantity-stepper { grid-template-columns: 42px 1fr 42px; }
    .variant-edit > div { grid-template-columns: 1fr; }
}
