/* ==========================================================================
   Redesign (2026). Loaded after style.css on every page.
   To go back to the previous look, remove the redesign.css <link> from the pages
   (or redeploy the classic-design branch).
   ========================================================================== */

:root {
  --ink: #0f1923;              /* dark navy (footer, top bar, banners) */
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1280px;
  --gutter: max(5vw, calc((100vw - var(--container)) / 2));
  --shadow-card: 0 1px 2px rgba(15,25,35,0.05), 0 6px 20px rgba(15,25,35,0.06);
  --shadow-hover: 0 4px 10px rgba(15,25,35,0.08), 0 18px 40px rgba(15,25,35,0.12);
}

body { color: var(--dark); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* Content centred at a comfortable width on large screens */
.top-bar, .nav-inner, .breadcrumb-bar, .page-hero, .section, .categories, .home-intro,
.usp-strip, .showroom-banner, .footer-top, .footer-bottom, .related, .calc-page {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* -- Buttons ------------------------------------------------------------- */
.btn {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,25,35,0.14); }
.btn-gold { color: var(--ink); }                       /* dark on gold reads far better than white */
.btn-gold:hover { background: #ffb81c; }
.btn-dark:hover { background: #0884a4; }
.btn-outline { border-width: 1.5px; }

/* -- Top bar & header ---------------------------------------------------- */
.top-bar { background: var(--ink); font-size: 0.8rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.top-bar i { color: var(--gold); }
nav { box-shadow: 0 1px 0 var(--border); }
.nav-inner { height: 80px; }
.nav-links { font-size: 0.92rem; gap: 2rem; }
.nav-links > li > a { font-weight: 600; color: var(--dark); position: relative; padding: 0.4rem 0; }
.nav-links > li > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.2s ease;
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal); }
.nav-search { border-radius: 999px; background: var(--light); border-color: transparent; transition: border-color 0.15s, background 0.15s; }
.nav-search:focus-within { background: var(--white); border-color: var(--teal); }
.nav-search input { background: transparent; border-radius: 999px 0 0 999px; padding-left: 1.2rem; }
.nav-search button { border-radius: 0 999px 999px 0; padding: 0 1.2rem; }
.nav-dropdown { border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); border: 1px solid var(--border); overflow: hidden; }

/* -- Breadcrumb + page banner -------------------------------------------- */
.breadcrumb-bar { background: var(--white); border-bottom: none; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.page-hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(15,25,35,0.88) 0%, rgba(15,25,35,0.70) 45%, rgba(15,25,35,0.35) 100%),
    var(--hero-img, url('/assets/images/slider/floor-tiles.webp')) var(--hero-pos, center 60%) / cover no-repeat;
  border-bottom: none;
  padding-top: 3.4rem;
  padding-bottom: 3.4rem;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero h1::after {
  content: ''; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 0.9rem;
}
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1rem; max-width: 640px; line-height: 1.6; }

/* -- Section headings ---------------------------------------------------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 800; }
.section-head h2::after { width: 44px; height: 4px; background: var(--gold); margin-top: 0.7rem; }
.section-head a { font-weight: 600; }

/* -- Cards (shared) ------------------------------------------------------ */
.product-card, .cat-box, .value-card, .delivery-card, .calc-card, .result-card, .contact-info, .review-card {
  border-radius: var(--radius);
  border-color: #eceef1;
  box-shadow: var(--shadow-card);
}
.product-card:hover, .cat-box:hover, .value-card:hover, .delivery-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.value-card, .delivery-card { transition: box-shadow 0.25s ease, transform 0.25s ease; }

/* Product cards */
.product-thumb { height: 200px; }
.product-thumb img { transition: transform 0.5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 0.9rem 0.9rem 1.1rem; }
.product-info h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.25rem; }
.product-badge { border-radius: 999px; padding: 0.22rem 0.7rem; letter-spacing: 0.04em; }
.product-badge-new { background: var(--gold); color: var(--ink); }
.card-wishlist-btn { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }

/* Icons in feature cards sit in a soft teal circle */
.value-card .icon, .delivery-card .icon {
  width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,152,189,0.10); color: var(--teal); font-size: 1.4rem;
}

