/* ==========================================================
   Affiliate Shop — Stylesheet
   Minimal, Shopify-like, configurable via CSS custom props
   ========================================================== */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font, 'Inter', system-ui, sans-serif);
  background: var(--bg, #fff);
  color: var(--text, #333);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link, inherit); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* --- Container ------------------------------------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography ------------------------------------------ */
h1 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 600; line-height: 1.3; }
h3 { font-size: 1rem; font-weight: 500; }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--primary, #2c2c2c);
  color: #fff;
}
.btn--primary:hover { opacity: 0.85; text-decoration: none; }
.btn--cta {
  background: var(--cta-btn-bg, var(--primary, #2c2c2c));
  color: var(--cta-btn-text, #fff);
  font-weight: 600;
}
.btn--cta:hover { opacity: 0.85; text-decoration: none; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--primary, #2c2c2c);
  color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* --- Badges ---------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge--sale    { background: var(--badge-sale-bg, #e53e3e); color: var(--badge-sale-color, #fff); }
.badge--soldout { background: #999; color: #fff; }
.badge--accent  { background: var(--accent, #c8956c); color: #fff; }

/* --- Header --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg, var(--bg, #fff));
  padding: var(--header-pt, 0px) var(--header-pr, 0px) var(--header-pb, 0px) var(--header-pl, 0px);
  border-top: var(--header-border-top-width, 0px) solid var(--header-border-top-color, #e5e5e5);
  border-right: var(--header-border-right-width, 0px) solid var(--header-border-right-color, #e5e5e5);
  border-bottom: var(--header-border-bottom-width, 1px) solid var(--header-border-bottom-color, #e5e5e5);
  border-left: var(--header-border-left-width, 0px) solid var(--header-border-left-color, #e5e5e5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.site-logo { flex-shrink: 0; }
.site-logo:hover { text-decoration: none; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--logo-color, var(--primary));
}

/* --- Navigation ----------------------------------------- */
.main-nav { flex: 1; }
.nav-list { display: flex; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 0 1rem;
  height: 64px;
  line-height: 64px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-link { color: var(--nav-link, inherit); }
.nav-link:hover { color: var(--accent); text-decoration: none; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 0.5rem 0;
}
.nav-item:hover .dropdown { display: block; }
.nav-link.has-dropdown::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.6;
}
.dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  transition: background 0.1s;
}
.dropdown a:hover { background: #f5f5f5; text-decoration: none; }

/* --- Header Search -------------------------------------- */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.search-form { display: flex; align-items: center; }
.search-input {
  border: 1px solid #e5e5e5;
  border-radius: 4px 0 0 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  width: 200px;
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.menu-toggle, .search-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0; color: var(--burger-color, var(--primary)); line-height: 1; }
.menu-toggle { align-items: center; }
.menu-toggle__label, .search-toggle__label { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Breadcrumb ----------------------------------------- */
.breadcrumb { padding: var(--bc-pt, 0.75rem) var(--bc-pr, 0) var(--bc-pb, 0.75rem) var(--bc-pl, 0); background: var(--breadcrumb-bg, #f9f9f9); font-size: 0.8rem; border-top: var(--bc-border-top-width, 0px) solid var(--bc-border-top-color, #e5e5e5); border-right: var(--bc-border-right-width, 0px) solid var(--bc-border-right-color, #e5e5e5); border-bottom: var(--bc-border-bottom-width, 0px) solid var(--bc-border-bottom-color, #e5e5e5); border-left: var(--bc-border-left-width, 0px) solid var(--bc-border-left-color, #e5e5e5); }
.breadcrumb__list { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb__list li:not(:last-child)::after { content: '›'; margin-left: 0.25rem; color: #999; }
.breadcrumb__list a { color: var(--link, var(--primary)); }

/* --- USP Bar (below header, every page) ----------------- */
.usp-bar { background: var(--usp-bar-bg, #f9f9f9); border-bottom: 1px solid #eee; color: var(--usp-bar-text, inherit); }
.usp-bar__list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.25rem 5rem; list-style: none; margin: 0; padding: 0.5rem 0; }
.usp-bar__item { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.usp-bar__icon { font-size: 1rem; line-height: 1; }
.usp-bar__headline { font-size: 0.78rem; font-weight: 600; }
.usp-bar__sub { font-size: 0.75rem; opacity: 0.7; }

/* Mobile ticker */
.usp-bar__ticker { display: none; }
@media (max-width: 767px) {
  .usp-bar__list { display: none; }
  .usp-bar__ticker { display: block; position: relative; height: 2.25rem; overflow: hidden; }
  .usp-bar__ticker-track { position: relative; height: 100%; }
  .usp-bar__ticker-item {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    opacity: 0; transform: translateY(60%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
  }
  .usp-bar__ticker-item--active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .usp-bar__ticker-item--out { opacity: 0; transform: translateY(-60%); }
}

/* --- USP Section (home page) ---------------------------- */
.usp-section { padding: 2.5rem 0; border-bottom: 1px solid #eee; background: var(--usp-section-bg, #ffffff); }
.usp-section__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; list-style: none; margin: 0; padding: 0; text-align: center; }
.usp-section__item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.usp-section__icon { font-size: 2rem; line-height: 1; }
.usp-section__text { display: flex; flex-direction: column; gap: 0.15rem; }
.usp-section__headline { font-size: 0.9rem; font-weight: 600; }
.usp-section__sub { font-size: 0.8rem; color: #888; }
@media (max-width: 767px) {
  .usp-section__list { grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
  .usp-section__item { flex-direction: row; align-items: center; gap: 0.75rem; }
  .usp-section__icon { font-size: 1.5rem; flex-shrink: 0; }
}

/* --- Sections ------------------------------------------- */
.section { padding: 3rem 0; }
.section--sale { background: #fff8f4; }
.section--related { background: #f9f9f9; border-top: 1px solid #eee; }
.section__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* --- Category Cards ------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.category-card:hover {
  border-color: var(--accent, #c8956c);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
}
.category-card__name { font-weight: 600; font-size: 0.95rem; color: inherit; }
.category-card__count { font-size: 0.75rem; color: #888; }

/* --- Products Grid -------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.products-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.products-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 900px) {
  .products-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .products-grid--5 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Product Card --------------------------------------- */
.product-card {
  position: relative;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--product-card-bg, var(--bg));
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.product-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.product-card__name span { text-decoration: none; }
.product-card__link:hover { text-decoration: none; }
.product-card__link:hover .product-card__name span { text-decoration: underline; }
.product-card__link:hover .product-card__brand,
.product-card__link:hover .product-card__price { text-decoration: none; }
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}
.product-card__image {
  padding: 30px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  background: #fff;
}
.product-card:hover .product-card__image { transform: scale(1.04); }
.product-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.product-card__info {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.product-card__brand { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #999; }
.product-card__name { font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: var(--product-name-color, var(--text)); }
.product-card__link:hover .product-card__name { color: var(--accent); }
.product-card__price { margin-top: auto; padding-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* --- Product Slider ------------------------------------- */
.slider-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.slider-titlerow .section__title { margin-bottom: 0; }
.slider-titlerow__nav { display: flex; gap: 0.5rem; flex-shrink: 0; }

.slider { position: relative; }
.slider__viewport { overflow: hidden; width: 100%; }
.slider__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94);
}
.slider__track .product-card { flex: 0 0 calc((100% - 4 * 1.25rem) / 5); min-width: 0; }
@media (max-width: 1000px) { .slider__track .product-card { flex-basis: calc((100% - 3 * 1.25rem) / 4); } }
@media (max-width: 780px)  { .slider__track .product-card { flex-basis: calc((100% - 2 * 1.25rem) / 3); } }
@media (max-width: 560px)  { .slider__track .product-card { flex-basis: calc((100% - 1 * 1.25rem) / 2); } }

/* Button base */
.slider__btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--border, #e0e0e0);
  background: var(--bg, #fff);
  color: var(--text, #2c2c2c);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.slider__btn svg { width: 1.1rem; height: 1.1rem; display: block; }
.slider__btn:hover:not(:disabled) { background: var(--primary, #2c2c2c); color: #fff; border-color: var(--primary, #2c2c2c); }
.slider__btn:disabled { opacity: 0.3; cursor: default; }

/* Side arrows: outside the cards, desktop only */
.slider__btn--side { display: none; }
@media (min-width: 641px) {
  .slider__btn--side {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }
  .slider__btn--side.slider__btn--prev { left:  -2.75rem; }
  .slider__btn--side.slider__btn--next { right: -2.75rem; }
  /* Hide inline nav on desktop — side arrows take over */
  .slider-titlerow__nav { display: none; }
}

.slider__dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.25rem; }
.slider__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: var(--border, #ccc);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider__dot.active { background: var(--primary, #2c2c2c); transform: scale(1.35); }

/* --- Prices --------------------------------------------- */
.price { font-weight: 600; color: var(--price-color, #111111); }
.price--sale { color: var(--sale-price-color, #e53e3e); }
.price--original { color: #aaa; font-weight: 400; font-size: 0.875em; }
.price--lg { font-size: 1.5rem; }

/* --- Category Layout ------------------------------------ */
.category-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  align-items: start;
}
.filter-sidebar {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 1.25rem;
}
.filter-sidebar__title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #888; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group__title { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.filter-list { display: flex; flex-direction: column; gap: 0.3rem; }
.filter-list a { font-size: 0.875rem; }
.filter-list--scroll { max-height: 200px; overflow-y: auto; }
.filter-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }
.filter-label input { accent-color: var(--primary); }
.filter-search {
  display: block; width: 100%; margin-bottom: 0.5rem;
  padding: 0.3rem 0.6rem; font-size: 0.8rem;
  border: 1px solid #ddd; border-radius: 6px; background: #fafafa;
  outline: none;
}
.filter-search:focus { border-color: var(--accent, #888); background: #fff; }
.price-slider-wrap { padding: 0.25rem 0; }
.price-slider-track { position: relative; height: 4px; margin: 0.75rem 0 1rem; }
.price-slider-rail { position: absolute; inset: 0; background: #e0e0e0; border-radius: 2px; }
.price-slider-fill { position: absolute; top: 0; height: 4px; background: var(--primary); border-radius: 2px; pointer-events: none; }
.price-slider-track input[type="range"] {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; height: 4px; background: none; margin: 0;
  pointer-events: none; -webkit-appearance: none; appearance: none;
}
.price-slider-track input[type="range"]::-webkit-slider-thumb {
  pointer-events: all; -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.price-slider-track input[type="range"]::-moz-range-thumb {
  pointer-events: all; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.price-inputs { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; }
.price-input { flex: 1; min-width: 0; border: 1px solid #ddd; border-radius: 3px; padding: 0.3rem 0.5rem; font-size: 0.8rem; }
.price-apply { display: block; width: 100%; margin-top: 0.5rem; text-align: center; }
.filter-sidebar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filter-sidebar__header .filter-sidebar__title { margin-bottom: 0; }
.filter-reset { font-size: 0.75rem; color: #888; text-decoration: none; }
.filter-reset:hover { color: var(--primary); text-decoration: underline; }
.filter-toggle-btn {
  display: none; background: none; border: none; padding: 0.2rem;
  cursor: pointer; color: #888; line-height: 1;
  transition: transform 0.2s;
}
.filter-toggle-btn--open { transform: rotate(180deg); }
@media (max-width: 767px) {
  .filter-toggle-btn { display: flex; }
}

.category-header { margin-bottom: 1.5rem; }
.category-header__title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.category-header__title-row .category-header__title { margin-bottom: 0; }
.brand-logo { max-height: 25px; max-width: 160px; object-fit: contain; }
.category-header__title { margin-bottom: 0.5rem; }
.category-header__desc { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.category-header__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #888;
}
.sort-select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  background: var(--bg);
  cursor: pointer;
}

/* --- Pagination ----------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 2rem 0; }
.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.pagination__btn:hover { background: #f5f5f5; text-decoration: none; }
.pagination__btn--active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Product Detail ------------------------------------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.product-gallery__main {
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}
.product-gallery__image { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: 1rem; }
.product-info__brand { font-size: 0.8rem; text-transform: uppercase; color: #999; }
.product-info__brand-logo-link { display: inline-block; }
.product-info__brand-logo { max-height: 28px; max-width: 120px; object-fit: contain; display: block; }
.product-info__title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.product-info__price { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.product-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.875rem; }
.product-meta dt { color: #888; }
.product-meta dd { font-weight: 500; }
.product-info__advertiser { font-size: 0.8rem; color: #888; margin-top: 0.25rem; }
.product-variants { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.product-variant { display: inline-block; padding: 0.2rem 0.65rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.8rem; font-weight: 500; color: #374151; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.product-variant:hover { border-color: #6b7280; background: #f3f4f6; color: #111; }
.product-variant--active { border-color: #111; background: #111; color: #fff; cursor: default; }
.text--success { color: #38a169; }
.text--muted { color: #999; }

.product-description {
  max-width: 860px;
  padding: 2rem 0 3rem;
  border-top: 1px solid #e5e5e5;
}
.product-description__title { margin-bottom: 1rem; }
.product-description__body { font-size: 0.95rem; line-height: 1.8; color: #555; }

/* --- Search Page ---------------------------------------- */
.search-form--page { display: flex; gap: 0.5rem; margin: 1.5rem 0; max-width: 600px; }
.search-input--lg {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
}
.search-input--lg:focus { border-color: var(--primary); }

/* --- Static Pages --------------------------------------- */
.page-content { padding: 3rem 0; max-width: 860px; }
.page-title { margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary); }
.page-body { font-size: 0.95rem; line-height: 1.9; color: #444; }
.page-body h1, .page-body h2, .page-body h3 { margin: 1.5rem 0 0.75rem; }
.page-body p { margin-bottom: 1rem; }

/* --- Hero ----------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1rem;
  text-align: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
.hero__title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15;
  margin: 0;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.88; margin: 0;
  max-width: 560px;
}
.hero__btn { margin-top: 0.5rem; }
@media (max-width: 600px) {
  .hero { padding: 5.5rem 1rem; }
}

/* --- Empty State ---------------------------------------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: #888; }

/* --- Footer --------------------------------------------- */
.site-footer {
  background: var(--footer-bg, #2c2c2c);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-logo { font-size: 1.25rem; font-weight: 700; color: var(--logo-color, #fff); }
.footer-tagline { font-size: 0.8rem; opacity: 0.7; margin-top: 0.3rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.footer-nav a { font-size: 0.875rem; opacity: 0.8; color: var(--footer-link, rgba(255,255,255,0.8)); }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* --- Responsive ----------------------------------------- */
@media (max-width: 1024px) {
  .category-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; height: 100dvh; background: var(--mobile-nav-bg, var(--bg)); z-index: 99; overflow-y: auto; animation: mobileNavIn 0.25s ease-out; }
  @keyframes mobileNavIn {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { height: auto; line-height: 2.5; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--mobile-nav-border, #676767); color: var(--mobile-nav-link, var(--nav-link, inherit)); font-size: 1.1rem; }
  .nav-link.has-dropdown::after { display: none; }
  .dropdown { display: none; position: static; border: none; box-shadow: none; border-radius: 0; padding: 0; background: transparent; }
  .dropdown.is-open { display: block; }
  .dropdown a { padding: 0.6rem 0 0.6rem 1.25rem; border-bottom: 1px solid #f0f0f0; font-size: 0.875rem; color: var(--mobile-nav-link, var(--nav-link, inherit)); }
  .nav-item.has-dropdown > .nav-link { cursor: pointer; }
  .menu-toggle, .search-toggle { display: flex; }
  .header-actions { margin-left: auto; gap: 20px; }
  .product-layout { grid-template-columns: 1fr; }
  .search-form { display: none; }
  .search-form.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    padding: 0.6rem 1rem; background: var(--header-bg, #fff);
    border-bottom: 1px solid #e5e5e5; z-index: 98;
  }
  .search-form.is-open .search-input { flex: 1; width: 100%; }
  .category-layout { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .search-form { display: none; }
}
