/* ==========================================================================
   Giassaris — Reusable Components
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding-inline: 28px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t);
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-black);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-accent);
  color: var(--c-white);
}
.btn--accent {
  background: var(--c-accent);
  color: var(--c-white);
}
.btn--accent:hover {
  background: var(--c-accent-hover);
  color: var(--c-white);
}
/* Shared empty state (empty cart, 404, and other empty pages) */
.empty-state {
  max-width: 520px;
  margin-inline: auto;
  padding-block: 80px;
  text-align: center;
}
.empty-state h1 {
  margin-bottom: 12px;
}
.empty-state p {
  color: var(--c-text-muted);
  margin-bottom: 28px;
}
@media (max-width: 767px) {
  .empty-state {
    padding-block: 48px;
    padding-inline: 16px;
  }
  .empty-state h1 {
    font-size: 24px;
  }
  .empty-state p {
    font-size: var(--fs-sm);
  }
}
.btn--outline {
  background: transparent;
  color: var(--c-black);
  border-color: var(--c-black);
}
.btn--outline:hover {
  background: var(--c-black);
  color: var(--c-white);
}
.btn--light {
  background: var(--c-white);
  color: var(--c-black);
}
.btn--light:hover {
  background: var(--c-accent);
  color: var(--c-white);
  fill: var(--c-white);
}
.btn :is(svg, path) {
  transition: 0.3s ease all;
}
.btn--light:hover :is(svg, path) {
  fill: var(--c-white);
}
/* Frosted-glass button — transparent white → solid orange on hover.
   Use on dark/photo backgrounds (hero, banners, multimedia). */
.btn--glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: transparent;
  backdrop-filter: blur(6px);
}
.btn--glass:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}
.btn:hover svg {
  transform: translateX(5px);
}
/* Angle-right icon nudges right on hover (light + glass CTAs) */
.btn--light .icon,
.btn--glass .icon,
.btn--primary .icon {
  transition: transform var(--t-fast);
}
.btn--light:hover .icon,
.btn--glass:hover .icon,
.btn--primary:hover .icon {
  transform: translateX(5px);
}
.btn--lg {
  height: 60px;
  padding-inline: 36px;
  font-size: var(--fs-base);
}
.btn--block {
  width: 100%;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 3px;
}
.btn-link:hover {
  gap: 12px;
}

/* ---- Form fields ---- */
.field {
  position: relative;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 60px;
  padding: 18px 16px 8px;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast);
}
.field textarea {
  height: auto;
  min-height: 120px;
  padding-top: 22px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-black);
}
.field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-sm);
  line-height: 1;
  color: var(--c-grey-500);
  pointer-events: none;
  transition: top var(--t-fast), transform var(--t-fast), font-size var(--t-fast);
}
/* textarea resting label: near the top (not vertically centred like inputs) */
.field textarea + label {
  top: 18px;
  transform: none;
}
/* floated: input/textarea focused or has a value */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field label.is-floated {
  top: 10px;
  transform: none;
  font-size: 11px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--c-accent);
}

/* ==========================================================================
   Top bars + Header
   ========================================================================== */
.klarna-bar {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--c-black);
  color: var(--c-white);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.klarna-bar b {
  font-weight: var(--fw-bold);
}
.preheader {
  background: #ebebeb;
  font-size: var(--fs-xs);
  position: relative;
  z-index: 60;
}
.preheader__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}
@media (max-width: 1023px) {
  .preheader {
    display: none;
  }
}

