/* =========================================
   ABC Félix Calleja — style.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,600;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary:         #1c1c3a;
  --accent:          #4a7fc1;
  --accent-dark:     #3a6aad;
  --accent-green:    #3db87a;
  --accent-green-dk: #2ea068;
  --bg:              #f0efed;
  --surface:         #e6e4e0;
  --text:            #1c1c3a;
  --text-muted:      #5c5b6e;
  --border:          #d5d3cf;
  --radius-btn:      50px;
  --radius-input:    30px;
  --radius-card:     8px;
  --container:       1100px;
  --font:            'Inter', sans-serif;
  --font-serif:      'Playfair Display', serif;
  --shadow:          0 2px 12px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent iOS Safari from zooming on input focus (triggers when font-size < 16px) */
input, select, textarea {
  font-size: max(16px, 1em);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { color: var(--accent-dark); }

ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  white-space: nowrap;
}

.nav__logo:hover { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 24px;
}

.nav__links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
}

/* Dropdown nav */
.nav__item--has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}

.nav__dropdown-toggle:hover { color: var(--accent); }

.nav__item--has-dropdown.is-open .nav__dropdown-toggle {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  min-width: 220px;
  padding: 22px 0 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 200;
}

.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__dropdown li a {
  display: block;
  padding: 9px 20px;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav__dropdown li a:hover {
  background: var(--surface);
  color: var(--accent);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   HERO
   ========================================= */
/* Scrolling full-page background — homepage only */
body.home {
  background-image: url('../images/option1-vivid-blue.svg');
  background-repeat: no-repeat;
  background-size: 100vw auto;
  background-position: right -40px;
}

/* Hero transparent to reveal background; other sections solid */
body.home .hero {
  background: transparent;
}

.hero {
  padding: 80px 0 72px;
}

/* Homepage sections float over SVG on desktop */
@media (min-width: 769px) {
  body.home .products-text,
  body.home .about-editorial,
  body.home .cta-phone,
  body.home .footer {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
  }
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero__tagline {
  font-size: 1rem;
  color: var(--text-muted);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

.btn--green {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
  white-space: nowrap;
}

.btn--green:hover {
  background: var(--accent-green-dk);
  border-color: var(--accent-green-dk);
  color: #fff;
}

.btn--wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--wa:hover {
  background: #1EB858;
  border-color: #1EB858;
  color: #fff;
}

/* =========================================
   SPLIT MEDIA (editorial 50/50)
   ========================================= */
.split-media {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.split-media__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.split-media__inner .split-media__left {
  overflow: hidden;
  background: var(--surface);
}

.split-media__inner .split-media__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media__inner .split-media__right {
  background: #2a2a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 56px;
}

.split-media__quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: #fff;
  line-height: 1.45;
  text-align: center;
}

/* =========================================
   PRODUCTS TEXT GRID (home)
   ========================================= */
.products-text {
  padding: 88px 0;
  background: var(--bg);
}

.products-text__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 52px;
}

.products-text__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.products-text__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.products-text__item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.products-text__cta {
  text-align: right;
}

/* =========================================
   ABOUT EDITORIAL
   ========================================= */
.about-editorial {
  padding: 88px 0;
  background: var(--surface);
}

.about-editorial__header {
  margin-bottom: 48px;
}

.about-editorial__header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.about-editorial__header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.about-editorial__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-editorial__photo {
  overflow: hidden;
  border-radius: 4px;
  background: var(--border);
  min-height: 380px;
}

.about-editorial__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.about-editorial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 28px;
}

.about-editorial__quote:last-child {
  margin-bottom: 0;
}

/* =========================================
   PHONE / WHATSAPP CTA
   ========================================= */
.cta-phone {
  padding: 72px 0;
  background: var(--bg);
}

.cta-phone__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-phone__text {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  max-width: 520px;
  line-height: 1.35;
}

/* =========================================
   SECTION LAYOUT (shared)
   ========================================= */
section {
  padding: 72px 0;
}

.section--surface {
  background: var(--surface);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================
   PRODUCT CARDS (home preview — kept for fallback)
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card__img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card__link:hover { color: var(--accent-dark); }

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  list-style: none;
}

.breadcrumb__list li + li::before {
  content: '/';
  color: var(--border);
}

.breadcrumb__list a {
  color: var(--text-muted);
}

.breadcrumb__list a:hover {
  color: var(--accent);
}

.breadcrumb__list li[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* =========================================
   PROFILE CARDS (canalones sub-page)
   ========================================= */
.product-card__img-link {
  display: block;
  text-decoration: none;
}

.product-card__img-link .product-card__img-wrap {
  transition: opacity 0.2s;
}

.product-card__img-link:hover .product-card__img-wrap {
  opacity: 0.85;
  cursor: pointer;
}

.profile-card .product-card__img-wrap svg,
.profile-card .product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-card__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.profile-card__cta:hover {
  color: var(--accent-dark);
}

.product-card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.product-card__link:hover {
  color: var(--accent-dark);
}

.product-grid--featured {
  grid-template-columns: 1fr;
}

.product-card--featured {
  max-width: 420px;
}

/* =========================================
   PRODUCTOS PAGE
   ========================================= */
.page-hero {
  background: #143d6b url('../images/option2-blueprint-v3.svg') no-repeat right center / cover;
  color: #fff;
  padding: 56px 0 52px;
  border-bottom: none;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: #fff;
}

.page-hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
}

/* Category sections */
.cat-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.cat-section:last-of-type { border-bottom: none; }

.cat-section--surface {
  background: var(--surface);
}

.cat-header {
  margin-bottom: 36px;
}

.cat-header__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.cat-header__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cat-header__desc {
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: transparent;
}

.product-card__img-wrap {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  overflow: hidden;
}

.cat-section--surface .product-card__img-wrap {
  background: var(--bg);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 180px;
}

.product-card__title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 7px;
}

.product-card__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}
.product-card__tags {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

.product-card__desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cat-cta {
  margin-top: 28px;
  text-align: center;
}

/* Two-column layout with image */
.product-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-2col--reverse { direction: rtl; }
.product-2col--reverse > * { direction: ltr; }

.product-2col__img {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  max-height: 280px;
}

.product-2col__content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.product-2col__content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.product-2col__content ul {
  list-style: none;
  margin-top: 10px;
}

.product-2col__content ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-2col__content ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* =========================================
   GALLERY GRID
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-grid__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: zoom-out;
}

