.page-hero { --hero-image: url('https://images.pexels.com/photos/6585754/pexels-photo-6585754.jpeg?auto=compress&cs=tinysrgb&w=1800'); }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg-2);
  color: var(--ink-muted);
  font-size: 1.6rem;
}

/* ── Module tiles ("Explore Our Furniture Range") ─────────────────────── */
.module-tile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.module-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.4rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--page-bg-2);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.module-tile svg {
  width: 42px;
  height: 42px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 200ms ease, transform 200ms ease;
}

.module-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.module-tile.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.module-tile.is-active svg {
  stroke: #fff;
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .module-tile-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .module-tile-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Product cards ─────────────────────────────────────────────────────── */
.product-grid {
  padding-top: 0.5rem;
}

.product-card {
  position: relative;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.product-card .card-image {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--page-bg-2);
}

.product-card .badges {
  top: 12px;
  bottom: auto;
  left: 12px;
  right: auto;
}

.product-card .discount-badge {
  background: var(--ink);
}

.product-card .price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.product-card .price-badge .was-price {
  color: var(--ink-muted);
  font-weight: 600;
  text-decoration: line-through;
}

.product-card .quote-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
}

.product-card .rating-row {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.66);
  backdrop-filter: blur(6px);
}

.product-card .rating-row i {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
}

.product-card .rating-row i.is-filled {
  color: #ffb92e;
}

.product-card .out-of-stock-badge {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.8);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  opacity: 0;
  background: rgba(15, 15, 18, 0.28);
  border-radius: var(--radius);
  transition: opacity 220ms ease;
  pointer-events: none;
}

.product-card:hover .product-card-overlay,
.product-card:focus-within .product-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-card-icons {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(10px);
  transition: transform 220ms ease;
}

.product-card:hover .product-card-icons,
.product-card:focus-within .product-card-icons {
  transform: translateY(0);
}

.product-card-icons button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
}

.product-card-icons button:hover {
  background: #fff;
  color: var(--accent);
  transform: scale(1.08);
}

.product-card-icons button.is-active {
  background: #fff;
  color: var(--accent);
}

.product-card-cart {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card:hover .product-card-cart,
.product-card:focus-within .product-card-cart {
  transform: translateY(0);
  opacity: 1;
}

.product-card-cart:hover { background: var(--ink-2); }

.product-card-cart:disabled {
  background: var(--ink-muted);
  cursor: not-allowed;
}

.product-card-title-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: -1.6rem 1rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.product-card-title-bar h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.product-card-brand {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-quote-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

/* ── Quick-view modal ──────────────────────────────────────────────────── */
body.fq-open { overflow: hidden; }

.fq-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.fq-modal.is-open { display: flex; }

.fq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.82);
}

.fq-box {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}

.fq-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 15, 18, 0.06);
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.fq-close:hover { background: var(--accent); color: #fff; transform: scale(1.06); }

.fq-gallery-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--page-bg-2);
}

.fq-gallery-main {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

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

.fq-gallery-nav,
.fq-gallery-expand {
  position: absolute;
  z-index: 2;
  border: 0;
  color: #fff;
  background: rgba(11, 13, 17, 0.72);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fq-gallery-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translateY(-50%);
}

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

.fq-gallery-expand {
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.fq-gallery-nav:hover,
.fq-gallery-expand:hover { background: var(--accent); }

.fq-gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 0 0.1rem;
}

.fq-gallery-thumb {
  flex: 0 0 76px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--page-bg-2);
  opacity: 0.68;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

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

.fq-gallery-thumb:hover,
.fq-gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
}

.fq-gallery-viewer.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 10, 0.97);
}

.fq-gallery-viewer.is-expanded .fq-gallery-stage {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.fq-details-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.fq-details h2 {
  margin: 0 0 0.5rem;
  padding-right: 2.5rem;
}

.fq-rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.fq-rating-row i.is-filled { color: #ffb92e; }
.fq-rating-row i:not(.is-filled) { color: var(--hairline); }

.fq-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.fq-price-row .current-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
}

.fq-price-row .was-price {
  font-size: 1rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.fq-price-row .discount-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.fq-desc {
  color: var(--ink-3);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.fq-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.fq-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
}

.fq-qty-stepper button {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--page-bg-2);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.fq-qty-stepper span {
  min-width: 40px;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
}

.fq-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.fq-add-cart {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.fq-add-cart:hover { background: var(--accent-dark); }

.fq-add-cart:disabled {
  background: var(--ink-muted);
  cursor: not-allowed;
}

.fq-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
}

.fq-icon-btn:hover,
.fq-icon-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.fq-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
}

.fq-meta-table th,
.fq-meta-table td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hairline);
}

html[dir="rtl"] .fq-meta-table th,
html[dir="rtl"] .fq-meta-table td {
  text-align: right;
}

.fq-meta-table th {
  color: var(--ink-muted);
  font-weight: 700;
  width: 40%;
}

.fq-meta-table td { color: var(--ink); font-weight: 600; }

.fq-share-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.fq-share-row span {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 700;
}

.fq-share-row a,
.fq-share-row button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.fq-share-row a:hover,
.fq-share-row button:hover { background: var(--ink); color: #fff; }

html[dir="rtl"] .fq-details h2 { padding-right: 0; padding-left: 2.5rem; }
html[dir="rtl"] .fq-close { right: auto; left: 18px; }
html[dir="rtl"] .fq-gallery-expand { right: auto; left: 12px; }

@media (max-width: 760px) {
  .fq-box {
    grid-template-columns: 1fr;
    padding: 1.4rem;
    max-height: 92vh;
  }
}

/* ── Compare picker modal (also used, in its rendered form, by compare.html) ─ */
.compare-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.compare-modal.is-open { display: flex; }

.compare-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
}

.compare-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.compare-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

.compare-modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
}

.compare-modal-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--page-bg-2);
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.compare-modal-close:hover { background: var(--accent); color: #fff; }

.compare-search-input {
  margin: 1rem 1.6rem 0;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--page-bg-2);
}

.compare-search-input:focus { outline: none; border-color: var(--accent); }

.compare-modal-list {
  overflow-y: auto;
  padding: 1rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.compare-candidate {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.compare-candidate:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.compare-candidate img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--page-bg-2);
}

.compare-candidate-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.compare-candidate-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-candidate-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-modal-loading,
.compare-modal-empty {
  color: var(--ink-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem 0;
}