/* preheader dropdowns */
.phdrop {
  position: relative;
  height: 50px;
}
.phdrop__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
}
.phdrop__trigger svg {
  transition: transform var(--t-fast);
}
.phdrop:hover .phdrop__trigger {
  color: var(--c-black);
}
.phdrop:hover .phdrop__trigger svg {
  transform: rotate(180deg);
}
.phdrop__panel {
  position: absolute;
  top: 100%;
  width: 285px;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--t);
  z-index: 70;
}
.phdrop__panel--left {
  left: 0;
}
.phdrop__panel--right {
  right: 0;
}
.phdrop:hover .phdrop__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.phdrop__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-black);
  margin-bottom: 14px;
}
.phdrop__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.phdrop__addr {
  font-size: var(--fs-xs);
  color: var(--c-grey-500);
  margin-bottom: 6px;
}
.phdrop__text {
  font-size: 13px;
  color: var(--c-grey-500);
  line-height: 1.5;
  margin-bottom: 16px;
}
.phpill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--c-accent) !important;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.phpill:hover {
  background: rgba(255, 106, 0, 0.18);
}
.phdrop__sublink {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--c-black) !important;
  margin-top: 12px;
}
.phdrop__sublink:hover {
  color: var(--c-accent) !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
}
.header__inner { position: relative; }  /* anchor for the full-width mega dropdown */
.header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__logo img {
  height: 38px;
  width: auto;
}
/* category nav (single row) */
.header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}
.header__cat {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: var(--ls-tight);
}
.header__cat::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.header__cat-item:hover > .header__cat::after,
.header__cat-item.is-open > .header__cat::after {
  transform: scaleX(1);
}
/* Invisible hover bridge — keeps the mega open while the cursor travels
   from the link down to the panel (helmi's .nav-link::before gimmick). */
.header__cat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: block;
  pointer-events: none;
}
.header__cat:hover::before {
  pointer-events: all;
}
.header__cat:hover {
  color: var(--c-accent);
  z-index: 5;   /* lift so the hover bridge wins over later-in-DOM nav links */
}
.header__cat--sales {
  color: var(--c-accent);
  font-weight: var(--fw-bold);
  background: rgba(255, 106, 0, 0.1);
}
.header__cat--sales:hover {
  background: rgba(255, 106, 0, 0.18);
}

/* ---- Desktop mega dropdown (hidden <1024 with .header__nav) ---- */
.header__cat-item {
  position: static;          /* mega's containing block = .header__inner (full-width) */
  display: flex;
  align-items: center;
}
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.header__cat-item.has-mega.is-open > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mega__inner {
  padding: 28px 60px 32px;
}
.mega__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.mega__head-icon { font-size: 32px; line-height: 1; color: var(--c-accent); }
.mega__head-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}
.mega__body {
  display: flex;
  gap: 40px;
}
.mega__links { flex: 1 1 60%; min-width: 0; }
.mega__groups {
  columns: 220px 3;          /* groups auto-balanced across up to 3 columns */
  column-gap: 32px;
}
.mega__group {
  break-inside: avoid;       /* never split a group across two columns */
  margin-bottom: 24px;
}
.mega__group-title {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  transition: color 0.12s;
}
.mega__group-title:hover { color: var(--c-accent); }
.mega__sublist { list-style: none; margin: 0; padding: 0; }
/* Placeholder banner cards (static gradients until real banner data exists) */
.mega__images {
  flex: 0 0 34%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.mega__img-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-grey-700), var(--c-ink));
}
.mega__img-card--b {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-hover));
}
.mega__img-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: gap 0.2s;
}
.mega__img-card:hover .mega__img-label { gap: 12px; }
.mega__link {
  display: block;
  padding: 7px 0;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  transition: color 0.12s;
}
.mega__link:hover { color: var(--c-accent); }
.mega__see-all {
  display: flex;             /* full-width divider above the link */
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  transition: gap 0.2s;
}
.mega__see-all:hover { gap: 12px; color: var(--c-accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__actions .search__btn i {
  top: 50%;
  transform: translateY(-50%);
}
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
}
.icon-btn--circle {
  background: var(--c-grey-150);
}
.icon-btn--circle:hover {
  background: var(--c-grey-300);
}
.icon-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  background: var(--c-accent);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-pill);
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 130px;
  height: 40px;
  padding: 0 16px;
  background: var(--c-grey-150);
  border: 1px solid #ededed;
  border-radius: var(--radius-pill);
  color: var(--c-grey-500);
  position: relative;
}
.search input {
  flex: 1;
  min-width: 0; /* allow the input to shrink inside the flex parent (default is auto -> overflows) */
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: var(--fs-xs);
  color: var(--c-text);
}
.search i {
  font-size: 13px;
  position: absolute;
  right: 0.8rem;
}
.search:hover {
  background: #fff;
}
.search:hover i {
  color: var(--c-accent);
}
.header__actions .icon-btn {
  border-radius: 0;
}
.header__actions .icon-btn:hover i {
  color: var(--c-accent);
}
/* below 1200px hide inline categories (would need burger — mobile pass) */
@media (max-width: 1200px) {
  .header__nav {
    display: none;
  }
}