.lightbox.lightbox--open {
  display: flex;
}

.lightbox.lightbox--visible {
  opacity: 1;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox__label {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.gallery-grid__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* =========================================
   PEDIDO PAGE
   ========================================= */
.pedido-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
  padding: 64px 0 80px;
}

.pedido-preview {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.pedido-preview__svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.pedido-preview__name {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  text-align: center;
}

.pedido-preview__back {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pedido-preview__back:hover {
  color: var(--accent);
}

.pedido-form__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.pedido-form__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-group select {
  width: 100%;
  padding: 12px 40px 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c5b6e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-group select:focus {
  border-color: var(--accent);
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-with-unit input {
  flex: 1;
}

.input-with-unit__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 24px;
}

.input-with-unit .input-with-unit__select {
  width: 76px;
  flex-shrink: 0;
  padding: 12px 28px 12px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c5b6e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.input-with-unit .input-with-unit__select:focus {
  border-color: var(--accent);
}

.pedido-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pedido-submit:hover {
  background: var(--accent-green-dk);
}

.pedido-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .pedido-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 60px;
  }

  .pedido-preview {
    position: static;
    padding: 32px 24px;
  }
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail__text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-detail__text span,
.contact-detail__text a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-detail__text a:hover { color: var(--accent); }

.contact-hours {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-top: 24px;
  border: 1px solid var(--border);
}

.contact-hours h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 10px;
}

.contact-hours p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Contact rows */
.contact-rows {
  margin: 28px 0 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-row:first-child {
  border-top: 1px solid var(--border);
}

.contact-row__label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.contact-row a {
  color: var(--text-muted);
}

.contact-row a:hover {
  color: var(--accent);
}

/* Map */
.contact-map {
  margin-top: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Contact form */
.contact-form {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
}


.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}

.form-group textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.form-submit:hover { background: #2e2e5a; }

.form-submit--wa {
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-submit--wa:hover { background: #2ea864; }

/* =========================================
   LEGAL PAGE
   ========================================= */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.legal-content h2 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}

.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.legal-content li {
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--accent-blue);
}

.legal-updated {
  margin-top: 40px;
  font-size: 0.8rem !important;
  color: var(--text-muted);
  font-style: italic;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.footer__contact-item {
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
}

.footer__contact-item a {
  color: var(--text-muted);
}

.footer__contact-item a:hover { color: var(--accent); }

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 14px;
}

.footer__col ul li {
  margin-bottom: 8px;
}

.footer__col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__col ul li a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer__legal a:hover { color: var(--accent); }

/* =========================================
   WHATSAPP FLOAT BUTTON
   ========================================= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 200;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1.5rem;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,0.55);
}

/* =========================================
   QUOTE PANEL
   ========================================= */

/* Overlay */
.quote-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.quote-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

/* Slide-out panel */
.quote-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.quote-panel--open {
  transform: translateX(0);
}

.quote-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.quote-panel__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.quote-panel__close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.quote-panel__close:hover {
  color: var(--text);
  background: var(--surface);
}

.quote-panel__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 24px;
}
.quote-panel__empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 32px;
  text-align: center;
}

.quote-panel__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.quote-panel__name-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.quote-panel__name-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.quote-panel__name-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
}
.quote-panel__name-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}
.quote-panel__send {
  width: 100%;
  justify-content: center;
}
.quote-panel__clear {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
}

/* Quote items */
.quote-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.quote-item:last-child { border-bottom: none; }

.quote-item__info { flex: 1; min-width: 0; }
.quote-item__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.quote-item__details {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}
.quote-item__notes {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  font-style: italic;
}
.quote-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.quote-item__remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.quote-item__thumb-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-item__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.quote-item__thumb-svg {
  width: 44px;
  height: 44px;
}

/* Float quote button */
.quote-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 50px;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.quote-float:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.quote-float__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Accessory add row */
.acc-add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.acc-add__qty {
  width: 54px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  text-align: center;
  background: var(--bg);
  color: var(--text);
}
.acc-add__grosor {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
}
/* ── Price list (image-less products) ──────────────────────── */
.price-list {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}
.price-list__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.price-list__name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.price-list__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.price-list__row .acc-add {
  margin-top: 0;
}
@media (max-width: 500px) {
  .price-list__row {
    flex-wrap: wrap;
  }
  .price-list__name {
    flex-basis: 100%;
  }
}

.acc-add__btn {
  flex: 1;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.acc-add__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Dimension input form (profile cards + configurador) */
.dim-form {
  margin-top: 12px;
}
.dim-form__row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.dim-form__field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 60px;
}
.dim-form__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.dim-form__input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 1rem;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  -moz-appearance: textfield;
}
.dim-form__input::-webkit-outer-spin-button,
.dim-form__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.dim-form__input:focus {
  outline: none;
  border-color: var(--accent);
}
.unit-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
  align-self: flex-end;
  height: 32px;
}
.unit-toggle__btn {
  flex: 1;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.unit-toggle__btn.active {
  background: var(--accent);
  color: #fff;
}
.dim-form__add {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.dim-form__add:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Toast */
.quote-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  padding: 14px 18px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  min-width: 280px;
  max-width: calc(100vw - 48px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.quote-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.quote-toast__text {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.quote-toast__actions {
  display: flex;
  gap: 8px;
}
.quote-toast__btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.quote-toast__btn--primary {
  background: var(--accent-green);
  color: #fff;
}
.quote-toast__btn--secondary {
  background: rgba(255,255,255,0.15);
  color: var(--bg);
}

/* Option pill pickers (material, color) */
.picker-pill {
  padding: 7px 14px;
  border: 1.5px solid #d8d6d2;
  border-radius: var(--radius-btn);
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  user-select: none;
}
.picker-pill:hover {
  border-color: var(--accent);
  background: #f4f7fc;
}
.picker-pill.selected {
  border-color: var(--accent);
  border-width: 2px;
  background: #eef3fb;
  color: var(--accent);
}
.config-step__sublabel {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

/* Styled select for dim forms */
.dim-form__select {
  width: 100%;
  padding: 6px 24px 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235c5b6e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.dim-form__select:focus {
  outline: none;
  border-color: var(--accent);
}

/* WhatsApp box in panel footer */
.quote-wa-box {
  margin-bottom: 10px;
  padding: 14px;
  background: #f4f7fc;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
}
.quote-wa-box__number {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}
.quote-wa-box__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}
.quote-send-group {
  display: flex;
  gap: 8px;
}
.quote-send-group .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
  .products-text__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-editorial__split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-media__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-media__inner .split-media__right {
    padding: 48px 36px;
  }

  .cta-phone__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav__links {
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start;
  }

  /* Mobile dropdowns */
  .nav__item--has-dropdown {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav__item--has-dropdown > a {
    flex: 1;
  }

  .nav__item--has-dropdown > .nav__dropdown-toggle {
    position: absolute;
    right: 0;
    top: 0;
    padding: 4px 6px;
  }

  .nav__item--has-dropdown {
    position: relative;
  }

  .nav__dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    min-width: unset;
    width: 100%;
    display: none;
    transition: none;
  }

  .nav__item--has-dropdown.is-open .nav__dropdown {
    display: block;
  }

  .nav__item--has-dropdown:hover .nav__dropdown,
  .nav__item--has-dropdown:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .nav__item--has-dropdown.is-open .nav__dropdown {
    display: block !important;
  }

  .nav__dropdown li a {
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  .hero { padding: 56px 0 48px; }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .products-text__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .products-text__cta {
    text-align: left;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 24px;
  }
}

/* =========================================
   PRODUCT SEARCH
   ========================================= */
.product-search-wrap {
  padding: 28px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.product-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 0 8px 0 20px;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  transition: border-color 0.2s;
}

.product-search:focus-within {
  border-color: var(--accent);
}

.product-search__icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: block;
}

.product-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  padding: 14px 0;
}

.product-search__input::placeholder {
  color: #bbb;
}

.product-search__clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 10px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.2s;
}

.product-search__clear:hover {
  color: var(--text);
}

.product-search__btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 9px 22px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.product-search__btn:hover {
  background: var(--accent-dark);
}

.search-no-results {
  padding: 32px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Hide filtered-out cards / sections */
.search-hidden {
  display: none !important;
}

/* =========================================
   SEARCH RESULTS SECTION (option 4 — replaces category grid)
   ========================================= */

@keyframes srcFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#search-results-section:not([hidden]) {
  animation: srcFadeIn 0.22s ease forwards;
  padding: 48px 0 64px;
}

/* Header row: reset button + summary */
.src-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.src-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.src-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.src-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Results grid */
.src-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Individual result card */
.src-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text);
  height: 100%;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.src-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(74,127,193,0.1);
  transform: translateY(-2px);
}

