/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== Tokens ===== */
:root {
    --yellow:      #F5F0D0;
    --yellow-mid:  #EDE6B0;
    --yellow-dark: #C8BB6A;
    --grey:        #EBEBEB;
    --grey-mid:    #D4D4D4;
    --grey-dark:   #6B6B6B;
    --black:       #1A1A1A;
    --white:       #FAFAF7;
    --border:      #D0C98A;
    --red:         #B94040;

    --ff-head: 'Syne', sans-serif;
    --ff-body: 'DM Sans', sans-serif;

    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;

    --max-w: 1200px;
}

/* ===== Base ===== */
body {
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.65;
    background: var(--white);
    color: var(--black);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font-family: var(--ff-body); }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--yellow);
    border-bottom: 1px solid var(--border);
    padding: 0.4rem var(--space-md);
    font-size: 0.78rem;
    color: var(--grey-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== NAV ===== */
nav {
    background: var(--yellow-mid);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--space-md);
}
.nav-logo {
    font-family: var(--ff-head);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--black);
    flex-shrink: 0;
}
.nav-logo span {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--grey-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    height: 64px;
}
.nav-links li a {
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    height: 100%;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.15s;
    white-space: nowrap;
}
.nav-links li a:hover { background: var(--yellow); }
.nav-links li a.active {
    background: var(--yellow);
    box-shadow: inset 0 -2px 0 var(--black);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}
.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
    letter-spacing: 0.02em;
    transition: background 0.15s;
    white-space: nowrap;
}
.cart-btn:hover { background: var(--grey-dark); }
.cart-count {
    background: var(--yellow-dark);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-head);
}

/* Track Order button */
.track-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1.5px solid var(--black);
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.track-btn::before {
    content: '📦';
    font-size: 0.75rem;
}
.track-btn:hover,
.track-btn.active {
    background: var(--black);
    color: var(--white);
}

/* Hamburger (mobile only) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--yellow-mid);
    border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 0.85rem var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.mobile-menu a:hover { background: var(--yellow); }

/* ===== CATEGORY STRIP ===== */
.cat-strip {
    background: var(--grey);
    border-bottom: 1px solid var(--grey-mid);
}
.cat-strip-inner {
    display: flex;
    overflow-x: auto;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-md);
    scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-right: 1px solid var(--grey-mid);
    transition: background 0.15s;
}
.cat-pill:first-child { border-left: 1px solid var(--grey-mid); }
.cat-pill:hover, .cat-pill.active { background: var(--yellow-mid); }

/* ===== HERO — full width cover ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
/* Dark overlay so text reads on any image */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 10, 0.52);
    z-index: 1;
}
/* Fallback colour when no image is available */
.hero.no-image {
    background: var(--yellow);
    min-height: 420px;
}
.hero.no-image::after { display: none; }
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    width: 100%;
}
/* Light text on image; dark text on fallback */
.hero .hero-kicker        { color: var(--yellow-mid); border-color: var(--yellow-dark); }
.hero .hero-title         { color: #fff; }
.hero .hero-title em      { color: var(--yellow-mid); }
.hero .hero-desc          { color: rgba(255,255,255,0.82); }
.hero.no-image .hero-kicker  { color: var(--grey-dark); }
.hero.no-image .hero-title   { color: var(--black); }
.hero.no-image .hero-title em { color: var(--grey-dark); }
.hero.no-image .hero-desc    { color: var(--grey-dark); }
.hero-stat-divider {
    border-top: 1px solid rgba(255,255,255,0.25);
}
.hero.no-image .hero-stat-divider { border-color: var(--border); }
.hero-stat-num  { color: #fff; }
.hero-stat-label { color: rgba(255,255,255,0.65); }
.hero.no-image .hero-stat-num   { color: var(--black); }
.hero.no-image .hero-stat-label { color: var(--grey-dark); }

.hero-kicker {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-left: 3px solid var(--yellow-dark);
    padding-left: 0.6rem;
    margin-bottom: var(--space-sm);
}
.hero-title {
    font-family: var(--ff-head);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -1.5px;
    margin-bottom: var(--space-sm);
    max-width: 14ch;
}
.hero-title em { font-style: normal; }
.hero-desc {
    font-size: 0.95rem;
    max-width: 42ch;
    margin-bottom: var(--space-md);
    line-height: 1.75;
}
.hero-ctas { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
}
.hero-stat-num {
    font-family: var(--ff-head);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1px;
}
.hero-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid var(--yellow-dark);
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--yellow-mid); }
.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255,255,255,0.5);
    transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero.no-image .btn-outline { color: var(--black); border-color: var(--black); }
.hero.no-image .btn-outline:hover { background: var(--yellow-mid); }

