@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/*
 * KEITEX TELECOMMS — Unified Design System
 * Modern Minimalist (Zen) Edition
 */

/* =========================================
   1. CUSTOM PROPERTIES
   ========================================= */

:root {
  /* Colors */
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F2EFE9;
  --color-text: #2C2C2A;
  --color-text-muted: #7A7A78;
  --color-text-light: #B0B0AE;
  --color-accent: #2C2C2A;
  --color-accent-hover: #50504E;
  --color-banner: #3E3D3A;
  --color-banner-text: #F2EFE9;
  --color-border: #E8E6E1;
  --color-border-light: #F0EFEA;
  --color-success: #4A6B48;
  --color-error: #A34848;
  --color-warning: #C78D4A;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Noto Serif', serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --gap: 32px;
  --gap-sm: 20px;
  --gap-xs: 12px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Header heights */
  --announcement-h: 40px;
  --header-h: 80px;
  --nav-h: 56px;

  /* Shadows (Softer for Zen feel) */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.03);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.08);

  /* Transitions */
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========================================
   2. RESET & BASE
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-text-muted); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }


/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: 80px 0;
}

.section--sm {
  padding: 48px 0;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* =========================================
   4. TYPOGRAPHY
   ========================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p + p { margin-top: 1em; }

.label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}


/* =========================================
   5. BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--white {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-surface-hover);
  color: var(--color-accent);
}

.btn--sm {
  padding: 10px 24px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 16px 40px;
  font-size: var(--text-base);
}


/* =========================================
   6. ANNOUNCEMENT BAR
   ========================================= */

.announcement-bar {
  background: var(--color-banner);
  color: var(--color-banner-text);
  text-align: center;
  padding: 10px 24px;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announcement-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* =========================================
   7. SITE HEADER
   ========================================= */

.site-header {
  background: var(--color-bg);
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.site-header__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 36px;
  width: auto;
}

.site-header__search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  height: 40px;
  transition: border-color var(--transition);
}
.site-header__search:focus-within {
  border-color: var(--color-accent);
}

.site-header__search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 8px;
  height: 100%;
  font-size: var(--text-sm);
  background: transparent;
  color: var(--color-text);
}
.site-header__search-input::placeholder {
  color: var(--color-text-light);
}

.site-header__search-btn {
  background: transparent;
  border: none;
  height: 100%;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: color var(--transition);
}
.site-header__search-btn:hover {
  color: var(--color-accent);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.site-header__action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
}
.site-header__action:hover { opacity: 0.7; }

.site-header__action svg {
  flex-shrink: 0;
  stroke-width: 1.5;
}

/* Mobile hamburger */
.site-header__menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--color-text);
}


/* =========================================
   8. SITE NAV (Category bar)
   ========================================= */

.site-nav {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 90;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 48px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
  position: relative;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: right;
}
.site-nav__link:hover {
  color: var(--color-accent);
}
.site-nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav__link--active {
  color: var(--color-accent);
}
.site-nav__link--active::after {
  transform: scaleX(1);
}


/* =========================================
   9. PAGE BANNER (Inner pages)
   ========================================= */

.page-banner {
  padding: 64px 24px;
  text-align: center;
  background: url('brand/category-banner-1600x400-light.png') center/cover no-repeat;
}

.page-banner h1 {
  margin-bottom: 16px;
}

.page-banner__breadcrumbs {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.page-banner__breadcrumbs a { color: var(--color-text-muted); }
.page-banner__breadcrumbs a:hover { color: var(--color-accent); }

/* ── Shop Hero (shop.html — category-aware) ── */
.shop-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shop-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.18;
  filter: grayscale(15%);
  transition: background-image 0.4s ease, opacity 0.4s ease;
}

.shop-hero__content {
  position: relative;
  z-index: 1;
  padding: 56px 24px;
}

.shop-hero__title {
  font-size: var(--text-3xl);
  margin: 0;
  color: var(--color-text);
}


