@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: #e5e5e5;
  --color-accent: #1a1a1a;
  --color-surface: #f7f6f4;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  /* Safety net: if any element ever pushes past the viewport edge on a
     narrow phone, this stops it turning into sideways page-scroll instead
     of just clipping the offending element. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-width {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Enquiries strip */
.enquiries-bar {
  background: var(--color-text);
  color: #fff;
}
.enquiries-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7px 24px;
  font-size: 12.5px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.enquiries-bar-inner a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.enquiries-bar-sep { opacity: 0.5; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
}
.header-top { border-bottom: 1px solid var(--color-border); }
.header-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 32px;
}
.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  justify-self: center;
  white-space: nowrap;
}

/* Search: icon-only at rest, expands into a styled floating input on click
   (wallroom.co.za style) rather than sitting open as a permanent bar. */
.site-search {
  position: relative;
  justify-self: start;
  display: flex;
  align-items: center;
}
.site-search input[type="search"] {
  display: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  flex: 1;
  min-width: 0;
  background: transparent;
  padding: 0 4px;
  color: var(--color-text);
}
.site-search input[type="search"]::placeholder { color: #999; }
.site-search button {
  border: none;
  background: transparent;
  color: var(--color-text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.site-search button:hover { background: var(--color-surface); }
.site-search.search-open {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) scale(0.97);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
  min-width: 360px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 70;
  opacity: 0;
  animation: siteSearchPopIn 0.18s ease forwards;
}
@keyframes siteSearchPopIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.97); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes siteSearchPopInMobile {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-search.search-open:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 18px 44px rgba(0,0,0,0.16), 0 0 0 3px rgba(26,26,26,0.08);
}
.site-search.search-open input[type="search"] { display: block; }
.site-search.search-open button { background: var(--color-accent); color: #fff; }
.site-search-clear {
  border: none;
  background: transparent;
  color: #aaa;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-search-clear:hover { background: var(--color-surface); color: var(--color-text); }
.site-search.search-open.has-value .site-search-clear { display: flex; }

.header-icons { display: flex; gap: 8px; align-items: center; justify-self: end; }
.header-icon-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.header-icon-link:hover { background: var(--color-surface); }
.header-icon-label { display: inline; }
.icon-badge-wrap { position: relative; display: inline-flex; }
.cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}
.currency-switcher select {
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.main-nav {
  position: relative;
}
.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.main-nav a:hover { color: var(--color-muted); }

.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown li { display: block; }
.main-nav .dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  color: var(--color-text);
}
.main-nav .dropdown a:hover { background: var(--color-surface); }
.main-nav .dropdown.dropdown-wide {
  min-width: 380px;
  columns: 2;
  column-gap: 0;
  padding: 12px 0;
}
.main-nav .dropdown.dropdown-wide li { break-inside: avoid; }
.dropdown-toggle { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: var(--color-surface);
  padding: 64px 24px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
}
.hero p.lead {
  font-size: 17px;
  color: var(--color-muted);
  margin-bottom: 24px;
}
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.hero-specs div { font-size: 13px; color: var(--color-muted); }
.hero-specs strong { display: block; font-size: 16px; color: var(--color-text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

/* Sections */
.section { padding: 56px 24px; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* Value proposition */
.value-prop-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.value-prop h2 { font-size: 26px; margin: 0 0 12px; }
.value-prop p { color: var(--color-muted); margin: 0; max-width: 60ch; }
.value-prop-stats { display: flex; flex-direction: column; gap: 16px; }
.value-prop-stats div { font-size: 13px; color: var(--color-muted); }
.value-prop-stats strong { display: block; font-size: 20px; color: var(--color-text); }

/* Showroom / contact */
.showroom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.showroom-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px;
}
.showroom-card h3 { margin: 0 0 10px; font-size: 16px; }
.showroom-card p { margin: 0 0 10px; color: var(--color-muted); font-size: 14px; }
.showroom-hours { font-size: 13px !important; }
.showroom-note {
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  max-width: var(--max-width);
  margin: 20px auto 0;
}

/* Scroll-reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
}

/* Category tiles */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.category-tile {
  display: flex;
  flex-direction: column;
}
.category-tile-image {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  display: block;
  transition: box-shadow 0.25s ease;
}
.category-tile-image:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.category-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-tile-image:hover img { transform: scale(1.05); }
.category-tile-image img.category-tile-placeholder {
  object-fit: contain;
  padding: 32px;
  opacity: 0.55;
  transition: none;
}
.category-tile-image:hover img.category-tile-placeholder { transform: none; }
.category-tile-name {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 12px;
  text-align: center;
}
.category-tile-cta {
  align-self: center;
  padding: 10px 22px;
  font-size: 12.5px;
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.process-step .step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-text);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-weight: 700;
}
.process-step h3 { font-size: 16px; margin: 0 0 8px; }
.process-step p { font-size: 14px; color: var(--color-muted); margin: 0; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.product-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  color: #9c9689;
  font-size: 13px;
  overflow: hidden;
}
.product-card .thumb img,
.thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .info { padding: 16px; }
.product-card h3 { font-size: 15px; margin: 0 0 6px; }
.product-card .price { font-weight: 700; margin: 0 0 4px; }
.product-card .desc { font-size: 13px; color: var(--color-muted); margin: 0 0 12px; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.testimonial-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: 4px;
}
.testimonial-card .stars { color: #d9a441; margin-bottom: 10px; }
.testimonial-card p { font-size: 14px; margin: 0 0 12px; }
.testimonial-card .author { font-size: 13px; font-weight: 600; }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  color: inherit;
}
.faq-question span { transition: transform 0.25s ease; }
.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  padding-bottom: 0;
}
.faq-item.open .faq-answer { padding-bottom: 18px; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}
.product-detail .thumb-large {
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #9c9689;
  overflow: hidden;
}
.product-detail h1 { font-size: 30px; margin: 0 0 8px; }
.product-detail .price { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.availability-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; margin-bottom: 16px; }
.availability-in_stock { background: #e3f6e9; color: #1d7a44; }
.availability-made_to_order { background: #fff4e0; color: #a06400; }
.availability-unavailable { background: #fbe6e6; color: #b3261e; }
.product-card .availability-badge { font-size: 11px; padding: 2px 8px; margin: 0 0 6px; }
.option-group { margin-bottom: 20px; }
.option-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; }
.option-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 14px;
}

/* Product gallery thumbnails */
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  transition: border-color 0.2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--color-text); }

/* Product specifications */
.spec-table { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.spec-table h2 { font-size: 16px; margin: 0 0 14px; }
.spec-table dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.spec-table dt { font-size: 12.5px; color: var(--color-muted); font-weight: 600; }
.spec-table dd { margin: 0; font-size: 13.5px; }

/* Cart page */
.cart-section { max-width: 980px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cart-section .section-title { text-align: left; margin-bottom: 28px; }

.cart-empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--color-border);
  border-radius: 4px;
}
.cart-empty p { color: var(--color-muted); margin: 0 0 20px; font-size: 15px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  border-top: 1px solid var(--color-border);
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr 90px 100px 32px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-line-name { margin: 0 0 4px; font-weight: 500; font-size: 15px; }
.cart-line-options { margin: 0 0 4px; font-size: 12.5px; color: var(--color-muted); }
.cart-line-unit { margin: 0; font-size: 12.5px; color: var(--color-muted); }
.cart-line-qty { display: flex; flex-direction: column; gap: 4px; }
.cart-line-qty-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); }
.cart-line-qty input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
}
.cart-line-subtotal { font-weight: 600; font-size: 15px; text-align: right; }
.cart-line-remove {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  justify-self: end;
  transition: color 0.15s ease;
}
.cart-line-remove:hover { color: #b3261e; }

.cart-items-actions { padding: 20px 0 0; }

.cart-summary-card {
  position: sticky;
  top: 90px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px;
  background: var(--color-surface);
}
.cart-summary-card h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
  color: var(--color-muted);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
}
.cart-summary-total {
  border-top: 1px solid var(--color-border);
  margin-top: 6px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 17px;
}
.cart-checkout-btn { display: block; width: 100%; text-align: center; margin-top: 18px; }
.cart-summary-card .field-hint { font-size: 12px; color: var(--color-muted); margin: 12px 0 0; line-height: 1.5; }

