:root {
  --ivory: #f7f2ea;
  --stone: #ded6ca;
  --paper: #fffdf8;
  --graphite: #222522;
  --muted: #67635c;
  --walnut: #523a2d;
  --champagne: #b89355;
  --deep-green: #24443b;
  --mist-blue: #d8e3e3;
  --line: rgba(34, 37, 34, 0.14);
  --shadow: 0 18px 50px rgba(25, 23, 19, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body[dir="ltr"] {
  font-family: "Segoe UI", Arial, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

.top-strip {
  background: var(--deep-green);
  color: #fff;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 0.88rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--champagne);
  color: var(--champagne);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: -2px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 30px);
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--graphite);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.cart-button,
.primary-button,
.secondary-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ghost-button,
.cart-button,
.secondary-button {
  background: rgba(255, 253, 248, 0.74);
  color: var(--graphite);
}

.primary-button {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #fff;
}

.secondary-button {
  border-color: rgba(34, 37, 34, 0.26);
}

.ghost-button:hover,
.cart-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.compact {
  min-width: 52px;
  padding: 0 12px;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--champagne);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  height: clamp(420px, 72svh, 680px);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-scrim {
  z-index: -1;
  background: linear-gradient(90deg, rgba(247, 242, 234, 0.88), rgba(247, 242, 234, 0.5) 38%, rgba(247, 242, 234, 0.08) 70%);
}

[dir="ltr"] .hero-scrim {
  background: linear-gradient(90deg, rgba(247, 242, 234, 0.88), rgba(247, 242, 234, 0.5) 38%, rgba(247, 242, 234, 0.08) 70%);
}

.hero-content {
  width: min(560px, calc(100% - 36px));
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin-inline-end: clamp(18px, 7vw, 92px);
  margin-inline-start: auto;
  text-align: start;
}

[dir="ltr"] .hero-content {
  margin-inline-start: clamp(18px, 7vw, 92px);
  margin-inline-end: auto;
}

.eyebrow {
  margin: 0;
  color: var(--deep-green);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--graphite);
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  max-width: 12ch;
}

.hero p:not(.eyebrow) {
  margin: 0;
  max-width: 58ch;
  color: #383933;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.trust-band span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-inline-end: 1px solid var(--line);
  color: var(--walnut);
  font-weight: 700;
  text-align: center;
}

.trust-band span:last-child {
  border-inline-end: 0;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  background: var(--mist-blue);
}

.section h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.8rem);
}

.intro-section p:last-child,
.service-copy p,
.policy-grid p,
.product-detail p,
.service-steps p {
  color: var(--muted);
  margin-block: 12px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 780px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-tile {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #ddd;
}

.category-tile img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.category-tile:hover img {
  transform: scale(1.035);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(22, 23, 20, 0.74), rgba(22, 23, 20, 0));
}

.category-tile div {
  position: absolute;
  inset-inline: 22px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
}

.category-tile span,
.category-tile strong {
  display: block;
}

.category-tile span {
  color: #f0d79f;
  margin-bottom: 8px;
  font-weight: 700;
}

.category-tile strong {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.28;
}

.shop-section {
  background: var(--paper);
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.filters label,
.city-check {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.filters select,
.city-check select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--graphite);
  padding: 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.policy-grid article,
.service-steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card button {
  all: unset;
  cursor: pointer;
  display: grid;
  min-width: 0;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-card h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.28;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  min-height: 50px;
}

.product-price {
  color: var(--walnut);
  font-weight: 800;
}

.service-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 70px);
  background: var(--deep-green);
  color: #fff;
}

.service-section .eyebrow,
.service-section h2,
.service-section p {
  color: #fff;
}

.service-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.service-steps {
  display: grid;
  gap: 12px;
}

.service-steps div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  padding: 18px;
}

.service-steps span {
  display: inline-block;
  color: #f0d79f;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-steps strong {
  display: block;
  font-size: 1.1rem;
}

.service-steps p {
  color: rgba(255, 255, 255, 0.72);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.policy-grid article {
  padding: 22px;
}

.policy-grid h3 {
  margin: 0;
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(18px, 5vw, 64px);
  background: var(--graphite);
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #f0d79f;
}

.whatsapp-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 35;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1f7a52;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.product-dialog {
  width: min(1120px, calc(100% - 28px));
  max-height: min(850px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(18, 18, 15, 0.62);
}

.dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--graphite);
  border-radius: 999px;
  cursor: pointer;
}