/* burger + mobile search icon are desktop-hidden by default */
.header__burger { display: none; }
.header__search-toggle { display: none; }

@media (max-width: 1023px) {
  .header__inner {
    position: relative;
    height: 70px;
    gap: 0;
    justify-content: space-between;
  }
  .header__burger {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    /* cancel the container gutter so the cell sits flush to the header edge and
       the icon centres within the full cell (edge -> divider), not just its box */
    margin-left: calc(-1 * var(--gutter));
    font-size: 20px;
    color: var(--c-text);
    border-right: 1px solid var(--c-border);
  }
  /* logo centered absolutely between burger (left) and actions (right) */
  .header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header__logo img { height: 30px; }
  .search { display: none; }
  /* search lives only in the bottom nav on mobile */
  .header__search-toggle { display: none; }
  .header__action--hide-mobile { display: none; }
  /* burger (left) + cart (right) framed with full-height side dividers; the cart
     cell mirrors the burger — flush to the right edge, icon centred */
  .header__actions { width: 70px; height: 70px; justify-content: center; align-items: center; gap: 0; margin-right: calc(-1 * var(--gutter)); border-left: 1px solid var(--c-border); }
}

/* ==========================================================================
   Search modal — dark overlay with a centred search bar near the top
   ========================================================================== */
/* the header search box + toggle act as triggers; clicking opens the modal */
.search { cursor: pointer; }
.search input { pointer-events: none; }

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: clamp(64px, 12vh, 130px) 24px 0;
  background: #0d0d0d;
}
.search-modal.is-open { display: block; }
.search-modal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
.search-modal__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 18px;
  background: #fff;
  border-radius: 14px;
}
.search-modal__field > i { font-size: 16px; color: var(--c-grey-500); flex: none; }
.search-modal__field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  color: var(--c-text);
}
.search-modal__tool {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-ink);
  background: transparent;
  border: 1.5px solid var(--c-border);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.search-modal__tool:hover { color: var(--c-accent); border-color: var(--c-accent); }
.search-modal__tool i { font-size: 14px; }
.search-modal__close {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transition: background var(--t-fast);
}
.search-modal__close:hover { background: rgba(255, 255, 255, 0.26); }
.search-modal__close i { font-size: 14px; }

/* Mobile: opened from the bottom-nav search; no close button (tap backdrop or
   Esc to dismiss), and a rounder full-width bar to match the mobile design. */
@media (max-width: 1023px) {
  .search-modal { padding: 16px 12px 0; }
  .search-modal__close { display: none; }
  .search-modal__field { border-radius: 10px; height: 70px; padding: 0 12px 0 18px; }
}