/* Image area */
.src-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.src-card__img-wrap--empty {
  aspect-ratio: unset;
  height: 12px; /* thin top stripe for no-image cards */
  background: var(--border);
}

.src-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

/* Text body */
.src-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}

.src-card__breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.src-card__page {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.src-card__sep {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.src-card__section {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.src-card__name {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--text);
  flex: 1;
}

.src-card__cta {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}

.src-card:hover .src-card__cta {
  text-decoration: underline;
}

/* Empty / no-results state */
.src-empty {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.src-empty__msg {
  font-size: 1.05rem;
  color: var(--text);
}

.src-empty__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .src-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .src-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .src-card { padding: 16px 14px; }
  .src-card__section { display: none; }
  .src-card__cta { display: none; }
}

@media (max-width: 400px) {
  .src-grid { grid-template-columns: 1fr; }
}

/* =========================================
   MOBILE SEARCH BAR (below nav, mobile only)
   ========================================= */
.mobile-search {
  display: none;
}

@media (max-width: 640px) {
  .mobile-search {
    display: block;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
  }

  .mobile-search__form {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .mobile-search__input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-btn);
    padding: 10px 16px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    outline: none;
    min-width: 0;
  }

  .mobile-search__input:focus {
    border-color: var(--accent);
  }

  .mobile-search__input::placeholder {
    color: #bbb;
  }

  .mobile-search__btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 10px 18px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .mobile-search__btn:hover {
    background: var(--accent-dark);
  }

  .product-search-wrap {
    display: none;
  }
}

/* =========================================
   NAV SEARCH FORM
   ========================================= */
.nav__search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 0 14px;
  gap: 8px;
  height: 38px;
  transition: border-color 0.2s;
}