/* -- FAQ ----------------------------------------------------------------- */
.faq-item {
  background: var(--white); border: 1px solid #eceef1; border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-card);
}
.faq-item:first-child { border-top: 1px solid #eceef1; }

/* -- Products page ------------------------------------------------------- */
.products-layout { padding-left: var(--gutter); padding-right: var(--gutter); gap: 2rem; padding-top: 2rem; }
.filter-sidebar {
  border: 1px solid #eceef1; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-card); top: 96px; max-height: calc(100vh - 112px); padding: 1.4rem 1.2rem;
}
.products-main { padding-left: 0 !important; padding-right: 0 !important; }
.sort-bar { border-bottom: none !important; }
.sort-select { border-radius: var(--radius-sm); }
.pagination button, #pagination button { border-radius: var(--radius-sm); }

/* -- Product page -------------------------------------------------------- */
.product-gallery-main { border-radius: var(--radius); overflow: hidden; border-color: #eceef1; }
.gallery-thumb { border-radius: 8px; overflow: hidden; }
.product-detail-info h1, .product-detail h1, .product-info-col h1, .product-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.price { font-size: 1.8rem !important; font-weight: 800; }
.size-btn, .finish-btn, .order-by-btn { border-radius: 999px !important; }
#add-to-cart { border-radius: var(--radius-sm); padding-left: 2rem; padding-right: 2rem; }
.qty-wrap { border-radius: var(--radius-sm); overflow: hidden; }

/* -- Footer -------------------------------------------------------------- */
footer { background: var(--ink); border-top: 4px solid var(--gold); }
.footer-top { padding-top: 3.2rem; padding-bottom: 2.6rem; }
.footer-col h4 { color: var(--white); letter-spacing: 0.1em; }
.footer-col a:hover { color: var(--gold); }

/* -- Forms --------------------------------------------------------------- */
form input, form textarea, form select { border-radius: var(--radius-sm); padding: 0.8rem 1rem; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.hero-wrap { height: 600px; }
.slide { padding-left: var(--gutter); padding-right: var(--gutter); }
.slide::before { background: linear-gradient(100deg, rgba(15,25,35,0.82) 0%, rgba(15,25,35,0.5) 50%, rgba(15,25,35,0.05) 100%); }
.slide-content { max-width: 620px; }
.slide-content h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; margin-bottom: 1rem; }
.slide-content p { font-size: 1.1rem; margin-bottom: 1.8rem; max-width: 520px; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 1rem; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: rgba(245,168,0,0.16); border: 1px solid rgba(245,168,0,0.55); color: var(--gold);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Selling points under the hero */
.usp-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--white); padding-top: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--border);
}
.usp-item { display: flex; align-items: center; gap: 0.9rem; }
.usp-item i {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(11,152,189,0.10); color: var(--teal); font-size: 1.1rem;
}
.usp-item strong { display: block; color: var(--ink); font-size: 0.92rem; }
.usp-item span { color: var(--mid); font-size: 0.82rem; }

/* Intro heading */
.home-intro { padding-top: 3.4rem; }
.home-intro h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.home-intro h1::after { background: var(--gold); width: 48px; height: 4px; }

/* Category tiles: name over the photo */
.categories { gap: 20px; padding-top: 2rem; padding-bottom: 1rem; }
.cat-box { border: none; }
.cat-thumb { height: 300px; }
.cat-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3.2rem 1.3rem 1.2rem;
  background: linear-gradient(to top, rgba(15,25,35,0.88), rgba(15,25,35,0));
  color: var(--white); font-size: 1.15rem; font-weight: 800;
}
.cat-label i {
  color: var(--ink); background: var(--gold); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; transition: transform 0.2s ease;
}
.cat-box:hover .cat-label i { transform: translateX(4px); }

/* Showroom band */
.showroom-banner { background: var(--ink); }

/* ==========================================================================
   Tablets & phones
   ========================================================================== */