/* --- Live-search dropdown (results injected by initSearchModal) --- */
.search-modal__results {
  width: 100%;
  max-width: 980px;
  margin: 18px auto 0;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-modal__results.is-loading { position: relative; min-height: 60px; }
.search-modal__results.is-loading::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: search-spin 0.7s linear infinite;
}
@keyframes search-spin { to { transform: rotate(360deg); } }
.live-search__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.live-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.live-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }
.live-card__media { display: block; aspect-ratio: 1 / 1; background: #f5f5f5; }
.live-card__media img { width: 100%; height: 100%; object-fit: contain; }
.live-card__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 14px; }
.live-card__name {
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.live-card__price del { color: var(--c-grey-500); font-size: 12px; }
.live-card__now { color: var(--c-accent); font-weight: 700; font-size: 14px; }
.live-search__all { text-align: center; margin: 18px 0 24px; }
.live-search__all .btn { display: inline-flex; align-items: center; gap: 8px; }
.live-search__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}
.live-search__empty i { font-size: 18px; }
@media (max-width: 1023px) {
  .search-modal__results { margin-top: 12px; max-height: calc(100vh - 110px); }
  .live-search__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ==========================================================================
   Mobile menu — Bootstrap offcanvas drill-down (mobile only, < 1024px)
   ========================================================================== */
/* The theme loads Bootstrap's JS bundle but NOT its CSS, so the offcanvas base
   behaviour (hide / fixed / slide / backdrop) is defined here, scoped to the
   mobile menu. Applied at all widths so #mmenu stays hidden on desktop too. */
.mmenu.offcanvas-start {
  position: fixed;
  top: 70px;
  left: 0;
  height: 100vh;
  width: 100%;
  max-width: 460px;
  background: white;
  border: 0;
  box-shadow: 0 35px 30px rgba(0, 0, 0, 0.16);
  z-index: 1000001; /* match helmi: above bottom-nav + third-party widgets */
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mmenu.offcanvas-start.showing,
.mmenu.offcanvas-start.hiding,
.mmenu.offcanvas-start.show { visibility: visible; }
.mmenu.offcanvas-start.show:not(.hiding),
.mmenu.offcanvas-start.showing { transform: none; }
.mmenu .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  overflow: hidden;
}
.offcanvas-backdrop {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000; /* match helmi: backdrop just below #mmenu */
  background: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.offcanvas-backdrop.show { opacity: 0.5; }

@media (max-width: 1023px) {
  /* burger → 3 morphing lines (the header cell layout is set above) */
  .header__burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background var(--t-fast);
  }
  .header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    transition: transform 0.25s, opacity 0.2s, background 0.2s;
  }
  /* open state: orange cell, white lines morphed into an X */
  body:has(#mmenu.show) .header__burger,
  body:has(#mmenu.showing) .header__burger { background: var(--c-accent); }
  body:has(#mmenu.show) .header__burger span,
  body:has(#mmenu.showing) .header__burger span { background: #fff; }
  body:has(#mmenu.show) .header__burger span:nth-child(1),
  body:has(#mmenu.showing) .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body:has(#mmenu.show) .header__burger span:nth-child(2),
  body:has(#mmenu.showing) .header__burger span:nth-child(2) { opacity: 0; }
  body:has(#mmenu.show) .header__burger span:nth-child(3),
  body:has(#mmenu.showing) .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* collapse the Klarna promo bar so the header pins to the top and the menu
     sits flush under it at any scroll position */
  .klarna-bar { transition: height var(--t); overflow: hidden; }
  body:has(#mmenu.show) .klarna-bar,
  body:has(#mmenu.showing) .klarna-bar { height: 0; }

  /* header casts a shadow while the menu is open — lifted above the backdrop
     (1000000) and panel (1000001) so the shadow is visible, but only while the
     menu is open (globally raising it would sit over the search modal) */
  .header { transition: box-shadow var(--t); }
  body:has(#mmenu.show) .header,
  body:has(#mmenu.showing) .header {
    z-index: 1000002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  /* ---- scroll area = positioning context for the slide panels ---- */
  .mmenu-nav {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .mmenu-nav ul { list-style: none; margin: 0; padding: 0; }
  .mmenu-nav li { position: static; }
  .mmenu-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--c-text);
    text-decoration: none;
    border-bottom: 1px solid var(--c-border);
  }
  .mmenu-nav a:hover { color: var(--c-accent); }
  .mmenu-arrow { flex: 0 0 auto; font-size: 13px; color: var(--c-text-muted); }

  /* ---- slide panels (any nested level) ---- */
  .mmenu-panel {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 10px 12px 24px;
    background: var(--c-white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2;
  }
  .mmenu-panel.is-active { transform: translateX(0); }
  /* lock parent scroll while a child panel is open */
  #mmenu.mmenu--deep .mmenu-nav { overflow: hidden; }
  .mmenu-panel:has(> .mmenu-panel.is-active),
  .mmenu-panel:has(.mmenu-panel.is-active) { overflow: hidden; }

  /* ---- back row (white pill: current category | ‹ in a rounded grey box) ---- */
  .mmenu-back {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
    border: 0;
    background: var(--c-white);
    padding: 12px 12px 12px 16px;
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--c-text);
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  }
  .mmenu-back i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 43px;
    height: 26px;
    border-radius: 13px;
    background: var(--c-grey-300);
    color: var(--c-text);
    font-size: 13px;
  }
}

/* ==========================================================================
   Mobile bottom navigation (fixed) — mobile only
   ========================================================================== */
.bottom-nav { display: none; }
@media (max-width: 1023px) {
  .bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    /* above the search overlay (1000) so it stays visible like helmi's bottom bar,
       but below the menu backdrop (1000000) so it's dimmed when the menu is open */
    z-index: 1001;
    display: flex;
    align-items: center;
    height: 60px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden; /* clip the active cell's fill to the bar's rounded corners */
  }
  .bottom-nav__item {
    flex: 1;
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--c-text);
    font-size: 20px;
    transition: color var(--t-fast);
  }
  /* light-gray divider between items */
  .bottom-nav__item + .bottom-nav__item {
    border-left: 1px solid var(--c-border);
  }
  .bottom-nav__item:hover,
  .bottom-nav__item.is-active {
    color: var(--c-accent);
  }
  /* search cell highlights orange while the search overlay is open */
  body:has(.search-modal.is-open) .bottom-nav__search {
    background: var(--c-accent);
    color: #fff;
  }
  /* keep page content clear of the fixed bar */
  body {
    padding-bottom: 92px;
  }
  /* hide the bar while the slide-in menu is open (JS sets body.menu-open) */
  body.menu-open .bottom-nav {
    display: none;
  }
}

/* ==========================================================================
   USP strip
   ========================================================================== */
.usps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.usp {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 40px;
  background-color: var(--c-grey-100);
  border-radius: 1rem;
}
.usp__icon {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--c-accent);
}
.usp__title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}
.usp__text {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
/* Tablet: 2×2 grid of cards (keep the desktop card style, just 2 columns). */
@media (min-width: 768px) and (max-width: 1023px) {
  .usps {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Phone: horizontal scroll carousel, bare items. */
@media (max-width: 767px) {
  .mmenu.offcanvas-start {
    height: 70vh;
  }
  .usps {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .usps::-webkit-scrollbar { display: none; }
  .usp {
    flex: 0 0 78%;
    scroll-snap-align: start;
    padding: 8px 4px;
    background: none;
    border-radius: 0;
  }
  .usps .usp i.usp__icon {
    font-size: 24px;
  }
}

/* ==========================================================================
   Banner card (3-up promo banners)
   ========================================================================== */
.banner {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  background: var(--c-ink);
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.65) 100%
  );
}
.banner > * {
  position: relative;
  z-index: 1;
}
.banner__title {
  font-size: 18px;
  font-weight: var(--fw-bold);
}

/* ==========================================================================
   Product card
   ========================================================================== */
.product-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t);
}
.product-card:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.product-card__media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--c-grey-150);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.product-card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.product-card__body {
  padding: 16px;
}
.product-card__brand {
  font-size: var(--fs-xs);
  color: var(--c-grey-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-top: 4px;
  min-height: 40px;
}
.product-card__price {
  margin-top: 10px;
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
}
.product-card__price del {
  color: var(--c-grey-500);
  font-weight: var(--fw-book);
  font-size: var(--fs-sm);
  margin-right: 6px;
}

/* ==========================================================================
   Horizontal slider (generic)
   ========================================================================== */
.slider {
  position: relative;
}
.slider__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.slider__track::-webkit-scrollbar {
  display: none;
}
.slider__track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  z-index: 2;
}
.slider__nav--prev {
  left: -10px;
}
.slider__nav--next {
  right: -10px;
}
section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  background: var(--c-white);
  color: var(--c-text-muted);
  padding-top: 120px;
  border-top: 1px solid var(--c-grey-300);
}
.footer__accent {
  position: absolute;
  top: 0;
  left: 64px;
  width: 130px;
  height: 90px;
  clip-path: polygon(20px -2px, 91% 0px, 0% 100%, 0px 100%);
  background-color: var(--c-accent);
}
.footer a {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}
.footer a:hover {
  color: var(--c-accent);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 290px));
  justify-content: space-between;
  gap: 40px;
}
/* Columns are flex so the newsletter can fill its column and pin the button bottom */
.footer__col {
  display: flex;
  flex-direction: column;
}
/* Location / email pills size to their content instead of stretching the column */
.footer__col > .pill {
  align-self: flex-start;
}
.footer__col h4 {
  position: relative;
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--c-black);
  margin-bottom: 16px;
  padding-bottom: 12px;
}
.footer__col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--c-accent);
}
.footer__sub {
  font-size: 15px;
  font-weight: var(--fw-bold);
  margin: 28px 0 4px;
}
.footer__sub:first-of-type {
  margin-top: 0;
}
.footer__sub--accent {
  color: var(--c-accent);
}
.footer a.pill {
  font-size: 12px;
}
.footer__addr {
  font-size: var(--fs-sm);
  margin-bottom: 4px;
}
.footer__muted {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-top: 8px;
}
.footer__link-strong {
  font-weight: var(--fw-bold);
  color: var(--c-black) !important;
  transition: color var(--t-fast);
}
.footer__link-strong:hover {
  color: var(--c-accent) !important;
}
.footer__link-arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}
.footer__link-strong:hover .footer__link-arrow {
  transform: translateX(4px);
}
.footer__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-grey-150);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  margin-top: 6px;
}
.pill:hover {
  background: var(--c-grey-300);
}
.footer__links {
  display: grid;
  gap: 12px;
}
.footer__links a {
  line-height: 1.4;
}
/* workdays */
.workdays {
  display: grid;
}
.workdays li {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.workdays li:nth-child(odd) {
  background: var(--c-grey-100);
}
.workdays li span:first-child {
  font-weight: var(--fw-bold);
  color: var(--c-black);
}
/* newsletter */
/* Stack fields so the register button drops below the checkbox, left-aligned */
.newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto; /* push the whole newsletter block to the bottom of the column */
  margin-bottom: 0;
}
.newsletter h4 {
  border: none;
  padding: 0;
  margin-bottom: 6px;
}
.newsletter h4::after {
  display: none;
}
.newsletter__input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: var(--c-grey-150);
  border: none;
  border-radius: var(--radius);
  margin-top: 12px;
  outline: none;
}
/* social + payments */
.footer__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 48px;
}
.footer__social a {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-grey-150);
  color: var(--c-black);
  display: grid;
  place-items: center;
}
.footer__social a:hover {
  background: var(--c-accent);
  color: #fff;
}
.footer__pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__pay img {
  max-width: 100%;
  height: auto;
  display: block;
}
.pay {
  display: inline-grid;
  place-items: center;
  height: 30px;
  padding: 0 10px;
  background: var(--c-grey-150);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--c-grey-700);
}
.footer__bottom {
  margin-top: 40px;
  padding-block: 24px;
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-xs);
  color: var(--c-grey-500);
}
.footer__bottom > :nth-child(1) { text-align: left; }
.footer__bottom > :nth-child(2) { text-align: center; }
.footer__bottom > :nth-child(3) { text-align: right; }
/* Accordion chevron: mobile-only — hidden on tablet/desktop (panels always open) */
.footer__acc-chev { display: none; }

