/* ==========================================================================
   NORDIC LIVING — MODERN SCANDINAVIAN FURNITURE DESIGN SYSTEM
   Warm Nordic Minimalist Aesthetic (Clean, Spacious, Elegant)
   ========================================================================== */

:root {
  /* Color Palette — Warm Nordic */
  --bg-primary: #FDFBF7;
  --bg-surface: #F5F2EC;
  --bg-card: #FFFFFF;
  --bg-dark: #1E2022;
  --bg-dark-surface: #272A2D;

  /* Accent Colors */
  --accent-sage: #5B7065;
  --accent-sage-light: #EBF0EC;
  --accent-oak: #C9A96E;
  --accent-oak-hover: #B5955A;

  /* Text Colors */
  --text-main: #1E2022;
  --text-muted: #6C7278;
  --text-light: #FDFBF7;
  --text-light-muted: #A0A5AA;

  /* Borders & Dividers */
  --border-light: #E6E1D8;
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(30, 32, 34, 0.04);
  --shadow-md: 0 10px 30px rgba(30, 32, 34, 0.08);
  --shadow-hover: 0 20px 40px rgba(30, 32, 34, 0.12);

  --transition-normal: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-sage);
  margin-bottom: 0.6rem;
}

.section-dark .section-tag {
  color: var(--accent-oak);
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-dark .section-heading {
  color: var(--text-light);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.section-dark .section-desc {
  color: var(--text-light-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--text-light);
  border-color: var(--text-main);
}

.btn-primary:hover {
  background-color: var(--accent-sage);
  border-color: var(--accent-sage);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 112, 101, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: var(--bg-surface);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFF;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.header.scrolled {
  padding: 0.8rem 5%;
  box-shadow: var(--shadow-sm);
}

.logo-link {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-sage);
  transition: var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-sage);
}

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 1rem;
}

.flag-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.4;
  transition: var(--transition-normal);
}

.flag-btn.active, .flag-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.flag-btn img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.hamburger {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.04);
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge i {
  color: var(--accent-sage);
  font-size: 1.4rem;
}

.hero-badge-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-badge-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CATEGORIES GRID (HOME)
   ========================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-sage);
  box-shadow: var(--shadow-hover);
}

.category-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-sage-light);
  color: var(--accent-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.2rem;
  transition: var(--transition-normal);
}

.category-card:hover .category-icon-wrapper {
  background: var(--accent-sage);
  color: #FFF;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRODUCT CARDS & GRID
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-sage);
}

.product-image-box {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bg-surface);
  cursor: pointer;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image-box img {
  transform: scale(1.06);
}

.product-gallery-card {
  position: relative;
}

.product-gallery-stage {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.product-gallery-detail .product-gallery-stage {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.gallery-main-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.gallery-main-btn-nav {
  cursor: pointer;
}

.gallery-main-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-normal);
  pointer-events: none;
}

.product-gallery-stage:hover .gallery-zoom-hint,
.gallery-main-btn:focus-visible .gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.product-gallery-stage:hover .gallery-arrow,
.product-gallery-stage:focus-within .gallery-arrow {
  opacity: 1;
}

.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

