/* AM Tuff Tiles: base styles and design tokens */

:root {
    --charcoal: #202725;
    --charcoal-soft: #2c3633;
    --forest: #203833;          /* deep forest green: buttons, dark sections */
    --forest-hover: #162825;
    --navy: #203833;            /* legacy name, now forest green (header/hero/footer dark surfaces) */
    --navy-2: #203833;
    --accent: #b58b55;          /* bronze: accents, and text on dark backgrounds */
    --accent-strong: #203833;   /* links, prices and highlights on light backgrounds */
    --accent-strong-hover: #162825;
    --bronze: #b58b55;
    --bronze-hover: #a47a46;
    --gold: #b58b55;
    --steel: #68716e;
    --muted: #68716e;           /* secondary text */
    --bg: #f5f2ec;              /* warm ivory */
    --bg-alt: #e4ded3;          /* stone grey */
    --surface: #ffffff;
    --border: #e2e3df;
    --border-strong: #d4d8d3;
    --success: #2f7d4f;
    --warning: #b87400;
    --easypaisa: #16803c;       /* EasyPaisa green (brand colour of the payment method) */

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 8px;
    --radius-sm: 6px;
    --shadow: none;
    --shadow-lg: 0 8px 24px rgba(32, 39, 37, 0.10);
    --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
    --container: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--bg);
}

main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--accent-strong); }
a:hover { color: var(--accent-strong-hover); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent-strong);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
    background: linear-gradient(135deg, #e01616, #c40b0b);
    color: #fff;
    box-shadow: 0 6px 16px rgba(32, 56, 51, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #c40b0b, #a80808);
    color: #fff;
    box-shadow: 0 10px 22px rgba(32, 56, 51, 0.34);
}
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border-bottom: 3px solid var(--accent-strong);
    color: #fff;
    transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
}
.brand:hover { color: #fff; }
.brand-logo { transition: transform 0.4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--accent-strong);
    font-size: 0.95rem;
}

.site-nav { display: flex; gap: 0.25rem; }

.site-nav a {
    position: relative;
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-nav a.is-active { color: #fff; }
/* Underline that grows from the middle on hover and stays on the current page */
.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a.is-active:not(.nav-cta)::after { transform: scaleX(1); }

/* Hamburger button (phones only). One bar plus two pseudo-bars; they turn into an X when open. */
.nav-toggle {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2.5px;
    margin-left: -11px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.3s var(--ease), background-color 0.2s, top 0.3s var(--ease);
}
.nav-toggle-bar { top: 50%; margin-top: -1.25px; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 720px) {
    .js .nav-toggle { display: block; }

    /* With JavaScript the menu is a panel that slides down; without it the links simply stack under the logo */
    .header-inner { flex-wrap: wrap; }
    .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 0.75rem; }

    .js .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-basis: auto;
        background: var(--navy);
        padding: 0.5rem 1.25rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
    }
    .js .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition-delay: 0s;
    }
    /* Links glide in one after another */
    .js .site-nav.is-open > * { animation: navItemIn 0.4s var(--ease) both; }
    .js .site-nav.is-open > *:nth-child(2) { animation-delay: 0.04s; }
    .js .site-nav.is-open > *:nth-child(3) { animation-delay: 0.08s; }
    .js .site-nav.is-open > *:nth-child(4) { animation-delay: 0.12s; }
    .js .site-nav.is-open > *:nth-child(5) { animation-delay: 0.16s; }
    .js .site-nav.is-open > *:nth-child(6) { animation-delay: 0.2s; }
    .js .site-nav.is-open > *:nth-child(7) { animation-delay: 0.24s; }
    .js .site-nav.is-open > *:nth-child(8) { animation-delay: 0.28s; }

    .site-nav a { padding: 0.8rem 0.9rem; }
    .site-nav a:not(.nav-cta)::after { left: 0.9rem; right: auto; width: 28px; bottom: 0.35rem; transform-origin: left; }
    .site-nav a.is-active { background: rgba(255, 255, 255, 0.08); }
}

@keyframes navItemIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: none; }
}

/* Hero: charcoal with a faint tile-grid pattern */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(760px 380px at 88% 8%, rgba(255, 106, 95, 0.26), transparent 62%),
        radial-gradient(620px 320px at 4% 100%, rgba(242, 184, 75, 0.12), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: clamp(3rem, 9vw, 6.5rem) 0;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 95%);
    mask-image: linear-gradient(to bottom, #000, transparent 95%);
    animation: gridDrift 40s linear infinite;
}
.hero .container { position: relative; }
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.15rem; color: #d7dce2; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero text rises in one piece after another when the page opens */
.hero-inner > * { animation: fadeUp 0.8s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.hero-inner > :nth-child(4) { animation-delay: 0.24s; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* Sections and cards */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-head h2 { position: relative; padding-bottom: 0.7rem; }
.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-strong), var(--gold));
}