/* =========================================
   10. HERO (Homepage only)
   ========================================= */

.hero {
  position: relative;
  background: var(--color-bg);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: grayscale(20%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  font-size: var(--text-4xl);
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================
   11. CATEGORY CARDS (Homepage)
   ========================================= */

.categories {
  padding: 80px 0;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

.category-card {
  display: block;
  text-align: center;
  transition: transform var(--transition);
}
.category-card:hover {
  transform: translateY(-4px);
}

.category-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: right center;
  background: var(--color-surface-hover);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--color-border-light);
}
.category-card:hover .category-card__img {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.category-card__name {
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
}


/* =========================================
   12. PRODUCT CARDS
   ========================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px var(--gap);
}

.product-card {
  background: transparent;
  transition: transform var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-hover);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 500ms ease;
  mix-blend-mode: multiply; /* Helps transparent images blend smoothly */
}
.product-card:hover .product-card__img {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.product-card__badge--soldout {
  color: var(--color-text-muted);
}

/* PNG stamp badges (new-drop / sold — from asset_map.js) */
.product-card__badge-img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 64px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.20));
}
.product-card__badge-img--sold {
  opacity: 0.90;
}

.product-card__info {
  padding: 0 4px;
}

.product-card__brand {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.product-card__name {
  font-size: var(--text-base);
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product-card__colors {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.product-card__color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}


/* =========================================
   13. FILTER BAR (Shop page)
   ========================================= */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 40px;
}

.filter-bar__pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 400;
  background: transparent;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.filter-pill:hover,
.filter-pill--active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.filter-bar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.filter-bar__count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.filter-bar__sort {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  background: transparent;
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}
.filter-bar__sort:focus {
  border-color: var(--color-accent);
}


/* =========================================
   14. PRODUCT DETAIL PAGE
   ========================================= */

.pdp {
  padding: 40px 0 100px;
}

.pdp__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.pdp__gallery {
  position: sticky;
  top: 100px;
}

.pdp__main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--color-surface-hover);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 16px;
  mix-blend-mode: multiply;
}

.pdp__thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px; /* For scrollbar if needed */
}

.pdp__thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px;
  background: var(--color-surface-hover);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  mix-blend-mode: multiply;
}
.pdp__thumb--active,
.pdp__thumb:hover {
  border-color: var(--color-accent);
  background: var(--color-surface);
}

.pdp__info {
  padding-top: 16px;
}

.pdp__brand {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.pdp__title {
  margin-bottom: 16px;
}

.pdp__price {
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.pdp__stock {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-border-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 32px;
}

.pdp__stock--out {
  color: var(--color-error);
  background: #FBE9E7;
}

.pdp__variants {
  margin-bottom: 32px;
}

.pdp__variant-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.pdp__variant-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pdp__variant-btn {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: all var(--transition);
}
.pdp__variant-btn:hover,
.pdp__variant-btn--active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.pdp__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.pdp__add-btn {
  flex: 1;
}

.pdp__description {
  border-top: 1px solid var(--color-border-light);
  padding-top: 32px;
}

.pdp__description h3 {
  font-size: var(--text-lg);
  margin-bottom: 16px;
}

.pdp__description-content {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  font-weight: 300;
}


/* =========================================
   15. FORMS
   ========================================= */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  background: transparent;
  transition: border-color var(--transition);
  color: var(--color-text);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}


/* =========================================
   16. SERVICE CARDS
   ========================================= */

.service-card {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.service-card__icon {
  margin-bottom: 24px;
  color: var(--color-text-muted);
}
.service-card__icon svg {
  width: 40px;
  height: 40px;
}

.service-card__title {
  font-size: var(--text-xl);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* =========================================
   17. CONTENT SECTIONS (About, Services detail, etc.)
   ========================================= */

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.content h2 {
  font-size: var(--text-3xl);
  margin: 64px 0 24px;
}
.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: var(--text-xl);
  margin: 40px 0 16px;
}

.content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
  font-size: 1.05rem;
}

.content ul, .content ol {
  margin: 24px 0;
  padding-left: 24px;
  list-style: none;
}

.content li {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}
.content ul li::before {
  content: '—';
  position: absolute;
  left: -8px;
  color: var(--color-text-light);
}

.content img {
  border-radius: var(--radius-lg);
  margin: 40px 0;
}

.content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================
   18. NEWSLETTER
   ========================================= */

.newsletter {
  background: var(--color-surface-hover);
  text-align: center;
  padding: 80px 24px;
}

.newsletter h2 {
  margin-bottom: 16px;
}

.newsletter p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.newsletter__form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter__input {
  flex: 1;
  padding: 14px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}

.newsletter__btn {
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--transition);
}
.newsletter__btn:hover {
  background: var(--color-accent-hover);
}