@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .footer__bottom > :nth-child(1),
  .footer__bottom > :nth-child(2),
  .footer__bottom > :nth-child(3) { text-align: center; }
  /* Smaller accent + tighter top spacing from tablet down (not only phone). */
  .footer {
    padding-top: 36px;
  }
  .footer__accent {
    left: 14px;
    width: 48px;
    height: 30px;
    clip-path: polygon(10px -2px, 87% 0px, 0% 100%, 0px 100%);
  }
  /* Newsletter sits under the "Χρήσιμα Αρχεία" links in the 2-col layout —
     give it breathing room from the list above. */
  .newsletter {
    margin-top: 30px;
  }
}
@media (max-width: 560px) {
  .footer .container {
    /* use the standard responsive gutter (was a one-off 8px) */
    padding-inline: var(--gutter);
  }
  .footer__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }
  /* Flatten the three accordion columns so their heads/panels become direct
     flex items of the grid, then reorder: hours → info → useful files, with
     social icons + newsletter dropped below the cards. Desktop is untouched. */
  .footer__col:not(:first-child) {
    display: contents;
  }
  .footer__col:nth-child(2) > .footer__acc-head,
  .footer__col:nth-child(2) > .footer__acc-panel { order: 1; }
  .footer__col:nth-child(4) > .footer__acc-head,
  .footer__col:nth-child(4) > .footer__acc-panel { order: 2; }
  .footer__col:nth-child(3) > .footer__acc-head,
  .footer__col:nth-child(3) > .footer__acc-panel { order: 3; }
  .footer__social { order: 4; }
  .newsletter { order: 5; }
  /* Center each column's content horizontally on mobile */
  .footer__col {
    align-items: center;
    text-align: center;
  }
  .footer__col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer__col > .pill {
    align-self: center;
  }
  .footer__phones,
  .footer__pay {
    justify-content: center;
  }
  .footer__phones {
    margin-bottom: 24px;
    gap: 4px;
  }
  .footer__muted a {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 3pxs;
  }
  .footer__links,
  .workdays {
    width: 100%;
  }
  .newsletter {
    align-items: center;
  }
  .newsletter__input {
    font-size: var(--fs-xs);
    max-width: 344px;
    width: 100%;
    text-align: center;
  }
  .newsletter label {
    font-size: var(--fs-xs);
  }
  .newsletter .btn {
    font-size: var(--fs-xs);
    margin-top: 10px;
  }
  .footer__social {
    justify-content: center;
    margin-top: 28px;
  }
  .footer__col h4 {
    margin-bottom: 0;
  }
  /* --- Collapsible sections (Ωράριο / Χρήσιμα Αρχεία / Πληροφορίες) --- */
  /* .footer__col prefix needed to out-specify the base `.footer__col h4`
     margin/padding/underline rules */
  .footer__col .footer__acc-head {
    align-self: stretch;
    position: relative;
    margin: 4px 0 0;
    height: 62px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-grey-150);
    border-radius: var(--radius-sm);
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    user-select: none;
  }
  /* No orange underline on the accordion card heads */
  .footer__col .footer__acc-head::after { display: none; }
  .footer__acc-chev {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    font-size: 14px;
    transition: transform var(--t);
  }
  .footer__acc-head.is-open .footer__acc-chev {
    transform: translateY(-50%) rotate(180deg);
  }
  .footer__acc-panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transition: max-height var(--t);
  }
  /* Breathing room above the panel content once expanded */
  .footer__acc-head.is-open + .footer__acc-panel {
    margin-top: 14px;
  }
}

