/* =============================================================================
   Lit Market — warm editorial storefront, WHITE MODE.
   Type: Lora (serif display) + Plus Jakarta Sans (UI) — editorial, human.
   Product cards: clean gjirafa50-style retail cards.
   Brand from the logo: fresh green + market orange.
   ============================================================================= */

:root {
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --green:       #178a39;
    --green-dark:  #0f6a2c;
    --green-soft:  #e9f4ec;
    --orange:      #ef7c1b;
    --orange-dark: #cf6810;
    --orange-soft: #fdf0e2;

    --sale:      #d63a2c;
    --sale-soft: #fbeae8;
    --star:      #e2a019;

    --ink:   #20261f;
    --text:  #4a544a;
    --muted: #7a847a;
    --dim:   #a7afa6;

    --bg:        #ffffff;
    --bg-warm:   #faf9f6;
    --border:    #e9e7e1;
    --border-soft: #f2f0ea;

    --shadow-sm: 0 1px 2px rgba(32, 38, 31, .04);
    --shadow:    0 4px 16px rgba(32, 38, 31, .07);
    --shadow-lg: 0 14px 36px rgba(32, 38, 31, .11);

    --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; color: var(--text); background: var(--bg);
    font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); font-weight: 600; letter-spacing: -.01em; line-height: 1.18; margin: 0 0 .5rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section { padding: 58px 0; }
.section.tight { padding: 38px 0; }
.section--warm { background: var(--bg-warm); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--green-dark); font-family: var(--font-sans);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--orange); }
.eyebrow.no-rule::before { display: none; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(25px, 3vw, 34px); margin: 8px 0 0; }
.section-head .sub { color: var(--muted); font-size: 14.5px; margin: 7px 0 0; max-width: 52ch; }

/* clean editorial card surface (used by many components) */
.card-surface,
.feature, .cat-card, .value-card, .panel, .detail-media, .hero-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-sans); font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer;
    padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #333a31; }
.btn-outline, .btn-glass { background: var(--bg); color: var(--ink); border-color: var(--border); }
.btn-outline:hover, .btn-glass:hover { border-color: var(--green); color: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--green-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 15px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 70; background: var(--bg); }

.topbar { background: var(--ink); color: #cdd4cb; font-size: 12px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 12px; }
.topbar .promo { display: flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.topbar .promo i { color: var(--orange); }
.topbar .logins { display: flex; align-items: center; gap: 0; }
.topbar .logins a { display: inline-flex; align-items: center; gap: 6px; color: #d7ddd4; padding: 6px 11px; font-weight: 500; letter-spacing: .02em; }
.topbar .logins a:hover { color: #fff; }
.topbar .logins .sep { width: 1px; height: 14px; background: rgba(255,255,255,.16); }

.mainbar { border-bottom: 1px solid var(--border); }
.mainbar .container { display: flex; align-items: center; gap: 26px; height: 76px; }

.brand-logo {
    flex: none;
    width: 140px;
    height: 140px;
    background: url('../img/logo-bg.png') no-repeat center center;
    background-size: contain;
    margin: 10px 30px 0 0 ;
}
.brand-logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: var(--r-sm); font-weight: 500; font-size: 14.5px; color: var(--text); }
.nav-links a:hover { color: var(--green-dark); }
.nav-links a.active { color: var(--green-dark); }
.nav-links a.active::after { content: ''; display: block; height: 2px; background: var(--green); border-radius: 2px; margin-top: 5px; }

.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.searchbar { flex: 1; max-width: 440px; position: relative; margin-left: auto; }
.searchbar input { width: 100%; height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--border); border-radius: var(--r-sm); font: inherit; font-size: 14px; background: var(--bg-warm); color: var(--ink); }
.searchbar input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px var(--green-soft); }
.searchbar > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); color: var(--ink); font-size: 19px; line-height: 1; }
/* Same Bootstrap Icons baseline offset as .pcard-fav — zero it so the glyph
   sits dead centre in the square. */