@media (max-width: 900px) {
  .usp-strip { grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
  .cat-thumb { height: 240px; }
}
@media (max-width: 680px) {
  .nav-inner { height: auto; }
  .hero-wrap { height: 460px; }
  .hero-eyebrow { font-size: 0.68rem; margin-bottom: 0.7rem; }
  .slide-content p { font-size: 0.95rem; margin-bottom: 1.2rem; }
  .page-hero { padding-top: 2.2rem; padding-bottom: 2.2rem; }
  .page-hero p { font-size: 0.92rem; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .cat-thumb { height: 170px; }
  .cat-label { font-size: 0.95rem; padding: 2.4rem 0.9rem 0.9rem; }
  .cat-label i { width: 28px; height: 28px; }
  .products-layout { padding-top: 1.2rem; }
  .filter-sidebar { max-height: none; }
}
@media (max-width: 600px) {
  .usp-item i { width: 40px; height: 40px; font-size: 0.95rem; }
  .usp-item strong { font-size: 0.85rem; }
  .usp-item span { font-size: 0.75rem; }
  .product-thumb { height: auto; }
}

/* ===== Reviews: own full-width row, then Instagram underneath ===== */
.social-reviews-grid { grid-template-columns: 1fr; gap: 4rem; }
.reviews-col, .social-col { min-width: 0; }

/* Rating summary bar */
#reviews-overall .reviews-overall {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(15,25,35,.06));
  padding: 1.1rem 1.4rem; gap: 1.1rem; margin: 0.4rem 0 1.6rem;
}
.reviews-g {
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: #4285F4; font-size: 1.35rem; flex-shrink: 0;
}
#reviews-overall .reviews-score { font-size: 2.6rem; }
.reviews-summary { display: flex; flex-direction: column; gap: 0.2rem; }
#reviews-overall .review-stars { font-size: 1.05rem; letter-spacing: 1px; }
#reviews-overall .reviews-cta { margin-left: auto; padding: 0.7rem 1.3rem; font-size: 0.88rem; }

/* Cards: 5 across on wide screens */
.reviews-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem !important; }
.reviews-grid .reviews-loading { grid-column: 1 / -1; text-align: center; }
.review-card {
  flex: none !important; padding: 1.4rem 1.3rem 1.2rem; gap: 0.9rem; min-width: 0;
  border-top: 3px solid var(--gold);
}
.review-top { display: flex; align-items: center; justify-content: space-between; }
.review-card .review-stars { font-size: 0.85rem; letter-spacing: 1px; }
.review-quote { color: var(--gold); opacity: 0.3; font-size: 1.5rem; }
.review-text {
  flex: 1; color: #3d4752; font-size: 0.88rem; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.review-header { border-top: 1px solid var(--border); padding-top: 0.9rem; gap: 0.7rem; }
.review-avatar { width: 38px; height: 38px; }
.review-avatar-letter {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 1rem;
}
.review-meta strong { font-size: 0.9rem; }
.review-meta span { display: block; font-size: 0.76rem; }
.review-source { color: #4285F4; font-size: 1rem; flex-shrink: 0; }

/* Narrower screens: a sideways-swipe row instead of squashing five cards */
@media (max-width: 1200px) {
  .reviews-grid {
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.3rem 0.2rem 0.9rem; scrollbar-width: thin;
  }
  .review-card { flex: 0 0 calc((100% - 2.4rem) / 2.6) !important; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .review-card { flex-basis: 82% !important; }
  #reviews-overall .reviews-overall { padding: 1rem; gap: 0.8rem; }
  #reviews-overall .reviews-score { font-size: 2.1rem; }
  #reviews-overall .reviews-cta { margin-left: 0; width: 100%; text-align: center; }
}

/* Instagram: 2 rows of 4 big photos (2 per row on phones) */
.social-col .ig-grid { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 16px; }
.social-col .ig-thumb { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm, 0 2px 10px rgba(15,25,35,.06)); }
.social-col .ig-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.social-col .ig-thumb:hover img { transform: scale(1.05); }
@media (max-width: 600px) { .social-col .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.section-head > a { white-space: nowrap; }
@media (max-width: 600px) { .social-reviews-section .section-head h2 { font-size: 1.35rem; } }

/* Pagination: "Go to page [ ] of N" box */
.pagination .pag-jump { display: inline-flex; flex-direction: row; flex-wrap: nowrap; width: auto; align-items: center; gap: 0.45rem; margin-left: 0.9rem; font-size: 0.86rem; color: var(--mid); }
.pag-jump input {
  width: 64px; height: 38px; padding: 0 0.5rem; text-align: center; font: inherit; font-weight: 600; color: var(--dark);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; -moz-appearance: textfield;
}
.pag-jump input::-webkit-outer-spin-button, .pag-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pag-jump input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,152,189,.15); }
.pag-jump input.is-invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.15); }
.pagination .pag-jump button { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.pagination .pag-jump button:hover:not(:disabled) { background: var(--teal-dark, #097e9d); color: #fff; }
@media (max-width: 600px) { .pagination .pag-jump { flex-basis: 100%; justify-content: center; margin: 0.6rem 0 0; } }
.pagination .pag-jump label, .pagination .pag-jump span { display: inline; margin: 0; font-size: 0.86rem; font-weight: 500; color: var(--mid); white-space: nowrap; }
.pagination .pag-jump input { margin: 0; flex: 0 0 64px; }
.pagination .pag-jump input::placeholder { color: #9aa3ad; }

/* Category banners: a photo per category. <body data-cat> sets it on first paint; products-page.js
   sets <html data-hero> when the category filter changes, which wins because it comes later. */
body[data-cat="tiles"] .page-hero,       html[data-hero="tiles"] .page-hero       { --hero-img: url('/assets/images/banners/walltiles.webp'); --hero-pos: center 55%; }
body[data-cat="floor"] .page-hero,       html[data-hero="floor"] .page-hero       { --hero-img: url('/assets/images/categories/floortiles.webp'); --hero-pos: center 65%; }
body[data-cat="wall"] .page-hero,        html[data-hero="wall"] .page-hero        { --hero-img: url('/assets/images/categories/walltiles.webp'); --hero-pos: center 40%; }
body[data-cat="outdoor"] .page-hero,     html[data-hero="outdoor"] .page-hero     { --hero-img: url('/assets/images/categories/outdoortiles.webp'); --hero-pos: center 60%; }
body[data-cat="accessories"] .page-hero, html[data-hero="accessories"] .page-hero { --hero-img: url('/assets/images/categories/tileaccessories.webp'); --hero-pos: right center; }
body[data-cat="bathrooms"] .page-hero,   html[data-hero="bathrooms"] .page-hero   { --hero-img: url('/assets/images/banners/bathroom.webp'); --hero-pos: center 55%; }
body[data-cat="flooring"] .page-hero, body[data-cat="engineered"] .page-hero, body[data-cat="spc"] .page-hero, body[data-cat="laminate"] .page-hero, html[data-hero="flooring"] .page-hero { --hero-img: url('/assets/images/categories/flooring-room.webp'); --hero-pos: center 60%; }
html[data-hero="all"] .page-hero { --hero-img: url('/assets/images/slider/floor-tiles.webp'); --hero-pos: center 60%; }


/* Recently viewed (recently-viewed.js): a compact strip of small cards above the footer,
   so it doesn't compete with the main product grid. 4 per row, fills the width. */
.recently-viewed { padding: 2.4rem var(--gutter) 2.8rem; background: var(--light); border-top: 1px solid var(--border); }
.recently-viewed .section-head { margin-bottom: 1.1rem; align-items: center; }
.recently-viewed .section-head h2 { font-size: 1.25rem; }
.recently-viewed .section-head h2::after { width: 32px; height: 3px; margin-top: 0.5rem; }
.rv-clear { background: none; border: 0; color: var(--teal); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 0.3rem 0; }
.rv-clear:hover { text-decoration: underline; }
.rv-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.rv-card {
  display: flex; flex-direction: row; align-items: center; gap: 0.85rem; padding: 0.6rem; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--dark); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rv-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm, 0 2px 10px rgba(15,25,35,.06)); }
.rv-thumb { flex: 0 0 64px; width: 64px; height: 64px; aspect-ratio: auto; border-radius: 8px; background: var(--light); overflow: hidden; display: block; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-info { min-width: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.rv-info h3 { font-size: 0.88rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-meta { display: none; }
.rv-price { font-size: 0.84rem; font-weight: 800; color: var(--teal); margin: 0; }
@media (max-width: 1100px) { .rv-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .rv-row { grid-template-columns: 1fr; gap: 0.6rem; } .rv-card:nth-child(n+5) { display: none; } }
@media print { .recently-viewed { display: none; } }

/* Products page: space under the grid/sidebar so the sticky filter panel doesn't end flush
   against the next section, and a slim scrollbar inside it */
.products-layout { padding-bottom: 3rem; }
.filter-sidebar { scrollbar-width: thin; scrollbar-color: #cfd6dd transparent; }
.filter-sidebar::-webkit-scrollbar { width: 6px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: #cfd6dd; border-radius: 3px; }

/* "Back to results" strip on product pages: full width, lined up with the page content */
.back-to-results { display: flex; width: 100%; box-sizing: border-box; padding: 0.55rem var(--gutter); }
.back-to-results:hover span, .back-to-results:hover { text-decoration: none; }
.back-to-results:hover { color: var(--teal-dark, #0a7490); }

/* -- "Made in Italy" / "Made in Spain" badge (madeIn in products-data.js) */
.flag-it, .flag-es { display: inline-block; width: 16px; height: 11px; border-radius: 2px; vertical-align: -1px; margin-right: 0.35rem;
  background: linear-gradient(90deg, #009246 0 33.34%, #fff 33.34% 66.67%, #ce2b37 66.67%); box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.flag-es { background: linear-gradient(180deg, #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75%); }
.made-in-badge { position: absolute; bottom: 10px; left: 10px; z-index: 2; pointer-events: none; display: inline-flex; align-items: center;
  padding: 0.22rem 0.6rem; border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--ink, #0f1923);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.03em; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.product-detail-info .made-in { display: flex; width: fit-content; align-items: center; margin: 0.45rem 0 0.9rem; font-size: 0.86rem; font-weight: 600; color: var(--ink, #0f1923); }

/* -- Instagram share button (product pages) */
.share-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }

/* -- Product page purchase area: [qty][Add to Cart] on one row, [Contact us][Save] as equal halves */
.purchase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; align-items: stretch; margin-bottom: 1rem; }
.purchase-main { grid-column: 1 / -1; display: flex; gap: 0.6rem; min-width: 0; }
.purchase-main .qty-wrap { flex: 0 0 auto; height: 50px; background: #fff; }
.purchase-main .qty-btn { height: 100%; width: 40px; }
.purchase-main #qty-input { height: 100%; }
.purchase-main #add-to-cart, .purchase-main > a.btn-gold { flex: 1 1 auto; min-width: 0; height: 50px; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0 1rem; font-size: 0.95rem; white-space: nowrap; }
.purchase-row #ask-question-btn, .purchase-row #wishlist-btn { height: 46px; margin: 0; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; padding: 0 1rem; box-sizing: border-box; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.purchase-row #wishlist-btn { border: 1.5px solid var(--border); background: #fff; color: var(--ink, #0f1923); }
.purchase-row #wishlist-btn:hover, .purchase-row #wishlist-btn.wishlisted { color: #e53e3e; border-color: #e53e3e; }
.trust-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.trust-badges .trust-badge { justify-content: flex-start; }
#origin-list .filter-check { display: flex; align-items: center; gap: 0.15rem; }

/* -- Homepage: three main categories (Tiles, Tile Accessories, Flooring) */
.categories.cat-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .categories.cat-3 { grid-template-columns: 1fr; } .categories.cat-3 .cat-thumb { height: 220px; } }
/* Four category boxes on the homepage (Tiles, Tile Accessories, Flooring, Bathrooms) */
.categories.cat-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .categories.cat-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .categories.cat-4 { grid-template-columns: 1fr; } .categories.cat-4 .cat-thumb { height: 220px; } }
/* Bathrooms: trade offers brochure */
.bath-offers { margin-top: 0.5rem; }
.bath-offers-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.bath-offers-head h2 { font-size: 1.4rem; margin: 0 0 0.3rem; }
.bath-offers-head p { margin: 0; color: #5b6670; font-size: 0.9rem; }
.bath-offers-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.bath-offers-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bath-offers-page { display: block; width: 100%; max-width: 900px; border: 1px solid var(--border, #e3e6ea); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,25,35,0.06); background: #fff; }
.bath-offers-page img { display: block; width: 100%; height: auto; }
.bath-offers-actions .btn { margin: 0; }
@media (max-width: 560px) { .bath-offers-actions { width: 100%; } .bath-offers-actions .btn { flex: 1; justify-content: center; text-align: center; } }
/* Homepage: Brands we work with (scrolling logo strip) */
.brands-strip { padding: 2.2rem 0 1.6rem; border-bottom: 1px solid var(--border, #e6e9ec); }
.brands-strip h2 { text-align: center; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid, #6b7680); font-weight: 600; margin: 0 0 1.4rem; }
.brands-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.brands-track { display: flex; align-items: center; gap: 3.2rem; padding: 0 1.6rem; margin: 0; list-style: none; flex-shrink: 0; animation: brands-scroll 55s linear infinite; }
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brands-track li { flex: 0 0 auto; width: 140px; height: 56px; display: flex; align-items: center; justify-content: center; }
.brands-track img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.65; transition: filter 0.2s, opacity 0.2s; }
.brands-track a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 6px; }
.brands-track li:hover img, .brands-track a:focus-visible img { filter: none; opacity: 1; }
.brands-marquee:focus-within .brands-track { animation-play-state: paused; }
@keyframes brands-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 768px) { .brands-track { gap: 2rem; padding: 0 1rem; animation-duration: 40s; } .brands-track li { width: 110px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .brands-marquee { -webkit-mask-image: none; mask-image: none; } .brands-track { animation: none; flex-wrap: wrap; justify-content: center; flex-shrink: 1; row-gap: 1.4rem; } .brands-track[aria-hidden] { display: none; } }