.product-dialog > .dialog-close {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 3;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  gap: 0;
}

.gallery {
  padding: 18px;
  background: var(--ivory);
}

.gallery-main {
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumbs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  min-height: 78px;
}

.gallery-thumbs button[aria-selected="true"] {
  border-color: var(--champagne);
  box-shadow: inset 0 0 0 1px var(--champagne);
}

.gallery-thumbs img {
  width: 100%;
  height: 78px;
  object-fit: cover;
}

.gallery-thumbs .diagram-panel {
  min-height: 78px;
  padding: 6px;
  background-size: 18px 18px;
}

.gallery-thumbs .dimension-shape {
  width: 34px;
  height: 54px;
  border-width: 4px;
  border-radius: 48% 48% 2px 2px;
}

.gallery-thumbs .dimension-shape.round {
  width: 48px;
  height: 48px;
}

.gallery-thumbs .dimension-shape.rect {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.diagram-panel {
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    #fff;
  background-size: 42px 42px;
}

.dimension-shape {
  position: relative;
  width: min(56%, 260px);
  height: 360px;
  border: 10px solid var(--champagne);
  border-radius: 48% 48% 4px 4px;
  background: linear-gradient(135deg, #edf3f3, #fff);
  box-shadow: inset 0 0 0 1px rgba(34, 37, 34, 0.12);
}

.dimension-shape.round {
  height: 290px;
  border-radius: 50%;
  border-color: var(--walnut);
}

.dimension-shape.rect {
  height: 290px;
  border-radius: 14px;
  border-color: #d7d0c4;
  box-shadow: 0 0 0 12px rgba(255, 246, 221, 0.7);
}

.dimension-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--graphite);
  color: #fff;
  font-size: 0.85rem;
}

.dimension-label.width {
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
}

.dimension-label.height {
  inset-inline-end: -84px;
  top: 50%;
  transform: translateY(-50%);
}

.product-detail {
  padding: 34px clamp(20px, 4vw, 42px);
  overflow-y: auto;
}

.product-detail h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.14;
}

.price {
  color: var(--walnut);
  font-size: 1.35rem;
  font-weight: 900;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.spec-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 4px;
}

.spec-list dd {
  margin: 0;
  font-weight: 800;
}

.availability {
  min-height: 26px;
  color: var(--deep-green);
  font-weight: 800;
}

.install-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 13px;
  margin: 14px 0;
  cursor: pointer;
}

.install-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--deep-green);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(18, 18, 15, 0.48);
}

.cart-drawer {
  position: fixed;
  z-index: 41;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-header,
.cart-summary {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
}

.cart-items {
  overflow-y: auto;
  padding: 12px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.remove-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.cart-summary {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cart-summary p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.full-width {
  width: 100%;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .intro-section,
  .service-section,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

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

  .gallery-main,
  .gallery-main img,
  .diagram-panel {
    min-height: 380px;
  }
}

@media (max-width: 680px) {
  .top-strip {
    font-size: 0.78rem;
  }

  .site-header {
    min-height: auto;
    padding: 12px 14px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-actions {
    gap: 6px;
  }

  .cart-button span:first-child {
    display: none;
  }

  .hero {
    height: clamp(430px, 72svh, 560px);
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-scrim {
    background: rgba(247, 242, 234, 0.68);
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-inline: 14px;
    justify-content: flex-end;
    padding-bottom: 30px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.6rem);
  }

  .hero-actions,
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 46px 14px;
  }

  .section-heading {
    display: grid;
  }

  .category-grid,
  .product-grid,
  .policy-grid,
  .filters,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 320px;
  }

  .site-footer {
    display: grid;
  }

  .gallery {
    padding: 12px;
  }

  .gallery-main,
  .gallery-main img,
  .diagram-panel {
    min-height: 300px;
  }

  .dimension-shape {
    width: min(54%, 190px);
    height: 250px;
  }

  .dimension-shape.round,
  .dimension-shape.rect {
    height: 210px;
  }

  .dimension-label.height {
    inset-inline-end: -58px;
  }

  .product-detail {
    padding: 24px 16px;
  }
}