.icon-btn > i { display: flex; align-items: center; justify-content: center; line-height: 1; }
.icon-btn > i::before { vertical-align: 0; line-height: 1; }
.icon-btn:hover { background: var(--bg-warm); color: var(--green-dark); }
.icon-btn .count { position: absolute; top: 1px; right: 2px; min-width: 17px; height: 17px; padding: 0 5px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; display: none; align-items: center; justify-content: center; border: 2px solid #fff; }
.icon-btn .count.show { display: flex; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); width: 44px; height: 44px; font-size: 21px; color: var(--ink); cursor: pointer; }

/* -----------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------------- */
.hero { padding: 60px 0 36px; }
.hero.section--warm { padding-block: 60px 56px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--green-dark); }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 48ch; margin: 20px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; gap: 0; margin-top: 36px; border-top: 1px solid var(--border); padding-top: 22px; }
.hero-meta > div { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--border); }
.hero-meta > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-meta .num { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--ink); }
.hero-meta .lbl { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

.hero-visual { position: relative; }
.hero-card { padding: 8px; overflow: hidden; }
.hero-card .hc-banner { background: var(--green); color: #fff; border-radius: 11px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.hero-card .hc-banner b { font-family: var(--font-serif); font-size: 18px; display: block; }
.hero-card .hc-banner span { font-size: 12.5px; color: rgba(255,255,255,.85); }
.hero-card .hc-banner .burst { text-align: center; background: #fff; color: var(--sale); border-radius: 10px; padding: 8px 12px; }
.hero-card .hc-banner .burst b { font-family: var(--font-sans); font-size: 22px; line-height: 1; }
.hero-card .hc-banner .burst span { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.hero-card .row { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 10px; transition: background .15s ease; }
.hero-card a.row:hover { background: var(--bg-warm); }
.hero-card a.row:hover .meta b { color: var(--green-dark); }
.hero-card .row + .row { border-top: 1px solid var(--border-soft); }
.hero-card .ico { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; flex: none; overflow: hidden; }
/* Real product photo when there is one; the tinted icon stays as the fallback. */
.hero-card .ico img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hero-card .meta { flex: 1; min-width: 0; }
.hero-card .meta b { color: var(--ink); display: block; font-size: 14px; font-weight: 600; }
.hero-card .meta span { color: var(--muted); font-size: 12px; }
.hero-card .price { font-weight: 700; color: var(--ink); }
.hero-card .price .old { display: block; font-size: 11px; color: var(--dim); text-decoration: line-through; font-weight: 500; text-align: right; }
.hero-float { position: absolute; right: -1px; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.hero-float i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark); font-size: 18px; }
.hero-float b { color: var(--ink); display: block; font-size: 13.5px; }
.hero-float span { color: var(--muted); font-size: 12px; }

/* -----------------------------------------------------------------------------
   Feature strip
   ----------------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.feature { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 0; border-radius: 0; border-right: 1px solid var(--border); box-shadow: none; }
.feature:last-child { border-right: 0; }
.feature i { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; flex: none; background: var(--green-soft); color: var(--green-dark); }
.feature.o i { background: var(--orange-soft); color: var(--orange-dark); }
.feature b { color: var(--ink); display: block; font-size: 14.5px; font-weight: 600; }
.feature span { color: var(--muted); font-size: 12.5px; }

/* -----------------------------------------------------------------------------
   Category tiles
   ----------------------------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* Premium category tile — gradient surface, glowing squircle icon,
   a drifting decorative blob and a shine sweep on hover.
   Colors come from per-card --cat-tint / --cat-tone set inline. */
.cat-card {
    --tone: var(--cat-tone, #4a5a50);
    --tint: var(--cat-tint, #f2f4f0);
    position: relative; isolation: isolate; overflow: hidden;
    padding: 26px 16px 22px; text-align: center;
    border-radius: var(--r-xl);
    border: 1px solid color-mix(in srgb, var(--tone) 20%, transparent);
    background:
        radial-gradient(115% 80% at 50% -25%, color-mix(in srgb, var(--tone) 16%, #fff), transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--tint) 85%, #fff), #fff 92%);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--tone) 10%, transparent);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
/* drifting glow blob (behind content) */
.cat-card::before {
    content: ''; position: absolute; z-index: -1;
    top: -48px; right: -42px; width: 132px; height: 132px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--tone) 34%, transparent), transparent 70%);
    transition: transform .45s ease, opacity .3s ease; opacity: .7;
}
/* shine sweep (above content, non-interactive) */
.cat-card::after {
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.55) 48%, transparent 62%);
    transform: translateX(-130%); transition: transform .7s ease;
}
.cat-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--tone) 45%, transparent);
    box-shadow: 0 20px 38px color-mix(in srgb, var(--tone) 24%, rgba(32,38,31,.10));
}
.cat-card:hover::before { transform: scale(1.55) translate(-6px, 10px); opacity: 1; }
.cat-card:hover::after  { transform: translateX(130%); }