.card-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
    background: linear-gradient(180deg, #fff, #f5f2ec);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent-strong);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); }

/* Inner pages */
.page-head {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(520px 240px at 92% 0%, rgba(255, 106, 95, 0.2), transparent 65%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.page-head .container { position: relative; }
.page-head h1 { margin: 0; color: #fff; animation: fadeUp 0.7s var(--ease) both; }
.page-head-sub { animation: fadeUp 0.7s var(--ease) 0.08s both; }

.container.prose { max-width: var(--container); }
.prose { font-size: 1.05rem; }
.prose > :not(img) { max-width: 760px; }

.message-page { text-align: center; }
.message-page .btn { margin-top: 0.5rem; }

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border-top: 4px solid var(--accent-strong);
    color: #d7dce2;
    margin-top: 0;
}
.site-footer a { color: #fff; }
.footer-inner {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}
.footer-inner p { margin: 0 0 0.4rem; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-heading { font-weight: 600; color: #fff; }
.footer-muted { color: #b8c0c9; }
.footer-bottom {
    border-top: 1px solid var(--charcoal-soft);
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #b8c0c9;
}
.footer-bottom p { margin: 0; text-align: center; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 0.35rem; }
.footer-links a { display: inline-block; color: #d7dce2; text-decoration: none; transition: transform 0.2s var(--ease), color 0.2s; }
.footer-links a:hover { color: var(--accent); transform: translateX(4px); }
.footer-contact a { transition: color 0.2s; }
.footer-contact a:hover { color: var(--accent); text-decoration: underline; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0 0 0.6rem; }
.footer-contact a { text-decoration: none; }
.footer-contact .icon { flex: none; margin-top: 0.15rem; color: var(--accent); }
.brand-logo { width: 44px; height: 44px; padding: 4px; border-radius: 50%; background: #fff; object-fit: contain; flex: none; }
.about-logo { width: 220px; height: auto; margin: 0 0 1.5rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Shop: filter bar (directly under the main menu) */
.filter-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.filter-toggle {
    display: none;
    margin: 0.75rem 0;
    padding: 0.55rem 1.1rem;
    font: inherit;
    font-weight: 600;
    color: var(--charcoal);
    background: #fff;
    border: 1px solid #d4d8d3;
    border-radius: 999px;
    cursor: pointer;
}
.filter-count {
    display: inline-block;
    min-width: 1.4rem;
    margin-left: 0.3rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
}
.form.filter-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem 1rem;
    align-items: end;
    padding: 1rem 0 1.1rem;
}
.form.filter-panel .field { margin: 0; }
.form.filter-panel label { font-size: 0.85rem; margin-bottom: 0.25rem; }
.form.filter-panel input[type="search"],
.form.filter-panel input[type="text"],
.form.filter-panel select { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.form.filter-panel .field-wide { grid-column: span 2; }
.form.filter-panel .field-check { padding-bottom: 0.6rem; }
.price-range { display: flex; align-items: center; gap: 0.4rem; }
.price-range span { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
    .filter-toggle { display: inline-block; }
    .js .form.filter-panel { display: none; }
    .js .form.filter-panel.is-open { display: grid; }
    .form.filter-panel .field-wide { grid-column: 1 / -1; }
}

/* Shop: results and product cards */
.shop-section { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.shop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.shop-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0; }
.shop-head p { margin: 0; }
.shop-intro { max-width: 640px; color: var(--muted); margin-top: -0.5rem; }

.product-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #dcd5c8; }
.product-card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.product-card-media { display: block; aspect-ratio: 4 / 3; background: #f1efe9; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.07); }
.product-card-title a { transition: color 0.2s; }
.product-card:hover .product-card-title a { color: var(--accent-strong); }
.product-card-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 0.9rem; }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.product-card-cat { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-card-title { font-size: 1.05rem; margin: 0 0 0.4rem; }
.product-card-title a { color: var(--charcoal); text-decoration: none; }
.product-card-title a::after { content: ""; position: absolute; inset: 0; }
.product-card-desc { margin: 0 0 0.6rem; font-size: 0.92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-foot { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.product-card-foot .badge { margin-top: 0; }
.product-price { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--accent-strong); }
.product-price-lg { font-size: 1.75rem; margin: 0.25rem 0 0.5rem; }

/* Shop: product page */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-strong); }
.product-layout { display: grid; gap: clamp(1.25rem, 4vw, 3rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.gallery-main { display: block; aspect-ratio: 4 / 3; background: #f1efe9; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-empty { display: grid; place-items: center; color: var(--muted); }
.gallery-thumbs { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.gallery-thumbs a { display: block; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f1efe9; }
.gallery-thumbs a.is-active { border-color: var(--accent-strong); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.25rem; }
.eyebrow-dark { color: var(--accent-strong); }
.stock-line { margin: 0 0 1rem; }
.stock-line .badge { margin-top: 0; }
.product-lead { font-size: 1.1rem; color: var(--charcoal); }
.specs { margin: 1.25rem 0; border-top: 1px solid var(--border); }
.specs div { display: flex; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.specs dt { width: 7.5rem; flex: none; color: var(--muted); font-weight: 500; }
.specs dd { margin: 0; font-weight: 600; }
.order-note { background: #f5f2ec; border: 1px solid #e4ded3; border-radius: var(--radius); padding: 1rem 1.15rem; }
.order-note p { margin: 0 0 0.6rem; }
.order-note .order-note-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.product-description { margin-top: 2.5rem; max-width: 760px; }
.product-description h2, .related h2 { font-size: 1.4rem; }
.related { margin-top: 3rem; }

@media (max-width: 860px) {
    .product-layout { grid-template-columns: 1fr; }
}

/* Home: clickable category cards and featured band */
.card-link-wrap { position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-top-color 0.3s; }
.card-link-wrap:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-top-color: var(--gold); }
.card-link-wrap:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-stretched { color: var(--charcoal); text-decoration: none; transition: color 0.2s; }
.card-stretched::after { content: ""; position: absolute; inset: 0; }
.card-link-wrap:hover .card-stretched { color: var(--accent-strong); }
.card-link-wrap h3::before {
    content: "\2192";
    float: right;
    color: var(--accent-strong);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.card-link-wrap:hover h3::before { opacity: 1; transform: none; }
.section-alt { background: var(--bg-alt); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }

/* Header: login state */
.site-nav { align-items: center; }
.nav-user { color: #b8c0c9; padding: 0.5rem 0.4rem 0.5rem 0.9rem; font-size: 0.95rem; }
.nav-form { margin: 0; display: inline-flex; }
.nav-link-btn {
    background: transparent;
    border: 0;
    color: #e5e7eb;
    font: inherit;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
}
.nav-link-btn:hover { background: var(--charcoal-soft); color: #fff; }
.site-nav a.nav-cta { background: var(--accent-strong); color: #fff; margin-left: 0.25rem; }
.site-nav a.nav-cta:hover { background: var(--accent-strong-hover); }

@media (max-width: 720px) {
    .site-nav { align-items: stretch; }
    .nav-user { padding-left: 0.9rem; }
    .nav-form { display: block; }
    .nav-link-btn { width: 100%; text-align: left; }
    .site-nav a.nav-cta { margin-left: 0; text-align: center; }
}

/* Messages */
.flash-wrap { padding-top: 1.25rem; }
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 500;
    animation: slideDown 0.45s var(--ease) both;
}
.alert-success { background: #ebf7ee; border-color: #b7e0c0; color: #1e5a2c; }
.alert-error   { background: #fdeceb; border-color: #f2bcb8; color: #8a1f17; }
.alert-info    { background: #eaf1fb; border-color: #bcd1ef; color: #1d3f72; }

/* Forms */
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: var(--shadow);
}
.auth-card .alert { margin-bottom: 1.25rem; }
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form .optional { font-weight: 400; color: var(--muted); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="password"] {
    width: 100%;
    font: inherit;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d4d8d3;
    border-radius: 10px;
    background: #fff;
    color: var(--charcoal);
}
.form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent-strong); }
.form input[aria-invalid="true"] { border-color: #b42318; }
.field-hint { margin: 0.3rem 0 0; font-size: 0.875rem; color: var(--muted); }
.field-error { margin: 0.35rem 0 0; font-size: 0.9rem; color: #b42318; font-weight: 500; }
.btn-block { display: block; width: 100%; text-align: center; }
.auth-alt { margin: 1.25rem 0 0; text-align: center; color: var(--muted); }

.page-head-sub { margin: 0.5rem 0 0; color: #d7dce2; }
.badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #eef0f3;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Admin: sub menu */
.admin-nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-nav .container { display: flex; gap: 0.25rem; overflow-x: auto; }
/* Centered; auto margins keep the first tab reachable when the bar must scroll on a phone */
.admin-nav .container > :first-child { margin-left: auto; }
.admin-nav .container > :last-child { margin-right: auto; }
.admin-nav a,
.admin-nav span {
    padding: 0.85rem 1rem;
    white-space: nowrap;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    border-bottom: 3px solid transparent;
}
.admin-nav a:hover { color: var(--charcoal); }
.admin-nav a.is-active { color: var(--charcoal); border-bottom-color: var(--accent); }
.admin-nav .is-soon { opacity: 0.55; cursor: default; }
.link-light { color: #fff; }
.card-link { margin-top: 0.9rem; }

/* Buttons: extra variants */
.btn-secondary { background: #fff; color: var(--charcoal); border-color: #d4d8d3; }
.btn-secondary:hover { background: #f1efe9; color: var(--charcoal); border-color: #a9a69e; }
.btn-ghost-dark { color: var(--muted); border-color: transparent; }
.btn-ghost-dark:hover { color: var(--charcoal); background: #efede7; }
.btn-danger { background: #fff; color: #b42318; border-color: #e4a7a2; }
.btn-danger:hover { background: #fdeceb; color: #8a1f17; }
.btn-danger[disabled] { opacity: 0.5; cursor: not-allowed; background: #fff; }
.btn-sm { padding: 0.4rem 0.95rem; font-size: 0.9rem; }
.alert-warning { background: #fff7e0; border-color: #f0d58a; color: #6b4600; }
.muted { color: var(--muted); }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Panels and wider forms */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.1rem, 3vw, 1.75rem);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.panel h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.panel-danger { border-color: #efc4c0; }
.form-grid {
    display: grid;
    gap: 0 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .field.full { grid-column: 1 / -1; }
.form select,
.form textarea,
.form input[type="search"],
.form input[type="number"] {
    width: 100%;
    font: inherit;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d4d8d3;
    border-radius: 10px;
    background: #fff;
    color: var(--charcoal);
}
.form textarea { resize: vertical; min-height: 7rem; }
.form select:focus-visible,
.form textarea:focus-visible,
.form input[type="search"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent-strong); }
.form select[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-color: #b42318; }
.form input[type="file"] { width: 100%; font: inherit; padding: 0.55rem; border: 1px dashed #b7b3aa; border-radius: 10px; background: #fcfbf8; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.check { display: inline-flex !important; align-items: center; gap: 0.55rem; font-weight: 500 !important; margin: 0 !important; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent-strong); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* Lists, tables and filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.filter-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.form.filter-form .field { margin: 0; min-width: 11rem; }
.filter-form label { font-size: 0.85rem; }
.form.filter-form input[type="search"],
.form.filter-form select { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.filter-actions { display: flex; gap: 0.5rem; align-items: center; }
@media (max-width: 560px) {
    .form.filter-form .field { min-width: 0; flex: 1 1 100%; }
}
.inline-form { display: inline; margin: 0; }
.empty-state { text-align: center; padding: 2.5rem 1rem; background: var(--surface); border: 1px dashed #d4d8d3; border-radius: var(--radius); color: var(--muted); }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.75rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #faf9f6; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .badge { margin-top: 0; }
.table-title { font-weight: 600; color: var(--charcoal); text-decoration: none; }
.table-title:hover { color: var(--accent-strong); text-decoration: underline; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions .btn + .inline-form { margin-left: 0.35rem; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #f1efe9; display: block; }
.thumb-empty { display: grid; place-items: center; font-size: 0.7rem; color: var(--muted); text-align: center; line-height: 1.2; }

.badge-ok   { background: #ebf7ee; color: #1e5a2c; }
.badge-off  { background: #eef0f3; color: #4b5563; }
.badge-warn { background: #fff4d6; color: #7a4b00; }
.badge-info { background: #eaf1fb; color: #1d3f72; margin-left: 0.4rem; }

.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.pager-info { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 720px) {
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
    .table tbody tr:last-child { border-bottom: 0; }
    .table td { border: 0; padding: 0.3rem 0; display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; }
    .table td[data-label]::before { content: attr(data-label); font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
    .table td.actions { justify-content: flex-start; padding-top: 0.6rem; }
}

/* Photos on the product page */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.photo { background: #faf9f6; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem; }
.photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #f1efe9; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.6rem; }
.photo-actions .badge { margin-top: 0; }

/* Categories page */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-row { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cat-row:last-child { border-bottom: 0; }
.cat-form { display: grid; gap: 0 1rem; grid-template-columns: 1.2fr 1.6fr 6rem auto; align-items: end; }
.cat-form .field { margin-bottom: 0.5rem; }
.cat-form .field-check { padding-bottom: 0.9rem; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
@media (max-width: 900px) {
    .cat-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .cat-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    .js .reveal { opacity: 1 !important; }
}

/* Cart and checkout */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container.narrow { max-width: 760px; }
.cart-count {
    display: inline-block;
    min-width: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35rem;
    text-align: center;
    animation: pop 0.5s var(--ease) both;
}
.qty-input {
    width: 5rem;
    padding: 0.5rem 0.6rem;
    font: inherit;
    border: 1px solid #d4d8d3;
    border-radius: var(--radius-sm, 8px);
    background: #fff;
}
.buy-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1rem 0 0.25rem; }
.link-btn { padding: 0; font: inherit; font-size: 0.9rem; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: #b42318; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { display: block; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: #7a8590; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-thumb-empty { display: flex; height: 100%; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem; }
.cart-info { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.cart-name { font-weight: 600; color: var(--charcoal); text-decoration: none; }
.cart-name:hover { color: var(--accent-strong); text-decoration: underline; }
.cart-unit { color: var(--muted); font-size: 0.9rem; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.4rem; }
.cart-qty-form { display: flex; align-items: center; gap: 0.4rem; }
.cart-total { margin: 0; font-weight: 700; font-family: var(--font-head); white-space: nowrap; }

.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.summary-card h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.summary-card h3 { margin: 1.25rem 0 0.25rem; font-size: 1rem; }
.summary-items { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.summary-items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.summary-rows { margin: 0 0 0.75rem; }
.summary-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.summary-rows dt, .summary-rows dd { margin: 0; }
.summary-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.6rem !important; }
.summary-more { margin: 0.9rem 0 0; text-align: center; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.summary-wide { margin-bottom: 1rem; }
.checkout-form h2 { margin-top: 0; }
.pay-note { margin: 0 0 1.1rem; padding: 0.8rem 1rem; background: #f5f2ec; border: 1px solid #e4ded3; border-radius: 10px; }

@media (max-width: 860px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
    .cart-thumb { width: 72px; height: 54px; }
    .cart-total { grid-column: 2; }
}
.summary-card .field-hint { margin-bottom: 0.9rem; }

/* Admin: orders and report */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tab { padding: 0.45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid #d4d8d3; color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.tab:hover { background: #f1efe9; }
.tab.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.tab-count { display: inline-block; margin-left: 0.25rem; padding: 0 0.45rem; border-radius: 999px; background: rgba(120, 120, 120, 0.18); font-size: 0.8rem; }
.status-form { margin: 0 0 0.6rem; }
.timeline { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.stat { margin: 0 0 0.8rem; }
.stat-grid { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.2rem; }
.stat-card strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--charcoal); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.report-h { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.bar-col { width: 30%; min-width: 120px; }
.bar { display: block; height: 0.7rem; border-radius: 999px; background: var(--accent-strong); min-width: 2px; }
.bar[style*="width: 0%"] { background: transparent; }

/* About page */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.about-text p { max-width: 62ch; }
.about-media img { width: 100%; max-width: 520px; margin-left: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.about-actions .icon { width: 18px; height: 18px; margin-right: 0.4rem; vertical-align: -3px; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.about-points li { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.about-points h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.about-points p { margin: 0; color: var(--muted); }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.about-cta h2 { margin-bottom: 0.25rem; }
.about-cta p { margin: 0; color: var(--muted); }
.about-cta .about-actions { margin: 0; }
@media (max-width: 820px) {
    .about-intro { grid-template-columns: 1fr; }
    .about-media { order: -1; }
    .about-media img { margin: 0; max-width: 100%; aspect-ratio: 16 / 10; }
}

/* Home hero: round pictures */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 2rem; align-items: center; }
.hero-circles { list-style: none; margin: 0; padding: 0; position: relative; height: 470px; }
.hero-circle { position: absolute; animation: popIn 0.9s var(--ease) both, float 7s ease-in-out 0.9s infinite; }
.hero-circle-2 { animation-delay: 0.15s, 1.4s; animation-duration: 0.9s, 8.5s; }
.hero-circle-3 { animation-delay: 0.3s, 2s; animation-duration: 0.9s, 6.5s; }
.hero-circle a { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--charcoal-soft, #323f4b); border: 5px solid rgba(255, 255, 255, 0.92); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4); }
.hero-circle img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hero-circle a:hover img { transform: scale(1.06); }
.hero-circle-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.5rem 0.9rem; text-align: center; color: #fff; font-weight: 600; font-family: var(--font-head); background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.hero-circle-1 { width: 240px; height: 240px; top: 0; left: 0; }
.hero-circle-2 { width: 280px; height: 280px; top: 50px; right: 0; }
.hero-circle-3 { width: 210px; height: 210px; bottom: 0; left: 50px; }
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-circles { height: auto; display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.5rem; }
    .hero-circles { gap: 0.6rem; }
    .hero-circle, .hero-circle-1, .hero-circle-2, .hero-circle-3 { position: static; width: calc((100% - 1.2rem) / 3); max-width: 170px; height: auto; aspect-ratio: 1 / 1; }
    .hero-circle a { border-width: 3px; }
    .hero-circle-label { font-size: 0.8rem; padding-top: 1rem; padding-bottom: 0.5rem; }
}
.forgot-link { margin: -0.4rem 0 1rem; text-align: right; font-size: 0.92rem; }

/* Admin dashboard: cards centered on the page */
.card-grid.card-grid-center { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; }

/* Google Map just above the footer: full width of the screen */
.map-section { background: var(--surface); border-top: 1px solid var(--border); }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1.5rem; padding-bottom: 1.25rem; }
.map-bar h2 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.map-bar p { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.map-bar .icon { width: 18px; height: 18px; color: var(--accent-strong); flex: none; }
.map-frame { display: block; width: 100%; height: clamp(300px, 42vw, 460px); border: 0; }

/* ------------------------------------------------------------------
   Motion and polish
   ------------------------------------------------------------------ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: none; }
}
@keyframes pop {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes gridDrift {
    from { background-position: 0 0; }
    to { background-position: 56px 56px; }
}

/* Blocks fade up as they scroll into view. app.js adds .reveal and .is-visible; without JavaScript nothing is hidden. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: fadeUp 0.7s var(--ease) var(--reveal-delay, 0s) backwards; }
@media print { .js .reveal { opacity: 1; } }

/* Form fields: smooth focus glow */
.form input,
.form select,
.form textarea { transition: border-color 0.2s, box-shadow 0.2s; }
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible { box-shadow: 0 0 0 5px rgba(32, 56, 51, 0.1); }

/* Cards and panels that lift a little on hover */
.summary-card, .panel, .stat-card, .about-points li { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.stat-card:hover, .about-points li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cart-line { transition: background-color 0.2s; }
.cart-line:hover { background: #f5f2ec; }
.tab { transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.tab:hover { transform: translateY(-1px); }
.table tbody tr { transition: background-color 0.2s; }
.table tbody tr:hover { background: #f5f2ec; }

/* ------------------------------------------------------------------
   Checkout: guest note, payment choice and EasyPaisa details
   ------------------------------------------------------------------ */
.guest-note { margin: -0.25rem 0 1.25rem; padding: 0.7rem 1rem; border-radius: 10px; background: #eef7f0; border: 1px solid #c4e3cc; color: #1e5a2c; font-size: 0.95rem; }
.guest-note a { color: inherit; font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pay-options { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.pay-options legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; }
.pay-options-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pay-option { position: relative; display: block; margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pay-option-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    height: 100%;
    padding: 0.95rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.25s var(--ease), background-color 0.2s, transform 0.25s var(--ease);
}
.pay-option:hover .pay-option-card { border-color: #cfc8bb; transform: translateY(-2px); }
.pay-dot {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    border: 2px solid #b7b3aa;
    border-radius: 50%;
    transition: border-color 0.2s;
}
.pay-dot::after { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent-strong); transform: scale(0); transition: transform 0.25s var(--ease); }
.pay-option-title { display: block; font-weight: 600; color: var(--charcoal); }
.pay-option-text { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--muted); }
.pay-option input:checked + .pay-option-card { border-color: var(--accent-strong); background: #f5f2ec; box-shadow: 0 0 0 4px rgba(32, 56, 51, 0.09); }
.pay-option input:checked + .pay-option-card .pay-dot { border-color: var(--accent-strong); }
.pay-option input:checked + .pay-option-card .pay-dot::after { transform: scale(1); }
.pay-option-ep input:checked + .pay-option-card { border-color: var(--easypaisa); background: #f1faf4; box-shadow: 0 0 0 4px rgba(22, 128, 60, 0.1); }
.pay-option-ep input:checked + .pay-option-card .pay-dot { border-color: var(--easypaisa); }
.pay-option-ep input:checked + .pay-option-card .pay-dot::after { background: var(--easypaisa); }
.pay-option input:focus-visible + .pay-option-card { outline: 3px solid var(--accent); outline-offset: 2px; }

/* EasyPaisa details: opens and closes smoothly (grid-template-rows trick) */
.pay-panel { display: grid; grid-template-rows: 1fr; margin: 0 0 1.1rem; transition: grid-template-rows 0.4s var(--ease), opacity 0.3s, margin 0.4s var(--ease), visibility 0s; }
.js .pay-panel.is-collapsed { grid-template-rows: 0fr; opacity: 0; margin-bottom: 0; visibility: hidden; transition: grid-template-rows 0.4s var(--ease), opacity 0.25s, margin 0.4s var(--ease), visibility 0s linear 0.4s; }
.pay-panel-inner { min-height: 0; overflow: hidden; }
.pay-panel-box { padding: 1.1rem 1.2rem 0.4rem; border: 1px solid #bfe0c9; border-left: 5px solid var(--easypaisa); border-radius: var(--radius); background: #f6fbf8; }
.pay-panel h3 { margin: 0 0 0.6rem; font-size: 1.05rem; color: #14532d; }
.ep-account { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 0.8rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: #fff; border: 1px dashed #8cc9a1; }
.ep-number { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--charcoal); user-select: all; }
.ep-name { color: var(--muted); font-size: 0.92rem; }
.ep-copy { margin-left: auto; }
.ep-steps { margin: 0 0 1rem; padding-left: 1.2rem; color: #2d4a38; font-size: 0.95rem; }
.ep-steps li { margin-bottom: 0.25rem; }
.amount-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.amount-row input { flex: 1 1 10rem; min-width: 0; }
.shot-preview { display: none; margin-top: 0.6rem; }
.shot-preview.is-shown { display: block; animation: popIn 0.4s var(--ease) both; }
.shot-preview img { max-height: 220px; width: auto; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.shot-note { margin: 0.35rem 0 0; font-size: 0.9rem; color: #b42318; font-weight: 500; }
.js-only { display: none; }
.js .js-only { display: inline-block; }

/* Order pages: payment summary and screenshot */
.badge-ep { background: #e3f4e8; color: #14532d; }
.pay-summary { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 10px; background: #f1faf4; border: 1px solid #c4e3cc; color: #1e5a2c; }
.pay-summary p { margin: 0 0 0.3rem; }
.pay-summary p:last-child { margin: 0; }
.proof-link { display: inline-block; margin-top: 0.4rem; }
.proof-img { max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--border); background: #fff; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.proof-link:hover .proof-img { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* Pop-up messages (modals): order placed, login, added to cart, saved, deleted, "are you sure?" */
.modal { --modal-color: var(--navy); --modal-tint: #e9eef5; }
.modal.is-success { --modal-color: #1e8a43; --modal-tint: #e3f5e9; }
.modal.is-error   { --modal-color: #c62d22; --modal-tint: #fdeceb; }
.modal.is-warning { --modal-color: #b87400; --modal-tint: #fff4d6; }
.modal.is-info    { --modal-color: #2a5ea8; --modal-tint: #e8f0fb; }

/* Without JavaScript the message is just a box on the page */
.modal { max-width: 560px; margin: 1.25rem auto; padding: 0 1rem; }
.modal-backdrop, .modal-timer { display: none; }
.modal-box { padding: 1.5rem 1.4rem; text-align: center; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--modal-color); border-radius: 16px; }

.js .modal { position: fixed; inset: 0; z-index: 1000; max-width: none; margin: 0; padding: 1rem; display: flex; align-items: center; justify-content: center; }
.js .modal-backdrop { display: block; position: absolute; inset: 0; background: rgba(15, 24, 34, 0.62); backdrop-filter: blur(3px); animation: modalFade 0.25s ease both; }
.js .modal-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.9rem 1.6rem 1.5rem; border: 0; border-top: 6px solid var(--modal-color); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); animation: modalIn 0.38s var(--ease) both; }
.js .modal.is-leaving .modal-backdrop { animation: modalFadeOut 0.2s ease both; }
.js .modal.is-leaving .modal-box { animation: modalOut 0.2s ease both; }
.modal-box:focus { outline: none; }

.modal-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 0.9rem; border-radius: 50%; color: var(--modal-color); background: var(--modal-tint); box-shadow: 0 0 0 8px color-mix(in srgb, var(--modal-tint) 55%, transparent); }
.js .modal-icon { animation: popIn 0.5s 0.12s var(--ease) both; }
.js .modal.is-success .modal-icon svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck 0.5s 0.3s ease forwards; }
.modal-title { margin: 0 0 0.4rem; font-size: 1.35rem; line-height: 1.25; }
.modal-text { margin: 0 0 0.6rem; color: var(--muted); overflow-wrap: anywhere; }
.modal-note { padding-top: 0.6rem; border-top: 1px dashed var(--border); font-size: 0.93rem; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.1rem; }
.modal-actions .btn { flex: 1 1 9rem; justify-content: center; text-align: center; }
.btn-danger { background: linear-gradient(135deg, #d64035, #b3261b); border-color: transparent; color: #fff; }
.btn-danger:hover { filter: brightness(1.06); }

.modal-timer { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--modal-color); transform-origin: left; opacity: 0.55; animation: modalTimer var(--modal-time, 4.5s) linear forwards; border-radius: 0 0 16px 16px; }
.modal.is-paused .modal-timer { animation-play-state: paused; }

/* "Placing your order..." */
.modal-spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--modal-tint); border-top-color: var(--modal-color); animation: spin 0.8s linear infinite; }
.modal-loading .modal-icon { background: transparent; box-shadow: none; }

body.modal-open { overflow: hidden; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes modalOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes modalTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .modal-spinner { animation: spin 2.4s linear infinite !important; }
    .js .modal.is-success .modal-icon svg path { stroke-dashoffset: 0; }
    .modal-timer { display: none; }
}

/* Featured products: centred row with arrows, tile-pattern band at the sides */
.section-featured {
    background:
        radial-gradient(520px 320px at 0% 50%, rgba(32, 56, 51, 0.10), transparent 70%),
        radial-gradient(520px 320px at 100% 50%, rgba(255, 106, 95, 0.12), transparent 70%),
        linear-gradient(rgba(22, 34, 46, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(22, 34, 46, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
        var(--bg-alt);
}
.carousel { position: relative; }
.carousel-track {
    display: flex;
    justify-content: safe center;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.6rem 0.25rem 1.1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { flex: 0 0 min(270px, 78%); scroll-snap-align: center; }
.carousel-btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    box-shadow: 0 6px 18px rgba(15, 24, 34, 0.35);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.25s var(--ease), background 0.25s, opacity 0.25s;
}
.carousel-btn[hidden] { display: none; }
.carousel-btn:hover:not(:disabled) { background: var(--accent-strong); transform: translateY(-50%) scale(1.1); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }

/* Phones: two product cards side by side */
@media (max-width: 560px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .product-card-body { padding: 0.7rem 0.75rem 0.8rem; }
    .product-card-title { font-size: 0.95rem; }
    .product-card-desc { font-size: 0.82rem; -webkit-line-clamp: 2; }
    .product-card-cat { font-size: 0.68rem; }
    .product-price { font-size: 1rem; }
    .carousel-track { gap: 0.75rem; }
    .carousel-track > li { flex-basis: calc((100% - 0.75rem) / 2); }
    .carousel-btn { width: 40px; height: 40px; }
    .carousel-prev { left: -8px; }
    .carousel-next { right: -8px; }
}

/* ==================================================================
   Redesign: charcoal, forest green, ivory and bronze
   Presentation only. Montserrat headings, Inter body, 8 px spacing,
   flat surfaces, thin borders, small radii, restrained motion.
   ================================================================== */
body { line-height: 1.5; color: var(--charcoal); background: var(--bg); font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--charcoal); }
h1 { font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
.container { padding-left: clamp(1rem, 4vw, 2rem); padding-right: clamp(1rem, 4vw, 2rem); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
a { color: var(--forest); }
a:hover { color: var(--forest-hover); }

/* Buttons: primary forest, secondary bronze, outline */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.5rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn:hover, .btn:active { transform: none; }
.btn-sm { min-height: 40px; padding: 0.4rem 1.1rem; font-size: 0.875rem; }
.btn-primary { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: none; }
.btn-primary:hover { background: var(--forest-hover); border-color: var(--forest-hover); color: #fff; box-shadow: none; }
.btn-primary:active { background: #0f1c19; }
.btn-secondary { background: #fff; color: var(--charcoal); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg); color: var(--charcoal); border-color: var(--charcoal); }
.btn-accent { background: var(--bronze); color: var(--charcoal); border-color: var(--bronze); }
.btn-accent:hover { background: var(--bronze-hover); border-color: var(--bronze-hover); color: var(--charcoal); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
/* On dark sections the main button is bronze so it stays visible */
.hero .btn-primary, .page-head .btn-primary, .site-footer .btn-primary, .about-cta.is-dark .btn-primary { background: var(--bronze); border-color: var(--bronze); color: var(--charcoal); }
.hero .btn-primary:hover, .page-head .btn-primary:hover, .site-footer .btn-primary:hover { background: var(--bronze-hover); border-color: var(--bronze-hover); color: var(--charcoal); }
.btn-danger { background: #fff; color: #b42318; border-color: #e4a7a2; }
.btn-danger:hover { background: #fdeceb; color: #8a1f17; }
.modal .btn-danger { background: #b3261b; color: #fff; border-color: #b3261b; }
.modal .btn-danger:hover { background: #8f1d14; color: #fff; }

/* Header: ivory, charcoal text, thin border */
.site-header { background: var(--bg); color: var(--charcoal); border-bottom: 1px solid var(--border-strong); transition: none; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(32, 39, 37, 0.06); }
.header-inner { min-height: 64px; }
.brand { color: var(--charcoal); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--forest); }
.brand:hover .brand-logo { transform: none; }
.brand-logo { border: 1px solid var(--border-strong); }
.brand-mark { background: var(--forest); color: #fff; border-radius: var(--radius-sm); }
.site-nav { gap: 0.25rem; }
.site-nav a { color: var(--charcoal); font-size: 0.9375rem; font-weight: 500; padding: 0.5rem 0.875rem; border-radius: var(--radius-sm); }
.site-nav a:hover { background: transparent; color: var(--forest); }
.site-nav a.is-active { color: var(--forest); font-weight: 600; }
.site-nav a:not(.nav-cta)::after { background: var(--bronze); height: 2px; border-radius: 0; bottom: 0.1rem; transition: transform 0.2s; }
.site-nav a.nav-cta { background: var(--forest); color: #fff; min-height: 40px; display: inline-flex; align-items: center; margin-left: 0.5rem; }
.site-nav a.nav-cta:hover { background: var(--forest-hover); color: #fff; }
.nav-user { color: var(--muted); font-size: 0.875rem; }
.nav-link-btn { color: var(--charcoal); font-size: 0.9375rem; border-radius: var(--radius-sm); }
.nav-link-btn:hover { background: transparent; color: var(--forest); }
.cart-count { background: var(--bronze); color: var(--charcoal); }
.nav-toggle { background: transparent; border: 1px solid var(--border-strong); color: var(--charcoal); border-radius: var(--radius-sm); width: 44px; height: 44px; }
.nav-toggle:hover { background: #fff; border-color: var(--charcoal); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { background: var(--charcoal); height: 2px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
@media (max-width: 720px) {
    .js .site-nav { background: var(--bg); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); box-shadow: 0 12px 24px rgba(32, 39, 37, 0.08); }
    .site-nav a { padding: 0.75rem 0.5rem; min-height: 44px; border-bottom: 1px solid var(--border); border-radius: 0; }
    .site-nav a:not(.nav-cta)::after { display: none; }
    .site-nav a.is-active { background: transparent; box-shadow: inset 3px 0 0 var(--bronze); padding-left: 0.875rem; }
    .site-nav a.nav-cta { margin: 0.75rem 0 0; justify-content: center; border: 0; }
    .nav-link-btn { padding: 0.75rem 0.5rem; min-height: 44px; }
    .nav-user { padding-left: 0.5rem; }
}

/* Dark sections: flat forest green, no gradients or patterns */
.hero, .page-head, .site-footer { background: var(--forest); background-image: none; }
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero::before { display: none; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.1; color: #fff; }
.hero-lead { color: #d9dfdc; font-size: 1.0625rem; line-height: 1.55; }
.hero-actions { gap: 1rem; margin-top: 2rem; }
.eyebrow { color: var(--bronze); font-size: 0.75rem; letter-spacing: 0.14em; }
.eyebrow::before { height: 2px; width: 24px; border-radius: 0; background: var(--bronze); }
.page-head { padding: clamp(2rem, 5vw, 3.25rem) 0; border-bottom: 0; }
.page-head h1 { color: #fff; font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); }
.page-head-sub { color: #d9dfdc; }
.page-head a, .page-head .link-light { color: #fff; }

/* Hero pictures: tidy rectangles instead of floating circles */
.hero-circle a { border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); }
.hero-circle-label { font-size: 0.875rem; background: linear-gradient(transparent, rgba(15, 25, 22, 0.78)); }
@media (max-width: 960px) { .hero-circle a { border-width: 1px; } }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { padding-bottom: 0.75rem; }
.section-head h2::after { width: 40px; height: 3px; border-radius: 0; background: var(--bronze); }
.section-alt, .section-featured { background: var(--bg-alt); }
.card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--bronze); border-radius: var(--radius); box-shadow: none; }
.card-link-wrap:hover { transform: none; box-shadow: none; border-color: var(--forest); border-top-color: var(--bronze); }
.card-link-wrap h3::before { display: none; }
.about-points li { border-left: 3px solid var(--bronze); box-shadow: none; }
.about-media img { border-radius: var(--radius); box-shadow: none; }
.map-section { border-top: 1px solid var(--border-strong); }

/* Product grid: 4 columns wide, 3 laptop, 2 tablet and phone */
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: none; background: #fff; transition: border-color 0.2s; }
.product-card:hover { transform: none; box-shadow: none; border-color: var(--bronze); }
.product-card:focus-within { outline: 2px solid var(--bronze); outline-offset: 2px; }
.product-card-media { aspect-ratio: 4 / 3; background: var(--bg); border-bottom: 1px solid var(--border); }
.product-card-media img { transition: transform 0.35s ease; }
.product-card:hover .product-card-media img { transform: scale(1.03); }
.product-card:hover .product-card-title a { color: var(--forest); }
.product-card-body { padding: 1rem; }
.product-card-cat { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); }
.product-card-title { font-size: 1.125rem; line-height: 1.25; min-height: 2.5em; }
.product-card-desc { font-size: 0.875rem; line-height: 1.45; }
.product-price { color: var(--charcoal); font-size: 1.0625rem; font-family: var(--font-head); }
.product-price-lg { font-size: 1.75rem; }
@media (max-width: 560px) {
    .product-grid { gap: 0.75rem; }
    .product-card-body { padding: 0.75rem; }
    .product-card-title { font-size: 1rem; }
    .product-price { font-size: 1rem; }
}

/* Featured row */
.carousel-track > li { flex: 0 0 calc((100% - 2 * 1.5rem) / 3); }
@media (min-width: 1200px) { .carousel-track > li { flex-basis: calc((100% - 3 * 1.5rem) / 4); } }
@media (max-width: 899px) { .carousel-track > li { flex-basis: calc((100% - 1.25rem) / 2); } }
@media (max-width: 560px) { .carousel-track > li { flex-basis: calc((100% - 0.75rem) / 2); } }
.carousel-track { gap: 1.5rem; }
@media (max-width: 899px) { .carousel-track { gap: 1.25rem; } }
@media (max-width: 560px) { .carousel-track { gap: 0.75rem; } }
.carousel-btn { background: var(--forest); border: 1px solid var(--forest); box-shadow: none; border-radius: 50%; }
.carousel-btn:hover:not(:disabled) { background: var(--bronze); border-color: var(--bronze); color: var(--charcoal); transform: translateY(-50%); }

/* Product page */
.gallery-main, .gallery-thumbs a { border-radius: var(--radius); }
.gallery-main { background: #fff; }
.gallery-thumbs a.is-active { border-color: var(--bronze); }
.eyebrow-dark { color: var(--muted); }
.order-note, .pay-note { background: var(--bg); border: 1px solid var(--border-strong); border-left: 3px solid var(--bronze); border-radius: var(--radius); }
.specs { border-top-color: var(--border); }

/* Forms: 46 px fields, 6 px radius */
.form label { font-size: 0.9375rem; margin-bottom: 0.375rem; color: var(--charcoal); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="password"], .form input[type="number"], .form input[type="search"], .form select, .form textarea {
    min-height: 46px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.form textarea { min-height: 96px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(181, 139, 85, 0.35); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: #b42318; }
.form input:disabled, .form select:disabled, .form textarea:disabled { background: var(--bg); color: var(--muted); }
.form input[type="file"] { border-radius: var(--radius-sm); border-color: var(--border-strong); background: #fff; }
.auth-card { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--border); }
.filter-toggle { border-radius: var(--radius-sm); min-height: 44px; border-color: var(--border-strong); }
.filter-count { background: var(--forest); border-radius: 4px; }
.tab { border-radius: var(--radius-sm); border-color: var(--border-strong); }
.tab.is-active { background: var(--forest); border-color: var(--forest); }

/* Badges and alerts */
.badge { border-radius: 4px; font-size: 0.75rem; letter-spacing: 0.02em; }
.alert { border-radius: var(--radius-sm); }
.cart-line:hover, .table tbody tr:hover { background: var(--bg); }
.table th { background: var(--bg); }
.pay-option input:checked + .pay-option-card { border-color: var(--forest); background: var(--bg); box-shadow: 0 0 0 3px rgba(181, 139, 85, 0.3); }
.pay-option-card { border-radius: var(--radius); }
.pay-option:hover .pay-option-card { transform: none; }
.summary-card, .panel, .table-wrap, .empty-state, .photo { border-radius: var(--radius); box-shadow: none; }

/* Footer: flat charcoal-green, thin column dividers */
.site-footer { background: var(--charcoal); border-top: 0; color: #cdd3d0; }
.site-footer a { color: #e8ece9; }
.site-footer a:hover { color: var(--bronze); }
.footer-inner { gap: 0; padding-top: 3rem; padding-bottom: 2rem; }
.footer-col { padding: 0 2rem; }
.footer-col + .footer-col { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.footer-col:first-child { padding-left: 0; }
.footer-brand { font-size: 1.125rem; }
.footer-heading { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze); }
.footer-muted { color: #aeb6b2; }
.footer-links a, .footer-contact a { color: #e8ece9; }
.footer-links a:hover { transform: none; color: var(--bronze); }
.footer-contact .icon { color: var(--bronze); width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); color: #aeb6b2; }
@media (max-width: 760px) {
    .footer-col { padding: 0 0 1.5rem; }
    .footer-col + .footer-col { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.5rem; }
}

/* Pop-ups follow the palette */
.modal { --modal-color: var(--forest); --modal-tint: #e8ede9; }
.modal.is-success { --modal-color: #2f7d4f; --modal-tint: #e6f1ea; }
.modal.is-warning { --modal-color: #a56a00; --modal-tint: #f7efdc; }
.modal.is-info { --modal-color: var(--forest); --modal-tint: #e8ede9; }
.js .modal-box { border-radius: var(--radius); border-top-width: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.js .modal-backdrop { background: rgba(32, 39, 37, 0.6); backdrop-filter: none; }
.modal-timer { border-radius: 0 0 var(--radius) var(--radius); }

/* Calm motion: no entrance animations, scroll reveals or lifts */
@media (max-width: 560px) { h1 { font-size: 1.875rem; } }
input[type="number"] { min-height: 46px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; font: inherit; background: #fff; }
.order-note { margin-top: 1rem; }

/* Motion: smooth, short and tied to the palette (switched off for people who prefer less motion, see above) */
.btn { transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary:hover { box-shadow: 0 8px 18px rgba(32, 56, 51, 0.25); }
.hero .btn-primary:hover, .btn-accent:hover { box-shadow: 0 8px 18px rgba(181, 139, 85, 0.35); }

.site-header { transition: box-shadow 0.3s var(--ease), background-color 0.3s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(32, 39, 37, 0.10); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }

/* Page opens: hero text and pictures rise in one after another */
.hero-inner > * { animation: fadeUp 0.8s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.1s; }
.hero-inner > :nth-child(3) { animation-delay: 0.2s; }
.hero-inner > :nth-child(4) { animation-delay: 0.3s; }
.page-head h1 { animation: fadeUp 0.7s var(--ease) both; }
.hero-circle { animation: popIn 0.8s var(--ease) both, float 8s ease-in-out 1s infinite; }
.hero-circle-2 { animation-delay: 0.15s, 1.4s; animation-duration: 0.8s, 9s; }
.hero-circle-3 { animation-delay: 0.3s, 2s; animation-duration: 0.8s, 7s; }
.hero-circle a:hover img { transform: scale(1.08); }
.hero-circle img { transition: transform 0.6s var(--ease); }

/* Scrolling: blocks fade up as they arrive */
.js .reveal.is-visible { animation: fadeUp 0.7s var(--ease) var(--reveal-delay, 0s) backwards; }

/* Cards lift, the border turns bronze and the photo zooms */
.product-card, .card-link-wrap, .card, .about-points li { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(32, 39, 37, 0.14); border-color: var(--bronze); }
.product-card-media img { transition: transform 0.7s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.08); }
.card-link-wrap:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(32, 39, 37, 0.12); }
.card-link-wrap h3::before { display: block; }
.card-link-wrap h3::before { color: var(--bronze); }
.about-points li:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(32, 39, 37, 0.10); }

/* Nav underline grows from the left, pay options and badges respond to hover */
.site-nav a:not(.nav-cta)::after { transition: transform 0.3s var(--ease); transform-origin: left; }
.pay-option-card { transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease), background-color 0.25s; }
.pay-option:hover .pay-option-card { transform: translateY(-2px); }
.cart-count { animation: pop 0.45s var(--ease) both; }
.alert { animation: slideDown 0.45s var(--ease) both; }
.js .site-nav.is-open > * { animation: navItemIn 0.4s var(--ease) both; }
.js .site-nav.is-open > *:nth-child(2) { animation-delay: 0.04s; }
.js .site-nav.is-open > *:nth-child(3) { animation-delay: 0.08s; }
.js .site-nav.is-open > *:nth-child(4) { animation-delay: 0.12s; }
.js .site-nav.is-open > *:nth-child(5) { animation-delay: 0.16s; }
.js .site-nav.is-open > *:nth-child(6) { animation-delay: 0.2s; }
.js .site-nav.is-open > *:nth-child(7) { animation-delay: 0.24s; }
.carousel-btn { transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, opacity 0.25s; }
.carousel-btn:hover:not(:disabled) { transform: translateY(-50%) scale(1.1); }
.section-head h2::after { transform-origin: left; }
.js .reveal.is-visible .section-head h2::after, .js .section-head.is-visible h2::after { animation: growLine 0.8s 0.2s var(--ease) both; }
@keyframes growLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Narrower side margins: about half of before on desktop */
:root { --container: 1680px; }
.container { padding-left: clamp(1rem, 4.5vw, 4rem); padding-right: clamp(1rem, 4.5vw, 4rem); }
@media (min-width: 1024px) { .container { padding-left: clamp(1.5rem, 4.4vw, 4rem); padding-right: clamp(1.5rem, 4.4vw, 4rem); } }
@media (max-width: 560px) { .container { padding-left: 0.75rem; padding-right: 0.75rem; } }

.pay-heading { margin: 1.25rem 0 0.75rem; font-size: 1.15rem; }

/* ---- Advance payment note ---- */
.pay-note-advance { margin: 0 0 1rem; border-left: 4px solid var(--bronze); background: #faf5ec; padding: .85rem 1rem; border-radius: var(--radius); line-height: 1.5; }
.pay-note-advance strong:first-child { display: block; color: var(--forest); margin-bottom: .15rem; }

/* ---- Opening loader (our own, shown once per visit once the page starts loading) ---- */
.page-loader { display: none; }
.has-loader .page-loader {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 9999;
    background: var(--bg); opacity: 1; visibility: visible; transition: opacity .45s ease, visibility .45s ease;
}
.has-loader .page-loader.is-done { opacity: 0; visibility: hidden; }
.page-loader-inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.page-loader-logo, .page-loader-mark { width: 88px; height: 88px; animation: loaderPulse 1.4s ease-in-out infinite; }
.page-loader-name { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; color: var(--forest); }
.page-loader-bar { width: 160px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.page-loader-bar span { display: block; height: 100%; width: 40%; background: var(--bronze); border-radius: 4px; animation: loaderSlide 1.1s ease-in-out infinite; }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
    .page-loader-logo, .page-loader-mark, .page-loader-bar span { animation: none; }
}