.nav__search:focus-within {
  border-color: var(--accent);
}

.nav__search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.nav__search-input {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  width: 150px;
}

.nav__search-input::placeholder {
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .nav__search-input {
    width: 110px;
  }
}

@media (max-width: 640px) {
  .nav__search {
    display: none;
  }
}

/* =========================================
   MATERIAL SUBPAGES
   ========================================= */

/* Properties strip */
.material-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.material-props__item {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 20px 22px;
  border: 1px solid var(--border);
}

.material-props__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.material-props__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Finish / colour grid */
.finish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.finish-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.finish-card__swatch {
  height: 120px;
  width: 100%;
  flex-shrink: 0;
}

.finish-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.finish-card__name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.finish-card .dim-form {
  margin: 0;
}

.finish-card .dim-form__add {
  width: 100%;
  font-size: 0.75rem;
  padding: 9px 12px;
}

/* Contact CTA strip */
.material-cta-strip {
  background: var(--primary);
  padding: 56px 0;
  text-align: center;
}

.material-cta-strip__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
}

.material-cta-strip__sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.material-cta-strip__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .finish-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .material-props {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Thickness spec card (replaces a placeholder image card) */
.spec-card__wrap {
  background: var(--primary);
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}

.spec-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.spec-card__chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.spec-card__chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

/* ── Colour strip card ─────────────────────────── */
.product-card__img-wrap--strips {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.colour-strips {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.colour-strip {
  flex: 1;
}