.newsletter__success {
  color: var(--color-success);
  font-weight: 500;
}


/* =========================================
   19. SITE FOOTER
   ========================================= */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  padding: 80px 24px 40px;
}

.site-footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.site-footer__brand-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 16px;
  line-height: 1.8;
  max-width: 320px;
}

.site-footer__social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.site-footer__social a {
  color: var(--color-text-light);
}
.site-footer__social a:hover {
  color: var(--color-accent);
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--color-text);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}


/* =========================================
   20. LOADING & EMPTY STATES
   ========================================= */

.loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-muted);
}

.loading__spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-text-muted);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 100px 24px;
  grid-column: 1 / -1;
  color: var(--color-text-muted);
}

.empty-state__icon {
  margin-bottom: 24px;
  opacity: 0.5;
  color: var(--color-text-muted);
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--color-text);
}


/* =========================================
   21. AUTH CARD (Login / Register)
   ========================================= */

.auth-card {
  max-width: 440px;
  margin: 64px auto 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 32px;
}


/* =========================================
   22. MOBILE MENU OVERLAY
   ========================================= */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(44,44,42,0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--color-bg);
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu--open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  display: block;
  margin-left: auto;
}

.mobile-menu__link {
  display: block;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}


/* =========================================
   23. PAGE LAYOUT (inner pages)
   ========================================= */

.page-banner__content { display: contents; }
.page-banner__title { margin-bottom: 16px; }
.page-banner__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.page-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.content-section {
  margin-bottom: 40px;
}
.content-section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: 16px;
}
.content-section p {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-weight: 300;
}
.content-section ol {
  margin: 24px 0;
  padding-left: 24px;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.content-section ul {
  margin: 16px 0;
  padding-left: 24px;
}
.content-section li {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  line-height: 1.6;
  list-style: none;
  position: relative;
  padding-left: 16px;
}
.content-section ul li::before {
  content: '\2014';
  position: absolute;
  left: -8px;
  color: var(--color-text-light);
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-accent);
  transition: all var(--transition);
  text-decoration: none;
}
.btn--secondary:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}

.btn--full {
  width: 100%;
  text-align: center;
}

.btn--ghost {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 32px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.btn--ghost:hover {
  color: var(--color-accent);
}


/* =========================================
   24. BREADCRUMBS
   ========================================= */

.breadcrumbs {
  padding: 20px 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs__sep {
  margin: 0 8px;
  color: var(--color-text-light);
}


/* =========================================
   25. CONTACT FORM
   ========================================= */

.contact-form {
  margin-bottom: 40px;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: 24px;
}

.contact-info p {
  margin-top: 24px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.contact-info a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--transition);
}
.contact-info a:hover {
  border-color: var(--color-accent);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}


/* =========================================
   26. TABS (policy, auth)
   ========================================= */

.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
  gap: 0;
}

.tabs__btn {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.tabs__btn:hover {
  color: var(--color-text);
}
.tabs__btn--active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.tabs__panel {
  display: none;
}
.tabs__panel--active {
  display: block;
}


/* =========================================
   27. POLICY CONTENT
   ========================================= */

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: 16px;
}

