/* Primar V3 — editorial natural-stone direction */
:root {
  --color-primary-dark: #19352f;
  --color-secondary-dark: #254d43;
  --color-accent-gold: #9d4f2d;
  --color-light-gold: #d2b08e;
  --color-bg-stone: #f2efe8;
  --color-bg-white: #fffdf8;
  --color-text-main: #263630;
  --color-text-light: #53615b;
  --color-text-muted: #68756f;
  --color-border-subtle: rgba(25, 53, 47, 0.14);
  --font-headings: Iowan Old Style, Baskerville, Georgia, serif;
  --font-body: Avenir Next, Avenir, Helvetica Neue, Arial, sans-serif;
  --container-width: 1320px;
  --shadow-sm: 0 10px 30px rgba(25, 53, 47, 0.06);
  --shadow-md: 0 18px 50px rgba(25, 53, 47, 0.10);
  --shadow-lg: 0 30px 80px rgba(25, 53, 47, 0.16);
  --transition-smooth: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* SVG Icon Rendering Fixes */
.icon-inline[fill="none"],
svg[fill="none"] {
  fill: none !important;
}
.icon-inline[stroke],
svg[stroke] {
  stroke: currentColor;
}

body {
  border-top: 0;
  background: var(--color-bg-stone);
  background-image: none;
  color: var(--color-text-main);
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.not-found {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}
.not-found h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: .95; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.9), transparent 28%),
    linear-gradient(115deg, transparent 0 64%, rgba(25,53,47,.025) 64% 64.2%, transparent 64.2%);
}

.container { padding-left: 32px; padding-right: 32px; }
section { padding: 7rem 0; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-dark);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.section-header { max-width: 760px; margin-bottom: 4.5rem; }
.section-header h2, .home-about-content h2 { font-size: clamp(2.6rem, 4.3vw, 4.8rem); line-height: .98; }
.section-subtitle {
  color: var(--color-accent-gold);
  font-size: .72rem;
  letter-spacing: .28em;
  margin-bottom: 1.2rem;
}
.gold-divider { width: 34px; height: 1px; margin-top: 1.6rem; background: var(--color-accent-gold); }