/* ==========================================================================
   Custom checkboxes & radios (global)
   ========================================================================== */
input[type='checkbox'],
input[type='radio'] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  flex: none;
  cursor: pointer;
  position: relative;
  transition:
    background var(--t-fast),
    border-color var(--t-fast);
}
/* Checkbox — off: λευκό + γκρι border · on: πορτοκαλί + λευκό check */
input[type='checkbox'] {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #fff;
  border: 1.5px solid var(--c-grey-300);
}
input[type='checkbox']:hover {
  border-color: var(--c-grey-500);
}
input[type='checkbox']:checked {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* Radio — off: γκρι γεμάτο · on: πορτοκαλί + λευκός κύκλος στο κέντρο */
input[type='radio'] {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e4e4e4;
  border: 1.5px solid transparent;
}
input[type='radio']:hover {
  background: #d8d8d8;
}
input[type='radio']:checked {
  background: var(--c-accent);
}
input[type='radio']:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

/* Toggle switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: var(--fs-sm);
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--c-grey-300);
  position: relative;
  transition: var(--t);
  flex: none;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: var(--t);
}
.switch input:checked + .switch__track {
  background: var(--c-accent);
}
.switch input:checked + .switch__track::after {
  transform: translateX(20px);
}

/* ==========================================================================
   Font Awesome icon sizing (per context)
   ========================================================================== */
.icon-btn i { font-size: 18px; line-height: 1; }
.search i { font-size: 15px; color: var(--c-grey-500); }
.phdrop__trigger i { font-size: 10px; }
.phpill i { width: 14px; text-align: center; }
.footer__social a i { font-size: 18px; }
.pill i { width: 14px; text-align: center; }
.acc-nav a i { font-size: 17px; width: 22px; text-align: center; }

.usp i.usp__icon { font-size: 28px; width: auto; height: auto; }
