/* ==========================================================================
   Plantos Store — Full Store Experience
   Hand-written CSS, no build step (matches the project's existing
   Catalog convention). Same design tokens as catalog.css for a
   consistent brand across the whole customer-facing site.
   ========================================================================== */

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/vendor/fonts/cairo/cairo-arabic-400-normal.woff2') format('woff2'),
        url('/vendor/fonts/cairo/cairo-arabic-400-normal.woff') format('woff');
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/vendor/fonts/cairo/cairo-arabic-600-normal.woff2') format('woff2'),
        url('/vendor/fonts/cairo/cairo-arabic-600-normal.woff') format('woff');
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/vendor/fonts/cairo/cairo-arabic-700-normal.woff2') format('woff2'),
        url('/vendor/fonts/cairo/cairo-arabic-700-normal.woff') format('woff');
}

:root {
    --store-primary: #176b3a;
    --store-primary-dark: #10542d;
    --store-primary-soft: #e8f4ec;

    /* Base page background: near-white, NOT the accent tint — the accent
       tint below is only for image backdrops, homepage highlight
       sections, and the promo banner, never the default page background. */
    --store-bg: #fcfdfc;
    --store-surface: #ffffff;
    --store-surface-soft: #f3f8f4;
    /* Accent tint derived from the logo's green (#04cd13), not a warm
       cream/beige — keeps neutral surfaces (image placeholders, homepage
       sections) on-brand instead of clashing with it. */
    --store-cream: #eaf6ee;

    --store-text: #1c2620;
    --store-muted: #566058;

    --store-border: #dcece2;

    --store-danger: #c0392f;
    --store-danger-soft: #fdeeee;

    --store-warning: #b9690f;
    --store-warning-soft: #fdf0dd;

    --store-radius-sm: 10px;
    --store-radius: 14px;
    --store-radius-lg: 22px;

    --store-shadow: 0 8px 24px rgba(23, 60, 40, 0.07);
    --store-shadow-lg: 0 20px 48px rgba(23, 60, 40, 0.14);

    --store-font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    --store-header-h: 72px;
    --store-bottom-nav-h: 62px;
    --store-container: 1280px;

    --store-section-space: 44px;
}

@media (min-width: 860px) {
    :root { --store-section-space: 84px; }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
    margin: 0;
    font-family: var(--store-font);
    color: var(--store-text);
    background: var(--store-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3 { line-height: 1.4; font-weight: 800; margin: 0; }
p { line-height: 1.85; }

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: var(--store-container);
    margin: 0 auto;
    padding: 0 20px;
}

.money { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--store-radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.btn-primary { background: var(--store-primary); color: #fff; }
.btn-primary:hover { background: var(--store-primary-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-outline { background: transparent; border-color: var(--store-border); color: var(--store-text); }
.btn-outline:hover { border-color: var(--store-primary); color: var(--store-primary); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge-success { background: var(--store-primary-soft); color: var(--store-primary-dark); }
.badge-warning { background: var(--store-warning-soft); color: var(--store-warning); }
.badge-danger { background: var(--store-danger-soft); color: var(--store-danger); }

.section { padding: var(--store-section-space) 0; }
.section-white { background: var(--store-surface); }
.section-cream { background: var(--store-cream); }
.section-soft { background: var(--store-surface-soft); }

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 22px;
}
.section-title h2 { font-size: 21px; margin: 0; letter-spacing: -.01em; }
.section-subtitle { font-size: 13px; color: var(--store-muted); margin: 4px 0 0; line-height: 1.7; }
.section-title a { font-size: 14px; color: var(--store-primary); font-weight: 700; white-space: nowrap; }
.section-title a:hover { color: var(--store-primary-dark); text-decoration: underline; }

@media (min-width: 860px) {
    .section-title h2 { font-size: 25px; }
}

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--store-surface);
    border-bottom: 1px solid var(--store-border);
    box-shadow: 0 1px 0 rgba(23, 60, 40, .02);
}
.header-top {
    display: none;
    background: var(--store-primary-dark);
    color: #eaf3ec;
    font-size: 12.5px;
}
.header-top .container { display: flex; justify-content: center; gap: 32px; padding: 8px 20px; }
.header-top span { display: inline-flex; align-items: center; gap: 6px; }
.header-top svg { width: 14px; height: 14px; opacity: .85; }

.header-main {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--store-header-h);
}
.header-main .container { display: flex; align-items: center; gap: 24px; height: 100%; }

.brand img { height: 38px; width: auto; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 15px; padding: 10px 0; position: relative; color: var(--store-text); }
.main-nav a.active,
.main-nav a:hover { color: var(--store-primary); }
.main-nav a.active::after {
    content: ''; position: absolute; right: 0; left: 0; bottom: 0; height: 2px;
    background: var(--store-primary); border-radius: 2px;
}

.header-search {
    flex: 1;
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--store-cream);
    border: 1px solid var(--store-border);
    border-radius: 999px;
    padding: 9px 16px;
    max-width: 380px;
    transition: border-color .15s ease, background .15s ease;
}
.header-search:focus-within { border-color: var(--store-primary); background: var(--store-surface); }
.header-search input {
    border: 0;
    background: transparent;
    outline: none;
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    color: var(--store-text);
}
.header-search svg { width: 18px; height: 18px; color: var(--store-muted); flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--store-text);
}
.icon-btn:hover { background: var(--store-primary-soft); color: var(--store-primary); }
.icon-btn svg { width: 22px; height: 22px; }