.btn {
  min-height: 48px;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  letter-spacing: .13em;
  font-size: .72rem;
}
.btn-primary { background: var(--color-primary-dark); color: #fffdf8; border-color: var(--color-primary-dark); }
.btn-primary:hover { background: var(--color-accent-gold); border-color: var(--color-accent-gold); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: rgba(25,53,47,.35); }
.btn-outline:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn-light { background: transparent; color: var(--color-primary-dark); border-color: rgba(25,53,47,.28); }
.btn-light:hover { background: #fff; color: var(--color-primary-dark); border-color: #fff; }

/* Compact, quiet navigation */
.top-bar {
  padding: 8px 0;
  background: var(--color-primary-dark);
  border: 0;
  color: rgba(255,255,255,.72);
}
.top-bar-left a, .top-bar-left span { color: rgba(255,255,255,.72); }
.top-bar-left a:hover, .lang-btn:hover, .lang-btn.active { color: #f1c6a6; }
.lang-divider { background: rgba(255,255,255,.2); }
.lang-btn { color: rgba(255,255,255,.68); min-width: 44px; min-height: 36px; justify-content: center; }

.header-top-row {
  padding: 15px 0;
  background: rgba(255,253,248,.94);
  border-bottom: 1px solid var(--color-border-subtle);
}
.header-top-row .container { gap: 46px; }
.logo img { height: 54px; }
.search-container { max-width: 620px; }
.search-input {
  padding: 13px 54px 13px 20px;
  border: 0;
  border-bottom: 1px solid rgba(25,53,47,.32);
  background: transparent;
}
.search-input:focus { border-color: var(--color-accent-gold); background: transparent; box-shadow: none; }
.search-results-dropdown { border: 1px solid var(--color-border-subtle); border-radius: 0 0 18px 18px; overflow-y: auto; }
.search-result-item-visual { border-radius: 10px; }
.search-result-item { width: 100%; border: 0; text-align: left; font-family: inherit; }

.header-nav-row {
  background: rgba(255,253,248,.9);
  border-bottom: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(18px);
}
.header-nav-row.scrolled { background: rgba(255,253,248,.93); box-shadow: 0 12px 34px rgba(25,53,47,.08); }
.collections-btn {
  background: transparent;
  color: var(--color-primary-dark);
  border-left: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  padding: 18px 24px;
}
.collections-btn:hover { background: var(--color-primary-dark); color: #fff; }
.collections-dropdown { border: 0; border-top: 2px solid var(--color-accent-gold); box-shadow: var(--shadow-md); }
.nav-desktop { gap: 34px; }
.nav-desktop a { padding: 19px 0; font-size: .72rem; letter-spacing: .13em; color: #53625c; }
.nav-desktop a::after { height: 1px; background: var(--color-accent-gold); }
.nav-desktop .nav-cta { border-radius: 999px; padding: 9px 18px; margin-left: 0; color: var(--color-primary-dark); }
.nav-desktop .nav-cta:hover { background: var(--color-primary-dark); color: #fff; border-color: var(--color-primary-dark); }

.header-cart-btn { border-radius: 50% !important; color: var(--color-primary-dark) !important; }
.cart-count { background: var(--color-accent-gold) !important; }
.nav-mobile { background: #fffdf8; z-index: 1050; height: 100vh; height: 100dvh; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.nav-mobile .nav-cta { background: var(--color-primary-dark); color: #fff !important; border-radius: 999px; }
.mobile-lang-btn { border-radius: 999px; }
.mobile-lang-btn.active { background: var(--color-primary-dark); }

/* Home hero: asymmetrical editorial split */
.hero-slider-wrapper { padding: 0; }
.hero-slider-wrapper > .container { max-width: none; padding: 0; }
.hero-slider {
  height: min(750px, 76vh);
  min-height: 620px;
  border-radius: 0;
  box-shadow: none;
  background: #e8e2d7;
}
.hero-slide { background: #e8e2d7; overflow: hidden; }
.hero-slide:not(.active) { visibility: hidden; pointer-events: none; }
.hero-slide::before {
  content: '';
  position: absolute;
  width: 44vw;
  height: 44vw;
  min-width: 560px;
  min-height: 560px;
  left: -18vw;
  bottom: -34vw;
  border: 1px solid rgba(25,53,47,.12);
  border-radius: 50%;
}
.hero-slide-bg {
  left: auto;
  right: 0;
  width: 48%;
  height: 100%;
  filter: none;
  transform: scale(1.08);
  background-size: cover;
  background-position: center;
}
.hero-slide:nth-of-type(1) .hero-slide-bg {
  background-image: url('../images/3x3-checkerboard-b-v-dolomite-teos-green/3x3-checkerboard-b-v-dolomite-teos-green-01.jpg') !important;
}
.hero-slide:nth-of-type(2) .hero-slide-bg {
  background-image: url('../images/18x18-cascade-white-travertine/18x18-cascade-white-travertine-01.jpg') !important;
}
.hero-slide:nth-of-type(3) .hero-slide-bg {
  background-image: url('../images/signature-seagrass-chevron/signature-seagrass-chevron-01.jpg') !important;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-slide-content {
  max-width: 650px;
  padding: 0;
  color: var(--color-text-main);
}
.hero-slide-content::before {
  content: 'PRIMAR  /  NATURAL STONE';
  display: block;
  margin-bottom: 2rem;
  color: var(--color-accent-gold);
  font: 600 .68rem/1 var(--font-body);
  letter-spacing: .28em;
}
.hero-slide-content h1,
.hero-slide-content h2 {
  max-width: 630px;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
  font-size: clamp(3.4rem, 5.5vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.05em;
}
.hero-slide-content h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s ease-out .4s;
}
.hero-slide.active .hero-slide-content h1 { opacity: 1; transform: translateY(0); }
.hero-slide-content p { max-width: 470px; color: #5d6863; font-size: 1.05rem; line-height: 1.8; }
.hero-slide-content .hero-actions { gap: 12px; }
.hero-dots { left: max(32px, calc((100vw - 1320px)/2 + 32px)); bottom: 44px; transform: none; }
.hero-dot { width: 36px; min-height: 12px; padding: 16px 0; background: rgba(25,53,47,.25); background-clip: content-box; box-sizing: content-box; }
.hero-dot.active { width: 62px; background: var(--color-primary-dark); }

/* Content blocks */
.home-about { background: #fffdf8; }
.home-about-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 140px); }
.home-about-visual { padding: 0; border: 0; box-shadow: none; background: transparent; }
.home-about-img {
  aspect-ratio: 4/5;
  background: #d8d0c4 url('../images/scarpa-taurus-black/scarpa-taurus-black-01.jpg') center/cover no-repeat;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(25, 53, 47, 0.08);
}
.home-about-img::before { display: none; }
.home-about-img::after {
  content: 'EST. 2005';
  position: absolute;
  left: 26px;
  bottom: 24px;
  padding: 10px 14px;
  background: #fffdf8;
  color: var(--color-primary-dark);
  font: 600 .65rem/1 var(--font-body);
  letter-spacing: .2em;
}
.home-about-img-decor { display: none; }
.home-about-content p { max-width: 680px; color: #66736d; font-size: 1.02rem; line-height: 1.85; }

/* ─── Categories Showcase (Premium Asymmetric Grid) ─── */
.featured-categories {
  background: var(--color-primary-dark) !important;
  border: 0 !important;
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.featured-categories .section-header h2 { color: #fffdf8; }
.featured-categories .section-subtitle { color: var(--color-accent-gold); }
.featured-categories .gold-divider { background: var(--color-accent-gold); }
.section-header-desc {
  max-width: 560px;
  margin: 1.2rem auto 0;
  color: rgba(255,255,255,.55);
  font-size: 1.02rem;
  line-height: 1.7;
  text-align: center;
}

/* Showcase Grid: hero left, 3 stack right */
.categories-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  min-height: 560px;
}
.cat-showcase-hero {
  grid-row: 1 / -1; /* spans all 3 rows */
}

/* Individual Showcase Card */
.cat-showcase-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  min-height: 170px;
}

/* Background Image Layer */
.cat-showcase-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.cat-showcase-card:hover .cat-showcase-bg {
  transform: scale(1.08);
}

/* Dark Gradient Overlay */
.cat-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,40,34,0.05) 0%, rgba(16,40,34,0.5) 50%, rgba(10,26,22,0.88) 100%);
  transition: background 0.5s ease;
  z-index: 1;
}
.cat-showcase-card:hover .cat-showcase-overlay {
  background: linear-gradient(180deg, rgba(16,40,34,0.02) 0%, rgba(16,40,34,0.35) 40%, rgba(10,26,22,0.82) 100%);
}

/* Shimmer Light Sweep on Hover */
.cat-showcase-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.08) 55%, transparent 60%);
  background-size: 250% 100%;
  background-position: 100% 0;
  transition: background-position 0s;
  pointer-events: none;
}
.cat-showcase-card:hover .cat-showcase-shimmer {
  background-position: -100% 0;
  transition: background-position 0.9s ease;
}

/* Content Layer */
.cat-showcase-content {
  position: relative;
  z-index: 3;
  padding: 28px 28px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-showcase-hero .cat-showcase-content {
  padding: 40px 36px 34px;
  gap: 10px;
}

/* Badge */
.cat-showcase-badge {
  display: inline-block;
  width: fit-content;
  padding: 5px 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

/* Title */
.cat-showcase-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fffdf8;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cat-showcase-hero .cat-showcase-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

/* Description */
.cat-showcase-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
  max-width: 400px;
}
.cat-showcase-hero .cat-showcase-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}

/* CTA Link */
.cat-showcase-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s;
}
.cat-showcase-card:hover .cat-showcase-cta {
  opacity: 1;
  transform: translateY(0);
}
.cat-showcase-hero .cat-showcase-cta {
  font-size: 0.9rem;
  margin-top: 10px;
}
.cat-showcase-cta svg {
  transition: transform 0.3s ease;
}
.cat-showcase-card:hover .cat-showcase-cta svg {
  transform: translateX(4px);
}

.why-us { background: var(--color-primary-dark); color: rgba(255,255,255,.72); }
.why-us .section-header h2 { color: #fffdf8; }
.why-us .section-subtitle { color: #efb88f; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border: 0; background: transparent; box-shadow: none; }
.why-card { padding: 46px 34px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,0.03); border-radius: 16px; transition: var(--transition-smooth); display: flex; flex-direction: column; gap: 15px; }
.why-card h3 { color: #fffdf8; font-size: 1.45rem; margin-top: 5px; }
.why-card p { color: rgba(255,255,255,.6); margin: 0; }
.why-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,0.22); transform: translateY(-5px); }
.why-icon, .value-icon-svg { color: #d78657; stroke: #d78657; }

.cta-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, rgba(16, 40, 34, 0.93) 0%, rgba(25, 53, 47, 0.96) 100%), url('../assets/white_marble_texture.png') center/cover repeat;
  background-blend-mode: overlay;
  color: #fff;
  border: 0;
}
.cta-section::before { display: none; }
.cta-content {
  max-width: 860px;
  background: rgba(16, 40, 34, 0.88); /* Premium deep dark green glassmorphism */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(210, 176, 142, 0.35); /* Elegant gold accent border */
  padding: 5rem 4rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  margin: 0 auto;
}
.cta-content h2 { color: #ffffff; font-size: clamp(2.6rem, 4.5vw, 4.8rem); line-height: 1.05; margin-bottom: 1.5rem; }
.cta-content p { color: #e2e8f0; font-size: 1.1rem; line-height: 1.7; margin-bottom: 2.5rem; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.cta-section .btn-primary { background: #fffdf8; color: var(--color-primary-dark); border-color: #fffdf8; }
.cta-section .btn-primary:hover { background: var(--color-accent-gold); color: #fff; border-color: var(--color-accent-gold); }

/* Inner-page mastheads */
.page-hero {
  position: relative;
  min-height: 430px;
  padding: 7rem 0;
  display: flex;
  align-items: flex-end;
  justify-content: center; /* Centers .container horizontally in flex context */
  overflow: hidden;
  background: var(--color-primary-dark);
  text-align: left !important;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  opacity: .78;
  background-size: cover;
  background-position: center;
  mix-blend-mode: luminosity;
}
.page-products .page-hero::before { background-image: url('../images/scarpa-taurus-black/scarpa-taurus-black-01.jpg'); }
.page-about .page-hero::before { background-image: url('../images/moonrise-b-v-dolomite-milas-white/moonrise-b-v-dolomite-milas-white-01.jpg'); background-color: #d9d5cc; }
.page-contact .page-hero::before { background-image: url('../images/signature-seagrass-chevron/signature-seagrass-chevron-01.jpg'); }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-primary-dark) 0 48%, rgba(25,53,47,.88) 68%, rgba(25,53,47,.25));
}
.page-hero .container { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { max-width: 760px; color: #fffdf8; font-size: clamp(3.8rem, 7vw, 7.6rem); line-height: .95; text-align: left !important; margin: 0 0 1rem 0 !important; }
.page-hero p { max-width: 570px; color: rgba(255,255,255,.68); font-size: 1.05rem; text-align: left !important; margin: 0 0 2rem 0 !important; }
.breadcrumb { display: flex; justify-content: flex-start; gap: 8px; color: rgba(255,255,255,.54); }
.breadcrumb a:hover { color: #f1c6a6; }

/* About */
.about-story { background: #fffdf8; }
.about-story-grid { grid-template-columns: 1.05fr .95fr; gap: 9vw; }
.about-story-content h2 { font-size: clamp(3rem, 5vw, 5.4rem); line-height: .95; }
.about-story-content p { font-size: 1.03rem; line-height: 1.9; }
.about-story-image { padding: 0; border: 0; }
.about-story-image-inner {
  aspect-ratio: 4/5;
  background: #d7d0c6 url('../images/3x3-checkerboard-b-v-dolomite-teos-green/3x3-checkerboard-b-v-dolomite-teos-green-01.jpg') center/cover no-repeat;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(25, 53, 47, 0.08);
  align-items: flex-end;
  justify-content: flex-start;
  padding: 26px;
}
.about-story-image-inner::before { display: none; }
.about-story-image-inner span { background: #fffdf8; padding: 12px 16px; color: var(--color-primary-dark) !important; font: 600 .68rem/1 var(--font-body) !important; letter-spacing: .18em !important; }
.mission-vision { background: #e7e1d6 !important; border: 0 !important; }
.mission-card, .vision-card, .value-card { border: 0; border-radius: 18px; box-shadow: none; }
.mission-card, .vision-card { padding: 54px; }
.mission-card h3, .vision-card h3 { font-size: 2rem; }
.values { background: #fffdf8; }
.value-card { padding: 42px 34px; background: #f2efe8; }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.stats-section { background: var(--color-primary-dark); border: 0; }
.stat-number { color: #fffdf8; font-size: clamp(3rem, 5vw, 5rem); }
.stat-label { color: rgba(255,255,255,.58); }
.timeline-container::before { background: rgba(25,53,47,.18); }
.timeline-dot { background: var(--color-accent-gold); border-color: var(--color-bg-stone); }
.timeline-year { color: var(--color-accent-gold); }

/* Catalog */
.products-layout { padding-top: 5rem; overflow: hidden; }
.products-layout-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 46px; align-items: start; }
.sidebar-filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 110px;
}
.sidebar-collections-menu {
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-menu-header { background: var(--color-primary-dark); color: #fff; padding: 20px; }
.sidebar-menu-item button { padding: 13px 20px; }
.sidebar-menu-item.active button { color: var(--color-accent-gold); background: rgba(182,107,63,.08); }

.sidebar-widget {
  background: #fffdf8;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border: 1px solid var(--color-border-subtle);
}
.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.sidebar-search-box {
  position: relative;
}
.sidebar-search-box input {
  width: 100%;
  padding: 10px 32px 10px 14px;
  border: 1px solid rgba(25, 53, 47, 0.22);
  border-radius: 8px;
  font-size: 0.85rem;
  background: transparent;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}
.sidebar-search-box input:focus {
  border-color: var(--color-accent-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(157, 79, 45, 0.1);
}
.sidebar-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-light);
  line-height: 1;
  padding: 0;
}
.sidebar-sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 0;
}
.sidebar-sizes-list::-webkit-scrollbar {
  display: none;
}
.size-filter-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  background: #f2efe8;
  border: 1px solid rgba(25, 53, 47, 0.08);
  border-radius: 999px;
  color: var(--color-text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.size-filter-item:hover {
  background: rgba(182, 107, 63, 0.1);
  color: var(--color-primary-dark);
  border-color: rgba(182, 107, 63, 0.2);
}
.size-filter-item.active {
  background: var(--color-primary-dark);
  color: #fffdf8;
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(16, 40, 34, 0.15);
}
.size-filter-item input[type="radio"] {
  display: none;
}
.products-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; min-width: 0; }
.product-card {
  border: 0;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 1px 0 rgba(25,53,47,.08);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.product-visual { aspect-ratio: 1/1; background: #eeebe4; }
.product-visual img { padding: 8px; object-fit: contain; mix-blend-mode: multiply; }
.product-card:hover .product-visual img { transform: scale(1.035); }
.product-badge { border-radius: 999px; background: rgba(255,253,248,.88); color: var(--color-primary-dark); backdrop-filter: blur(8px); }
.product-info { padding: 20px; }
.product-title { font-size: 1.15rem; line-height: 1.25; }
.product-card-price { border-radius: 999px; background: rgba(182,107,63,.1); color: var(--color-accent-gold); }
.product-type-list { color: var(--color-text-muted); }
.product-card .btn { min-height: 42px; }

.catalog-actions {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
}
.catalog-status { color: var(--color-text-light); font-size: .9rem; }
#load-more-products[hidden] { display: none; }

.modal-content-wrapper, .checkout-modal-content, .cart-drawer { background: #fffdf8; border: 0; border-radius: 18px; }
.modal-content-wrapper { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.modal-visual-pane { background: #ece8df; }
.modal-main-image { mix-blend-mode: multiply; }
.gallery-thumb { border-radius: 10px; }
.cart-overlay, .product-modal, .checkout-overlay { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Contact */
.contact-section { background: #fffdf8; }
.contact-grid { grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-info-panel { gap: 0; border-top: 1px solid var(--color-border-subtle); }
.contact-card-v2 {
  padding: 28px 4px;
  border: 0;
  border-bottom: 1px solid var(--color-border-subtle);
  background: transparent;
  box-shadow: none;
}
.contact-card-v2:hover { transform: none; box-shadow: none; padding-left: 10px; }
.contact-card-icon { width: 54px; height: 54px; border-radius: 50%; background: #f2efe8; }
.contact-form-pane { padding: 48px; border: 0; border-radius: 18px; background: #f2efe8; box-shadow: none; }
.contact-form-pane h3 { font-size: 2.3rem; }
.form-control { padding: 14px 16px; border: 1px solid rgba(25,53,47,.18); border-radius: 10px; background: #fffdf8; }
.form-control:focus { border-color: var(--color-accent-gold); box-shadow: 0 0 0 3px rgba(182,107,63,.12); }
.map-section { background: #fffdf8; padding-bottom: 7rem; }
.map-container { height: 420px; border: 0; border-radius: 18px; background: var(--color-primary-dark); }
.map-bg-grid { background-image: radial-gradient(rgba(255,255,255,.28) 1px, transparent 1px); opacity: .45; }
.map-placeholder-content h3 { color: #fff; }
.map-placeholder-content p { color: rgba(255,255,255,.62); }

/* Footer */
/* Footer (Light Theme with White Marble Pattern) */
.footer {
  padding: 6rem 0 2rem;
  background-color: var(--color-bg-stone);
  background-image: linear-gradient(rgba(252, 251, 250, 0.85), rgba(252, 251, 250, 0.85)), url('../assets/white_marble_texture.png');
  background-repeat: repeat;
  background-size: 800px 800px;
  color: var(--color-text-main);
  border-top: 1px solid var(--color-border-subtle);
}
.footer-grid { gap: 60px; }
.footer-logo { opacity: .92; height: 56px; filter: none !important; }
.footer-desc, .footer-col ul a, .footer-contact-item p { color: var(--color-text-light); }
.footer-col h4 { color: var(--color-primary-dark); font: 600 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.footer-col h4::after { background: var(--color-accent-gold); height: 1px; }
.footer-social a { border-color: var(--color-border-subtle); }
.footer-social .social-icon-svg { color: var(--color-primary-dark); }
.footer-bottom { border-top: 1px solid var(--color-border-subtle); color: var(--color-text-muted); }

.whatsapp-float { width: 50px; height: 50px; box-shadow: 0 10px 30px rgba(37,211,102,.22); }
.scroll-top { background: #fffdf8; border-color: var(--color-border-subtle); color: var(--color-primary-dark); }

@media (max-width: 1100px) {
  .hero-slide-content { padding-right: 5vw; }
  .hero-slide::after { display: none; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 960px) and (min-width: 769px) {
  .header-nav-row { display: none !important; }
  .menu-toggle { display: flex; }
  .header-right-widgets { display: flex; align-items: center; gap: 18px; }
  .header-top-row { position: sticky; top: 0; z-index: 1010; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding-left: 20px; padding-right: 20px; }
  section { padding: 4.5rem 0; }
  .header-top-row { background: rgba(255,253,248,.97) !important; }
  .header-top-row .container { gap: 10px !important; }
  .logo img { height: 42px; }
  .search-input { background: #f2efe8; border: 0; border-radius: 999px; }
  .search-btn { right: 4px; }

  .hero-slider { height: 680px; min-height: 680px; }
  .hero-slide { align-items: flex-end; background: var(--color-primary-dark); }
  .hero-slide::before { display: none; }
  .hero-slide-bg { inset: 0; width: 100%; height: 100%; }
  .hero-slide::after {
    display: block;
    inset: 0;
    width: auto;
    height: auto;
    background: linear-gradient(180deg, rgba(10,28,24,.08) 10%, rgba(10,28,24,.88) 74%, #102822 100%);
  }
  .hero-slide-content { padding: 0 24px 145px; color: #fff; }
  .hero-slide-content::before { color: #f1c6a6; margin-bottom: 1.2rem; }
  .hero-slide-content h1,
  .hero-slide-content h2 { color: #fff; font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-slide-content p { color: rgba(255,255,255,.74); font-size: .95rem; }
  .hero-slide-content .hero-actions { flex-direction: row; }
  .hero-slide-content .btn-primary { background: #fffdf8; color: var(--color-primary-dark); border-color: #fffdf8; }
  .hero-slide-content .btn-light { color: #fff; border-color: rgba(255,255,255,.5); }
  .hero-dots { left: 24px; bottom: 42px; }

  .home-about-grid, .about-story-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .home-about-img { aspect-ratio: 4/3 !important; clip-path: none !important; border-radius: 20px !important; }
  .why-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .why-card { border: 1px solid rgba(255,255,255,.08) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; border-right: 1px solid rgba(255,255,255,.08) !important; background: rgba(255,255,255,0.03) !important; border-radius: 16px !important; }
  .categories-showcase { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: auto; gap: 12px; }
  .cat-showcase-hero { grid-row: auto; min-height: 300px; }
  .cat-showcase-card { min-height: 200px; }
  .page-hero { min-height: 370px; padding: 5rem 0; }
  .page-hero::before { width: 100%; opacity: .42; }
  .page-hero::after { background: linear-gradient(90deg, rgba(25,53,47,.96), rgba(25,53,47,.62)); }
  .page-hero h1 { font-size: clamp(3.4rem, 16vw, 5.5rem); }

  /* ── Mobile Products Layout ── */
  .products-layout { padding-top: 3rem; overflow: hidden; }
  .products-layout-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }
  .sidebar-filters-wrapper {
    position: static !important;
    gap: 12px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }
  /* Sidebar widgets: search + sizes */
  .sidebar-widget {
    background: #fffdf8 !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    border: 1px solid var(--color-border-subtle) !important;
    padding: 16px !important;
  }
  .sidebar-widget .widget-title {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .sidebar-search-box input {
    padding: 10px 32px 10px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
  }
  .sidebar-sizes-list {
    gap: 6px;
  }
  .size-filter-item {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
  /* Collections sidebar → horizontal pills on mobile */
  .sidebar-collections-menu {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .sidebar-menu-header {
    display: none !important;
  }
  .sidebar-menu-list {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-menu-list::-webkit-scrollbar {
    display: none;
  }
  .sidebar-menu-item {
    flex: 0 0 auto;
  }
  .sidebar-menu-item button {
    padding: 8px 16px !important;
    background: #fffdf8 !important;
    border: 1px solid var(--color-border-subtle) !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    border-bottom: none !important;
    border-left: none !important;
  }
  .sidebar-menu-item button::after {
    display: none !important;
  }
  .sidebar-menu-item.active button {
    background: var(--color-primary-dark) !important;
    color: #fff !important;
    border-color: var(--color-primary-dark) !important;
  }
  .sidebar-menu-item button:hover {
    padding-left: 16px !important;
  }
  /* Products grid & catalog actions */
  .catalog-actions { grid-column: 1 !important; }
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden;
  }
  .product-card {
    border-radius: 12px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .product-info {
    padding: 12px !important;
    min-width: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .product-title {
    font-size: 1rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .product-visual { aspect-ratio: 1/1; }
  .product-visual img {
    padding: 4px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .product-badge { font-size: 0.6rem !important; padding: 2px 6px !important; top: 8px !important; left: 8px !important; }
  .modal-content-wrapper { max-height: calc(100dvh - 20px); }
  .contact-form-pane { padding: 28px 22px; }
  .map-container { height: 330px; }
}

@media (max-width: 480px) {
  .hero-slide-content .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-slider { height: 720px; min-height: 720px; }
  .why-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .why-card { border-right: 1px solid rgba(255,255,255,.08) !important; }
  .categories-showcase { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; gap: 12px; }
  .cat-showcase-hero { grid-row: auto; min-height: 280px; }
  .cat-showcase-card { min-height: 200px; border-radius: 14px; }
  .mission-card, .vision-card { padding: 36px 26px; }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .product-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .product-info {
    padding: 10px !important;
    gap: 6px !important;
    min-width: 0 !important;
  }
  .product-title {
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .product-card .view-details-btn {
    letter-spacing: .04em;
    font-size: 0.68rem !important;
    padding: 6px 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-type-list {
    font-size: 0.68rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .product-card-price {
    font-size: 0.68rem !important;
    padding: 2px 5px !important;
    white-space: nowrap;
  }
  .product-info-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .sidebar-widget { padding: 14px !important; }
  .size-filter-item { font-size: 0.68rem; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Scroll Animation System */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.reveal-delay-100 { transition-delay: 100ms !important; }
.reveal-delay-200 { transition-delay: 200ms !important; }
.reveal-delay-300 { transition-delay: 300ms !important; }
.reveal-delay-400 { transition-delay: 400ms !important; }
.reveal-delay-500 { transition-delay: 500ms !important; }

/* Luxury Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-stone);
  background-image: linear-gradient(rgba(252, 251, 250, 0.96), rgba(252, 251, 250, 0.96)), url('../assets/white_marble_texture.png');
  background-repeat: repeat;
  background-size: 800px 800px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.preloader-logo-wrap {
  opacity: 0;
  transform: scale(0.92);
  animation: preloaderPulse 1.8s infinite ease-in-out alternate, preloaderShow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.preloader-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}
.preloader-bar {
  width: 140px;
  height: 2px;
  background: rgba(25, 53, 47, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 28px;
  position: relative;
}
.preloader-progress {
  height: 100%;
  width: 0%;
  background: var(--color-accent-gold);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes preloaderPulse {
  0% { filter: drop-shadow(0 0 2px rgba(182, 107, 63, 0.1)); }
  100% { filter: drop-shadow(0 4px 15px rgba(182, 107, 63, 0.25)); }
}
@keyframes preloaderShow {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Products Grid & Layout Robust Overrides */
@media (max-width: 768px) {
  .products-layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
  .products-layout-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .product-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .product-info {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: 8px !important;
  }
  .product-title {
    font-size: 0.85rem !important;
  }
  .product-card .view-details-btn {
    padding: 6px 4px !important;
    font-size: 0.68rem !important;
  }
}

.size-show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px dashed var(--color-light-gold);
  border-radius: 999px;
  color: var(--color-accent-gold);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}
.size-show-more-btn:hover {
  background: rgba(182, 107, 63, 0.08);
  border-color: var(--color-accent-gold);
}

/* Mobile Modal Visual Pane & Gallery Thumbs Overrides */
@media (max-width: 768px) {
  .modal-visual-pane {
    aspect-ratio: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .modal-visual-pane > img.modal-main-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: contain !important;
    flex: none !important;
  }
  .modal-gallery-thumbs {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    border-top: 1px solid var(--color-border-subtle) !important;
    background: rgba(0,0,0,0.03) !important;
    padding: 8px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .gallery-thumb {
    flex-shrink: 0 !important;
  }
}

/* Mobile Product Modal Bottom Sheet (Drawer Layout) Overrides */
@media (max-width: 768px) {
  .product-modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-content-wrapper {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    margin-bottom: 0 !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    animation: modalSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15) !important;
  }
  @keyframes modalSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}