.cat-card .ico {
    position: relative; width: 64px; height: 64px; border-radius: 19px;
    margin: 0 auto 14px; display: grid; place-items: center;
    font-size: 28px; color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 72%, #fff), var(--tone));
    box-shadow: 0 9px 20px color-mix(in srgb, var(--tone) 40%, transparent),
                inset 0 1px 0 rgba(255,255,255,.4);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.cat-card:hover .ico { transform: translateY(-2px) rotate(-7deg) scale(1.07); }
.cat-card b { color: var(--ink); font-size: 14.5px; display: block; font-weight: 700; letter-spacing: -.01em; }
.cat-card span {
    display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, #fff);
}

/* -----------------------------------------------------------------------------
   Product cards (gjirafa50-style)
   ----------------------------------------------------------------------------- */
.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.prod-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.pcard { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .16s, border-color .16s, transform .16s; }
.pcard:hover { box-shadow: var(--shadow-lg); border-color: var(--border); transform: translateY(-3px); }
.pcard:hover .pcard-add { opacity: 1; }

/* Uniform media box: the <a> must fill the square, otherwise the image falls
   back to its intrinsic size and cards end up with visibly different photos.
   `cover` keeps every thumbnail identical despite mixed source ratios
   (the catalog mixes 0.87 portrait and 1.5 landscape shots). */
.pcard-media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.pcard-media > a { display: block; width: 100%; height: 100%; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-media .ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tint, #f3f2ee); }
.pcard-media .ph i { font-size: 50px; color: var(--tone, #4a5a50); }

/* z-index is required, not decorative: the hover `transform` on the image makes
   it a stacking context, and since the <a> comes after these in the DOM it
   would otherwise paint over the ribbon and hide it on hover. */
.pcard-disc { position: absolute; z-index: 2; top: 11px; left: 11px; background: var(--sale); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.pcard-flag { position: absolute; z-index: 2; top: 11px; left: 11px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
/* padding:0 + line-height:1 are what actually centre the glyph: a <button>
   inherits the body's 1.6 line-height and its own UA padding, which pushed the
   icon off-centre — and bi-heart-fill has slightly different metrics to
   bi-heart, so the saved state drifted again. */
.pcard-fav {
    position: absolute; top: 9px; right: 9px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border); color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; line-height: 1; cursor: pointer; transition: .14s;
    -webkit-appearance: none; appearance: none;
        padding: 10px 7px 7px 7px !important;
}
/* Bootstrap Icons ships `.bi::before { vertical-align: -.125em }` to sit nicely
   on a text baseline. Inside a centred box that offset is exactly what pushed
   the heart off-centre, so it has to be zeroed here. */
.pcard-fav i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1; }
.pcard-fav i::before { vertical-align: 0; line-height: 1; }
.pcard-fav:hover { color: var(--sale); border-color: var(--sale); }

/* Save feels like a press, not a repaint. Driven by a transient .pop class from
   site.js — putting it on .on would replay the animation for every already
   saved card on each page load. */
.pcard-fav.pop { animation: fav-pop .32s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes fav-pop {
    0%   { transform: scale(1); }
    38%  { transform: scale(1.28); }
    100% { transform: scale(1); }
}

.pcard-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--border-soft); }
.pcard-cat { font-size: 11px; color: var(--green-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.pcard-title { font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--ink); margin: 6px 0 8px; line-height: 1.4; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title:hover { color: var(--green-dark); }
.pcard-rating { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-bottom: 11px; }
.pcard-rating .stars { color: var(--star); letter-spacing: -1px; font-size: 12px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.pcard-price .now { font-size: 18px; font-weight: 700; color: var(--ink); }
.pcard-price .now.sale { color: var(--sale); }
.pcard-price .old { font-size: 12.5px; color: var(--dim); text-decoration: line-through; }
.pcard-add { margin-top: 12px; opacity: .94; transition: opacity .16s; }

/* On offer — red accent so a discounted card stands out in a mixed grid. */
.pcard--sale { border-color: color-mix(in srgb, var(--sale) 32%, transparent); }
.pcard--sale:hover { border-color: color-mix(in srgb, var(--sale) 55%, transparent); }
.pcard--sale .pcard-media { background: linear-gradient(180deg, var(--sale-soft), #fff 62%); }
.pcard-disc { box-shadow: 0 3px 10px rgba(214, 58, 44, .32); }

/* Ofertat page header */
.page-hero--sale .sale-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--sale-soft); color: var(--sale);
    font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 10px;
}
.page-hero--sale h1 { color: var(--ink); }
.page-hero--sale strong { color: var(--sale); }

/* Favorites page header */
.page-hero--fav .fav-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--sale-soft); color: var(--sale);
    font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 10px;
}
.page-hero--fav [data-fav-total] { color: var(--sale); font-weight: 700; }
/* Saved state: solid red pill so it reads as "saved" at a glance. */
.pcard-fav.on { background: var(--sale); border-color: var(--sale); color: #fff; }
.pcard-fav.on:hover { background: var(--sale); color: #fff; }

/* Out of stock — red flag, muted photo, dead button. */
.pcard-flag--out { background: var(--sale); }
.pcard--out .pcard-media img,
.pcard--out .pcard-media .ph { filter: grayscale(.65); opacity: .72; }
.pcard--out:hover .pcard-media img { transform: none; }
.pcard--out .pcard-price .now { color: var(--muted); }
.pcard-add--out,
.pcard-add--out:hover {
    background: var(--sale-soft); color: var(--sale);
    border: 1px solid color-mix(in srgb, var(--sale) 28%, transparent);
    cursor: not-allowed; opacity: 1; box-shadow: none; transform: none;
}

/* -----------------------------------------------------------------------------
   Filters (articles page)
   ----------------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border-radius: 999px;
    border: 1.5px solid transparent;
    background: var(--chip-tint, var(--border));   /* colored by default */
    color: var(--chip-tone, var(--text));
    font-weight: 600; font-size: 13.5px; cursor: pointer;
    transition: filter .15s ease, background .15s ease, color .15s ease, transform .1s ease;
}
.chip i { color: var(--chip-tone, var(--dim)); font-size: 15px; transition: color .15s ease; }
.chip:hover { filter: brightness(.92) saturate(1.06); }   /* darker on hover */
.chip:active { transform: scale(.96); }
.chip.active { background: var(--chip-tone, var(--ink)); color: #fff; border-color: var(--chip-tone, var(--ink)); }
.chip.active i { color: #fff; }
/* "Të gjitha" keeps the neutral look */
.chip--all { --chip-tone: var(--ink); --chip-tint: var(--border); }
.search-box { position: relative; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search-box input { padding: 10px 16px 10px 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font: inherit; font-size: 14px; width: 270px; max-width: 100%; color: var(--ink); }
.search-box input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* -----------------------------------------------------------------------------
   Product detail
   ----------------------------------------------------------------------------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumb a:hover { color: var(--green-dark); }
.detail-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
.detail-media { position: sticky; top: 96px; padding: 30px; }
.detail-media .ph { aspect-ratio: 1/1; border-radius: 14px; display: grid; place-items: center; background: var(--tint, #f3f2ee); }
.detail-media .ph i { font-size: 116px; color: var(--tone, #4a5a50); }
.detail-media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.detail-info h1 { font-size: clamp(26px, 3.4vw, 38px); }
.detail-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 12px 0 16px; }
.detail-rating .stars { color: var(--star); font-size: 15px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.detail-price .now { font-family: var(--font-sans); font-size: 32px; font-weight: 700; color: var(--sale); }
.detail-price .now.plain { color: var(--ink); }
.detail-price .old { font-size: 16px; color: var(--dim); text-decoration: line-through; }
.detail-desc { color: var(--text); font-size: 15.5px; margin: 18px 0 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.qty button { width: 42px; height: 48px; border: none; background: #fff; font-size: 20px; color: var(--ink); cursor: pointer; }
.qty button:hover { background: var(--bg-warm); color: var(--green-dark); }
.qty input { width: 48px; height: 48px; text-align: center; border: none; font: inherit; font-weight: 700; color: var(--ink); }
.qty input:focus { outline: none; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0; }
.detail-perks { display: grid; gap: 11px; margin: 22px 0; }
.detail-perk { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text); }
.detail-perk i { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-size: 17px; flex: none; }
.spec-list { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 6px; }
.spec-list .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.spec-list .row span:first-child { color: var(--muted); }
.spec-list .row span:last-child { color: var(--ink); font-weight: 600; }

/* -----------------------------------------------------------------------------
   Cart / Checkout
   ----------------------------------------------------------------------------- */
.checkout-grid { display: grid; grid-template-columns: 1.45fr .9fr; gap: 28px; align-items: start; }
.panel { padding: 24px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.panel h3 i { color: var(--green); font-size: 18px; }

.cart-line { display: flex; gap: 13px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 68px; height: 68px; border-radius: 10px; flex: none; border: 1px solid var(--border); display: grid; place-items: center; background: #fff; overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-line .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tint, #f3f2ee); }
.cart-line .thumb .ph i { font-size: 26px; color: var(--tone, #4a5a50); }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info b { color: var(--ink); display: block; font-size: 14px; font-weight: 600; }
.cart-line .info span { color: var(--muted); font-size: 12.5px; }
.cart-line .line-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cart-line .qty { transform: scale(.82); transform-origin: right center; }
.line-remove { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 17px; padding: 6px; }
.line-remove:hover { color: var(--sale); }

.summary .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; color: var(--text); }
.summary .row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 15px; font-size: 18px; font-weight: 700; color: var(--ink); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); font: inherit; font-size: 14.5px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; cursor: pointer; background: #fff; }
.pay-opt:hover { border-color: var(--green); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--green); }
.pay-opt b { color: var(--ink); font-size: 14.5px; }
.pay-opt span { color: var(--muted); font-size: 12.5px; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 54px; color: var(--dim); }
.empty-state h3 { margin: 16px 0 6px; font-size: 22px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.confirm { max-width: 580px; margin: 0 auto; text-align: center; }
.confirm .check { width: 82px; height: 82px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 40px; display: grid; place-items: center; margin: 0 auto 20px; }
.confirm h1 { font-size: clamp(26px, 3.4vw, 34px); }
.confirm .order-no { display: inline-block; background: var(--bg-warm); border: 1px dashed var(--border); border-radius: var(--r-sm); padding: 8px 16px; font-weight: 700; color: var(--ink); letter-spacing: .04em; margin: 8px 0 22px; }

/* -----------------------------------------------------------------------------
   About / Contact
   ----------------------------------------------------------------------------- */
.page-hero { padding: 54px 0 6px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 50px); }
.page-hero p { color: var(--muted); font-size: 16.5px; max-width: 620px; margin: 14px auto 0; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 26px; }
.value-card .ico { width: 50px; height: 50px; border-radius: 13px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.value-card.o .ico { background: var(--orange-soft); color: var(--orange-dark); }
.value-card h3 { font-size: 18px; }
.value-card p { color: var(--muted); margin: 0; font-size: 14.5px; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-band .num { font-family: var(--font-serif); font-size: 42px; font-weight: 600; color: var(--green-dark); }
.stat-band .lbl { color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-item { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.contact-item i { width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 20px; flex: none; }
.contact-item b { color: var(--ink); display: block; }
.contact-item span { color: var(--muted); font-size: 14px; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/7; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.alert-ok { display: none; align-items: center; gap: 10px; background: var(--green-soft); color: var(--green-dark); border-radius: var(--r-sm); padding: 14px 16px; font-weight: 600; margin-bottom: 18px; }
.alert-ok.show { display: flex; }

/* -----------------------------------------------------------------------------
   CTA band
   ----------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 54px 44px; text-align: center; color: #fff; background: var(--green-dark); }
.cta-band::after { content: ''; position: absolute; right: -50px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(239, 124, 27, .22); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); position: relative; }
.cta-band p { color: rgba(255, 255, 255, .88); font-size: 16px; max-width: 540px; margin: 12px auto 26px; position: relative; }
.cta-band .btn { position: relative; }

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.site-footer { margin-top: 8px; border-top: 1px solid var(--border); background: var(--bg-warm); padding: 52px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
.foot-logo { display: block;  width: 140px;
    height: 140px;
    background: url('../img/logo-bg.png') no-repeat center center;
    background-size: contain; }
.site-footer p { font-size: 14px; max-width: 290px; color: var(--muted); }
.foot-col h4 { font-family: var(--font-sans); color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); padding: 5px 0; font-size: 14px; }
.foot-col a:hover { color: var(--green-dark); }
.foot-social { display: flex; gap: 9px; margin-top: 14px; }
.foot-social a { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; font-size: 17px; }
.foot-social a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }

/* -----------------------------------------------------------------------------
   Toast
   ----------------------------------------------------------------------------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--r); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; z-index: 200; opacity: 0; visibility: hidden; transition: .22s; }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast i { color: #59c97e; }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 24px; } .mt-3 { margin-top: 38px; }
.me-1 { margin-right: 5px; } .me-2 { margin-right: 8px; }
.d-none { display: none; }
.hide { display: none !important; }
.grid-gap { margin-top: 42px; }

/* responsive */
@media (max-width: 1100px) {
    .prod-grid { grid-template-columns: repeat(4, 1fr); }
    .prod-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 480px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .feature:nth-child(2) { border-right: 0; }
    .feature:nth-child(1), .feature:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 860px) {
    .nav-links, .searchbar { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .mainbar.open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; left: 0; right: 0; top: 100%; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 60; }
    .mainbar { position: relative; }
    .detail-grid, .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
    .detail-media { position: static; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .stat-band { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .value-grid { grid-template-columns: 1fr; }
    .topbar .promo span { display: none; }
}
@media (max-width: 560px) {
    .section { padding: 44px 0; }
    .prod-grid, .prod-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: 1fr; }
    .feature { border-right: 0 !important; border-bottom: 1px solid var(--border); }
    .feature:last-child { border-bottom: 0; }
    .field-row { grid-template-columns: 1fr; }
    .hero-meta > div { padding-right: 18px; margin-right: 18px; }
    /* Bigger tap target for the heart on phones. */
    .pcard-fav { width: 36px; height: 36px; font-size: 16px; top: 8px; right: 8px; }
}
/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.15);
}

/* Pulse Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}
