/* ============ Dizalica.me — Design System ============ */

:root {
  --brand: #b20206;
  --brand-dark: #7a0106;
  --brand-darker: #4d0004;
  --brand-light: #e63946;
  --brand-tint: #fdeceb;
  --gold: #c99a2e;
  --gold-light: #f3e3b8;
  --cream: #fdf8f4;
  --ink: #241213;
  --ink-soft: #5c4a4b;
  --gray-100: #f7f3f1;
  --gray-200: #ece4e1;
  --gray-300: #d8cac6;
  --white: #ffffff;
  --success: #1e7d45;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(36, 18, 19, 0.06);
  --shadow: 0 8px 24px rgba(36, 18, 19, 0.10);
  --shadow-lg: 0 20px 48px rgba(36, 18, 19, 0.18);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; }
/* overflow-x: clip (not hidden) — prevents accidental horizontal scroll without
   breaking position:sticky on descendants like the header, which `overflow-x: hidden`
   on html/body is known to do in most browsers. */
html { scroll-behavior: smooth; overflow-x: clip; width: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 6px 16px rgba(178,2,6,.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 6px 16px rgba(201,154,46,.3); }
.btn-gold:hover { background: #a97f22; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn-white { background: var(--white); color: var(--brand); }
.btn-white:hover { background: var(--gold-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-ghost { background: var(--gray-100); color: var(--ink); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-danger { background: #fde8e8; color: #a11212; }
.btn-danger:hover { background: #f6c8c8; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============ Topbar & Header ============ */
.topbar { background: var(--brand-darker); color: #f4d9d9; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; flex-wrap: wrap; gap: 4px; }
.topbar__info { display: flex; align-items: center; gap: 8px; }
.topbar__info a { color: #fff; font-weight: 600; }
.topbar__sep { opacity: .5; }
.topbar__info--right { opacity: .9; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.site-header.site-header--hidden { transform: translateY(-100%); }
/* .main-nav is position:fixed but lives inside .site-header, so a non-"none" transform OR
   backdrop-filter on the header (the latter is always on, the former mid-transition while
   animating back from hidden) turns the header into the fixed nav's containing block and
   pins the drawer off-screen relative to the header's sticky-in-flow position instead of the
   viewport. Force both off instantly (no transition) whenever the drawer is open. */
.site-header:has(.main-nav.open) {
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 20px; }
.site-header__logo img { height: 56px; width: auto; }

.main-nav { display: flex; gap: 28px; }
.main-nav__close { display: none; }
.main-nav a { font-weight: 600; font-size: .96rem; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--brand); transition: width .2s; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--brand); }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.header-search { display: flex; align-items: center; background: var(--gray-100); border-radius: 999px; padding: 4px 4px 4px 16px; }
.header-search input { border: none; background: transparent; outline: none; width: 190px; font-size: .9rem; }
.header-search button { border: none; background: var(--brand); color: #fff; width: 34px; height: 34px; border-radius: 50%; }

.cart-icon { position: relative; font-size: 1.3rem; }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.lang-switcher select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--gray-200); background: var(--gray-100);
  color: var(--ink); font-weight: 600; font-size: .82rem; padding: 8px 28px 8px 12px; border-radius: 999px;
  cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23241213' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.lang-switcher select:hover { background-color: var(--gray-200); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* z-index: 90, not higher — .main-nav is nested inside .site-header (z-index:100, a
   sticky positioned element that creates its own stacking context), so the nav's own
   z-index:150 is trapped within that context and only ranks "100" against siblings like
   this backdrop. Keeping the backdrop below 100 here ensures it never paints over the
   header/drawer (which was intercepting clicks meant for the nav links). */
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(24,10,11,.45); z-index: 90; opacity: 0; transition: opacity .25s; }
.nav-backdrop.open { display: block; opacity: 1; }
body.nav-locked { overflow: hidden; }

.flash { margin: 14px auto 0; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; }
.flash--success { background: #e5f6ec; color: var(--success); }
.flash--error { background: #fde8e8; color: #a11212; }

/* ============ Hero ============ */
.hero { position: relative; background: linear-gradient(120deg, var(--brand-darker) 0%, var(--brand) 65%, var(--brand-light) 100%); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 64px 20px 90px; position: relative; z-index: 2; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; margin-bottom: 18px; }
.hero p.lead { font-size: 1.1rem; color: #ffe1e1; max-width: 520px; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; font-size: .86rem; color: #ffe1e1; }
.hero__badges span { display: flex; align-items: center; gap: 6px; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/5; }
.hero__media::after { content: ''; position: absolute; inset: -18px; border: 2px solid rgba(255,255,255,.25); border-radius: var(--radius-lg); z-index: -1; }
.hero-wave { display: block; width: 100%; margin-top: -2px; }

/* ============ Sections ============ */
.section { padding: 68px 0; }
.section--alt { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 6px; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 560px; }
.section-tag { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 8px; display: block; }

/* ============ Horizontal scroll strips (categories, product carousels) ============ */
.h-scroll-wrap { position: relative; display: flex; align-items: center; gap: 10px; }
.cat-strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px; scrollbar-width: thin; scroll-behavior: smooth; flex: 1 1 auto; min-width: 0; }
.cat-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 22px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); min-width: 132px; text-align: center; transition: all .2s; }
.cat-chip:hover, .cat-chip.active { border-color: var(--brand); background: var(--brand-tint); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-chip__icon { font-size: 1.7rem; }
.cat-chip span.label { font-weight: 600; font-size: .87rem; }

.scroll-arrow {
  flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.scroll-arrow svg { display: block; }
.scroll-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.scroll-arrow:disabled { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 640px) {
  .scroll-arrow { display: none; }
  .h-scroll-wrap--featured .scroll-arrow { display: flex; width: 34px; height: 34px; }
}

.scroll-dots { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 6px; }
.scroll-dots__dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--gray-200); cursor: pointer; transition: all .2s; }
.scroll-dots__dot:hover { background: var(--brand-tint); }
.scroll-dots__dot.active { background: var(--brand); width: 22px; border-radius: 999px; }

.product-strip { display: flex; gap: 22px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; scroll-behavior: smooth; flex: 1 1 auto; min-width: 0; }
.product-strip .product-card { flex: 0 0 calc((100% - 3 * 22px) / 4); min-width: 220px; }
@media (max-width: 1080px) {
  .product-strip .product-card { flex-basis: calc((100% - 2 * 22px) / 3); }
}
@media (max-width: 640px) {
  .product-strip { gap: 14px; }
  .product-strip .product-card { flex-basis: calc((100% - 14px) / 2); min-width: 160px; }
  .product-strip--single .product-card { flex-basis: 100%; min-width: 0; }
}

/* ============ Product grid & cards ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge--new { background: var(--gold); color: #fff; }
.badge--sale { background: var(--brand); color: #fff; }
.badge--out { background: var(--gray-300); color: var(--ink); }
.product-card__img { aspect-ratio: 1/1; background: var(--gray-100); overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); font-weight: 700; }
.product-card__title { font-size: 1.02rem; font-weight: 600; margin: 0; color: var(--ink); }
.product-card__title a::after { content: ''; position: absolute; inset: 0; }
.product-card__desc { font-size: .85rem; color: var(--ink-soft); flex: 1; }
.product-card__price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--brand); }
.price-old { text-decoration: line-through; color: var(--gray-300); font-size: .85rem; margin-right: 6px; }
.product-card__add { border: none; background: var(--ink); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; position: relative; z-index: 3; transition: background .2s; }
.product-card__add:hover { background: var(--brand); }

/* ============ Filters bar ============ */
.filters-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; padding: 16px 20px; background: var(--gray-100); border-radius: var(--radius); }
.filters-bar__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--white); border: 1px solid var(--gray-200); }
.filter-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filters-bar select { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--gray-200); background: var(--white); }

/* ============ Product detail ============ */
.product-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 44px 0; }
.product-detail__gallery img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow); }
.product-detail__cat a { color: var(--brand); font-weight: 700; font-size: .82rem; text-transform: uppercase; }
.product-detail h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 14px; }
.product-detail__price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.product-detail__price-row .price { font-size: 2rem; }
.stock-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; margin-bottom: 20px; }
.stock-status.in { color: var(--success); }
.stock-status.out { color: #a11212; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--gray-200); border-radius: 999px; overflow: hidden; }
.qty-control button { border: none; background: var(--gray-100); width: 38px; height: 38px; font-size: 1.1rem; }
.qty-control input { width: 48px; border: none; text-align: center; font-weight: 700; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0; padding: 18px; background: var(--gray-100); border-radius: var(--radius); font-size: .85rem; }
.trust-badges span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.local-delivery-note { font-size: .85rem; color: var(--ink-soft); line-height: 1.6; margin: -10px 0 20px; }
.local-delivery-note a { color: var(--brand); font-weight: 600; }
.product-tabs { margin-top: 20px; }
.product-tabs__content { line-height: 1.8; color: var(--ink-soft); }
.product-tabs__content h2, .product-tabs__content h3 { color: var(--ink); margin-top: 1.2em; }
.product-tabs__content a { color: var(--brand); text-decoration: underline; font-weight: 600; transition: opacity .2s; }
.product-tabs__content a:hover { opacity: .8; }

/* ============ Trust strip ============ */
.trust-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.trust-item { text-align: center; padding: 26px 16px; }
.trust-item__icon { font-size: 2.1rem; margin-bottom: 10px; }
.trust-item h4 { margin-bottom: 4px; font-size: 1rem; }
.trust-item p { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* ============ Testimonials ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testimonial { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.testimonial__stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial p { font-style: italic; color: var(--ink-soft); }
.testimonial__name { font-weight: 700; font-family: var(--font-head); margin-top: 12px; }

/* ============ Blog ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card__img { aspect-ratio: 16/9; background: var(--gray-100); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.blog-card__img img { width: 100%; height: 100%; object-fit: contain; }
.blog-card__body { padding: 18px 20px 22px; }
.blog-card__meta { font-size: .76rem; color: var(--brand); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.blog-card__title { font-size: 1.08rem; margin-bottom: 8px; }
.blog-card__title a:hover { color: var(--brand); }
.blog-card__excerpt { font-size: .88rem; color: var(--ink-soft); }
.blog-card__more { font-size: .85rem; font-weight: 700; color: var(--brand); margin-top: 10px; display: inline-block; }

.blog-post { max-width: 780px; margin: 0 auto; padding: 44px 20px 70px; }
.blog-post__meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.blog-post h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.blog-post__cover-wrap { width: 100%; aspect-ratio: 16/9; background: var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.blog-post__cover { width: 100%; height: 100%; object-fit: contain; }
.blog-post__content { font-size: 1.05rem; line-height: 1.85; color: var(--ink); }
.blog-post__content h2 { font-size: 1.5rem; margin-top: 1.6em; }
.blog-post__content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.blog-post__content p { margin-bottom: 1.2em; }
.blog-post__content ul, .blog-post__content ol { margin: 0 0 1.2em 1.4em; }
.blog-post__content li { margin-bottom: .5em; }
.blog-post__content img { border-radius: var(--radius); margin: 1.4em 0; }
.blog-post__content blockquote { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.6em 0; font-style: italic; }
.blog-post__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.tag-pill { background: var(--gray-100); padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; }

/* ============ CTA band ============ */
.cta-band { background: linear-gradient(120deg, var(--brand-darker), var(--brand)); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #ffe1e1; margin: 0; }

/* ============ Forms ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; }
.form-group .req { color: var(--brand); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--white); outline: none; transition: border-color .2s; }
.form-control:focus { border-color: var(--brand); }
textarea.form-control { resize: vertical; min-height: 110px; }
.card-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 30px; }

/* ============ Cart / Checkout ============ */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.cart-item img { width: 76px; height: 76px; border-radius: var(--radius-sm); object-fit: cover; background: var(--gray-100); }
.cart-item__name { font-weight: 600; }
.cart-item__price { color: var(--ink-soft); font-size: .88rem; }
.cart-item__remove { background: none; border: none; color: var(--ink-soft); font-size: 1rem; }
.cart-item__remove:hover { color: var(--brand); }
.cart-summary { position: sticky; top: 110px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.cart-summary-row.total { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 16px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.cart-empty__icon { font-size: 3rem; margin-bottom: 16px; }

/* ============ Breadcrumb ============ */
.breadcrumb { font-size: .82rem; color: var(--ink-soft); padding: 16px 0; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 6px; }

/* ============ Footer ============ */
.site-footer { background: #1a0a0b; color: #d9c3c4; padding-top: 56px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { margin-bottom: 14px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #d9c3c4; font-size: .9rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { font-weight: 600; color: #fff; }
.footer-legal-links { display: flex; gap: 16px; margin-top: 10px; }
.footer-legal-links a { font-size: .85rem; color: rgba(255,255,255,.75); text-decoration: underline; }
.footer-legal-links a:hover { color: #fff; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.1); margin-top: 12px; padding: 24px 0; font-size: .78rem; color: #a98d8e; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 calc(90px + env(safe-area-inset-bottom, 0px)); font-size: .8rem; color: #a98d8e; text-align: center; }

/* ============ Mobile CTA ============ */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
.mobile-cta__btn { flex: 1; text-align: center; padding: 9px 8px; font-size: .88rem; border-radius: 999px; font-weight: 700; background: var(--gray-100); color: var(--ink); white-space: nowrap; }
.mobile-cta__btn:first-child { flex: 0 0 34%; }
.mobile-cta__btn--primary { flex: 1 1 auto; background: var(--brand); color: #fff; }

/* ============ Floating contact buttons ============ */
.floating-contact { position: fixed; right: 20px; bottom: 20px; z-index: 250; display: flex; flex-direction: column; gap: 12px; }
.floating-contact__btn { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .18s, box-shadow .18s; }
.floating-contact__btn:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.floating-contact__btn--whatsapp { background: #25d366; }
.floating-contact__btn--viber { background: #7360f2; }
.floating-contact__btn--call { background: var(--brand); }

@media (max-width: 860px) {
  .floating-contact { right: 14px; bottom: 78px; }
  .floating-contact__btn { width: 46px; height: 46px; }
  .floating-contact__btn--call { display: none; } /* redundant with the "Pozovi" mobile CTA button */
}

/* ============ Misc pages ============ */
.page-hero { background: var(--cream); padding: 46px 0 38px; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 50px 0; }
.about-grid img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 30px 0; }
.value-card { text-align: center; padding: 24px 16px; background: var(--cream); border-radius: var(--radius); }
.value-card__icon { font-size: 1.8rem; margin-bottom: 10px; }

.city-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.city-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; }
.city-card h3 { color: var(--brand); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 44px 0; }
.contact-info-card { background: var(--cream); border-radius: var(--radius-lg); padding: 30px; }
.contact-info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.contact-info-row:last-child { border: none; }
.contact-info-row__icon { font-size: 1.3rem; }
.contact-info-row a { color: var(--brand); font-weight: 600; text-decoration: underline; transition: opacity .2s; }
.contact-info-row a:hover { opacity: .8; }
.contact-map { border-radius: var(--radius); overflow: hidden; margin-top: 20px; border: 0; width: 100%; height: 260px; }

.faq-item { border-bottom: 1px solid var(--gray-200); padding: 18px 0; }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--brand); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gray-200); font-weight: 600; font-size: .88rem; }
.pagination a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty-state__icon { font-size: 3rem; margin-bottom: 16px; }

/* ============ Error pages ============ */
.error-page { text-align: center; padding: 110px 20px; }
.error-page h1 { font-size: 5rem; color: var(--brand); margin-bottom: 6px; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .trust-strip { grid-template-columns: repeat(2,1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh; background: #fff; flex-direction: column; padding: 90px 30px; gap: 22px; box-shadow: var(--shadow-lg); transition: right .3s; z-index: 150; }
  .main-nav.open { right: 0; }
  .main-nav__close {
    display: flex; align-items: center; justify-content: center; position: absolute; top: 24px; right: 24px;
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gray-200); background: var(--gray-100);
    color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: all .2s;
  }
  .main-nav__close:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
  .menu-toggle { display: flex; }
  .header-search { display: none; }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero__media { order: -1; max-width: min(340px, calc(100% - 16px)); margin: 0 auto; }
  .hero__media::after { inset: -6px; }
  .hero__eyebrow { display: flex; width: fit-content; margin: 24px auto 18px; }
  .about-grid, .product-detail, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .about-grid img { max-height: 300px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 0; }
  .topbar__info--right { display: none; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .product-grid--listing { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-values, .city-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}

/* ---- Extra-small phones (SE, small Android, ~360-480px) ---- */
@media (max-width: 480px) {
  /* longhand on purpose: .container is combined with many other classes (footer-bottom,
     footer-disclaimer, breadcrumb, etc.) that set their own top/bottom padding — the
     shorthand `padding` here would silently wipe those out since this rule comes later
     in the cascade at equal specificity. */
  .container { padding-left: 16px; padding-right: 16px; }

  .topbar__inner { justify-content: center; padding: 6px 16px; }
  .topbar__tagline, .topbar__sep { display: none; }
  .topbar__info a { font-size: .78rem; white-space: nowrap; }

  .site-header__inner { gap: 10px; padding: 10px 16px; }
  .site-header__logo img { height: 44px; }
  .site-header__actions { gap: 10px; }
  .lang-switcher select { padding: 7px 24px 7px 10px; font-size: .76rem; }
  .cart-icon { font-size: 1.15rem; }

  .hero__inner { padding: 40px 16px 50px; gap: 24px; }
  .hero__eyebrow { margin: 18px auto 16px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p.lead { font-size: 1rem; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__badges { gap: 12px 16px; font-size: .8rem; }

  .section { padding: 44px 0; }
  .page-hero { padding: 34px 0 28px; }
  .card-box { padding: 20px; }

  .cart-item {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas: "img info remove" "img controls remove";
    row-gap: 10px; column-gap: 12px;
  }
  .cart-item img { grid-area: img; width: 60px; height: 60px; }
  .cart-item > div:nth-child(2) { grid-area: info; min-width: 0; }
  .cart-item .qty-control { grid-area: controls; justify-self: start; }
  .cart-item__remove { grid-area: remove; align-self: start; }
  .qty-control button { width: 32px; height: 32px; }
  .qty-control input { width: 36px; }
}