.cart-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--store-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-only { display: inline-flex; }
.desktop-only { display: none; }

/* Mobile nav drawer */
.nav-drawer-overlay {
    position: fixed; inset: 0; background: rgba(20, 30, 22, .45); z-index: 60;
}
.nav-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 84%; max-width: 320px;
    background: var(--store-surface); z-index: 61; overflow-y: auto;
    box-shadow: var(--store-shadow-lg);
    padding: 18px;
}
.nav-drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.nav-drawer a {
    display: block; padding: 13px 6px; font-weight: 600; font-size: 16px;
    border-bottom: 1px solid var(--store-border);
}

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(180deg, var(--store-surface-soft) 0%, var(--store-bg) 100%);
    padding: 32px 0 40px;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.hero-copy .eyebrow {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
    color: var(--store-primary-dark); background: var(--store-primary-soft);
    font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero-copy h1 { font-size: 32px; line-height: 1.28; margin: 0 0 16px; color: var(--store-primary-dark); }
.hero-copy p { color: var(--store-muted); font-size: 16px; line-height: 1.8; margin: 0 0 26px; max-width: 46ch; }
.hero-copy .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media {
    position: relative;
    border-radius: var(--store-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: radial-gradient(120% 120% at 30% 20%, #eef6ee 0%, var(--store-primary-soft) 60%, #dcecdf 100%);
    isolation: isolate;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-illustration { width: 100%; height: 100%; display: block; }

/* ---------------- Trust strip ---------------- */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
}
.trust-strip .item {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.trust-strip .item .icon-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--store-primary-soft); color: var(--store-primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-strip .item .icon-circle svg { width: 24px; height: 24px; }
.trust-strip .item strong { font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.trust-strip .item span.desc { font-size: 12px; color: var(--store-muted); line-height: 1.6; }

@media (min-width: 640px) {
    .trust-strip .item .icon-circle { width: 60px; height: 60px; }
    .trust-strip .item .icon-circle svg { width: 27px; height: 27px; }
    .trust-strip .item strong { font-size: 14.5px; }
}

/* ---------------- Categories ---------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
}
.category-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center;
    transition: transform .15s ease;
}
.category-card:hover { transform: translateY(-3px); }
.category-card:hover .thumb { border-color: var(--store-primary); box-shadow: var(--store-shadow); }
.category-card .thumb {
    width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
    background: var(--store-primary-soft); display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--store-surface); outline: 1px solid var(--store-border);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.category-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card .thumb svg { width: 34px; height: 34px; color: var(--store-primary); }
.category-card .name { font-weight: 700; font-size: 13.5px; line-height: 1.4; }
.category-card .count { font-size: 11.5px; color: var(--store-muted); }

@media (min-width: 640px) {
    .category-card .thumb { width: 96px; height: 96px; }
    .category-card .name { font-size: 14px; }
}

/* ---------------- Product grid & cards ---------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
}
.product-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--store-surface); border: 1px solid var(--store-border); border-radius: var(--store-radius);
    overflow: hidden; position: relative; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: var(--store-shadow); border-color: #ddd3bf; transform: translateY(-2px); }
.product-card .media {
    aspect-ratio: 1/1; background: var(--store-cream); position: relative; overflow: hidden;
}
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .media.is-placeholder { display: flex; align-items: center; justify-content: center; }
.product-card .media.is-placeholder svg { width: 30%; height: 30%; color: #c9c0a8; }
.product-card .media .badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 6px; }
.product-card .body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-card .category { font-size: 11.5px; color: var(--store-muted); font-weight: 600; }
.product-card .name {
    font-weight: 700; font-size: 14.5px; line-height: 1.55; color: var(--store-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.9em;
}
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.product-card .price { font-weight: 800; font-size: 16.5px; color: var(--store-primary-dark); }
.product-card .price-old { font-size: 12.5px; color: var(--store-muted); text-decoration: line-through; }
.product-card .stock-note { font-size: 11.5px; color: var(--store-warning); font-weight: 600; }
.product-card .add-btn {
    margin-top: 8px; width: 100%; padding: 10px; border-radius: var(--store-radius-sm);
    background: var(--store-primary); color: #fff; border: none; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .15s ease;
}
.product-card .add-btn:hover:not(:disabled) { background: var(--store-primary-dark); }
.product-card .add-btn:disabled { background: var(--store-cream); color: var(--store-muted); cursor: not-allowed; }
.add-btn.is-loading:disabled,
.btn.is-loading:disabled { background: var(--store-primary); color: #fff; opacity: .85; cursor: progress; }
.product-card .add-btn svg { width: 16px; height: 16px; }

/* ---------------- Promo banner ---------------- */
.promo-banner {
    border-radius: var(--store-radius-lg);
    background: var(--store-primary-dark);
    color: #fff;
    padding: 44px 28px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.promo-banner::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, var(--store-primary-dark) 0%, #1a5c37 100%);
}
.promo-banner.has-image::before {
    background: linear-gradient(180deg, rgba(16,42,27,.35) 0%, rgba(16,42,27,.65) 100%);
}
.promo-banner .inner { position: relative; max-width: 480px; margin: 0 auto; }
.promo-banner .inner .icon { width: 44px; height: 44px; margin: 0 auto 14px; color: #cdeed9; }
.promo-banner h2 { margin: 0 0 10px; font-size: 23px; }
.promo-banner p { margin: 0 0 22px; opacity: .88; line-height: 1.8; }
.promo-banner .btn { background: #fff; color: var(--store-primary-dark); }
.promo-banner .btn:hover { background: #eef6ee; }

@media (min-width: 860px) {
    .promo-banner { padding: 64px 40px; }
    .promo-banner h2 { font-size: 28px; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--store-primary-dark); color: #eaf3ec; margin-top: 40px; padding: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-col h4 { font-size: 14px; margin: 0 0 12px; color: #fff; }
.footer-col p { font-size: 13px; line-height: 1.9; opacity: .85; margin: 0; }
.footer-col a { display: block; font-size: 13px; padding: 5px 0; opacity: .85; }
.footer-col a:hover { opacity: 1; }
.footer-col img { filter: brightness(0) invert(1); }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.footer-social a {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1.5px solid currentColor; opacity: .85; transition: opacity .15s ease, background-color .15s ease;
}
.footer-social a:hover { opacity: 1; background: rgba(127,127,127,.12); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 16px; text-align: center; font-size: 12px; opacity: .7; }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--store-muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--store-primary); }
.breadcrumb .sep { opacity: .5; }

/* ---------------- Shop layout ---------------- */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.filters-panel {
    background: var(--store-surface); border: 1px solid var(--store-border); border-radius: var(--store-radius);
    padding: 16px;
}
.filters-panel h3 { font-size: 14px; margin: 0 0 10px; }
.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label { display: block; font-size: 12px; font-weight: 700; color: var(--store-muted); margin-bottom: 6px; }
.filter-group select,
.filter-group input[type="number"],
.filter-group input[type="search"] {
    width: 100%; padding: 9px 10px; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm);
    font-family: inherit; font-size: 13px; background: var(--store-surface-soft);
}
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.price-range { display: flex; gap: 8px; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.shop-toolbar .count { font-size: 13px; color: var(--store-muted); }
.shop-toolbar select { padding: 8px 10px; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm); font-family: inherit; background: var(--store-surface); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--store-muted); }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--store-radius-sm); border: 1px solid var(--store-border); font-size: 13px;
}
.pagination .active { background: var(--store-primary); color: #fff; border-color: var(--store-primary); }

/* ---------------- Product details ---------------- */
.pdp-card {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-lg);
    padding: 18px;
}
.pdp { display: grid; grid-template-columns: 1fr; gap: 28px; }

/* The gallery keeps a soft beige backdrop — a "photography studio"
   surface for the product image — but this stays inside the image card
   only, never spreading to the rest of the page. */
.gallery-main {
    aspect-ratio: 1/1; border-radius: var(--store-radius); overflow: hidden;
    background: var(--store-cream); border: 1px solid var(--store-border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.is-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.gallery-main.is-placeholder svg { width: 22%; height: 22%; color: #c9b98f; }
.gallery-main.is-placeholder span { font-size: 13px; color: var(--store-muted); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs a {
    flex: 0 0 64px; width: 64px; height: 64px; border-radius: var(--store-radius-sm); overflow: hidden;
    border: 2px solid transparent; background: var(--store-cream);
}
.gallery-thumbs a.active { border-color: var(--store-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info .category-link { font-size: 13px; color: var(--store-primary); font-weight: 700; }
.pdp-info h1 { font-size: 24px; margin: 10px 0; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; }
.pdp-price .price { font-size: 26px; font-weight: 800; color: var(--store-primary-dark); }
.pdp-price .price-old { font-size: 15px; color: var(--store-muted); text-decoration: line-through; }
.pdp-price .save { font-size: 12px; color: var(--store-danger); font-weight: 700; }

.stock-line { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 14px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.stock-dot.in { background: #2e9e5b; }
.stock-dot.low { background: var(--store-warning); }
.stock-dot.out { background: var(--store-danger); }

.pdp-short-desc { color: var(--store-muted); font-size: 14px; line-height: 1.8; margin-bottom: 18px; }

.qty-stepper {
    display: inline-flex; align-items: center; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm);
    overflow: hidden;
}
.qty-stepper button {
    width: 38px; height: 42px; border: none; background: var(--store-surface-soft); font-size: 18px; font-weight: 700; color: var(--store-primary-dark);
}
.qty-stepper input {
    width: 48px; height: 42px; border: none; border-inline: 1px solid var(--store-border); text-align: center;
    font-family: inherit; font-size: 15px; -moz-appearance: textfield;
}
.pdp-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.pdp-actions .btn-primary { flex: 1; min-width: 180px; }

.plant-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 22px; }
.plant-info-item {
    display: flex; align-items: center; gap: 10px; background: var(--store-surface-soft); border: 1px solid var(--store-border);
    border-radius: var(--store-radius); padding: 10px 12px;
}
.plant-info-item svg { width: 22px; height: 22px; color: var(--store-primary); flex-shrink: 0; }
.plant-info-item .label { font-size: 11px; color: var(--store-muted); line-height: 1.6; }
.plant-info-item .value { font-size: 13.5px; font-weight: 700; line-height: 1.5; }

.pdp-tabs { border-top: 1px solid var(--store-border); margin-top: 32px; padding-top: 28px; }
.pdp-tabs .tab-block { max-width: 72ch; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--store-border); }
.pdp-tabs .tab-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pdp-tabs h2 {
    font-size: 16px; margin: 0 0 14px; padding-inline-start: 12px;
    border-inline-start: 3px solid var(--store-primary);
}
.pdp-tabs .tab-block p { color: var(--store-text); line-height: 2; font-size: 14.5px; }

/* ---------------- Cart ---------------- */
.cart-page { display: grid; grid-template-columns: 1fr; gap: 22px; }

.cart-line {
    display: grid; grid-template-columns: 76px 1fr; gap: 8px 14px;
    padding: 20px 0; border-bottom: 1px solid var(--store-border);
}
.cart-line .thumb {
    width: 76px; height: 76px; border-radius: var(--store-radius-sm); overflow: hidden; background: var(--store-cream);
    align-self: flex-start;
}
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-line-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.cart-line-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-line .name { font-weight: 700; font-size: 14.5px; line-height: 1.5; }

/* Unit price, then the pre-discount price — visibly smaller/muted/struck
   through, never the same visual weight as the current price, and each
   number kept in its own inline-block so RTL layout can't merge the two
   digit strings together. */
.cart-line-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cart-line-price .price { font-weight: 800; font-size: 15.5px; color: var(--store-primary-dark); }
.cart-line-price .price-old { font-size: 12.5px; color: var(--store-muted); text-decoration: line-through; }

.cart-line .unavailable { color: var(--store-danger); font-size: 12px; font-weight: 700; }

.cart-line-footer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-top: 2px;
}
.cart-line-total { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cart-line-total .label { font-size: 11px; color: var(--store-muted); }
.cart-line-total .value { font-size: 15.5px; font-weight: 800; }

.remove-btn {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
    font-size: 12px; color: var(--store-muted); background: none; border: none; padding: 2px;
}
.remove-btn:hover { color: var(--store-danger); }
.remove-btn svg { width: 15px; height: 15px; }

@media (min-width: 640px) {
    .cart-line { grid-template-columns: 96px 1fr; gap: 8px 18px; }
    .cart-line .thumb { width: 96px; height: 96px; }
    .cart-line .name { font-size: 15.5px; }
}

.summary-box {
    background: var(--store-surface); border: 1px solid var(--store-border); border-radius: var(--store-radius);
    padding: 18px; position: sticky; top: calc(var(--store-header-h) + 12px);
}
.summary-box h3 { font-size: 15px; margin: 0 0 14px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-row.muted { color: var(--store-muted); font-size: 13px; }
.summary-row.total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--store-border); margin-top: 8px; padding-top: 12px; }
.summary-note { font-size: 12px; color: var(--store-muted); margin-top: 10px; line-height: 1.7; }

/* ---------------- Checkout ---------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
.checkout-form { background: var(--store-surface); border: 1px solid var(--store-border); border-radius: var(--store-radius); padding: 22px; }

.form-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--store-border); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.checkout-form h2 { font-size: 16px; margin: 0 0 6px; }
.form-section-desc { font-size: 12.5px; color: var(--store-muted); line-height: 1.7; margin: 0 0 18px; }

.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 11px 12px; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm);
    font-family: inherit; font-size: 14px; background: var(--store-surface-soft);
    transition: border-color .15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--store-primary); }
.form-group textarea { resize: vertical; min-height: 80px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }
.field-error { color: var(--store-danger); font-size: 12px; margin-top: 6px; }
.form-alert { background: var(--store-danger-soft); color: var(--store-danger); border-radius: var(--store-radius-sm); padding: 12px 14px; font-size: 13px; margin-bottom: 18px; line-height: 1.8; }
.form-alert.success { background: var(--store-primary-soft); color: var(--store-primary-dark); }

.mini-cart-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--store-border); font-size: 13px; }
.mini-cart-item .thumb { width: 48px; height: 48px; border-radius: var(--store-radius-sm); overflow: hidden; background: var(--store-cream); flex-shrink: 0; }
.mini-cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mini-cart-item .name { font-weight: 600; line-height: 1.5; }
.mini-cart-price { display: flex; align-items: baseline; gap: 6px; }
.mini-cart-price .price { font-weight: 700; font-size: 12.5px; color: var(--store-primary-dark); }
.mini-cart-price .price-old { font-size: 11px; color: var(--store-muted); text-decoration: line-through; }
.mini-cart-qty { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--store-muted); }
.mini-cart-qty .line-total { font-weight: 700; color: var(--store-text); }
.mini-cart-warning { font-size: 11px; color: var(--store-warning); line-height: 1.6; }

/* ---------------- Checkout success ---------------- */
.success-box { max-width: 520px; margin: 40px auto; text-align: center; background: var(--store-surface); border: 1px solid var(--store-border); border-radius: var(--store-radius-lg); padding: 40px 24px; }
.success-box .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--store-primary-soft); color: var(--store-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.success-box .icon svg { width: 32px; height: 32px; }
.success-box h1 { font-size: 21px; margin: 0 0 10px; }
.success-box .order-number { font-size: 15px; font-weight: 800; color: var(--store-primary-dark); margin-bottom: 4px; }
.success-box .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---------------- Simple content pages ---------------- */
.content-page { max-width: 760px; margin: 0 auto; }
.content-page h1 { font-size: 24px; margin-bottom: 16px; }
.content-page p { line-height: 1.9; color: var(--store-text); margin-bottom: 14px; }
.faq-item { border-bottom: 1px solid var(--store-border); padding: 16px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.faq-item p { margin-top: 10px; color: var(--store-muted); }
.shipping-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
.shipping-table th, .shipping-table td { padding: 10px 8px; border-bottom: 1px solid var(--store-border); text-align: right; }
.shipping-table th { color: var(--store-muted); font-size: 12px; }

/* ---------------- Mobile bottom nav ---------------- */
.bottom-nav {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
    background: var(--store-surface); border-top: 1px solid var(--store-border);
    display: flex; height: var(--store-bottom-nav-h);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11px; color: var(--store-muted); position: relative;
}
.bottom-nav a.active { color: var(--store-primary); }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav .badge-dot {
    position: absolute; top: 2px; inset-inline-end: 22%; min-width: 15px; height: 15px; border-radius: 999px;
    background: var(--store-primary); color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
main.has-bottom-nav { padding-bottom: calc(var(--store-bottom-nav-h) + 14px); }

/* ---------------- Responsive ---------------- */
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid-compact { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .trust-strip { grid-template-columns: repeat(4, 1fr); }
    .plant-info-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row.two { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
    .header-top { display: block; }
    .main-nav { display: flex; }
    .header-search { display: flex; }
    .mobile-only { display: none; }
    .desktop-only { display: inline-flex; }
    .bottom-nav { display: none; }
    main.has-bottom-nav { padding-bottom: 0; }

    .hero { padding: 0; }
    .hero .container { grid-template-columns: 1fr .92fr; min-height: 460px; gap: 48px; align-items: stretch; padding-top: 48px; padding-bottom: 48px; }
    .hero-copy { display: flex; flex-direction: column; justify-content: center; }
    .hero-copy h1 { font-size: 42px; }
    .hero-copy p { font-size: 17px; }
    .hero-media { aspect-ratio: auto; height: 100%; }

    .footer-grid { grid-template-columns: repeat(4, 1fr); }

    .shop-layout { grid-template-columns: 260px 1fr; }
    .pdp { grid-template-columns: 1fr 1fr; }
    .cart-page { grid-template-columns: 1fr 340px; }
    .checkout-layout { grid-template-columns: 1fr 360px; }
}

@media (min-width: 1100px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(6, 1fr); }
    .hero .container { min-height: 500px; }
}

/* ---------------- Tablet tuning ---------------- */
@media (min-width: 640px) and (max-width: 859px) {
    .hero-copy h1 { font-size: 34px; }
}

/* ---------------- Toasts (add-to-cart confirmation) ---------------- */
.toast-stack {
    position: fixed;
    z-index: 80;
    bottom: calc(var(--store-bottom-nav-h) + 16px);
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.toast {
    max-width: 360px;
    background: var(--store-primary-dark);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow-lg);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--store-danger); }

@media (min-width: 860px) {
    .toast-stack { bottom: 24px; left: auto; right: 24px; align-items: flex-end; }
}