/* Standalone (non-hero) outline button */
.btn-outline-dark {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--black);
    transition: background 0.15s;
}
.btn-outline-dark:hover { background: var(--yellow-mid); }

/* ===== SECTION HEAD ===== */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--grey-mid);
    margin-bottom: var(--space-md);
}
.section-title {
    font-family: var(--ff-head);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.section-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--grey-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--grey-mid);
    transition: color 0.15s, border-color 0.15s;
}
.section-link:hover { color: var(--black); border-color: var(--black); }
.section-count {
    font-size: 0.8rem;
    color: var(--grey-dark);
}
.empty-state {
    color: var(--grey-dark);
    padding: var(--space-lg) 0;
    font-size: 0.95rem;
}

/* ===== PRODUCTS ===== */
.products-section { padding: var(--space-lg) 0; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--grey-mid);
    transition: background 0.1s, border-color 0.1s;
}
.product-card:hover { background: var(--yellow); border-color: var(--border); }
.product-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--grey);
    border-bottom: 1px solid var(--grey-mid);
    display: block;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.03); }
.product-card-body {
    padding: var(--space-sm);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.product-cat-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--grey-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.product-name {
    font-family: var(--ff-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
}
.product-desc {
    font-size: 0.78rem;
    color: var(--grey-dark);
    line-height: 1.5;
    margin-top: 0.1rem;
    flex: 1;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--grey-mid);
    gap: 0.5rem;
}
.product-price {
    font-family: var(--ff-head);
    font-size: 1.05rem;
    font-weight: 700;
}
.product-unit { font-size: 0.7rem; font-weight: 400; color: var(--grey-dark); }
.original-price { font-size: 0.78rem; color: var(--grey-dark); text-decoration: line-through; }
.add-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.15s;
    white-space: nowrap;
}
.add-btn:hover { background: var(--grey-dark); }
.add-btn:disabled { background: var(--grey-mid); color: var(--grey-dark); cursor: not-allowed; }
.featured-badge, .sale-badge, .out-of-stock-badge {
    position: absolute;
    top: var(--space-xs);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
}
.featured-badge  { right: var(--space-xs); background: var(--yellow-dark); color: var(--black); }
.sale-badge      { left:  var(--space-xs); background: var(--red);         color: #fff; }
.out-of-stock-badge { left: var(--space-xs); background: var(--grey-mid); color: var(--grey-dark); }

/* ===== ABOUT STRIP ===== */
.about-strip {
    background: var(--yellow);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}
.about-feature {
    border: 1px solid var(--border);
    background: var(--white);
    padding: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.footer-brand {
    font-family: var(--ff-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--yellow);
}
.footer-desc { font-size: 0.82rem; color: #999; line-height: 1.7; }
.footer-col-title {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.75rem;
}
.footer-links { list-style: none; }
.footer-links li { font-size: 0.82rem; color: #bbb; }
.footer-links li + li { margin-top: 0.4rem; }
.footer-links a { color: #bbb; transition: color 0.15s; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #555;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    background: var(--black);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    border-left: 3px solid var(--yellow-dark);
    max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */

/* ── Tablet landscape: 1024px and below ── */
@media (max-width: 1024px) {
    /* Tighten container padding */
    .container { padding: 0 var(--space-sm); }

    /* Nav inner */
    .nav-inner { padding: 0 var(--space-sm); }

    /* Slightly smaller section spacing */
    .products-section { padding: var(--space-md) 0; }

    /* Hero */
    .hero { min-height: 460px; }
    .hero-content { padding: var(--space-lg) var(--space-sm); }

    /* Footer */
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-md); }
}

/* ── Tablet portrait: 900px and below ── */
@media (max-width: 900px) {
    /* Nav — hide links, show hamburger */
    .nav-links     { display: none; }
    .nav-hamburger { display: flex; }
    .nav-inner     { gap: var(--space-sm); }

    /* Hero */
    .hero { min-height: 400px; }
    .hero-content { padding: var(--space-lg) var(--space-sm); }
    .hero-stats   { gap: var(--space-sm); flex-wrap: wrap; }

    /* About */
    .about-grid          { grid-template-columns: 1fr; }
    .about-features      { grid-template-columns: 1fr 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }

    /* Products grid — 3 columns at tablet */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    /* Section head — allow wrapping */
    .section-head { flex-wrap: wrap; gap: var(--space-xs); }
}

/* ── Small tablet / large mobile: 768px and below ── */
@media (max-width: 768px) {
    /* Reduce global font base slightly */
    body { font-size: 15px; }

    /* Top bar — collapse to single message */
    .top-bar {
        justify-content: center;
        text-align: center;
        font-size: 0.72rem;
        padding: 0.35rem var(--space-sm);
    }
    .top-bar span:first-child,
    .top-bar span:last-child { display: none; }

    /* Hero */
    .hero { min-height: 360px; }
    .hero-content { padding: var(--space-md) var(--space-sm); }
    .hero-desc  { max-width: 100%; }
    .hero-ctas  { gap: var(--space-xs); }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline { padding: 0.65rem 1.2rem; font-size: 0.82rem; }
    .hero-stats { margin-top: var(--space-sm); padding-top: var(--space-sm); gap: var(--space-sm); }
    .hero-stat-num { font-size: 1.3rem; }

    /* Buttons — full width on narrow hero */
    .hero-ctas { flex-direction: column; align-items: flex-start; }

    /* Category strip pill padding */
    .cat-pill { padding: 0.5rem 0.85rem; font-size: 0.75rem; }

    /* Products */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-card-body { padding: 0.75rem; }
    .product-name { font-size: 0.9rem; }

    /* About features */
    .about-features { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
    .about-strip    { padding: var(--space-md) 0; }

    /* Footer */
    .footer-grid  { grid-template-columns: 1fr; gap: var(--space-md); }
    footer        { padding: var(--space-md) 0; }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }

    /* Toast — full width on mobile */
    .toast {
        left: var(--space-sm);
        right: var(--space-sm);
        bottom: var(--space-sm);
        max-width: 100%;
        text-align: center;
    }

    /* Section spacing */
    .products-section { padding: var(--space-md) 0 var(--space-sm); }
}

/* ── Mobile: 600px and below ── */
@media (max-width: 600px) {
    /* Container */
    .container { padding: 0 var(--space-xs); }

    /* Top bar — hide entirely or keep minimal */
    .top-bar { display: none; }

    /* Nav */
    .nav-inner  { padding: 0 var(--space-sm); height: 56px; }
    .nav-logo   { font-size: 1rem; }
    .cart-btn   { padding: 0.45rem 0.75rem; font-size: 0.78rem; }
    .track-btn  { padding: 0.45rem 0.6rem; font-size: 0; border-width: 1px; } /* icon only */
    .track-btn::before { font-size: 1rem; }

    /* Hero */
    .hero         { min-height: 300px; }
    .hero.no-image { min-height: 260px; }
    .hero-content { padding: var(--space-md) var(--space-sm) var(--space-sm); }
    .hero-kicker  { font-size: 0.65rem; }
    .hero-title   { letter-spacing: -0.5px; margin-bottom: var(--space-xs); }
    .hero-desc    { font-size: 0.88rem; margin-bottom: var(--space-sm); }
    .hero-stats   { gap: var(--space-xs); }
    .hero-stat-num { font-size: 1.1rem; }
    .hero-stat-label { font-size: 0.65rem; }

    /* Category strip */
    .cat-strip-inner { padding: 0 var(--space-xs); }
    .cat-pill        { padding: 0.45rem 0.75rem; font-size: 0.72rem; }

    /* Products — 2 col */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .product-footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .add-btn { width: 100%; text-align: center; padding: 0.5rem; }

    /* About */
    .about-features { grid-template-columns: 1fr; }

    /* Section head */
    .section-title { font-size: 1.1rem; }

    /* Footer */
    .footer-bottom { font-size: 0.7rem; }

    /* Mobile menu — larger touch targets */
    .mobile-menu a { padding: 1rem var(--space-sm); }
}

/* ── Small mobile: 400px and below ── */
@media (max-width: 400px) {
    /* Products — single column */
    .products-grid { grid-template-columns: 1fr; gap: 0.75rem; }

    /* Hero — tighter */
    .hero { min-height: 260px; }
    .hero-content { padding: var(--space-sm); }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline { width: 100%; text-align: center; }

    /* Nav */
    .nav-inner { height: 52px; }
    .cart-btn span:not(.cart-count) { display: none; }  /* hide "Cart" text, keep count badge */

    /* About features */
    .about-features { grid-template-columns: 1fr; }

    /* Footer grid already 1 col, just tighten */
    .footer-grid { gap: var(--space-sm); }
}

/* ── Very small mobile: 360px and below ── */
@media (max-width: 360px) {
    body { font-size: 14px; }

    .container { padding: 0 10px; }

    /* Nav */
    .nav-inner  { padding: 0 10px; height: 48px; gap: 8px; }
    .nav-logo   { font-size: 0.9rem; }
    .nav-logo span { display: none; }
    .cart-btn   { padding: 0.4rem 0.6rem; font-size: 0.72rem; gap: 0.25rem; }
    .cart-count { width: 16px; height: 16px; font-size: 0.6rem; }
    .nav-hamburger span { width: 20px; }

    /* Mobile menu */
    .mobile-menu a { padding: 0.85rem 10px; font-size: 0.85rem; }

    /* Category strip */
    .cat-strip-inner { padding: 0 10px; }
    .cat-pill        { padding: 0.4rem 0.6rem; font-size: 0.68rem; }

    /* Hero — let content determine height */
    .hero         { min-height: unset; }
    .hero.no-image { min-height: unset; }
    .hero-content { padding: 1.5rem 10px 1rem; }
    .hero-kicker  { font-size: 0.6rem; margin-bottom: 0.4rem; }
    .hero-title {
        font-size: clamp(1.4rem, 8vw, 2rem);
        letter-spacing: -0.5px;
        margin-bottom: 0.4rem;
        max-width: 100%;
    }
    .hero-desc    { font-size: 0.82rem; margin-bottom: 0.75rem; line-height: 1.55; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline { padding: 0.6rem 1rem; font-size: 0.78rem; width: 100%; text-align: center; }
    .hero-stats   { gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; flex-wrap: wrap; }
    .hero-stat-num { font-size: 1rem; }
    .hero-stat-label { font-size: 0.6rem; }

    /* Buttons */
    .btn-primary,
    .btn-outline,
    .btn-outline-dark { padding: 0.65rem 1rem; font-size: 0.78rem; width: 100%; text-align: center; }

    /* Products */
    .products-grid      { grid-template-columns: 1fr; gap: 0.6rem; }
    .product-card-body  { padding: 0.6rem; gap: 0.2rem; }
    .product-name       { font-size: 0.85rem; }
    .product-desc       { font-size: 0.72rem; }
    .product-price      { font-size: 0.95rem; }
    .product-footer     { margin-top: 0.5rem; padding-top: 0.5rem; }
    .add-btn            { padding: 0.5rem; font-size: 0.72rem; }

    /* Section head */
    .section-head  { margin-bottom: var(--space-sm); }
    .section-title { font-size: 1rem; }
    .section-link  { font-size: 0.72rem; }

    /* About */
    .about-strip    { padding: var(--space-sm) 0; }
    .about-features { gap: 0.4rem; }
    .about-feature  { padding: 0.6rem; font-size: 0.75rem; }

    /* Footer */
    footer            { padding: var(--space-sm) 0; }
    .footer-brand     { font-size: 0.95rem; margin-bottom: 0.5rem; }
    .footer-desc      { font-size: 0.75rem; }
    .footer-col-title { font-size: 0.62rem; margin-bottom: 0.5rem; }
    .footer-links li  { font-size: 0.75rem; }
    .footer-grid      { gap: var(--space-xs); }
    .footer-bottom    { font-size: 0.65rem; padding-top: 0.5rem; }

    /* Toast */
    .toast { left: 8px; right: 8px; bottom: 8px; font-size: 0.78rem; padding: 0.6rem 0.85rem; }
}

/* ── Tiny screens: 320px and below (iPhone SE 1st gen, etc.) ── */
@media (max-width: 320px) {
    body { font-size: 13px; }

    .nav-inner  { height: 44px; padding: 0 8px; }
    .nav-logo   { font-size: 0.82rem; }
    .cart-btn   { padding: 0.35rem 0.5rem; font-size: 0.68rem; }

    .hero-title { font-size: clamp(1.2rem, 9vw, 1.6rem); }
    .hero-desc  { font-size: 0.78rem; }
    .hero-stats { display: none; }

    /* Force all text to wrap, never overflow */
    h1, h2, h3, h4, h5, h6,
    .hero-title, .section-title,
    .product-name, .footer-brand {
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .product-card-body { padding: 0.5rem; }
    .product-name      { font-size: 0.8rem; }
    .add-btn           { font-size: 0.68rem; }

    .footer-links li { font-size: 0.7rem; }
}

/* ── Global overflow guard (all sizes) ── */
html, body { overflow-x: hidden; max-width: 100%; }

img, video, iframe, table, pre, code { max-width: 100%; }

p, li, td, th, .product-desc, .footer-desc, .about-feature {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── Touch / pointer: increase tap targets ── */
@media (hover: none) and (pointer: coarse) {
    .nav-links li a   { padding: 0 1rem; min-height: 44px; }
    .cart-btn         { min-height: 44px; }
    .track-btn        { min-height: 44px; }
    .add-btn          { min-height: 44px; padding: 0.6rem 1rem; }
    .btn-primary,
    .btn-outline,
    .btn-outline-dark { padding: 0.85rem 1.75rem; }
    .cat-pill         { min-height: 40px; }
    .mobile-menu a    { min-height: 48px; display: flex; align-items: center; }
    .nav-hamburger    { padding: 8px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
    .product-card-image img { transform: none !important; }
}
