/*
Theme Name: Rockstone Luxe
Theme URI: https://example.com/rockstone-luxe
Author: Codex
Description: A cinematic, commerce-ready WordPress theme for luxury building materials, bathrooms, kitchens and interiors.
Version: 4.0.2
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: matera-luxe
*/

:root {
  --ink: #000;
  --paper: #fff;
  --ivory: #fff;
  --stone: #fff;
  --taupe: #000;
  --bronze: #000;
  --line: rgba(0, 0, 0, .18);
  --white: #fff;
  --header-height: 120px;
  --page-pad: clamp(20px, 4vw, 72px);
  --display: "Times New Roman", "Iowan Old Style", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.overlay-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { color: var(--ivory); background: var(--bronze); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto !important; width: auto; height: auto; margin: 12px; padding: 10px 14px;
  z-index: 99999; background: #fff; color: #000;
}

/* Header */
.announcement {
  min-height: 30px; display: flex; align-items: center; justify-content: center;
  padding: 6px var(--page-pad); background: var(--ink); color: var(--white);
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.announcement a { border-bottom: 1px solid rgba(255,255,255,.5); }
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(251,250,246,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); transition: transform .4s var(--ease), box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(24,20,15,.08); }
.header-main {
  min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 10px var(--page-pad) 8px;
}
.header-tools, .header-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.header-actions { justify-content: flex-end; }
.header-action, .tool-button {
  border: 0; background: none; padding: 7px 0; cursor: pointer; font-size: 10px;
  font-weight: 600; letter-spacing: .11em; text-transform: uppercase; position: relative;
}
.header-action::after, .tool-button::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px;
  background: currentColor; transition: right .35s var(--ease);
}
.header-action:hover::after, .tool-button:hover::after, .header-action:focus-visible::after, .tool-button:focus-visible::after { right: 0; }
.brand {
  font-family: var(--display); font-size: clamp(23px, 2.1vw, 32px); line-height: 1;
  letter-spacing: .22em; text-transform: uppercase; text-align: center;
}
.brand small { display: block; margin-top: 5px; font-family: var(--sans); font-size: 7px; letter-spacing: .38em; }
.icon-link { display: inline-flex; align-items: center; gap: 7px; }
.icon-link svg, .tool-button svg { width: 16px; height: 16px; stroke-width: 1.45; }
.cart-count { min-width: 16px; height: 16px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 8px; }
.mobile-toggle { display: none; border: 0; background: none; padding: 8px 0; cursor: pointer; }
.mobile-toggle span { display: block; width: 24px; height: 1px; margin: 6px 0; background: currentColor; transition: .25s; }