.policy-content h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.policy-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.policy-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.policy-content li {
  margin-bottom: 8px;
  list-style: none;
  position: relative;
  padding-left: 16px;
}
.policy-content ul li::before {
  content: '\2014';
  position: absolute;
  left: -8px;
  color: var(--color-text-light);
}


/* =========================================
   28. AUTH (login/register)
   ========================================= */

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: center;
  transition: color var(--transition), border-color var(--transition);
}
.auth-tab:hover {
  color: var(--color-text);
}
.auth-tab--active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.auth-form {
  /* visible by default; hidden via --active toggle */
}

.auth-divider {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin: 24px 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--color-border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-container {
  max-width: 500px;
  margin: 0 auto;
}


/* =========================================
   29. PROFILE
   ========================================= */

.profile-container {
  max-width: 700px;
  margin: 0 auto;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-surface-hover);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 2rem;
  font-weight: 600;
}

.profile-header {
  text-align: center;
  margin-bottom: 32px;
}

.profile-header h2 {
  margin-bottom: 8px;
}

.profile-header p {
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.profile-meta {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.profile-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.profile-actions .btn {
  flex: 1;
  text-align: center;
}


/* =========================================
   30. GALLERY GRID (community)
   ========================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.gallery-placeholder {
  background: var(--color-surface-hover);
  height: 240px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.community-intro {
  max-width: 800px;
  margin: 0 auto 48px;
}

.community-intro p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-muted);
}

.community-cta {
  max-width: 600px;
  margin: 48px auto;
  background: var(--color-surface-hover);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.community-cta h3 {
  margin-bottom: 16px;
}

.community-cta p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.gallery-section {
  padding: 48px 0;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 32px;
}


/* =========================================
   31. TRUST SECTION (homepage)
   ========================================= */

.trust-section {
  padding: 64px 0;
  border-top: 1px solid var(--color-border-light);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  text-align: center;
}

.trust-item {
  padding: 24px 16px;
}

.trust-item__icon {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}
.trust-item__icon svg {
  width: 32px;
  height: 32px;
}

.trust-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: 8px;
}

.trust-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* =========================================
   32. FEATURED SECTION
   ========================================= */

.featured {
  padding: 80px 0 64px;
}

.featured__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.featured__header h2 {
  font-family: var(--font-heading);
}


/* =========================================
   33. FOOTER LOGO
   ========================================= */

.site-footer__logo {
  height: 48px;
  width: auto;
}


/* =========================================
   34. MOBILE MENU SECTIONS
   ========================================= */

.mobile-menu__section {
  padding: 16px 0;
  border-top: 1px solid var(--color-border-light);
}

.mobile-menu__section:first-child {
  border-top: none;
}

.mobile-menu__section-link {
  display: block;
  padding: 12px 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.mobile-menu__section-link:hover {
  color: var(--color-accent);
}


/* =========================================
   35. STICKY HEADER
   ========================================= */

.site-header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.body--sticky-header {
  padding-top: var(--header-h);
}


/* =========================================
   36. CONDITION BADGES
   ========================================= */

.condition-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.condition-badge--excellent {
  background: #E8F5E9;
  color: var(--color-success);
}

.condition-badge--good {
  background: #FFF8E1;
  color: var(--color-warning);
}


/* =========================================
   37. PDP TRUST BADGES
   ========================================= */

.pdp__trust {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.pdp__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.pdp__trust-icon {
  display: flex;
  align-items: center;
}
.pdp__trust-icon svg {
  width: 18px;
  height: 18px;
}

.pdp__band-compat {
  margin-top: 24px;
  padding: 16px;
  background: #f0faf0;
  border: 1px solid #c3e6c3;
  border-radius: var(--radius);
}

.pdp__band-compat h3 {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  color: #0a7d0a;
}

.pdp__band-compat p {
  margin: 0 0 8px;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text);
}

.pdp__band-compat ul {
  margin: 0;
  padding-left: 20px;
  font-size: var(--text-xs);
  line-height: 1.8;
  color: var(--color-text-muted);
}

.pdp__band-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--color-text-light);
}