.gallery-arrow:hover {
  background: var(--accent-sage);
  color: #fff;
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.gallery-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  aspect-ratio: 4/3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active {
  border-color: var(--accent-sage);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 12, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 5rem 3rem;
}

.lightbox-image {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-arrow-prev { left: 20px; }
.lightbox-arrow-next { right: 20px; }

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--accent-sage);
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-sage);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  cursor: pointer;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.spec-pill {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.product-btn-group {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-icon:hover {
  background: var(--text-main);
  color: var(--text-light);
  border-color: var(--text-main);
}

/* ==========================================================================
   ABOUT / PHILOSOPHY SECTION
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-primary {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.about-badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.about-badge-item i {
  font-size: 1.4rem;
  color: var(--accent-sage);
}

.about-badge-item span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   CONSULTATION / BOOKING SECTION
   ========================================================================== */

.consultation-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  border: 1px solid var(--border-light);
  text-align: center;
}

.consultation-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.phone-link {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.phone-link:hover {
  color: var(--accent-sage);
}

/* ==========================================================================
   CATALOG PAGE (CLEAN SIDEBAR & GRID)
   ========================================================================== */

.catalog-page-header {
  padding: 8rem 0 3rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.catalog-category-menu {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 2rem 0 0;
  position: relative;
  z-index: 20;
}

.catalog-menu-item {
  position: relative;
}

.catalog-menu-all,
.catalog-menu-trigger {
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-normal);
}

.catalog-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.catalog-menu-trigger i {
  font-size: 0.72rem;
  transition: transform var(--transition-normal);
}

.catalog-menu-all:hover,
.catalog-menu-trigger:hover,
.catalog-menu-all.active,
.catalog-menu-trigger.active {
  color: #D71920;
}

.catalog-menu-item.open .catalog-menu-trigger i,
.catalog-menu-item:hover .catalog-menu-trigger i {
  transform: rotate(180deg);
}

.catalog-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 0.55rem 0;
  background: var(--bg-card);
  border: 1px solid rgba(230, 225, 216, 0.7);
  box-shadow: 0 18px 36px rgba(30, 32, 34, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-normal);
}

.catalog-menu-item.open .catalog-menu-dropdown,
.catalog-menu-item:hover .catalog-menu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.catalog-submenu-btn {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-normal);
}

.catalog-submenu-btn:hover,
.catalog-submenu-btn.active {
  background: #D71920;
  color: #FFF;
}

.catalog-content {
  padding: 4rem 0 6rem;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */

.product-detail-page {
  background: var(--bg-primary);
}

.product-detail-hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
}

.breadcrumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.breadcrumb-btn:hover {
  border-color: var(--accent-sage);
  color: var(--accent-sage);
  transform: translateY(-2px);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 4rem;
  align-items: start;
}

.product-detail-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--accent-sage);
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-detail-title {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.product-detail-desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

.product-detail-price-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  margin-bottom: 1.2rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-sage);
}

.product-detail-section {
  color: var(--text-muted);
  font-weight: 600;
}

.detail-spec-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-spec-card {
  min-height: 116px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-spec-card i {
  color: var(--accent-oak);
  font-size: 1.15rem;
}

.detail-spec-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-spec-card strong {
  font-size: 0.95rem;
  line-height: 1.45;
}

.detail-spec-wide {
  grid-column: 1 / -1;
}

.product-detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.related-products {
  background: var(--bg-primary);
}

/* ==========================================================================
   BRANCH CONTACT
   ========================================================================== */

.contact-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.branch-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.branch-card-top {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 1.1rem;
}

.branch-city {
  display: inline-flex;
  color: var(--accent-oak);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.branch-card h3 {
  color: var(--text-light);
  font-size: 1.35rem;
}

.branch-details {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.branch-details p {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--text-light-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.branch-details i {
  color: var(--accent-oak);
  padding-top: 3px;
}

.branch-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.branch-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 700;
}

.branch-action-btn:hover {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
}

/* ==========================================================================
   FLOATING CONTROLS
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark-surface);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--accent-sage);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: var(--text-light-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid, .about-grid, .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--bg-primary);
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
  .catalog-category-menu {
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-width: 360px;
    margin: 0 auto;
  }
  .catalog-menu-item {
    width: 100%;
  }
  .catalog-menu-all,
  .catalog-menu-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-light);
  }
  .catalog-menu-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-light);
    border-top: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .catalog-menu-item.open .catalog-menu-dropdown,
  .catalog-menu-item:hover .catalog-menu-dropdown {
    display: block;
  }
  .product-detail-hero {
    padding: 7rem 0 4rem;
  }
  .product-detail-title {
    font-size: 2.3rem;
  }
  .product-detail-price-row,
  .product-detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-spec-grid {
    grid-template-columns: 1fr;
  }
  .branch-actions {
    flex-direction: column;
  }
  .image-lightbox {
    padding: 4.5rem 1rem 3rem;
  }
  .lightbox-arrow-prev { left: 8px; }
  .lightbox-arrow-next { right: 8px; }
  .gallery-arrow {
    opacity: 1;
  }
  .gallery-zoom-hint {
    opacity: 1;
    transform: none;
  }
}