.primary-nav { position: relative; padding: 0 var(--page-pad); }
.primary-nav > ul { display: flex; justify-content: center; gap: clamp(12px, 1.55vw, 28px); padding: 0; margin: 0; list-style: none; }
.nav-item > a {
  display: block; padding: 10px 0 12px; border-bottom: 1px solid transparent;
  font-size: 9px; font-weight: 650; letter-spacing: .105em; text-transform: uppercase;
}
.nav-item:hover > a, .nav-item:focus-within > a { border-color: var(--ink); }
.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%; display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 34px;
  padding: 34px var(--page-pad) 40px; background: rgba(251,250,246,.985); border-top: 1px solid var(--line);
  box-shadow: 0 28px 45px rgba(24,20,15,.12); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-group h3 { margin: 0 0 13px; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.mega-group ul { padding: 0; margin: 0; list-style: none; }
.mega-group a { display: inline-block; padding: 3px 0; color: #5f594f; font-size: 11px; transition: color .2s, transform .25s var(--ease); }
.mega-group a:hover, .mega-group a:focus-visible { color: var(--ink); transform: translateX(4px); }
.mega-feature {
  min-height: 190px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)), var(--mega-image, #777) center/cover;
}
.mega-feature strong { font-family: var(--display); font-size: 24px; font-weight: 400; }
.mega-feature span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

/* Overlays */
.overlay-panel {
  position: fixed; inset: 0; z-index: 2000; display: grid; opacity: 0; visibility: hidden;
  background: rgba(14,13,11,.55); transition: opacity .3s, visibility .3s;
}
.overlay-panel.is-open { opacity: 1; visibility: visible; }
.search-overlay { place-items: start center; padding-top: min(25vh, 220px); }
.search-card { width: min(820px, calc(100% - 40px)); padding: clamp(28px,5vw,64px); background: var(--ivory); transform: translateY(-20px); transition: transform .4s var(--ease); }
.overlay-panel.is-open .search-card { transform: translateY(0); }
.overlay-close {
  position: absolute; top: 24px; right: 26px; border: 0; background: transparent; cursor: pointer;
  font-size: 30px; font-weight: 200; line-height: 1;
}
.search-card label { display: block; margin-bottom: 20px; font-family: var(--display); font-size: clamp(31px,5vw,58px); }
.search-row { display: flex; border-bottom: 1px solid var(--ink); }
.search-row input { flex: 1; min-width: 0; padding: 16px 0; border: 0; outline: 0; background: transparent; font-size: clamp(18px,2vw,28px); }
.search-row button { border: 0; background: none; padding: 0 10px; cursor: pointer; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.contact-drawer { justify-items: end; }
.contact-card {
  width: min(520px, 100%); height: 100%; overflow-y: auto; padding: clamp(50px,8vw,100px) clamp(28px,6vw,72px);
  background: var(--ivory); transform: translateX(100%); transition: transform .5s var(--ease);
}
.overlay-panel.is-open .contact-card { transform: translateX(0); }
.contact-card h2 { margin: 0 0 8px; font-family: var(--display); font-size: 46px; font-weight: 400; }
.contact-card .eyebrow { margin-top: 38px; }
.contact-list { margin: 10px 0 0; padding: 0; list-style: none; }
.contact-list li { margin: 5px 0; }
.social-row { display: flex; gap: 14px; margin-top: 16px; }
.social-row a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; transition: .25s; }
.social-row a:hover { color: #fff; background: var(--ink); }

/* Shared */
.eyebrow { margin: 0 0 13px; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.display-title { margin: 0; font-family: var(--display); font-size: clamp(42px, 7vw, 105px); font-weight: 400; line-height: .94; letter-spacing: -.035em; }
.section { padding: clamp(70px, 10vw, 150px) var(--page-pad); }
.section-dark { color: #fff; background: var(--ink); }
.section-heading { max-width: 920px; margin-bottom: clamp(36px,6vw,78px); }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(38px,5.4vw,76px); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.section-heading p { max-width: 620px; margin: 22px 0 0; color: #6e675d; }
.section-dark .section-heading p { color: rgba(255,255,255,.65); }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px;
  border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  transition: color .3s, background .3s, transform .3s var(--ease);
}
.button:hover, .button:focus-visible, .woocommerce a.button:hover, .woocommerce button.button:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.button-light { border-color: #fff; background: #fff; color: var(--ink); }
.button-light:hover { background: transparent; color: #fff; }
.text-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Homepage */
.hero { min-height: calc(100svh - var(--header-height)); position: relative; display: grid; place-items: end center; overflow: hidden; color: #fff; background: #29231d; }
.hero video, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { background: var(--hero-poster) center/cover; animation: heroDrift 18s alternate infinite ease-in-out; }
.hero video { z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.56)); }
.hero-content { position: relative; z-index: 3; max-width: 760px; padding: 90px 20px 64px; text-align: center; }
.hero-content h1 { margin: 0; font-family: var(--display); font-size: clamp(60px, 10vw, 142px); font-weight: 400; line-height: .9; letter-spacing: -.04em; }
.hero-content p:not(.eyebrow) { max-width: 590px; margin: 20px auto 28px; font-size: 13px; }
.scroll-cue { position: absolute; right: var(--page-pad); bottom: 34px; z-index: 4; display: flex; align-items: center; gap: 10px; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; transform: rotate(90deg); transform-origin: right bottom; }
.scroll-cue::after { content: ""; width: 54px; height: 1px; background: rgba(255,255,255,.7); }
@keyframes heroDrift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }

.split-feature { display: grid; grid-template-columns: 1fr 1fr; }
.feature-card { min-height: min(75vw, 760px); position: relative; overflow: hidden; color: #fff; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 35%,rgba(0,0,0,.68)); }
.feature-card:hover img { transform: scale(1.045); }
.feature-copy { position: absolute; z-index: 2; left: clamp(24px,5vw,74px); right: clamp(24px,5vw,74px); bottom: clamp(28px,6vw,72px); }
.feature-copy h2 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(38px,5vw,76px); font-weight: 400; line-height: .95; }
.feature-copy p { max-width: 490px; font-size: 12px; }

.trust-strip { padding: 18px var(--page-pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.trust-track { display: inline-flex; gap: 70px; min-width: max-content; animation: marquee 26s linear infinite; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.trust-track span::before { content: "✦"; margin-right: 70px; color: var(--bronze); }
@keyframes marquee { to { transform: translateX(-50%); } }

.editorial-banner { min-height: 76vh; display: grid; place-items: center; position: relative; color: #fff; background: var(--editorial-image) center/cover; }
.editorial-banner::after { content: ""; position: absolute; inset: 0; background: rgba(10,9,8,.48); }
.editorial-copy { position: relative; z-index: 2; max-width: 850px; padding: 50px var(--page-pad); text-align: center; }
.editorial-copy h2 { margin: 0 0 20px; font-family: var(--display); font-size: clamp(46px,7vw,96px); font-weight: 400; line-height: .96; }
.editorial-copy p { max-width: 610px; margin: 0 auto 28px; }

.collection-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2px; background: var(--ivory); }
.collection-tile { min-height: 620px; position: relative; overflow: hidden; background: #d7d0c6; }
.collection-tile.small { min-height: 309px; }
.collection-stack { display: grid; gap: 2px; }
.collection-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.collection-tile:hover img { transform: scale(1.045); filter: saturate(.85); }
.collection-label { position: absolute; inset: auto 26px 25px; padding-top: 50px; color: #fff; z-index: 2; }
.collection-tile::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.65)); }
.collection-label h3 { margin: 3px 0 5px; font-family: var(--display); font-size: clamp(31px,4vw,60px); font-weight: 400; }

.product-preview { background: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(18px,3vw,42px); }
.product-card { position: relative; }
.product-media { aspect-ratio: 4/5; position: relative; overflow: hidden; background: linear-gradient(145deg,#e7e0d6,#c9bdae); }
.product-media::before { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(80,65,48,.14); border-radius: 50% 50% 46% 54%; box-shadow: inset 0 0 80px rgba(255,255,255,.6); transform: rotate(-8deg); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-info { padding-top: 16px; }
.product-info h3 { margin: 0 40px 4px 0; font-family: var(--display); font-size: clamp(20px,2vw,29px); font-weight: 400; line-height: 1.12; }
.product-info p { margin: 0; color: #766d62; font-size: 11px; letter-spacing: .04em; }
.wishlist-toggle { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.68); border-radius: 50%; background: rgba(255,255,255,.72); cursor: pointer; backdrop-filter: blur(8px); transition: .25s; }
.wishlist-toggle:hover, .wishlist-toggle.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }

.brand-story { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 640px; }
.brand-story-media { background: var(--story-image) center/cover; }
.brand-story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(55px,9vw,140px); background: var(--ink); color: #fff; }
.brand-story-copy h2 { margin: 0 0 25px; font-family: var(--display); font-size: clamp(45px,6vw,88px); font-weight: 400; line-height: .95; }
.brand-story-copy p { max-width: 600px; color: rgba(255,255,255,.72); }

/* Page and catalogue */
.page-hero { min-height: 48vh; display: flex; align-items: end; padding: 120px var(--page-pad) 58px; color: #fff; background: var(--ink); }
.page-hero p { max-width: 610px; color: rgba(255,255,255,.65); }
.content-wrap { width: min(1160px, calc(100% - (var(--page-pad) * 2))); margin: 0 auto; padding: clamp(65px,9vw,130px) 0; }
.prose { max-width: 780px; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 400; }
.prose h2 { font-size: 44px; }
.prose a { border-bottom: 1px solid; }
.contact-page-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px,9vw,140px); }
.contact-page-grid h2 { margin-top: 0; font-family: var(--display); font-size: 44px; font-weight: 400; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-form label.full { grid-column: 1/-1; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: 0; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.favorites-empty { padding: 60px; border: 1px solid var(--line); text-align: center; }

.woocommerce .woocommerce-breadcrumb { margin-bottom: 32px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 34px 22px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img { aspect-ratio: 4/5; object-fit: cover; margin: 0 0 14px; background: var(--paper); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-family: var(--display); font-size: 23px; font-weight: 400; }
.woocommerce ul.products li.product .price { color: #6f665c; font-size: 12px; }
.woocommerce span.onsale { min-width: auto; min-height: auto; margin: 12px !important; padding: 6px 9px; border-radius: 0; background: var(--ink); font-size: 8px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.woocommerce div.product div.images img { background: var(--paper); }
.woocommerce div.product .product_title { font-family: var(--display); font-size: clamp(40px,5vw,72px); font-weight: 400; line-height: .98; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--bronze); background: var(--paper); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--bronze); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 12px; border: 1px solid var(--line); background: #fff; }
.category-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 42px; scrollbar-width: thin; }
.category-pills a { flex: 0 0 auto; padding: 8px 13px; border: 1px solid var(--line); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; transition: .25s; }
.category-pills a:hover { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { color: #fff; background: #0e0d0b; }
.footer-main { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: clamp(42px,8vw,120px); padding: clamp(75px,10vw,140px) var(--page-pad) 70px; }
.footer-intro h2 { max-width: 680px; margin: 0 0 28px; font-family: var(--display); font-size: clamp(42px,6vw,84px); font-weight: 400; line-height: .96; }
.footer-intro p { color: rgba(255,255,255,.62); }
.footer-col h3 { margin: 0 0 18px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: rgba(255,255,255,.68); font-size: 12px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.newsletter { display: flex; max-width: 560px; margin-top: 30px; border-bottom: 1px solid rgba(255,255,255,.4); }
.newsletter input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; color: #fff; }
.newsletter button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 22px var(--page-pad); border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* Responsive */
@media (max-width: 1120px) {
  .header-tools .phone, .header-actions .label { display: none; }
  .primary-nav > ul { gap: 12px; }
  .mega-menu { grid-template-columns: repeat(4,1fr); }
  .mega-feature { display: none; }
  .woocommerce ul.products { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 860px) {
  :root { --header-height: 92px; }
  .announcement { min-height: 28px; }
  .header-main { min-height: 64px; grid-template-columns: 1fr auto 1fr; }
  .mobile-toggle { display: block; }
  .header-tools .tool-button, .header-tools .phone { display: none; }
  .header-actions > :not(.cart-link) { display: none; }
  .primary-nav { position: fixed; inset: 92px 0 0; overflow-y: auto; padding: 25px var(--page-pad) 80px; background: var(--ivory); transform: translateX(-100%); transition: transform .45s var(--ease); }
  body.menu-open .primary-nav { transform: translateX(0); }
  .primary-nav > ul { display: block; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item > a { padding: 18px 0; font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .mega-menu { position: static; display: none; grid-template-columns: 1fr 1fr; padding: 0 0 24px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-item.is-expanded .mega-menu { display: grid; }
  .split-feature, .brand-story, .contact-page-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 78svh; }
  .brand-story-media { min-height: 65vw; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-tile { min-height: 72vw; }
  .collection-tile.small { min-height: 58vw; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1/-1; }
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .announcement { font-size: 8px; text-align: center; }
  .brand { font-size: 22px; }
  .hero-content { padding-bottom: 90px; }
  .scroll-cue { display: none; }
  .mega-menu { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card + .product-card { margin-top: 20px; }
  .collection-tile, .collection-tile.small { min-height: 105vw; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label.full { grid-column: auto; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* WooCommerce block styles load after themes; keep commerce controls on-brand. */
.single_add_to_cart_button,
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  box-shadow: none !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}
body.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt {
  background: var(--ink) !important;
  background-color: var(--ink) !important;
}
.single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover {
  background: transparent !important;
  color: var(--ink) !important;
}
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  border-radius: 0 !important;
}

/* Rockstone client revision: strict monochrome system */
body,
.product-preview,
.search-card,
.contact-card,
.content-wrap,
.catalogue-page,
.catalogue-shell,
.product-shell,
.woocommerce-message,
.woocommerce-info {
  color: #000;
  background: #fff;
}
::selection { color: #fff; background: #000; }
.section-heading p,
.product-info p,
.woocommerce ul.products li.product .price { color: #000; }
.product-media,
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
  background: #fff;
}
.product-media { border: 1px solid rgba(0,0,0,.16); }
.product-media::before { border-color: rgba(0,0,0,.16); box-shadow: none; }
.trust-track span::before { color: #000; }
.site-footer,
.section-dark,
.brand-story-copy,
.page-hero { background: #000; }

/* Reference-sized header typography and black-to-white hover treatment */
.site-header {
  color: #fff;
  background: #000;
  border-bottom-color: rgba(255,255,255,.28);
  backdrop-filter: none;
  transition: color .32s ease, background .32s ease, box-shadow .3s ease;
}
.site-header:hover,
.site-header:focus-within {
  color: #000;
  background: #fff;
  border-bottom-color: rgba(0,0,0,.22);
}
.header-main {
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.header-action,
.tool-button {
  font-size: 12px;
  letter-spacing: .06em;
}
.icon-link svg,
.tool-button svg { width: 18px; height: 18px; }
.brand {
  width: clamp(190px, 18vw, 285px);
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  line-height: 0;
}
.brand img {
  width: 100%;
  max-width: none;
  transform: none;
  filter: grayscale(1) brightness(1.8);
  transition: filter .32s ease;
}
.site-header:hover .brand img,
.site-header:focus-within .brand img { filter: grayscale(1) brightness(1.8) invert(1); }
.cart-count { color: #000; background: #fff; }
.site-header:hover .cart-count,
.site-header:focus-within .cart-count { color: #fff; background: #000; }
.primary-nav > ul { gap: clamp(16px, 1.65vw, 32px); }
.nav-item > a {
  padding: 12px 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .055em;
}
.nav-item:hover > a,
.nav-item:focus-within > a { border-color: currentColor; }
.announcement { font-size: 11px; }

/* Structured, decorative mega menus */
.mega-menu {
  grid-template-columns: minmax(230px,.72fr) minmax(460px,1.65fr) minmax(270px,.72fr);
  gap: clamp(28px,4vw,74px);
  padding: 42px var(--page-pad) 46px;
  color: #000;
  background: #fff;
  border-top: 1px solid #000;
  box-shadow: 0 30px 65px rgba(0,0,0,.16);
}
.mega-intro {
  min-height: 250px;
  position: relative;
  padding: 8px clamp(22px,3vw,48px) 8px 0;
  border-right: 1px solid rgba(0,0,0,.24);
  overflow: hidden;
}
.mega-intro::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -96px;
  bottom: -82px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 50%;
}
.mega-index {
  display: block;
  margin-bottom: 34px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}
.mega-intro h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(38px,3.4vw,56px);
  font-weight: 400;
  line-height: .92;
}
.mega-intro > p:not(.eyebrow) {
  max-width: 280px;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.55;
}
.mega-groups {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  align-content: start;
  gap: 34px clamp(26px,3vw,56px);
  padding: 8px 0;
}
.mega-group h3 {
  margin-bottom: 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
  font-size: 11px;
  letter-spacing: .11em;
}
.mega-group a {
  display: block;
  padding: 5px 0;
  color: #000;
  font-size: 13px;
}
.mega-feature {
  min-height: 250px;
  border: 1px solid #000;
  filter: grayscale(1);
}
.mega-feature strong { font-size: 31px; }

/* Automatic locale and currency are intentionally interface-free */
.woocs_auto_switcher,
.woocs_auto_switcher_side,
.woocs_auto_switcher_sidebars,
.woocs_side_switcher,
.woocs_currency_switcher,
.trp-language-switcher-container,
.trp-floating-switcher,
.trp-language-switcher,
[class*="woocs_auto_switcher"],
[id*="woocs_auto_switcher"] {
  display: none !important;
}

/* Reference-inspired catalogue introduction and constrained product grid */
.catalogue-hero {
  min-height: 310px;
  display: grid;
  place-items: center;
  padding: 72px var(--page-pad);
  color: #fff;
  background: #000;
  text-align: center;
}
.catalogue-hero-copy { width: min(650px,100%); }
.catalogue-hero h1 {
  margin: 3px 0 50px;
  font-size: clamp(28px,3vw,43px);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1;
  text-transform: uppercase;
}
.catalogue-hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 0 auto 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.catalogue-shell {
  width: min(1510px, calc(100% - 56px));
  margin: 0 auto;
  padding: 44px 0 110px;
}
.catalogue-toolbar {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
  gap: 28px;
  margin-bottom: 34px;
  font-size: 13px;
}
.catalogue-toolbar > span { padding-top: 8px; font-weight: 600; }
.catalogue-toolbar .category-pills {
  justify-content: center;
  margin: 0;
  padding: 0;
}
.category-pills a {
  padding: 7px 14px;
  border-color: #000;
  color: #000;
  background: #fff;
  font-size: 10px;
}
.catalogue-shell .woocommerce-result-count { margin: 0 0 26px; font-size: 13px; }
.catalogue-shell .woocommerce-ordering { margin: 0 0 26px; }
.catalogue-shell .woocommerce-ordering select {
  min-width: 190px;
  padding: 8px 30px 8px 10px;
  border: 1px solid #000;
  background: #fff;
}
.catalogue-shell .woocommerce ul.products,
.catalogue-shell ul.products {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 48px 24px;
}
.catalogue-shell .woocommerce ul.products li.product a img,
.catalogue-shell ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 14px;
}
.catalogue-shell .woocommerce ul.products li.product .woocommerce-loop-product__title,
.catalogue-shell ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.catalogue-shell .woocommerce ul.products li.product .price,
.catalogue-shell ul.products li.product .price { font-size: 12px; }
.product-shell {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(65px,8vw,110px) 0;
}
.single-product .product-shell .product { margin: 0; }
.single-product .product-shell .woocommerce-product-gallery { padding-right: clamp(20px,4vw,64px); }

@media (max-width: 1120px) {
  .mega-menu { grid-template-columns: minmax(210px,.8fr) 1.6fr; }
  .mega-feature { display: none; }
  .catalogue-shell .woocommerce ul.products,
  .catalogue-shell ul.products { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 860px) {
  .site-header,
  .site-header:hover,
  .site-header:focus-within { color: #fff; background: #000; }
  .site-header .brand img,
  .site-header:hover .brand img,
  .site-header:focus-within .brand img { filter: grayscale(1) brightness(1.8); }
  .site-header .cart-count,
  .site-header:hover .cart-count,
  .site-header:focus-within .cart-count { color: #000; background: #fff; }
  .brand { width: 180px; height: 54px; }
  .primary-nav { color: #000; background: #fff; }
  .mega-intro { display: none; }
  .mega-groups { grid-template-columns: 1fr 1fr; }
  .catalogue-toolbar { grid-template-columns: 1fr; }
  .catalogue-toolbar .category-pills { justify-content: flex-start; }
  .catalogue-shell .woocommerce ul.products,
  .catalogue-shell ul.products { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .brand { width: 150px; height: 50px; }
  .catalogue-hero { min-height: 270px; padding: 54px 22px; }
  .catalogue-hero h1 { margin-bottom: 32px; }
  .catalogue-shell { width: calc(100% - 32px); }
  .catalogue-shell .woocommerce ul.products,
  .catalogue-shell ul.products { grid-template-columns: 1fr; }
  .product-shell { width: calc(100% - 32px); }
}

/* Immersive product detail system — applies to all WooCommerce products */
.single-product .product-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}
.single-product .site-footer { margin-top: 0; }
.rockstone-product { background: #f4f1eb; }
.rockstone-product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 var(--page-pad);
  overflow: hidden;
  color: #6d6861;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.12);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rockstone-product-breadcrumb a { color: #111; }
.rockstone-product-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.rockstone-product-stage {
  display: grid;
  grid-template-columns: minmax(0,1.72fr) minmax(390px,.78fr);
  min-height: calc(100svh - 165px);
  background: #ece8e1;
}
.rockstone-product-gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  position: relative;
  overflow: hidden;
  background: #dedbd4;
}
.rockstone-thumb-rail {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100svh - 165px);
  padding: 18px 14px;
  overflow: auto;
  background: rgba(255,255,255,.93);
  scrollbar-width: thin;
}
.rockstone-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: #f3f1ec;
  cursor: pointer;
  transition: border-color .25s, transform .25s;
}
.rockstone-thumb:hover { transform: translateX(2px); }
.rockstone-thumb.is-active { border-color: #000; }
.rockstone-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rockstone-main-media {
  min-height: calc(100svh - 165px);
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px,4vw,70px);
  overflow: hidden;
  isolation: isolate;
}
.rockstone-image-wash {
  position: absolute;
  z-index: -2;
  inset: -12%;
  background-position: center;
  background-size: cover;
  filter: blur(45px) saturate(.7);
  opacity: .22;
  transform: scale(1.08);
  transition: background-image .4s ease;
}
.rockstone-main-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,.76),rgba(236,232,225,.7));
}
.rockstone-main-image {
  width: 100%;
  height: 100%;
  max-height: calc(100svh - 235px);
  object-fit: contain;
  filter: drop-shadow(0 30px 42px rgba(0,0,0,.12));
  transition: opacity .2s, transform .8s var(--ease);
}
.rockstone-main-image.is-changing { opacity: .15; transform: scale(.985); }
.rockstone-zoom {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.28);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.rockstone-zoom span { font-size: 17px; font-weight: 300; }
.rockstone-gallery-counter {
  position: absolute;
  left: 24px;
  bottom: 23px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
}
.rockstone-buy-panel {
  align-self: stretch;
  padding: clamp(34px,4vw,72px) clamp(28px,4vw,62px) 38px;
  background: #fff;
  box-shadow: -24px 0 60px rgba(0,0,0,.04);
}
.rockstone-buy-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rockstone-buy-panel .eyebrow { margin: 6px 0 24px; color: #6c665f; }
.rockstone-buy-panel h1 {
  max-width: 590px;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(29px,2.5vw,47px);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.rockstone-favorite {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: color .25s, background .25s, transform .25s;
}
.rockstone-favorite:hover { transform: scale(1.05); }
.rockstone-favorite.is-active { color: #fff; background: #000; }
.rockstone-rating { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; color: #222; font-size: 11px; }
.rockstone-rating .star-rating { margin: 0; }
.rockstone-price { margin: 26px 0 17px; font-size: 19px; font-weight: 680; }
.rockstone-intro { max-width: 520px; margin: 0 0 28px; color: #5e5a55; font-size: 13px; line-height: 1.65; }
.rockstone-finish-picker { padding: 20px 0 18px; border-top: 1px solid rgba(0,0,0,.14); }
.rockstone-picker-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; font-size: 11px; }
.rockstone-picker-label span { color: #6c665f; text-transform: uppercase; letter-spacing: .09em; }
.rockstone-picker-label strong { font-weight: 650; }
.rockstone-swatches { display: flex; flex-wrap: wrap; gap: 9px; max-height: 118px; padding: 3px; overflow: auto; }
.rockstone-swatch {
  width: 35px;
  height: 35px;
  position: relative;
  flex: 0 0 35px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  outline: 1px solid rgba(0,0,0,.24);
  background: #ddd var(--swatch-image) center/cover no-repeat;
  box-shadow: 0 0 0 1px #fff;
  cursor: pointer;
  transition: outline-color .2s, transform .2s;
}
.rockstone-swatch:hover { transform: scale(1.08); }
.rockstone-swatch.is-active { outline: 2px solid #000; outline-offset: 2px; }
.rockstone-selected-sku { display: flex; justify-content: space-between; gap: 20px; margin: 14px 0 0; color: #68625c; font-size: 10px; letter-spacing: .04em; }
.rockstone-selected-sku strong { color: #111; font-weight: 650; }
.rockstone-quantity { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(0,0,0,.14); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.rockstone-quantity > div { display: grid; grid-template-columns: 34px 42px 34px; border: 1px solid #000; }
.rockstone-quantity button,
.rockstone-quantity input { width: 100%; height: 34px; padding: 0; border: 0; background: #fff; text-align: center; }
.rockstone-quantity button { font-size: 17px; cursor: pointer; }
.rockstone-quantity input { appearance: textfield; font-size: 12px; }
.rockstone-quantity input::-webkit-inner-spin-button { display: none; }
.rockstone-primary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .25s, background .25s;
}
.rockstone-primary-cta:hover { color: #000; background: #fff; }
.rockstone-primary-cta span { font-size: 18px; font-weight: 300; }
.rockstone-cart-wrap form.cart { margin: 0 0 16px !important; display: flex; }
.rockstone-cart-wrap .quantity input { min-height: 56px; }
.rockstone-cart-wrap .single_add_to_cart_button { flex: 1; min-height: 56px; }
.rockstone-action-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 11px; border: 1px solid #000; }
.rockstone-action-grid > * {
  min-width: 0;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 15px;
  border: 0;
  background: #fff;
  color: #000;
  text-align: left;
  cursor: pointer;
}
.rockstone-action-grid > * + * { border-left: 1px solid #000; }
.rockstone-action-grid span { color: #77716b; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.rockstone-action-grid strong { font-size: 11px; letter-spacing: .04em; }
.rockstone-service-notes { display: grid; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; color: #67615b; font-size: 10px; }
.rockstone-service-notes li::before { content: "✓"; margin-right: 8px; color: #000; }
.rockstone-product-details {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px,10vw,150px);
  padding: clamp(82px,10vw,150px) var(--page-pad);
  background: #f5f2ed;
}
.rockstone-details-intro { max-width: 540px; }
.rockstone-details-intro h2,
.rockstone-reviews h2 {
  margin: 10px 0 25px;
  font-family: var(--display);
  font-size: clamp(45px,5vw,78px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.rockstone-details-intro > p:last-child { color: #5e5953; font-size: 14px; line-height: 1.75; }
.rockstone-spec-card { padding: clamp(28px,4vw,52px); background: #fff; border: 1px solid rgba(0,0,0,.13); }
.rockstone-spec-card h3 { margin: 0 0 22px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.rockstone-spec-card dl { margin: 0; }
.rockstone-spec-card dl > div { display: grid; grid-template-columns: minmax(130px,.72fr) 1fr; gap: 20px; padding: 13px 0; border-top: 1px solid rgba(0,0,0,.12); font-size: 12px; }
.rockstone-spec-card dt { color: #6d6760; }
.rockstone-spec-card dd { margin: 0; font-weight: 620; }
.rockstone-care-strip { display: grid; grid-template-columns: repeat(3,1fr); color: #fff; background: #000; }
.rockstone-care-strip > div { min-height: 260px; padding: 42px var(--page-pad); border-right: 1px solid rgba(255,255,255,.23); }
.rockstone-care-strip span { color: #aaa; font-size: 10px; }
.rockstone-care-strip h3 { margin: 48px 0 10px; font-family: var(--display); font-size: 32px; font-weight: 400; }
.rockstone-care-strip p { max-width: 300px; color: #c7c7c7; font-size: 12px; line-height: 1.6; }
.rockstone-reviews { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 100px var(--page-pad); background: #fff; }
.rockstone-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 5vw;
  visibility: hidden;
  opacity: 0;
  background: rgba(0,0,0,.92);
  transition: opacity .3s, visibility .3s;
}
.rockstone-lightbox.is-open { visibility: visible; opacity: 1; }
.rockstone-lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.rockstone-lightbox button { position: absolute; top: 20px; right: 24px; border: 0; background: none; color: #fff; font-size: 38px; cursor: pointer; }

@media (max-width: 1100px) {
  .rockstone-product-stage { grid-template-columns: 1.32fr minmax(360px,.8fr); }
  .rockstone-product-gallery { grid-template-columns: 78px minmax(0,1fr); }
  .rockstone-thumb-rail { padding-inline: 9px; }
  .rockstone-thumb { width: 58px; height: 58px; }
  .rockstone-buy-panel { padding-inline: 30px; }
}
@media (max-width: 820px) {
  .rockstone-product-stage { display: block; }
  .rockstone-product-gallery { min-height: 72svh; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .rockstone-main-media { min-height: 66svh; grid-row: 1; padding: 30px; }
  .rockstone-main-image { max-height: 58svh; }
  .rockstone-thumb-rail { grid-row: 2; flex-direction: row; max-height: none; padding: 10px 14px; }
  .rockstone-thumb { flex-basis: 58px; }
  .rockstone-buy-panel { padding: 42px var(--page-pad) 55px; }
  .rockstone-product-details { grid-template-columns: 1fr; }
  .rockstone-care-strip { grid-template-columns: 1fr; }
  .rockstone-care-strip > div { min-height: 210px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.23); }
  .rockstone-care-strip h3 { margin-top: 32px; }
  .rockstone-reviews { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 520px) {
  .rockstone-product-breadcrumb { padding-inline: 16px; }
  .rockstone-product-gallery { min-height: 63svh; }
  .rockstone-main-media { min-height: 56svh; padding: 22px 18px 45px; }
  .rockstone-main-image { max-height: 48svh; }
  .rockstone-zoom { right: 13px; bottom: 12px; }
  .rockstone-gallery-counter { left: 14px; bottom: 16px; }
  .rockstone-buy-panel { padding-inline: 20px; }
  .rockstone-action-grid { grid-template-columns: 1fr; }
  .rockstone-action-grid > * + * { border-left: 0; border-top: 1px solid #000; }
  .rockstone-product-details { padding-inline: 20px; }
  .rockstone-spec-card { padding: 24px 18px; }
  .rockstone-spec-card dl > div { grid-template-columns: 1fr; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rockstone-main-image,
  .rockstone-thumb,
  .rockstone-swatch,
  .rockstone-lightbox { transition: none !important; }
}

/* 3.1.3 — alignment and responsive finishing pass */
html,
body { max-width: 100%; }

.product-preview {
  width: 100%;
  padding-inline: max(var(--page-pad), calc((100vw - 1440px) / 2));
}
.product-preview .section-heading {
  width: min(100%, 920px);
  margin: 0 auto clamp(48px, 6vw, 84px);
  text-align: center;
}
.product-preview .section-heading h2 {
  text-wrap: balance;
  line-height: .96;
}
.product-preview .section-heading h2 span { display: block; }
.product-preview .section-heading p {
  max-width: 610px;
  margin: 24px auto 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
  text-wrap: balance;
}
.product-preview .product-grid { align-items: start; }
.product-preview .product-media { aspect-ratio: 1 / 1; }
.product-preview .product-media img { object-fit: contain; }
.product-preview .product-info { text-align: center; }
.product-preview .product-info h3 { margin-inline: auto; }

.content-wrap,
.catalogue-shell,
.product-shell { max-width: calc(100% - (var(--page-pad) * 2)); }
.page-hero > div { width: min(100%, 1440px); margin-inline: auto; }
.prose { margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose img,
.wp-block-image img { height: auto; }
.contact-page-grid > * { min-width: 0; }
.contact-page-grid h2 { font-size: clamp(38px, 5vw, 54px); line-height: 1; }

.catalogue-toolbar > * { min-width: 0; }
.catalogue-toolbar .category-pills {
  max-width: 100%;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.catalogue-toolbar .category-pills::-webkit-scrollbar { display: none; }
.catalogue-shell .woocommerce ul.products li.product,
.catalogue-shell ul.products li.product { min-width: 0; }
.catalogue-shell .woocommerce ul.products li.product a img,
.catalogue-shell ul.products li.product a img { object-fit: contain; }

.site-footer { text-align: center; }
.footer-main {
  width: min(1180px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: clamp(72px, 9vw, 128px) var(--page-pad) clamp(58px, 7vw, 90px);
}
.footer-intro {
  grid-column: 1 / -1;
  width: min(100%, 820px);
  margin: 0 auto clamp(54px, 7vw, 82px);
}
.footer-intro h2 {
  max-width: 790px;
  margin: 0 auto 24px;
  text-wrap: balance;
}
.footer-intro > p:not(.eyebrow) {
  max-width: 560px;
  margin-inline: auto;
  text-wrap: balance;
}
.newsletter { width: min(100%, 560px); margin: 30px auto 0; }
.footer-col {
  min-width: 0;
  padding: 6px clamp(24px, 5vw, 76px);
}
.footer-col + .footer-col { border-left: 1px solid rgba(255,255,255,.16); }
.footer-col li { margin: 10px 0; }
.footer-col a { display: inline-block; line-height: 1.45; }
.footer-col .social-row { justify-content: center; }
.footer-bottom {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-block: 26px;
  text-align: center;
}
.footer-legal { justify-content: center; }

@media (max-width: 860px) {
  .section { padding-block: clamp(64px, 11vw, 96px); }
  .product-preview .section-heading { margin-bottom: clamp(42px, 8vw, 64px); }
  .product-preview .section-heading h2 { font-size: clamp(44px, 8.6vw, 68px); }
  .brand-story-copy { padding-inline: var(--page-pad); }
  .page-hero { min-height: 40vh; padding-top: 104px; }
  .content-wrap { padding-block: clamp(56px, 10vw, 88px); }
  .contact-page-grid { gap: 54px; }
  .catalogue-shell { padding-bottom: 82px; }
  .catalogue-toolbar { gap: 16px; }
  .footer-intro { margin-bottom: 58px; }
}

@media (max-width: 620px) {
  .product-preview .section-heading h2 {
    font-size: clamp(40px, 12.2vw, 56px);
    letter-spacing: -.035em;
  }
  .product-preview .section-heading p { margin-top: 20px; font-size: 15px; }
  .product-preview .product-grid { gap: 46px; }
  .product-preview .product-card + .product-card { margin-top: 0; }
  .product-info h3 { margin-right: 0; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
  .footer-intro h2 { font-size: clamp(39px, 12vw, 56px); }
  .footer-col { padding: 34px 0; border-top: 1px solid rgba(255,255,255,.16); }
  .footer-col + .footer-col { border-left: 0; }
  .newsletter { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .newsletter button { padding-left: 16px; }
  .footer-legal { gap: 12px 18px; }
}

@media (max-width: 560px) {
  .catalogue-shell .woocommerce ul.products,
  .catalogue-shell ul.products {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 34px 12px;
  }
  .catalogue-shell .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .catalogue-shell ul.products li.product .woocommerce-loop-product__title { font-size: 11px; }
  .catalogue-hero p:not(.eyebrow) { font-size: 13px; }
  .contact-form { gap: 16px; }
}

@media (max-width: 360px) {
  .catalogue-shell .woocommerce ul.products,
  .catalogue-shell ul.products { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter button { justify-self: center; padding: 12px 0; }
}

/* 3.2.0 — polished sticky header and reversible mobile navigation */
.site-header {
  top: 0;
  isolation: isolate;
  color: #fff;
  background: rgba(0,0,0,.985);
  border-bottom-color: rgba(255,255,255,.18);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: none;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header:hover,
.site-header:focus-within,
.site-header.is-scrolled {
  color: #fff;
  background: rgba(0,0,0,.94);
  border-bottom-color: rgba(255,255,255,.2);
}
.site-header.is-scrolled { box-shadow: 0 14px 36px rgba(0,0,0,.22); }
.site-header .announcement {
  position: relative;
  z-index: 4;
  max-height: 36px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: max-height .35s var(--ease), min-height .35s var(--ease), padding .35s var(--ease), opacity .22s ease, border-color .22s ease;
}
.site-header.is-scrolled .announcement {
  min-height: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-color: transparent;
}
.header-main {
  position: relative;
  z-index: 4;
  transition: min-height .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled .header-main {
  min-height: 58px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.brand { transition: width .35s var(--ease), height .35s var(--ease); }
.site-header.is-scrolled .brand { width: clamp(175px,15vw,238px); height: 50px; }
.site-header:hover .brand img,
.site-header:focus-within .brand img,
.site-header.is-scrolled .brand img { filter: grayscale(1) brightness(1.8); }
.site-header:hover .cart-count,
.site-header:focus-within .cart-count,
.site-header.is-scrolled .cart-count { color: #000; background: #fff; }
.primary-nav { z-index: 3; border-top: 1px solid rgba(255,255,255,.08); }
.site-header.is-scrolled .nav-item > a { padding-top: 9px; padding-bottom: 10px; }

.mobile-nav-head,
.menu-backdrop { display: none; }

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 860px) {
  .site-header,
  .site-header:hover,
  .site-header:focus-within,
  .site-header.is-scrolled { color: #fff; background: rgba(0,0,0,.985); }
  .site-header.is-scrolled .header-main { min-height: 64px; }
  .site-header.is-scrolled .brand { width: 150px; height: 50px; }
  .mobile-toggle {
    width: 42px;
    height: 42px;
    position: relative;
    display: block;
    padding: 0;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    transition: border-color .25s, background .25s;
  }
  .mobile-toggle:hover,
  .mobile-toggle:focus-visible { border-color: #fff; background: rgba(255,255,255,.1); }
  .mobile-toggle span {
    width: 20px;
    height: 1px;
    position: absolute;
    left: 10px;
    top: 20px;
    margin: 0;
    transform-origin: center;
    transition: transform .32s var(--ease), opacity .2s;
  }
  .mobile-toggle span:first-child { transform: translateY(-4px); }
  .mobile-toggle span:last-child { transform: translateY(4px); }
  body.menu-open .mobile-toggle span:first-child { transform: rotate(45deg); }
  body.menu-open .mobile-toggle span:last-child { transform: rotate(-45deg); }

  .primary-nav {
    width: min(430px, calc(100% - 28px));
    position: fixed;
    z-index: 2;
    top: var(--mobile-drawer-top, 118px);
    right: auto;
    bottom: 0;
    left: 0;
    padding: 0 22px 64px;
    visibility: hidden;
    pointer-events: none;
    color: #000;
    background: #fff;
    border-top: 0;
    box-shadow: 24px 30px 64px rgba(0,0,0,.25);
    transform: translateX(calc(-100% - 30px));
    transition: transform .45s var(--ease), visibility .45s;
  }
  body.menu-open .primary-nav { visibility: visible; pointer-events: auto; transform: translateX(0); }
  .mobile-nav-head {
    min-height: 68px;
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.18);
  }
  .mobile-nav-title { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
  .mobile-nav-close {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .mobile-nav-close svg { width: 20px; height: 20px; stroke-width: 1.4; }
  .primary-nav > ul { padding-top: 8px; }
  .menu-backdrop {
    width: 100%;
    position: fixed;
    z-index: 1;
    top: var(--mobile-drawer-top, 118px);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    border: 0;
    background: rgba(0,0,0,.54);
    cursor: pointer;
    transition: opacity .3s ease, visibility .3s;
  }
  body.menu-open .menu-backdrop { visibility: visible; opacity: 1; }
}

/* 4.0.0 — client editorial, service and legal pages */
.client-page { overflow: hidden; background: #fff; color: #000; }
.client-page > p:empty { display: none; }
.editorial-hero { min-height: max(650px, 84svh); position: relative; display: grid; align-items: end; color: #fff; background: #000; }
.editorial-hero.compact { min-height: max(520px, 68svh); }
.editorial-hero-media, .editorial-hero-media::after { position: absolute; inset: 0; }
.editorial-hero-media::after { content: ""; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.62)); }
.editorial-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.02); }
.editorial-hero-copy { width: min(1500px, 100%); position: relative; z-index: 1; margin: 0 auto; padding: clamp(150px, 18vw, 260px) var(--page-pad) clamp(54px, 7vw, 98px); }
.editorial-hero-copy h1 { max-width: 1100px; margin: 0; font-family: var(--display); font-size: clamp(54px, 8vw, 122px); font-weight: 400; line-height: .88; letter-spacing: -.045em; text-wrap: balance; }
.editorial-intro { width: min(1120px, calc(100% - (var(--page-pad) * 2))); margin: 0 auto; padding: clamp(80px, 11vw, 160px) 0; text-align: center; }
.editorial-intro p { max-width: 1020px; margin: 0 auto 24px; font-family: var(--display); font-size: clamp(30px, 4vw, 58px); line-height: 1.08; text-wrap: balance; }
.editorial-split { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.editorial-split.reverse { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.editorial-split.reverse .editorial-media { order: 2; }
.editorial-media { min-height: 640px; margin: 0; overflow: hidden; background: #eee; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.editorial-split:hover .editorial-media img { transform: scale(1.025); }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(58px, 8vw, 132px); }
.editorial-copy h2, .editorial-table-section h2, .faq-section .section-heading h2, .inspiration-section h2, .tracking-shell h2, .form-feature h2 { margin: 0 0 28px; font-family: var(--display); font-size: clamp(46px, 6vw, 86px); font-weight: 400; line-height: .94; letter-spacing: -.035em; text-wrap: balance; }
.editorial-copy h3 { margin: 36px 0 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.editorial-copy p, .editorial-copy li { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.72; }
.editorial-copy ul { padding-left: 19px; }
.editorial-copy li + li { margin-top: 9px; }
.editorial-copy address, .faq-section address { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,.2); font-style: normal; line-height: 1.7; }
.editorial-quote { margin: 0; padding: clamp(90px, 13vw, 190px) var(--page-pad); color: #fff; background: #000; text-align: center; }
.editorial-quote p { max-width: 1160px; margin: 0 auto 34px; font-family: var(--display); font-size: clamp(42px, 6vw, 92px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.editorial-quote cite { font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.editorial-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); background: #f3f1ed; }
.editorial-columns .editorial-copy { justify-content: start; }
.editorial-columns .editorial-copy + .editorial-copy { border-left: 1px solid rgba(0,0,0,.16); }
.editorial-table-section { padding: clamp(80px, 11vw, 150px) var(--page-pad); }
.editorial-table-section > .eyebrow, .editorial-table-section > h2 { text-align: center; }
.table-scroll { width: min(1180px, 100%); margin: 46px auto 0; overflow-x: auto; }
.table-scroll table { width: 100%; min-width: 650px; border-collapse: collapse; }
.table-scroll th, .table-scroll td { padding: 22px 20px; border-bottom: 1px solid rgba(0,0,0,.2); text-align: left; vertical-align: top; }
.table-scroll th { border-top: 1px solid #000; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.table-scroll td { font-size: 14px; line-height: 1.5; }
.table-scroll small { color: #625d55; }
.faq-section { width: min(1180px, calc(100% - (var(--page-pad) * 2))); margin: 0 auto; padding: clamp(85px, 11vw, 155px) 0; }
.faq-section .section-heading { max-width: 760px; margin: 0 auto clamp(44px, 6vw, 80px); text-align: center; }
.faq-list { border-top: 1px solid #000; }
.faq-list details { border-bottom: 1px solid rgba(0,0,0,.25); }
.faq-list summary { position: relative; padding: 26px 54px 26px 0; font-family: var(--display); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 50%; right: 8px; transform: translateY(-50%); font-family: var(--body); font-size: 25px; font-weight: 300; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 830px; margin: 0; padding: 0 50px 30px 0; font-size: 15px; line-height: 1.7; }
.guarantee-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid #000; border-left: 1px solid #000; }
.guarantee-grid article { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; border-right: 1px solid #000; border-bottom: 1px solid #000; }
.guarantee-grid h3 { margin: 0; font-family: var(--display); font-size: clamp(28px, 3vw, 44px); font-weight: 400; }
.guarantee-grid p { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.form-feature, .tracking-shell { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(50px, 8vw, 130px); padding: clamp(85px, 11vw, 160px) var(--page-pad); background: #f3f1ed; }
.form-feature .editorial-copy { justify-content: flex-start; padding: 0; }
.editorial-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.editorial-form label, .tracking-form label { min-width: 0; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.editorial-form label.full { grid-column: 1/-1; }
.editorial-form input, .editorial-form textarea, .editorial-form select, .tracking-form input { width: 100%; margin-top: 8px; padding: 14px 0; border: 0; border-bottom: 1px solid #000; border-radius: 0; outline: 0; background: transparent; color: #000; font: inherit; }
.editorial-form textarea { min-height: 130px; resize: vertical; }
.form-notice, .tracking-result { margin: 0 0 24px; padding: 18px 20px; border: 1px solid #000; }
.form-notice.success, .tracking-result.success { color: #fff; background: #000; }
.tracking-form { display: grid; gap: 22px; padding: clamp(32px,5vw,62px); background: #fff; }
.tracking-form .button { justify-self: start; }
.tracking-help { margin-top: 28px; }
.tracking-result h3 { margin: 6px 0 12px; font-family: var(--display); font-size: 42px; font-weight: 400; }
.tracking-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.tracking-steps li { padding-top: 12px; border-top: 2px solid rgba(255,255,255,.25); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.tracking-steps li.done { border-color: #fff; }
.inspiration-section { padding: clamp(85px, 11vw, 150px) var(--page-pad); }
.inspiration-section .section-heading { max-width: 820px; margin-bottom: 50px; }
.inspiration-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.inspiration-grid figure { margin: 0; }
.inspiration-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.inspiration-grid figcaption { padding-top: 12px; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.legal-page { max-width: 900px; margin-inline: auto; }
.legal-page h2 { margin-top: 0; font-size: clamp(42px,6vw,72px); line-height: .98; }
.legal-page h3 { margin: 50px 0 15px; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.75; }
.footer-address { max-width: 320px; margin: 18px auto 0 !important; color: rgba(255,255,255,.52); font-size: 11px; line-height: 1.6; }

@media (max-width: 1000px) {
  .editorial-hero { min-height: 72svh; }
  .editorial-split, .editorial-split.reverse { min-height: 0; grid-template-columns: 1fr; }
  .editorial-split.reverse .editorial-media { order: 0; }
  .editorial-media { min-height: min(72vw, 680px); }
  .editorial-copy { padding: clamp(56px, 10vw, 90px) var(--page-pad); }
  .guarantee-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .inspiration-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .editorial-hero, .editorial-hero.compact { min-height: 68svh; }
  .editorial-hero-copy { padding-top: 170px; }
  .editorial-hero-copy h1 { font-size: clamp(46px, 14vw, 72px); }
  .editorial-intro { padding-block: 70px; }
  .editorial-intro p { font-size: clamp(28px,8vw,42px); }
  .editorial-media { min-height: 86vw; }
  .editorial-copy h2, .editorial-table-section h2, .faq-section .section-heading h2, .inspiration-section h2, .tracking-shell h2, .form-feature h2 { font-size: clamp(42px, 11vw, 62px); }
  .editorial-columns, .form-feature, .tracking-shell { grid-template-columns: 1fr; }
  .editorial-columns .editorial-copy + .editorial-copy { border-top: 1px solid rgba(0,0,0,.16); border-left: 0; }
  .guarantee-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guarantee-grid article { min-height: 180px; padding: 24px; }
  .form-feature, .tracking-shell { gap: 46px; }
  .editorial-form { grid-template-columns: 1fr; }
  .editorial-form label.full { grid-column: auto; }
  .tracking-steps { grid-template-columns: 1fr; }
  .footer-address { max-width: 280px; }
}

@media (max-width: 460px) {
  .guarantee-grid { grid-template-columns: 1fr; }
  .inspiration-grid { grid-template-columns: 1fr; }
  .faq-list summary { padding-right: 42px; font-size: 25px; }
  .table-scroll { margin-top: 30px; }
}