/* =========================================
   38. SKELETON LOADER
   ========================================= */

.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card__img {
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-surface) 50%, var(--color-border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

.skeleton-card__line {
  height: 14px;
  background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-surface) 50%, var(--color-border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
  width: 80%;
}

.skeleton-card__line--short { width: 40%; height: 10px; }
.skeleton-card__line--price { width: 30%; height: 16px; }

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* =========================================
   39. PRODUCT CARD EXTRAS
   ========================================= */

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card__badge--coming {
  background: var(--color-warning);
}

.product-card__colors-more {
  font-size: 11px;
  color: var(--color-text-light);
}

.product-card__sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(246, 244, 237, 0.62);
  z-index: 2;
  border-radius: var(--radius);
}


/* =========================================
   40. PDP EXTRAS
   ========================================= */

.pdp__add-btn {
  width: 100%;
}

.pdp__add-btn--disabled {
  opacity: 0.5;
}

.pdp__stock--incoming {
  color: var(--color-warning);
}


/* =========================================
   41. AUTH MESSAGES
   ========================================= */

.auth-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: 16px;
}

.auth-message--error {
  background: #FDE8E8;
  color: var(--color-error);
  border: 1px solid #F5C6C6;
}

.auth-message--success {
  background: #E8F5E9;
  color: var(--color-success);
  border: 1px solid #C8E6C9;
}

.auth-form--hidden { display: none; }

.btn--full { width: 100%; }

.btn--ghost {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.btn--ghost:hover {
  color: var(--color-text);
}


/* =========================================
   42. PAYMENT ICONS (footer)
   ========================================= */

.site-footer__payments {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-footer__payments span {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 500;
}


/* =========================================
   98. PROMO STRIP (homepage rotating announcement banners)
   ========================================= */

.promo-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-text);  /* safety bg while image loads */
  line-height: 0;
}

.promo-strip__slide {
  display: none;
  width: 100%;
}

.promo-strip__slide--active {
  display: block;
}

.promo-strip__slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease;
}

.promo-strip__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.promo-strip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.promo-strip__dot--active {
  background: rgba(255, 255, 255, 0.95);
}


/* =========================================
   98b. SECTION BANNER (shop page per-category full-width)
   ========================================= */

.section-banner {
  width: 100%;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  line-height: 0;
}

.section-banner:empty {
  display: none;
}

.section-banner__img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
}


/* =========================================
   99. RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .categories__grid { grid-template-columns: repeat(3, 1fr); }
  .pdp__layout { gap: 40px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --text-2xl: 1.5rem;
    --header-h: 70px;
    --gap: 24px;
  }

  .promo-strip__slide img { max-height: 140px; }
  .section-banner__img    { max-height: 160px; }
  .product-card__badge-img { width: 48px; }

  .site-header__search { display: none; }
  .site-header__menu-btn { display: flex; }
  .mobile-menu { display: block; }

  .site-nav { display: none; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .pdp__layout { grid-template-columns: 1fr; gap: 32px; }
  .pdp__gallery { position: static; }

  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .hero { min-height: 400px; padding: 64px 20px; }
  .hero__title { font-size: var(--text-3xl); }

  .filter-bar { flex-direction: column; align-items: stretch; gap: 16px; }
  .filter-bar__pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filter-bar__right { justify-content: space-between; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }

  .newsletter__form { flex-direction: column; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-actions { flex-direction: column; }
  .pdp__trust { flex-direction: column; }
}

@media (max-width: 480px) {
  .product-card__img-wrap { margin-bottom: 12px; }
  .product-card__img { padding: 16px; }
  .product-card__name { font-size: var(--text-sm); }
  .product-card__price { font-size: var(--text-xs); }
  .gallery-grid { grid-template-columns: 1fr; }
}