.cart-clear-form { max-width: 980px; margin: 16px auto 0; text-align: right; }
.cart-clear-form .btn-link {
  background: none; border: none; padding: 0; font-size: 13px; color: var(--color-muted);
  text-decoration: underline; cursor: pointer;
}
.cart-clear-form .btn-link:hover { color: #b3261e; }

@media (max-width: 720px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .cart-line { grid-template-columns: 1fr 70px 32px; grid-template-areas: "name qty remove" "sub sub sub"; }
  .cart-line-name, .cart-line-options, .cart-line-unit { grid-column: 1 / 2; }
  .cart-line-subtotal { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
}

/* Forms */
.form-field { margin-bottom: 16px; max-width: 500px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
}

/* Footer */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 48px 24px 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 14px; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-grid a { color: #ccc; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 12px;
  color: #777;
  text-align: center;
}
.footer-admin-link {
  color: #777;
  text-decoration: none;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid #444;
}
.footer-admin-link:hover {
  color: #ccc;
  text-decoration: underline;
}

.alert { padding: 12px 16px; border-radius: 3px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e6f4ea; color: #1e7e34; }

@media (max-width: 900px) {
  .hero-inner, .product-detail, .value-prop-inner { grid-template-columns: 1fr; }
  .category-grid, .process-grid, .testimonial-grid, .footer-grid, .showroom-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  /* Off-canvas / accordion mobile nav, replacing the desktop hover menu */
  .header-top-inner {
    grid-template-columns: auto 1fr auto;
    padding: 14px 16px;
    gap: 10px;
  }
  .logo { font-size: 19px; }
  .site-search.search-open {
    left: 16px;
    right: 16px;
    min-width: 0;
    top: 100%;
    margin-top: 6px;
    transform: none;
    animation: siteSearchPopInMobile 0.18s ease forwards;
  }
  .header-icons { gap: 4px; }
  .header-icon-label { display: none; }

  .header-inner { padding: 10px 16px; justify-content: flex-start; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: block;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.nav-open { max-height: 1400px; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 4px 0 16px; }
  .main-nav > ul > li { border-top: 1px solid var(--color-border); }
  .main-nav > ul > li:first-child { border-top: none; }
  .main-nav a { padding: 13px 2px; }
  .main-nav .has-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .main-nav .has-dropdown > a { flex: 1; }
  .dropdown-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 15px;
    padding: 13px 6px;
    cursor: pointer;
    color: var(--color-text);
    transition: transform 0.2s ease;
  }
  .has-dropdown.open .dropdown-toggle { transform: rotate(180deg); }
  .main-nav .dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-surface);
    width: 100%;
    columns: 1;
    padding: 4px 0 8px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .main-nav .dropdown a { padding: 10px 16px; }

  /* .dropdown-wide (used by "Furniture") is more specific than the
     .main-nav .dropdown reset above, so without this override it kept its
     desktop min-width:380px + 2-column layout on mobile — overflowing the
     screen sideways on any phone under ~400px wide. */
  .main-nav .dropdown.dropdown-wide { min-width: 0; columns: 1; }
}

@media (max-width: 620px) {
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 22px; margin-bottom: 28px; }
  .page-width { padding: 0 16px; }

  .category-grid, .process-grid, .testimonial-grid, .footer-grid,
  .showroom-grid, .product-grid { grid-template-columns: 1fr; }

  .header-icons { gap: 12px; }
  .header-icons a { font-size: 13px; }
  .currency-switcher select { font-size: 12px; padding: 5px 6px; max-width: 118px; }

  .product-detail { padding: 32px 16px; gap: 28px; }
  .gallery-thumbs { flex-wrap: wrap; }

  .spec-table dl,
  .account-summary dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .spec-table dd, .account-summary dd { margin-bottom: 10px; }

  .footer-grid { gap: 28px; }
  .auth-card { padding: 24px; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
}

/* Narrow phones (~360-400px, the most common Android widths): the header
   row (search icon + logo + currency dropdown + account/cart icons) was
   wide enough to overflow sideways at this width, which is what made the
   whole header feel cramped/broken on a phone. Tighten it down. */
@media (max-width: 400px) {
  .header-top-inner { gap: 6px; padding: 10px 10px; }
  .logo { font-size: 15px; }
  .site-search button { width: 34px; height: 34px; }
  .header-icons { gap: 0; }
  .header-icon-link { padding: 8px 6px; }
  .currency-switcher select { max-width: 64px; padding: 4px 3px; font-size: 11px; }
  .hero { padding: 32px 12px; }
  .hero h1 { font-size: 24px; }
  .section { padding: 32px 12px; }
  .page-width { padding: 0 12px; }
}

/* WhatsApp floating contact button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 100;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float { border: none; cursor: pointer; }

.whatsapp-widget { position: fixed; bottom: 24px; right: 24px; z-index: 100; }
.whatsapp-widget .whatsapp-float { position: static; box-shadow: 0 4px 14px rgba(0,0,0,0.25); margin-left: auto; display: flex; }

.whatsapp-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Without this, the panel's own `display: flex` above beats the browser's
   built-in `[hidden] { display: none }` rule (author styles always win
   over the UA stylesheet at equal specificity), so the chat panel stayed
   visible and pre-filled on every page load no matter what the toggle
   button did. This restores `hidden` as the real on/off switch. */
.whatsapp-panel[hidden] {
  display: none;
}
.whatsapp-panel-header {
  background: #25d366;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.whatsapp-panel-header strong { display: block; font-size: 15px; }
.whatsapp-panel-header span { display: block; font-size: 12px; opacity: 0.85; margin-top: 2px; }
.whatsapp-panel-close {
  background: none; border: none; color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; padding: 0; opacity: 0.9;
}
.whatsapp-panel-close:hover { opacity: 1; }
.whatsapp-panel-body { background: #e5ded6; padding: 14px; }
.whatsapp-bubble {
  background: #fff; border-radius: 8px; padding: 10px 12px; font-size: 13px;
  line-height: 1.45; color: #333; box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.whatsapp-panel-input {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid #eee;
}
.whatsapp-panel-input textarea {
  flex: 1; resize: none; border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px;
  font-family: inherit; font-size: 13px; line-height: 1.4; color: #333;
}
.whatsapp-panel-input textarea:focus { outline: none; border-color: #25d366; }
.whatsapp-send-btn {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s ease;
}
.whatsapp-send-btn:hover { transform: scale(1.08); }

.whatsapp-panel-fallback {
  background: #fff; padding: 8px 14px 12px; text-align: center; font-size: 12px; color: #777;
  border-top: 1px solid #eee;
}
.whatsapp-panel-fallback a { color: var(--color-accent); text-decoration: underline; cursor: pointer; }

@media (max-width: 480px) {
  .whatsapp-panel { width: calc(100vw - 32px); bottom: 68px; }
}

/* ===== SMATWALL additions ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.currency-switcher select {
  font-size: 13px;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.price-disclaimer {
  background: #111;
  padding: 14px 20px;
}
.price-disclaimer p {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 12.5px;
  line-height: 1.5;
  color: #f2f2f2;
  text-align: center;
}
.price-disclaimer strong {
  color: #fff;
}

.footer-locations li { margin-bottom: 14px; line-height: 1.5; }
.footer-locations strong { color: #fff; font-size: 13px; }
.footer-hours { color: #aaa; }

.footer-payment-strip {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  padding: 22px 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-payment-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.payment-badges-images { display: flex; gap: 14px; flex-wrap: nowrap; align-items: center; margin: 0; }
.payment-badge { display: inline-flex; align-items: center; justify-content: center; line-height: 0; background: #fff; border-radius: 6px; padding: 7px 12px; }
.payment-badges-images img { display: block; height: 24px; width: auto; }
.payment-numbers-inline { font-size: 13px; color: #ccc; white-space: nowrap; }

.footer-enquiries {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 14px 24px;
  font-size: 12.5px;
  color: #ccc;
}
.footer-enquiries a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Rotating hero image */
.hero-image {
  aspect-ratio: 4/3;
  background: #e9e6e0 center/cover no-repeat;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.4s ease;
}
.hero-image-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-image-category {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-image-browse {
  background: #fff;
  color: var(--color-text);
  padding: 9px 18px;
  font-size: 12px;
}
.hero-image-browse:hover { background: var(--color-surface); }
.hero-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9c9689;
  font-size: 14px;
}

/* Admin: rating stars in testimonial table */
.admin-table .rating-stars { color: #d9a441; letter-spacing: 1px; }

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 8px 14px 8px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  transition: background 0.15s ease;
}
.social-icon:hover { background: rgba(255,255,255,0.14); }
.social-icon img { display: block; width: 30px; height: 30px; }
.social-icon-label { color: #eee; font-size: 13px; font-weight: 500; }

/* Account pages / customer auth */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 20px; }
.auth-card {
  background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 32px;
}
.auth-card h1 { margin-top: 0; font-size: 22px; }
.auth-switch { margin-top: 18px; font-size: 13px; text-align: center; color: #777; }
.alert-error { background: #fdecea; color: #b23b3b; }

.auth-trouble-box {
  margin-top: 20px; padding: 16px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 8px; text-align: center;
}
.auth-trouble-box strong { display: block; margin-bottom: 6px; font-size: 14px; }
.auth-trouble-box p { margin: 0 0 12px; font-size: 13px; color: var(--color-muted); }

.account-summary { max-width: 640px; }
.account-summary dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0 0 24px; }
.account-summary dt { color: #888; font-size: 13px; }
.account-summary dd { margin: 0; }
