/* =========================================================
   PERFECT SPLIT SHOW / HIDE SPECIFICITY RULE
   ========================================================= */
#perez-showcase-modal .perez-modal-box:not(.is-split-active) > .perez-modal-split-size-pane,
#perez-showcase-modal .perez-modal-box:not(.is-split-active) > #perez-modal-split-size-pane {
  display: none !important;
}

#perez-showcase-modal .perez-modal-box.is-split-active > #perez-modal-split-size-pane,
#perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane {
  display: flex !important;
}


/* =========================================================
   PERFECT SPLIT SHOW / HIDE SPECIFICITY RULE
   ========================================================= */
#perez-showcase-modal .perez-modal-box:not(.is-split-active) > .perez-modal-split-size-pane,
#perez-showcase-modal .perez-modal-box:not(.is-split-active) > #perez-modal-split-size-pane {
  display: none !important;
}

#perez-showcase-modal .perez-modal-box.is-split-active > #perez-modal-split-size-pane,
#perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane {
  display: flex !important;
}




/**
 * Pérez Leather - Light / Dark Mode & Custom Color Palette System
 * Palette:
 * Cream:   #F3E9DC
 * Caramel: #C08552
 * Brownie: #5E3023
 * Coffee:  #895737
 */

:root {
  --pl-cream: #F3E9DC;
  --pl-caramel: #C08552;
  --pl-brownie: #5E3023;
  --pl-coffee: #895737;
  
  --pl-transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================================
   PERMANENT PRELOADER ERADICATION (Zero-Delay Instant Render)
   ========================================================= */
.patina-preloader,
[data-preloader] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -99999 !important;
}
html.is-preloading {
  overflow: auto !important;
}

/* =========================================================
   1. LIGHT MODE (DEFAULT / ACTIVATED)
   ========================================================= */
html.perez-light-mode,
body.perez-light-mode {
  --pt-bg: var(--pl-cream) !important;
  --pt-bg-alt: #EADBCE !important;
  --pt-surface: #FAF4EC !important;
  --pt-surface-2: #EFE4D6 !important;
  --pt-card: rgba(255, 255, 255, 0.72) !important;
  --pt-fg: var(--pl-brownie) !important;
  --pt-fg-muted: var(--pl-coffee) !important;
  --pt-cream: var(--pl-brownie) !important;
  --pt-cream-dim: var(--pl-coffee) !important;
  --pt-accent: var(--pl-caramel) !important;
  --pt-accent-ink: #FFFFFF !important;
  --pt-border: rgba(94, 48, 35, 0.14) !important;
  --pt-line: rgba(94, 48, 35, 0.12) !important;
  --pt-shadow-m: 0 14px 34px -10px rgba(94, 48, 35, 0.09) !important;
  --pt-shadow-l: 0 28px 60px -15px rgba(94, 48, 35, 0.14) !important;
  background-color: var(--pl-cream) !important;
  color: var(--pl-brownie) !important;
}

/* Grainy texture finishing on Cream Background */
body.perez-light-mode::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  opacity: 0.045 !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") !important;
  background-repeat: repeat !important;
}

body.perez-light-mode .patina-shell {
  background-color: transparent !important;
}

/* =========================================================
   LEATHER CRAFT ANIMATED BACKGROUND CANVAS
   ========================================================= */
#perez-leather-bg-canvas {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  display: block !important;
}

.patina-shell {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
}

.elementor-34,
.elementor-34 .elementor-section {
  background: transparent !important;
}

/* Light Mode Header: Solid luxury cream background */
html.perez-light-mode .patina-header,
body.perez-light-mode .patina-header,
.perez-light-mode .patina-header,
.patina-header {
  background-color: #F3E9DC !important;
  background: rgba(243, 233, 220, 0.96) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  border-bottom: 1px solid rgba(94, 48, 35, 0.14) !important;
  box-shadow: 0 4px 20px -2px rgba(94, 48, 35, 0.08) !important;
}

html.perez-light-mode .patina-header a,
html.perez-light-mode .patina-nav a,
html.perez-light-mode .patina-brand,
body.perez-light-mode .patina-header a,
body.perez-light-mode .patina-nav a,
body.perez-light-mode .patina-brand,
.patina-header a,
.patina-nav a,
.patina-brand {
  color: var(--pl-brownie) !important;
}

body.perez-light-mode .patina-nav a:hover,
body.perez-light-mode .patina-nav .current-menu-item > a {
  color: var(--pl-caramel) !important;
}

body.perez-light-mode .patina-burger span {
  background-color: var(--pl-brownie) !important;
}

body.perez-light-mode .patina-footer {
  background-color: #E8DDCE !important;
  border-top: 1px solid rgba(94, 48, 35, 0.15) !important;
  color: var(--pl-coffee) !important;
}

body.perez-light-mode .patina-footer p.patina-display {
  color: var(--pl-brownie) !important;
}

body.perez-light-mode .patina-footer a {
  color: var(--pl-coffee) !important;
}
body.perez-light-mode .patina-footer a:hover {
  color: var(--pl-caramel) !important;
}

/* =========================================================
   2. DARK MODE (LUXURY ARTISANAL LEATHER)
   ========================================================= */
html.perez-dark-mode,
body.perez-dark-mode {
  --pt-bg: #140F0C !important;
  --pt-bg-alt: #1A1310 !important;
  --pt-surface: #1E1713 !important;
  --pt-surface-2: #271E19 !important;
  --pt-card: #1D1612 !important;
  --pt-fg: var(--pl-cream) !important;
  --pt-fg-muted: #CDBFAE !important;
  --pt-cream: var(--pl-cream) !important;
  --pt-cream-dim: #D1C5B5 !important;
  --pt-accent: var(--pl-caramel) !important;
  --pt-accent-ink: #140F0C !important;
  --pt-border: rgba(192, 133, 82, 0.18) !important;
  --pt-line: rgba(192, 133, 82, 0.15) !important;
  --pt-shadow-m: 0 14px 34px -10px rgba(0, 0, 0, 0.55) !important;
  --pt-shadow-l: 0 28px 60px -15px rgba(0, 0, 0, 0.75) !important;
  background-color: #140F0C !important;
  color: var(--pl-cream) !important;
}

body.perez-dark-mode::before {
  display: none !important;
}

body.perez-dark-mode .patina-shell {
  background-color: transparent !important;
}

/* Dark Mode Header: Solid luxury espresso/black hide background */
html.perez-dark-mode .patina-header,
body.perez-dark-mode .patina-header,
.perez-dark-mode .patina-header {
  background-color: #0D0A08 !important;
  background: rgba(13, 10, 8, 0.96) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  border-bottom: 1px solid rgba(212, 163, 115, 0.14) !important;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.6) !important;
}

html.perez-dark-mode .patina-header a,
html.perez-dark-mode .patina-nav a,
html.perez-dark-mode .patina-brand,
body.perez-dark-mode .patina-header a,
body.perez-dark-mode .patina-nav a,
body.perez-dark-mode .patina-brand {
  color: var(--pl-cream) !important;
}

body.perez-dark-mode .patina-footer {
  background-color: #0E0A08 !important;
  border-top: 1px solid rgba(192, 133, 82, 0.18) !important;
  color: #CDBFAE !important;
}

body.perez-dark-mode .patina-footer p.patina-display {
  color: var(--pl-cream) !important;
}

/* =========================================================
   3. THEME MODE TOGGLE BUTTON STYLING
   ========================================================= */
.perez-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--pl-transition);
  border: 1px solid;
  outline: none;
  background: transparent;
  user-select: none;
}

body.perez-light-mode .perez-mode-toggle {
  border-color: rgba(94, 48, 35, 0.25);
  color: var(--pl-brownie);
  background: rgba(255, 255, 255, 0.5);
}
body.perez-light-mode .perez-mode-toggle:hover {
  border-color: var(--pl-caramel);
  background: #FFFFFF;
  color: var(--pl-caramel);
  box-shadow: 0 4px 12px rgba(94, 48, 35, 0.08);
}

body.perez-dark-mode .perez-mode-toggle {
  border-color: rgba(192, 133, 82, 0.35);
  color: var(--pl-cream);
  background: rgba(30, 23, 19, 0.6);
}
body.perez-dark-mode .perez-mode-toggle:hover {
  border-color: var(--pl-caramel);
  background: #271E19;
  color: var(--pl-caramel);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.perez-mode-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

/* Floating Switcher for easy access anywhere */
.perez-floating-toggle-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
}
.perez-floating-toggle-wrap .perez-mode-toggle {
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

/* =========================================================
   4. ELEMENTOR HERO & SECTIONS ENHANCEMENTS
   ========================================================= */

/* Hero Container */
.perez-hero-section {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  transition: var(--pl-transition);
}

/* 3D Model Stage Box in Elementor - Clean Frameless Presentation & Guaranteed Visibility */
.elementor-element-fa03244,
.elementor-element-fa03244 .elementor-widget-wrap,
.elementor-element-fa03244 .elementor-widget-container,
.elementor-element-3f71996,
.elementor-element-3f71996 .elementor-widget-container {
  min-height: 480px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

.perez-3d-stage-box {
  position: relative !important;
  width: 100% !important;
  max-width: 520px !important;
  height: 520px !important;
  min-height: 480px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  overflow: visible !important;
  transition: var(--pl-transition);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

body.perez-light-mode .perez-3d-stage-box,
html.perez-light-mode .perez-3d-stage-box {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

body.perez-dark-mode .perez-3d-stage-box,
html.perez-dark-mode .perez-3d-stage-box {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

.perez-3d-stage-box .patina-gl-scene,
.perez-3d-stage-box [data-gl-scene] {
  width: 100% !important;
  height: 100% !important;
  min-height: 480px !important;
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
}

.perez-3d-stage-box .patina-poster {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Attached 3D words/badge completely removed */
.perez-3d-hint,
.perez-3d-stage-box .perez-3d-hint,
body .perez-3d-hint,
html body .perez-3d-hint,
body.perez-light-mode .perez-3d-hint,
body.perez-dark-mode .perez-3d-hint,
html.perez-light-mode .perez-3d-hint,
html.perez-dark-mode .perez-3d-hint {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  overflow: hidden !important;
}

/* Feature & Review Cards */
.perez-luxury-card {
  padding: 40px 32px;
  border-radius: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.perez-luxury-card:hover {
  transform: translateY(-6px);
}

body.perez-light-mode .perez-luxury-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(94, 48, 35, 0.12);
  box-shadow: 0 10px 30px -10px rgba(94, 48, 35, 0.06);
}
body.perez-light-mode .perez-luxury-card:hover {
  border-color: var(--pl-caramel);
  box-shadow: 0 18px 40px -12px rgba(94, 48, 35, 0.12);
}

body.perez-dark-mode .perez-luxury-card {
  background: #1C1512;
  border: 1px solid rgba(192, 133, 82, 0.15);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}
body.perez-dark-mode .perez-luxury-card:hover {
  border-color: var(--pl-caramel);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}

/* Buttons in Light/Dark Mode */
.perez-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background-color: var(--pl-caramel) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--pl-caramel);
  transition: var(--pl-transition);
}
.perez-btn-primary:hover {
  background-color: var(--pl-brownie) !important;
  border-color: var(--pl-brownie) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(94, 48, 35, 0.35);
}

.perez-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent !important;
  transition: var(--pl-transition);
}
body.perez-light-mode .perez-btn-secondary {
  border: 1px solid rgba(94, 48, 35, 0.3) !important;
  color: var(--pl-brownie) !important;
}
body.perez-light-mode .perez-btn-secondary:hover {
  border-color: var(--pl-caramel) !important;
  color: var(--pl-caramel) !important;
  transform: translateY(-2px);
}

body.perez-dark-mode .perez-btn-secondary {
  border: 1px solid rgba(192, 133, 82, 0.35) !important;
  color: var(--pl-cream) !important;
}
body.perez-dark-mode .perez-btn-secondary:hover {
  border-color: var(--pl-caramel) !important;
  color: var(--pl-caramel) !important;
  transform: translateY(-2px);
}

/* Badge / Eyebrow */
.perez-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
body.perez-light-mode .perez-badge {
  background: rgba(192, 133, 82, 0.12);
  color: var(--pl-caramel);
  border: 1px solid rgba(192, 133, 82, 0.25);
}
body.perez-dark-mode .perez-badge {
  background: rgba(192, 133, 82, 0.15);
  color: var(--pl-caramel);
  border: 1px solid rgba(192, 133, 82, 0.3);
}

/* Star Rating */
.perez-stars {
  color: var(--pl-caramel);
  letter-spacing: 3px;
  margin-bottom: 14px;
  font-size: 16px;
}

/* =========================================================
   5. SIGNATURE ATELIER CREATIVE SHOWCASE & GALLERY
   ========================================================= */
.perez-showcase-section {
  position: relative;
  padding: 60px 0 90px;
  z-index: 2;
}

.perez-showcase-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.perez-showcase-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.perez-showcase-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 12px 0 16px;
}

.perez-showcase-header p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
  margin: 0 auto;
  opacity: 0.85;
}

/* Master Bento Grid */
.perez-showcase-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .perez-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Showcase Cards */
.perez-showcase-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease;
  cursor: pointer;
  border: 1px solid;
}

/* Stitched Accent Outline */
.perez-showcase-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(192, 133, 82, 0.35);
  border-radius: 16px;
  pointer-events: none;
  z-index: 5;
  transition: border-color 0.35s ease, opacity 0.35s ease;
  opacity: 0.7;
}

.perez-showcase-card:hover::after {
  border-color: var(--pl-caramel);
  opacity: 1;
}

body.perez-light-mode .perez-showcase-card {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.14);
  box-shadow: 0 14px 40px -12px rgba(94, 48, 35, 0.08);
}
body.perez-light-mode .perez-showcase-card:hover {
  transform: translateY(-7px);
  border-color: var(--pl-caramel);
  box-shadow: 0 26px 55px -16px rgba(94, 48, 35, 0.18);
}

body.perez-dark-mode .perez-showcase-card {
  background: #19120E;
  border-color: rgba(192, 133, 82, 0.22);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.6);
}
body.perez-dark-mode .perez-showcase-card:hover {
  transform: translateY(-7px);
  border-color: var(--pl-caramel);
  box-shadow: 0 26px 60px -16px rgba(0, 0, 0, 0.85);
}

/* Featured Card (Left Column - Hero Spotlight) */
.perez-showcase-card--featured {
  min-height: 640px;
  justify-content: flex-end;
}

.perez-showcase-card--featured .perez-showcase-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.perez-showcase-card--featured .perez-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.perez-showcase-card--featured:hover .perez-showcase-img {
  transform: scale(1.045);
}

.perez-showcase-card--featured .perez-showcase-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 10, 8, 0.05) 0%,
    rgba(15, 10, 8, 0.2) 40%,
    rgba(15, 10, 8, 0.75) 75%,
    rgba(15, 10, 8, 0.94) 100%
  );
  z-index: 2;
  transition: opacity 0.35s ease;
}

body.perez-light-mode .perez-showcase-card--featured .perez-showcase-vignette {
  background: linear-gradient(
    to bottom,
    rgba(243, 233, 220, 0.05) 0%,
    rgba(94, 48, 35, 0.25) 45%,
    rgba(40, 20, 14, 0.82) 80%,
    rgba(25, 12, 8, 0.95) 100%
  );
}

.perez-showcase-card--featured .perez-showcase-body {
  position: relative;
  z-index: 4;
  padding: 36px 32px 32px;
  color: #FFFFFF;
}

/* Secondary Column Stack (Right Column) */
.perez-showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.perez-showcase-card--sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 306px;
}

@media (max-width: 640px) {
  .perez-showcase-card--sub {
    grid-template-columns: 1fr;
  }
}

.perez-showcase-card--sub .perez-showcase-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
}

.perez-showcase-card--sub .perez-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-showcase-card--sub:hover .perez-showcase-img {
  transform: scale(1.06);
}

.perez-showcase-card--sub .perez-showcase-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 4;
}

/* Card Content Typography & Elements */
.perez-showcase-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pl-caramel);
  margin-bottom: 8px;
}

.perez-showcase-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

.perez-showcase-card--featured .perez-showcase-card-title {
  font-size: 32px;
  color: #FFFFFF;
}

.perez-showcase-card-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
  opacity: 0.88;
}

.perez-showcase-card--featured .perez-showcase-card-desc {
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
}

/* Color Swatches on Featured Card */
.perez-swatches-wrap {
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perez-swatches-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pl-caramel);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perez-swatches-active-name {
  color: #FFFFFF;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.perez-swatches-list {
  display: flex;
  gap: 10px;
  align-items: center;
}

.perez-swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.perez-swatch-dot:hover,
.perez-swatch-dot.is-active {
  transform: scale(1.22);
  border-color: #FFFFFF;
  box-shadow: 0 0 12px rgba(192, 133, 82, 0.7);
}

/* Feature Tag Pills */
.perez-tags-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.perez-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-pill-tag {
  background: rgba(94, 48, 35, 0.08);
  color: var(--pl-brownie);
  border: 1px solid rgba(94, 48, 35, 0.12);
}

body.perez-dark-mode .perez-pill-tag {
  background: rgba(192, 133, 82, 0.12);
  color: var(--pl-cream);
  border: 1px solid rgba(192, 133, 82, 0.2);
}

.perez-showcase-card--featured .perez-pill-tag {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(8px);
}

/* Inspect Quick Zoom Floating Action */
.perez-inspect-trigger {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(20, 15, 12, 0.72);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.perez-showcase-card:hover .perez-inspect-trigger {
  transform: scale(1.12);
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(192, 133, 82, 0.45);
}

/* Card Link Action */
.perez-showcase-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pl-caramel);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
  margin-top: auto;
}

.perez-showcase-link-btn:hover {
  color: var(--pl-caramel);
  gap: 14px;
}

.perez-showcase-card--featured .perez-showcase-link-btn {
  color: #FFFFFF;
  background: var(--pl-caramel);
  padding: 12px 26px;
  border-radius: 999px;
  width: fit-content;
  border: 1px solid var(--pl-caramel);
  transition: all 0.3s ease;
}

.perez-showcase-card--featured .perez-showcase-link-btn:hover {
  background: #FFFFFF;
  color: var(--pl-brownie);
  border-color: #FFFFFF;
  gap: 10px;
  transform: translateY(-2px);
}

/* =========================================================
   6. HIGH-RESOLUTION ARTISANAL INSPECT & QUICK VIEW MODAL
   ========================================================= */
.perez-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 8, 6, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.perez-modal-box {
  position: relative;
  width: 100%;
  max-width: 1020px;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.perez-light-mode .perez-modal-box {
  background: #FAF7F2;
  border-color: rgba(94, 48, 35, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color: var(--pl-brownie);
}

body.perez-dark-mode .perez-modal-box {
  background: #18110D;
  border-color: rgba(192, 133, 82, 0.3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  color: var(--pl-cream);
}

@media (max-width: 860px) {
  .perez-modal-overlay {
    padding: 12px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow-y: hidden !important;
    touch-action: pan-y !important;
  }
  .perez-modal-box {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 480px !important;
    max-height: 88vh !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
}

.perez-modal-overlay.is-open .perez-modal-box {
  transform: scale(1) translateY(0);
}

.perez-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.perez-modal-close:hover {
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  transform: rotate(90deg);
}

.perez-modal-media {
  position: relative;
  background: #0E0907;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  overflow: hidden;
}

.perez-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-modal-media:hover img {
  transform: scale(1.04);
}

.perez-modal-media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 12, 10, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(192, 133, 82, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pl-caramel);
}

.perez-modal-info {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 85vh;
  scrollbar-width: thin;
}

body.perez-light-mode .perez-modal-info {
  background: #FFFFFF;
}
body.perez-dark-mode .perez-modal-info {
  background: #1F1612;
}

.perez-modal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.perez-modal-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pl-caramel);
}

.perez-modal-rating {
  font-size: 11px;
  font-weight: 700;
  color: var(--pl-caramel);
}

.perez-modal-title {
  font-family: var(--pl-font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

body.perez-light-mode .perez-modal-title {
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-modal-title {
  color: var(--pl-cream);
}

.perez-modal-price-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.perez-modal-price {
  font-family: var(--pl-font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--pl-caramel);
}

.perez-modal-shipping-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

.perez-modal-desc {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
  opacity: 0.85;
}

/* Colorway Options in Modal */
.perez-modal-options-block {
  margin-bottom: 16px;
}

.perez-modal-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 6px;
}

.perez-modal-label strong {
  color: var(--pl-caramel);
}

.perez-modal-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.perez-modal-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.perez-modal-swatch:hover,
.perez-modal-swatch.is-active {
  transform: scale(1.18);
  border-color: var(--pl-caramel);
  box-shadow: 0 0 8px rgba(192, 133, 82, 0.4);
}

/* Specs Grid */
.perez-modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(192, 133, 82, 0.18);
  border-bottom: 1px solid rgba(192, 133, 82, 0.18);
}

.perez-spec-item strong {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pl-caramel);
  margin-bottom: 2px;
}

.perez-spec-item span {
  font-size: 12px;
  opacity: 0.9;
}

/* Cart & Action Controls in Modal */
.perez-modal-cart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.perez-modal-qty-picker {
  flex-shrink: 0;
}

.perez-modal-add-btn {
  flex: 1;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.perez-modal-secondary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.perez-modal-guarantees {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  opacity: 0.75;
}

/* Make entire Product Card clickable with pointer cursor */
.perez-product-card {
  cursor: pointer;
}

.perez-product-card .perez-add-to-cart-btn {
  cursor: pointer;
  z-index: 2;
  position: relative;
}


/* =========================================================
   7. SLIDE-IN CART DRAWER ("YOUR BAG")
   ========================================================= */
.perez-cart-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100002;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
}

.perez-cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.perez-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 8, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-cart-drawer.is-open .perez-cart-backdrop {
  opacity: 1;
}

.perez-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 450px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.5);
  z-index: 2;
  overflow: hidden;
}

.perez-cart-drawer.is-open .perez-cart-panel {
  transform: translateX(0);
}

body.perez-light-mode .perez-cart-panel {
  background: #FAF5EE;
  color: var(--pl-brownie);
  border-left: 1px solid rgba(94, 48, 35, 0.15);
}

body.perez-dark-mode .perez-cart-panel {
  background: #18110D;
  color: var(--pl-cream);
  border-left: 1px solid rgba(192, 133, 82, 0.25);
}

/* Cart Header */
.perez-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid;
}

body.perez-light-mode .perez-cart-head {
  border-bottom-color: rgba(94, 48, 35, 0.12);
}
body.perez-dark-mode .perez-cart-head {
  border-bottom-color: rgba(192, 133, 82, 0.18);
}

.perez-cart-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.perez-cart-title-wrap h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.perez-cart-item-count-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-caramel);
}

.perez-cart-close-btn {
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid;
  transition: all 0.25s ease;
}

body.perez-light-mode .perez-cart-close-btn {
  border-color: rgba(94, 48, 35, 0.2);
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-cart-close-btn:hover {
  background: var(--pl-caramel);
  color: #FFFFFF;
  border-color: var(--pl-caramel);
}

body.perez-dark-mode .perez-cart-close-btn {
  border-color: rgba(192, 133, 82, 0.25);
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-cart-close-btn:hover {
  background: var(--pl-caramel);
  color: #FFFFFF;
  border-color: var(--pl-caramel);
}

/* Shipping Progress Bar */
.perez-shipping-meter {
  padding: 14px 28px;
  background: rgba(192, 133, 82, 0.08);
  border-bottom: 1px solid rgba(192, 133, 82, 0.14);
}

.perez-shipping-meter-text {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.perez-shipping-meter-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

body.perez-dark-mode .perez-shipping-meter-bar {
  background: rgba(255, 255, 255, 0.1);
}

.perez-shipping-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pl-caramel), #D4A373);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Cart Body Items */
.perez-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perez-cart-body::-webkit-scrollbar {
  width: 6px;
}
.perez-cart-body::-webkit-scrollbar-thumb {
  background: rgba(192, 133, 82, 0.3);
  border-radius: 4px;
}

/* Empty Cart State */
.perez-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  margin: auto 0;
}

.perez-cart-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.perez-cart-empty h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
}

.perez-cart-empty p {
  font-size: 14px;
  opacity: 0.75;
  margin: 0 0 24px;
  max-width: 260px;
}

/* Cart Item Row */
.perez-cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-cart-item {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.1);
}
body.perez-dark-mode .perez-cart-item {
  background: #201713;
  border-color: rgba(192, 133, 82, 0.16);
}

.perez-cart-item-img {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perez-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perez-cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perez-cart-item-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.perez-cart-item-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pl-caramel);
}

.perez-cart-item-price {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.perez-cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.perez-qty-picker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid;
  overflow: hidden;
  height: 28px;
}

body.perez-light-mode .perez-qty-picker {
  border-color: rgba(94, 48, 35, 0.2);
  background: #F3E9DC;
}
body.perez-dark-mode .perez-qty-picker {
  border-color: rgba(192, 133, 82, 0.25);
  background: #18110D;
}

.perez-qty-btn {
  background: transparent;
  border: none;
  width: 26px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  color: inherit;
  transition: background 0.2s ease;
}

.perez-qty-btn:hover {
  background: rgba(192, 133, 82, 0.2);
}

.perez-qty-num {
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
  min-width: 20px;
  text-align: center;
}

.perez-cart-remove-btn {
  background: transparent;
  border: none;
  color: #B23A48;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 4px;
}
.perez-cart-remove-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Cart Footer */
.perez-cart-footer {
  padding: 24px 28px 30px;
  border-top: 1px solid;
}

body.perez-light-mode .perez-cart-footer {
  border-top-color: rgba(94, 48, 35, 0.12);
  background: #F5EEE4;
}
body.perez-dark-mode .perez-cart-footer {
  border-top-color: rgba(192, 133, 82, 0.18);
  background: #140E0A;
}

.perez-cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.perez-cart-subtotal-val {
  font-size: 20px;
  color: var(--pl-caramel);
}

.perez-cart-tax-notice {
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.75;
  margin: 0 0 18px;
}

.perez-cart-guarantees {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 18px;
  border-top: 1px dashed rgba(192, 133, 82, 0.2);
  padding-top: 12px;
}

/* Cart Badge Bounce Animation */
@keyframes perezBadgeBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  65% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.patina-iconbtn__count.has-bounce {
  animation: perezBadgeBounce 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   8. ENHANCED PRODUCTS CATALOG PAGE & ARCHITECTURAL GRID LINES
   ========================================================= */

/* Container Breakout & Alignment Overrides */
.page-id-11,
.page-id-11 #patina-main,
.page-id-11 .patina-main,
.page-id-11 .patina-container,
.page-id-11 .patina-entry,
.page-id-11 .patina-entry__content,
.page-id-11 .patina-measure,
.patina-entry__content:has(.perez-products-section),
.patina-measure:has(.perez-products-section) {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-inline: auto !important;
}

.perez-products-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Hero Banner */
.perez-products-hero {
  text-align: center;
  padding: 140px 24px 44px;
  max-width: 920px;
  margin: 0 auto;
}

.perez-products-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 16px;
}

.perez-products-hero p {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  opacity: 0.85;
  margin: 0 auto;
}

/* Interactive Catalog Toolbar */
.perez-catalog-toolbar-wrap {
  position: sticky;
  top: 76px;
  z-index: 20;
  padding: 16px 0;
  margin-bottom: 36px;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-catalog-toolbar-wrap {
  background: rgba(243, 233, 220, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(94, 48, 35, 0.12);
}
body.perez-dark-mode .perez-catalog-toolbar-wrap {
  background: rgba(20, 15, 12, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(192, 133, 82, 0.18);
}

.perez-catalog-toolbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search Bar & Primary Filters Row */
.perez-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.perez-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.perez-search-input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid;
  outline: none;
  background: transparent;
  transition: var(--pl-transition);
  font-family: inherit;
}

body.perez-light-mode .perez-search-input {
  border-color: rgba(94, 48, 35, 0.2);
  background: #FFFFFF;
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-search-input:focus {
  border-color: var(--pl-caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.18);
}

body.perez-dark-mode .perez-search-input {
  border-color: rgba(192, 133, 82, 0.3);
  background: #19120E;
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-search-input:focus {
  border-color: var(--pl-caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.25);
}

.perez-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
  font-size: 14px;
}

.perez-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  padding: 4px;
  display: none;
}
.perez-search-clear.is-visible {
  display: block;
}

/* Category Filter Pills */
.perez-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.perez-category-pills::-webkit-scrollbar {
  display: none;
}

.perez-filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-filter-pill {
  border-color: rgba(94, 48, 35, 0.18);
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-filter-pill:hover,
body.perez-light-mode .perez-filter-pill.is-active {
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  color: #FFFFFF;
}

body.perez-dark-mode .perez-filter-pill {
  border-color: rgba(192, 133, 82, 0.25);
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-filter-pill:hover,
body.perez-dark-mode .perez-filter-pill.is-active {
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  color: #FFFFFF;
}

/* Secondary Filter Controls Row */
.perez-toolbar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

.perez-select-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.perez-filter-select {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  outline: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

body.perez-light-mode .perez-filter-select {
  border-color: rgba(94, 48, 35, 0.2);
  background: #FFFFFF;
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-filter-select {
  border-color: rgba(192, 133, 82, 0.25);
  background: #19120E;
  color: var(--pl-cream);
}

/* Layout Switcher */
.perez-layout-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid;
}

body.perez-light-mode .perez-layout-switcher {
  border-color: rgba(94, 48, 35, 0.18);
  background: rgba(255, 255, 255, 0.6);
}
body.perez-dark-mode .perez-layout-switcher {
  border-color: rgba(192, 133, 82, 0.25);
  background: rgba(25, 18, 14, 0.6);
}

.perez-layout-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.65;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.perez-layout-btn.is-active {
  background: var(--pl-caramel);
  color: #FFFFFF !important;
  opacity: 1;
}

/* Stats / Active Filters */
.perez-filter-stats-row {
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

/* Product Cards Container */
.perez-products-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 120px;
  box-sizing: border-box;
}

/* =========================================================
   ARCHITECTURAL GRID LINES SYSTEM
   ========================================================= */

.perez-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  margin: 0 auto;
}

/* 4-Columns Mode */
.perez-product-grid.is-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 2-Columns Editorial Mode */
.perez-product-grid.is-editorial {
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

@media (max-width: 1200px) {
  .perez-product-grid.is-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .perez-product-grid,
  .perez-product-grid.is-grid-4,
  .perez-product-grid.is-editorial {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .perez-product-grid,
  .perez-product-grid.is-grid-4,
  .perez-product-grid.is-editorial {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Single Product Card with Crisp Grid Line Borders */
.perez-product-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

/* Stitched border accent */
.perez-product-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(192, 133, 82, 0.28);
  border-radius: 12px;
  pointer-events: none;
  z-index: 5;
  transition: border-color 0.3s ease;
}
.perez-product-card:hover::after {
  border-color: var(--pl-caramel);
}

body.perez-light-mode .perez-product-card {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.14);
  box-shadow: 0 8px 24px -8px rgba(94, 48, 35, 0.06);
}
body.perez-light-mode .perez-product-card:hover {
  transform: translateY(-6px);
  border-color: var(--pl-caramel);
  box-shadow: 0 18px 40px -10px rgba(94, 48, 35, 0.15);
}

body.perez-dark-mode .perez-product-card {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.2);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
body.perez-dark-mode .perez-product-card:hover {
  transform: translateY(-6px);
  border-color: var(--pl-caramel);
  box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.75);
}

/* Card Image Wrap */
.perez-product-img-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3.1 !important;
  overflow: hidden !important;
  display: block !important;
  background: transparent !important;
}

html.perez-light-mode .perez-product-img-wrap,
body.perez-light-mode .perez-product-img-wrap {
  background: #FAF5ED !important;
}

html:not(.perez-light-mode) .perez-product-img-wrap,
body:not(.perez-light-mode) .perez-product-img-wrap {
  background: #140E0A !important;
}

.perez-product-grid.is-editorial .perez-product-img-wrap {
  aspect-ratio: 16 / 10 !important;
}

.perez-product-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.perez-product-card:hover .perez-product-img {
  transform: scale(1.06) !important;
}

.perez-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(20, 15, 12, 0.88);
  color: var(--pl-caramel);
  border: 1px solid rgba(192, 133, 82, 0.4);
  backdrop-filter: blur(6px);
}

.perez-card-quick-inspect {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 15, 12, 0.8);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}
.perez-card-quick-inspect:hover {
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  transform: scale(1.1);
}

/* Card Body Content */
.perez-product-info {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  z-index: 2;
}

.perez-product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.perez-product-leather-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pl-caramel);
}

.perez-product-rating {
  font-size: 12px;
  color: var(--pl-caramel);
}

.perez-product-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}

.perez-product-grid.is-editorial .perez-product-title {
  font-size: 22px;
}

.perez-product-desc {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0 0 16px;
}

.perez-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid;
}

body.perez-light-mode .perez-product-footer {
  border-top-color: rgba(94, 48, 35, 0.1);
}
body.perez-dark-mode .perez-product-footer {
  border-top-color: rgba(192, 133, 82, 0.15);
}

.perez-product-price {
  font-size: 19px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
}

.perez-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--pl-caramel);
  color: #FFFFFF;
  border: 1px solid var(--pl-caramel);
  cursor: pointer;
  transition: all 0.25s ease;
}

.perez-add-to-cart-btn:hover {
  background: var(--pl-brownie);
  border-color: var(--pl-brownie);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(94, 48, 35, 0.25);
}

.perez-add-to-cart-btn.is-added {
  background: #2D6A4F !important;
  border-color: #2D6A4F !important;
  color: #FFFFFF !important;
}

/* No Results Empty State */
.perez-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(192, 133, 82, 0.3);
}

.perez-no-results h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  margin: 12px 0 8px;
}

/* =========================================================
   9. ATELIER SERVICES PAGE STYLES & INTERACTIVE SHOWCASES
   ========================================================= */

.perez-services-main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.perez-services-container {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 4vw, 40px) !important;
  box-sizing: border-box !important;
}

/* Services Hero */
.perez-services-hero {
  text-align: center;
  padding: 140px 24px 50px;
  max-width: 920px;
  margin: 0 auto;
}

.perez-services-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 18px;
}

.perez-services-lede {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  opacity: 0.88;
  max-width: 760px;
  margin: 0 auto;
}

/* Quick Services Highlight Cards */
.perez-quick-services-section {
  padding: 0 0 80px;
}

.perez-quick-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.perez-quick-card {
  position: relative;
  padding: 40px 36px;
  border-radius: 20px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.perez-quick-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(192, 133, 82, 0.28);
  border-radius: 14px;
  pointer-events: none;
  transition: border-color 0.3s ease;
}
.perez-quick-card:hover::after {
  border-color: var(--pl-caramel);
}

body.perez-light-mode .perez-quick-card {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.14);
  box-shadow: 0 8px 24px -8px rgba(94, 48, 35, 0.06);
}
body.perez-light-mode .perez-quick-card:hover {
  transform: translateY(-6px);
  border-color: var(--pl-caramel);
  box-shadow: 0 18px 40px -10px rgba(94, 48, 35, 0.15);
}

body.perez-dark-mode .perez-quick-card {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.2);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
body.perez-dark-mode .perez-quick-card:hover {
  transform: translateY(-6px);
  border-color: var(--pl-caramel);
  box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.75);
}

.perez-quick-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: rgba(192, 133, 82, 0.14);
  color: var(--pl-caramel);
  border: 1px solid rgba(192, 133, 82, 0.32);
}

.perez-quick-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}

.perez-quick-card-desc {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.85;
  margin: 0 0 24px;
}

.perez-quick-card-link {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pl-caramel);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.perez-quick-card-link:hover {
  gap: 10px;
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-quick-card-link:hover {
  color: var(--pl-cream);
}

/* Split Service Sections (Workshop & Restoration) */
.perez-service-split-section {
  padding: 100px 0;
  border-top: 1px solid;
}

body.perez-light-mode .perez-service-split-section {
  border-top-color: rgba(94, 48, 35, 0.1);
}
body.perez-dark-mode .perez-service-split-section {
  border-top-color: rgba(192, 133, 82, 0.15);
}

.perez-section-alt {
  background: rgba(192, 133, 82, 0.03);
}

.perez-service-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 960px) {
  .perez-service-split-grid {
    grid-template-columns: 1fr;
  }
}

.perez-service-card-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid;
  aspect-ratio: 4 / 3.2;
  background: #0E0A08;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.3);
}

.perez-service-card-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(192, 133, 82, 0.35);
  border-radius: 16px;
  pointer-events: none;
  z-index: 5;
}

body.perez-light-mode .perez-service-card-frame {
  border-color: rgba(94, 48, 35, 0.16);
}
body.perez-dark-mode .perez-service-card-frame {
  border-color: rgba(192, 133, 82, 0.25);
}

.perez-service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.perez-service-card-frame:hover .perez-service-img {
  transform: scale(1.05);
}

.perez-service-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 6;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(20, 15, 12, 0.88);
  color: var(--pl-caramel);
  border: 1px solid rgba(192, 133, 82, 0.4);
  backdrop-filter: blur(8px);
}

.perez-service-overlay-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 6;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(20, 15, 12, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  text-align: center;
}

.perez-section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pl-caramel);
  margin-bottom: 10px;
}

.perez-service-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.perez-service-lead {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0 0 14px;
}

.perez-service-body {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.85;
  margin: 0 0 22px;
}

.perez-service-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}

.perez-service-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
}

.perez-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pl-caramel);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.perez-service-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.perez-spec-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

body.perez-light-mode .perez-spec-pill {
  background: rgba(192, 133, 82, 0.08);
  border-color: rgba(94, 48, 35, 0.16);
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-spec-pill {
  background: rgba(192, 133, 82, 0.12);
  border-color: rgba(192, 133, 82, 0.25);
  color: var(--pl-cream);
}

.perez-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.perez-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--pl-caramel);
  color: #FFFFFF;
  border: 1px solid var(--pl-caramel);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.perez-btn-primary:hover {
  background: var(--pl-brownie);
  border-color: var(--pl-brownie);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(94, 48, 35, 0.25);
}

.perez-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

body.perez-light-mode .perez-btn-secondary {
  border-color: rgba(94, 48, 35, 0.25);
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-btn-secondary:hover {
  background: rgba(94, 48, 35, 0.08);
  border-color: var(--pl-caramel);
}

body.perez-dark-mode .perez-btn-secondary {
  border-color: rgba(192, 133, 82, 0.35);
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-btn-secondary:hover {
  background: rgba(192, 133, 82, 0.15);
  border-color: var(--pl-caramel);
}

/* =========================================================
   BEFORE & AFTER COMPARATIVE SHOWCASE
   ========================================================= */
.perez-before-after-section {
  padding: 100px 0;
  border-top: 1px solid;
}

body.perez-light-mode .perez-before-after-section {
  border-top-color: rgba(94, 48, 35, 0.1);
}
body.perez-dark-mode .perez-before-after-section {
  border-top-color: rgba(192, 133, 82, 0.15);
}

.perez-section-header {
  max-width: 860px;
  margin: 0 auto 36px;
}
.text-center {
  text-align: center;
}

.perez-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin: 10px 0 12px;
}

.perez-section-sub {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 auto;
}

.perez-comparison-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}

.perez-comparison-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(192, 133, 82, 0.35);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.35);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  background: #0E0A08;
}

.perez-comp-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.perez-comp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.perez-comp-before {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--pl-caramel);
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
}

.perez-comp-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 1080px;
  max-width: none;
  object-fit: cover;
}

.perez-comp-label {
  position: absolute;
  top: 18px;
  z-index: 6;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(20, 15, 12, 0.88);
  color: var(--pl-caramel);
  border: 1px solid rgba(192, 133, 82, 0.4);
  backdrop-filter: blur(8px);
}
.perez-label-before {
  left: 18px;
}
.perez-label-after {
  right: 18px;
}

.perez-comp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.perez-comp-handle-line {
  width: 2px;
  height: 100%;
  background: var(--pl-caramel);
  box-shadow: 0 0 12px rgba(192, 133, 82, 0.9);
}

.perez-comp-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pl-caramel);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  border: 2px solid #FFFFFF;
}

.perez-case-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid;
}

body.perez-light-mode .perez-case-notes {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.14);
}
body.perez-dark-mode .perez-case-notes {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.2);
}

.perez-case-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
}

.perez-case-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.perez-case-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-family: 'Playfair Display', Georgia, serif;
}

.perez-case-item p {
  margin: 0;
  opacity: 0.85;
}

/* Continue Exploring Section */
.perez-continue-exploring-section {
  padding: 90px 0 120px;
  border-top: 1px solid;
}

body.perez-light-mode .perez-continue-exploring-section {
  border-top-color: rgba(94, 48, 35, 0.1);
}
body.perez-dark-mode .perez-continue-exploring-section {
  border-top-color: rgba(192, 133, 82, 0.15);
}

.perez-exploring-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.perez-link-arrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pl-caramel);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.perez-link-arrow:hover {
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-link-arrow:hover {
  color: var(--pl-cream);
}

.perez-exploring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .perez-exploring-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Interactive Modals */
.perez-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 7, 5, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.perez-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.perez-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 580px;
  border-radius: 24px;
  padding: 36px 32px;
  border: 1px solid;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.perez-modal-backdrop.is-open .perez-modal-dialog {
  transform: scale(1) translateY(0);
}

body.perez-light-mode .perez-modal-dialog {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.2);
  box-shadow: 0 24px 60px -15px rgba(94, 48, 35, 0.3);
}
body.perez-dark-mode .perez-modal-dialog {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.3);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85);
}

.perez-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  opacity: 0.65;
  transition: all 0.2s ease;
}
.perez-modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.perez-modal-header {
  margin-bottom: 24px;
}

.perez-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 6px 0 8px;
}

.perez-modal-desc {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0;
}

.perez-modal-form {
  display: grid;
  gap: 16px;
}

.perez-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 540px) {
  .perez-form-2col {
    grid-template-columns: 1fr;
  }
}

.perez-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perez-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pl-caramel);
}

.perez-field input,
.perez-field select,
.perez-field textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid;
  outline: none;
  background: transparent;
  font-family: inherit;
  box-sizing: border-box;
}

body.perez-light-mode .perez-field input,
body.perez-light-mode .perez-field select,
body.perez-light-mode .perez-field textarea {
  border-color: rgba(94, 48, 35, 0.2);
  background: #FFFFFF;
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-field input,
body.perez-dark-mode .perez-field select,
body.perez-dark-mode .perez-field textarea {
  border-color: rgba(192, 133, 82, 0.25);
  background: #110C09;
  color: var(--pl-cream);
}

.perez-modal-actions {
  margin-top: 10px;
}

/* =========================================================
   10. HELP CENTRE & FAQ ACCORDIONS SYSTEM
   ========================================================= */

.perez-help-main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.perez-help-container {
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 4vw, 36px) !important;
  box-sizing: border-box !important;
}

/* Help Hero */
.perez-help-hero {
  text-align: center;
  padding: 140px 24px 44px;
}

.perez-help-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 16px;
}

.perez-help-lede {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  opacity: 0.85;
  max-width: 720px;
  margin: 0 auto 36px;
}

/* FAQ Search Bar & Category Pills */
.perez-faq-search-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perez-faq-search-box {
  position: relative;
  width: 100%;
}

.perez-faq-search-input {
  width: 100%;
  padding: 14px 42px 14px 46px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid;
  outline: none;
  background: transparent;
  transition: var(--pl-transition);
  font-family: inherit;
  box-sizing: border-box;
}

body.perez-light-mode .perez-faq-search-input {
  border-color: rgba(94, 48, 35, 0.2);
  background: #FFFFFF;
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-faq-search-input:focus {
  border-color: var(--pl-caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.18);
}

body.perez-dark-mode .perez-faq-search-input {
  border-color: rgba(192, 133, 82, 0.3);
  background: #19120E;
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-faq-search-input:focus {
  border-color: var(--pl-caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.25);
}

.perez-faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
  font-size: 15px;
}

.perez-faq-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  padding: 4px;
  display: none;
}
.perez-faq-search-clear.is-visible {
  display: block;
}

.perez-faq-category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.perez-faq-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  background: transparent;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-faq-pill {
  border-color: rgba(94, 48, 35, 0.18);
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-faq-pill:hover,
body.perez-light-mode .perez-faq-pill.is-active {
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  color: #FFFFFF;
}

body.perez-dark-mode .perez-faq-pill {
  border-color: rgba(192, 133, 82, 0.25);
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-faq-pill:hover,
body.perez-dark-mode .perez-faq-pill.is-active {
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  color: #FFFFFF;
}

/* Categorized FAQ Content */
.perez-faq-content-section {
  padding: 20px 0 80px;
}

.perez-faq-group {
  margin-bottom: 48px;
}

.perez-faq-group-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid;
}

body.perez-light-mode .perez-faq-group-title {
  border-bottom-color: rgba(94, 48, 35, 0.14);
}
body.perez-dark-mode .perez-faq-group-title {
  border-bottom-color: rgba(192, 133, 82, 0.2);
}

.perez-faq-group-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(192, 133, 82, 0.35);
  color: var(--pl-caramel);
  font-family: var(--pt-font-body);
}

.perez-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perez-faq-item {
  border-radius: 14px;
  border: 1px solid;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

body.perez-light-mode .perez-faq-item {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.12);
}
body.perez-light-mode .perez-faq-item:hover,
body.perez-light-mode .perez-faq-item.is-open {
  border-color: var(--pl-caramel);
}

body.perez-dark-mode .perez-faq-item {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.18);
}
body.perez-dark-mode .perez-faq-item:hover,
body.perez-dark-mode .perez-faq-item.is-open {
  border-color: var(--pl-caramel);
}

.perez-faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  transition: var(--pl-transition);
}

.perez-faq-q-text {
  flex: 1;
}

.perez-faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--pl-caramel);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 133, 82, 0.1);
  border: 1px solid rgba(192, 133, 82, 0.25);
  flex-shrink: 0;
}

.perez-faq-item.is-open .perez-faq-icon {
  transform: rotate(45deg);
  background: var(--pl-caramel);
  color: #FFFFFF;
}

.perez-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-faq-item.is-open .perez-faq-answer {
  max-height: 700px;
}

.perez-faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.perez-faq-answer-inner p {
  margin: 0 0 10px;
}
.perez-faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.perez-faq-answer-inner ul,
.perez-faq-answer-inner ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.perez-faq-answer-inner li {
  margin-bottom: 6px;
}

.perez-inline-link {
  color: var(--pl-caramel);
  font-weight: 700;
  text-decoration: none;
}
.perez-inline-link:hover {
  text-decoration: underline;
}

/* Empty FAQ Search State */
.perez-faq-empty {
  text-align: center;
  padding: 60px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(192, 133, 82, 0.3);
}

.perez-faq-empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.perez-faq-empty h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
}

.perez-faq-empty p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}

/* Three Support Value Cards */
.perez-help-cards-section {
  padding: 80px 0;
  border-top: 1px solid;
}

body.perez-light-mode .perez-help-cards-section {
  border-top-color: rgba(94, 48, 35, 0.1);
}
body.perez-dark-mode .perez-help-cards-section {
  border-top-color: rgba(192, 133, 82, 0.15);
}

.perez-help-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.perez-help-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.perez-help-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(192, 133, 82, 0.28);
  border-radius: 14px;
  pointer-events: none;
  transition: border-color 0.3s ease;
}
.perez-help-card:hover::after {
  border-color: var(--pl-caramel);
}

body.perez-light-mode .perez-help-card {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.14);
  box-shadow: 0 8px 24px -8px rgba(94, 48, 35, 0.06);
}
body.perez-light-mode .perez-help-card:hover {
  transform: translateY(-6px);
  border-color: var(--pl-caramel);
  box-shadow: 0 18px 40px -10px rgba(94, 48, 35, 0.15);
}

body.perez-dark-mode .perez-help-card {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.2);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
body.perez-dark-mode .perez-help-card:hover {
  transform: translateY(-6px);
  border-color: var(--pl-caramel);
  box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.75);
}

.perez-help-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: rgba(192, 133, 82, 0.14);
  color: var(--pl-caramel);
  border: 1px solid rgba(192, 133, 82, 0.32);
}

.perez-help-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

.perez-help-card-desc {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 22px;
}

.perez-help-card-link {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-caramel);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.perez-help-card-link:hover {
  gap: 10px;
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-help-card-link:hover {
  color: var(--pl-cream);
}

/* Contact / Inquiry Form Section */
.perez-contact-section {
  padding: 80px 0 120px;
  border-top: 1px solid;
}

body.perez-light-mode .perez-contact-section {
  border-top-color: rgba(94, 48, 35, 0.1);
}
body.perez-dark-mode .perez-contact-section {
  border-top-color: rgba(192, 133, 82, 0.15);
}

.perez-contact-box {
  max-width: 680px;
  margin: 0 auto;
  padding: 50px 42px;
  border-radius: 24px;
  border: 1px solid;
  position: relative;
}

.perez-contact-box::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(192, 133, 82, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

body.perez-light-mode .perez-contact-box {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.16);
  box-shadow: 0 12px 36px -10px rgba(94, 48, 35, 0.08);
}
body.perez-dark-mode .perez-contact-box {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.25);
  box-shadow: 0 16px 44px -10px rgba(0, 0, 0, 0.6);
}

.perez-contact-header {
  margin-bottom: 32px;
}

.perez-contact-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 10px;
}

.perez-contact-sub {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}

.perez-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.perez-form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perez-form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-caramel);
}

.perez-form-input,
.perez-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid;
  outline: none;
  background: transparent;
  font-family: inherit;
  transition: var(--pl-transition);
  box-sizing: border-box;
}

body.perez-light-mode .perez-form-input,
body.perez-light-mode .perez-form-textarea {
  border-color: rgba(94, 48, 35, 0.2);
  background: #FFFFFF;
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-form-input:focus,
body.perez-light-mode .perez-form-textarea:focus {
  border-color: var(--pl-caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.18);
}

body.perez-dark-mode .perez-form-input,
body.perez-dark-mode .perez-form-textarea {
  border-color: rgba(192, 133, 82, 0.25);
  background: #110C09;
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-form-input:focus,
body.perez-dark-mode .perez-form-textarea:focus {
  border-color: var(--pl-caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.25);
}

.perez-form-submit-wrap {
  margin-top: 10px;
}

.perez-submit-btn {
  width: 100%;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid;
}

body.perez-light-mode .perez-submit-btn {
  background: var(--pl-brownie);
  color: #FFFFFF;
  border-color: var(--pl-brownie);
}
body.perez-light-mode .perez-submit-btn:hover {
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(94, 48, 35, 0.25);
}

body.perez-dark-mode .perez-submit-btn {
  background: var(--pl-caramel);
  color: #FFFFFF;
  border-color: var(--pl-caramel);
}
body.perez-dark-mode .perez-submit-btn:hover {
  background: var(--pl-brownie);
  border-color: var(--pl-brownie);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.perez-contact-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  flex-wrap: wrap;
}

/* =========================================================
   11. ABOUT US PAGE (FOUNDER, MISSION, VALUES, MATERIALS)
   ========================================================= */
.perez-about-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 40px 0 80px;
}

.perez-about-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Hero & Mission Statement */
.perez-about-hero {
  padding: 40px 0 50px;
  text-align: center;
}

.perez-about-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  margin: 10px 0 28px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .perez-about-title {
    font-size: 36px;
  }
}

.perez-about-mission-box {
  max-width: 840px;
  margin: 0 auto;
  padding: 36px 40px;
  border-radius: 20px;
  border: 1px solid;
  position: relative;
  transition: var(--pl-transition);
}

.perez-about-mission-box::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(192, 133, 82, 0.35);
  border-radius: 14px;
  pointer-events: none;
}

body.perez-light-mode .perez-about-mission-box {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.15);
  box-shadow: 0 12px 35px -10px rgba(94, 48, 35, 0.08);
}

body.perez-dark-mode .perez-about-mission-box {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.25);
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.6);
}

.perez-about-subheading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--pl-caramel);
  margin: 0 0 14px;
}

.perez-about-quote {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  font-style: italic;
}

body.perez-light-mode .perez-about-quote {
  color: #4A3B32;
}

body.perez-dark-mode .perez-about-quote {
  color: #E2D7CC;
}

/* 2. Meet Our Founder Section */
.perez-founder-section {
  padding: 50px 0 70px;
}

.perez-founder-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .perez-founder-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.perez-founder-visual {
  position: sticky;
  top: 100px;
}

.perez-founder-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid;
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.perez-founder-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(192, 133, 82, 0.4);
  border-radius: 16px;
  pointer-events: none;
  z-index: 5;
}

body.perez-light-mode .perez-founder-frame {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.16);
}

body.perez-dark-mode .perez-founder-frame {
  background: #19120E;
  border-color: rgba(192, 133, 82, 0.3);
}

.perez-founder-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px -12px rgba(192, 133, 82, 0.3);
}

.perez-founder-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 6;
  background: var(--pl-caramel);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.perez-founder-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-founder-frame:hover .perez-founder-img {
  transform: scale(1.03);
}

.perez-founder-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(15, 10, 8, 0.95) 0%, rgba(15, 10, 8, 0.7) 60%, rgba(15, 10, 8, 0) 100%);
  z-index: 6;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perez-founder-overlay-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #FFFFFF;
}

.perez-founder-overlay-title {
  font-size: 12px;
  color: var(--pl-caramel);
  font-weight: 600;
}

.perez-founder-socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.perez-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.25s ease;
}

.perez-social-btn:hover {
  background: var(--pl-caramel);
  border-color: var(--pl-caramel);
  transform: translateY(-2px);
}

/* Right Column Content */
.perez-founder-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.perez-founder-header-block {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(192, 133, 82, 0.2);
}

.perez-founder-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
}

.perez-founder-role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pl-caramel);
  margin-bottom: 14px;
}

.perez-founder-intro {
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  opacity: 0.9;
}

.perez-founder-cards-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.perez-founder-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.perez-light-mode .perez-founder-card {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.12);
  box-shadow: 0 6px 20px -6px rgba(94, 48, 35, 0.05);
}
body.perez-light-mode .perez-founder-card:hover {
  transform: translateX(6px);
  border-color: var(--pl-caramel);
  box-shadow: 0 10px 28px -8px rgba(94, 48, 35, 0.12);
}

body.perez-dark-mode .perez-founder-card {
  background: #18120E;
  border-color: rgba(192, 133, 82, 0.2);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.4);
}
body.perez-dark-mode .perez-founder-card:hover {
  transform: translateX(6px);
  border-color: var(--pl-caramel);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.7);
}

.perez-founder-card-icon {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.perez-founder-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.perez-founder-card-text {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  opacity: 0.88;
}

.perez-inline-link {
  color: var(--pl-caramel);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.perez-inline-link:hover {
  color: var(--pl-brownie);
}

/* 3. Core Values / Passions Section */
.perez-passions-section {
  padding: 60px 0 70px;
}

.perez-passions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

@media (max-width: 900px) {
  .perez-passions-grid {
    grid-template-columns: 1fr;
  }
}

.perez-passion-card {
  padding: 36px 30px;
  border-radius: 20px;
  border: 1px solid;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.perez-passion-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(192, 133, 82, 0.3);
  border-radius: 14px;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.perez-passion-card:hover::after {
  border-color: var(--pl-caramel);
}

body.perez-light-mode .perez-passion-card {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.14);
  box-shadow: 0 10px 30px -8px rgba(94, 48, 35, 0.06);
}
body.perez-light-mode .perez-passion-card:hover {
  transform: translateY(-8px);
  border-color: var(--pl-caramel);
  box-shadow: 0 20px 45px -10px rgba(94, 48, 35, 0.15);
}

body.perez-dark-mode .perez-passion-card {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.22);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
}
body.perez-dark-mode .perez-passion-card:hover {
  transform: translateY(-8px);
  border-color: var(--pl-caramel);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8);
}

.perez-passion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.perez-passion-icon {
  font-size: 26px;
  line-height: 1;
}

.perez-passion-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.perez-passion-desc {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  opacity: 0.88;
}

/* 4. Artisan Materials Showcase */
.perez-materials-showcase-section {
  padding: 40px 0 60px;
}

.perez-materials-box {
  max-width: 920px;
  margin: 0 auto;
}

.perez-materials-img-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid;
  box-shadow: 0 18px 50px -10px rgba(0, 0, 0, 0.25);
}

.perez-materials-img-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(192, 133, 82, 0.4);
  border-radius: 16px;
  pointer-events: none;
  z-index: 5;
}

body.perez-light-mode .perez-materials-img-frame {
  border-color: rgba(94, 48, 35, 0.18);
}
body.perez-dark-mode .perez-materials-img-frame {
  border-color: rgba(192, 133, 82, 0.3);
}

.perez-materials-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  background: var(--pl-caramel);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.perez-materials-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.perez-materials-img-frame:hover .perez-materials-img {
  transform: scale(1.025);
}

.perez-materials-caption {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 5. Exclusive Access Newsletter Section */
.perez-exclusive-access-section {
  padding: 40px 0 80px;
}

.perez-exclusive-box {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 42px;
  border-radius: 24px;
  border: 1px solid;
  position: relative;
  transition: var(--pl-transition);
}

.perez-exclusive-box::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(192, 133, 82, 0.35);
  border-radius: 18px;
  pointer-events: none;
}

body.perez-light-mode .perez-exclusive-box {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.16);
  box-shadow: 0 16px 45px -10px rgba(94, 48, 35, 0.1);
}

body.perez-dark-mode .perez-exclusive-box {
  background: #17110D;
  border-color: rgba(192, 133, 82, 0.28);
  box-shadow: 0 20px 55px -10px rgba(0, 0, 0, 0.65);
}

.perez-exclusive-header {
  margin-bottom: 32px;
}

.perez-exclusive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0 12px;
  line-height: 1.25;
}

.perez-exclusive-sub {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0;
}

.perez-exclusive-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.perez-privacy-reassurance {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
}

/* =========================================================
   12. LUXURY ARTISANAL CUSTOM CURSOR & MOUSE POINTER SYSTEM
   ========================================================= */
:root {
  --pt-z-cursor: 9999999 !important;
}

/* Ensure Custom Cursor is ALWAYS visible above ALL modals & drawers */
.patina-cursor,
.perez-custom-cursor {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  z-index: 99999999 !important;
  mix-blend-mode: normal !important; /* Prevents cursor from disappearing on dark surfaces */
  opacity: 1;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.patina-cursor.is-out,
.perez-custom-cursor.is-out {
  opacity: 0 !important;
}

/* 1. Precision Central Dot */
.patina-cursor__dot,
.perez-cursor-dot {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 8px !important;
  height: 8px !important;
  margin: -4px 0 0 -4px !important;
  border-radius: 50% !important;
  background: var(--pl-caramel) !important;
  box-shadow: 0 0 10px rgba(192, 133, 82, 0.9), 0 0 2px #FFFFFF, inset 0 0 2px #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  will-change: transform;
  pointer-events: none !important;
  z-index: 99999999 !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              width 0.25s ease,
              height 0.25s ease,
              margin 0.25s ease !important;
}

/* 2. Trailing Luxury Halo Ring */
.patina-cursor__ring,
.perez-cursor-ring {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 40px !important;
  height: 40px !important;
  margin: -20px 0 0 -20px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(192, 133, 82, 0.75) !important;
  background: radial-gradient(circle, rgba(192, 133, 82, 0.12) 0%, rgba(192, 133, 82, 0.02) 70%, transparent 100%) !important;
  box-shadow: 0 0 18px rgba(192, 133, 82, 0.25), inset 0 0 10px rgba(192, 133, 82, 0.15) !important;
  will-change: transform;
  pointer-events: none !important;
  z-index: 99999998 !important;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.25s ease !important;
}

/* Outer Stitched Accent on Ring (Double Ring Effect) */
.patina-cursor__ring::after,
.perez-cursor-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px dashed rgba(192, 133, 82, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: perezCursorRotate 20s linear infinite;
}

@keyframes perezCursorRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 3. Interactive Hover Expansions */
.patina-cursor[data-state="link"] .patina-cursor__ring,
.patina-cursor.is-hovering .patina-cursor__ring,
.perez-custom-cursor[data-state="link"] .perez-cursor-ring,
.perez-custom-cursor.is-hovering .perez-cursor-ring {
  width: 60px !important;
  height: 60px !important;
  margin: -30px 0 0 -30px !important;
  border-color: #D4A373 !important;
  background: radial-gradient(circle, rgba(192, 133, 82, 0.22) 0%, rgba(192, 133, 82, 0.05) 75%, transparent 100%) !important;
  box-shadow: 0 0 28px rgba(192, 133, 82, 0.5) !important;
}

.patina-cursor[data-state="link"] .patina-cursor__dot,
.patina-cursor.is-hovering .patina-cursor__dot,
.perez-custom-cursor[data-state="link"] .perez-cursor-dot,
.perez-custom-cursor.is-hovering .perez-cursor-dot {
  transform: scale(0.65) !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.95) !important;
}

/* 4. Interactive Label Pill Badge (e.g. "VIEW", "CLOSE", "ZOOM", "BAG") */
.patina-cursor__label,
.perez-cursor-label {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  padding: 6px 14px !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 999px !important;
  background: var(--pl-caramel) !important;
  color: #FFFFFF !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  scale: 0.7 !important;
  pointer-events: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  z-index: 99999999 !important;
  transition: opacity 0.25s ease, scale 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.patina-cursor[data-state="label"] .patina-cursor__ring,
.patina-cursor[data-state="label"] .patina-cursor__dot,
.perez-custom-cursor[data-state="label"] .perez-cursor-ring,
.perez-custom-cursor[data-state="label"] .perez-cursor-dot {
  opacity: 0 !important;
}

.patina-cursor[data-state="label"] .patina-cursor__label,
.perez-custom-cursor[data-state="label"] .perez-cursor-label {
  opacity: 1 !important;
  scale: 1 !important;
}

/* 5. Click Active / Mouse Down Pulse */
.patina-cursor.is-down .patina-cursor__ring,
.perez-custom-cursor.is-down .perez-cursor-ring {
  width: 28px !important;
  height: 28px !important;
  margin: -14px 0 0 -14px !important;
  border-color: #FFFFFF !important;
  background: rgba(192, 133, 82, 0.35) !important;
  box-shadow: 0 0 22px rgba(192, 133, 82, 0.7) !important;
}

.patina-cursor.is-down .patina-cursor__dot,
.perez-custom-cursor.is-down .perez-cursor-dot {
  transform: scale(1.4) !important;
}

/* Text Inputs: Always retain text cursor */
input, textarea, select {
  cursor: text !important;
}

/* Modal and Drawer cursor overrides to ensure pointer visibility */
.perez-modal-overlay,
.perez-modal-box,
.perez-cart-drawer,
.perez-cart-panel {
  cursor: default;
}

.perez-modal-close,
.perez-cart-close-btn,
.perez-modal-actions a,
.perez-btn-primary,
.perez-btn-secondary,
.perez-submit-btn,
.perez-product-card,
.perez-showcase-card {
  cursor: pointer;
}

/* =========================================================
   14. LUXURY MULTI-STEP ATELIER CHECKOUT MODAL SYSTEM
   ========================================================= */

/* Modal Overlay & Backdrop */
.perez-checkout-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100005 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-checkout-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.perez-checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Modal Dialog Box */
.perez-checkout-modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1060px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(192, 133, 82, 0.25);
  transform: scale(0.94) translateY(18px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-checkout-modal-overlay.is-open .perez-checkout-modal-box {
  transform: scale(1) translateY(0);
}

body.perez-light-mode .perez-checkout-modal-box {
  background: #FAF7F2;
  color: var(--pl-brownie);
}

body.perez-dark-mode .perez-checkout-modal-box {
  background: #18110D;
  color: var(--pl-cream);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(192, 133, 82, 0.3);
}

/* Header Bar */
.perez-checkout-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid;
  flex-shrink: 0;
}

body.perez-light-mode .perez-checkout-modal-head {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.1);
}

body.perez-dark-mode .perez-checkout-modal-head {
  background: #140E0A;
  border-color: rgba(192, 133, 82, 0.18);
}

.perez-checkout-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perez-checkout-emblem {
  color: var(--pl-caramel);
  font-size: 16px;
}

.perez-checkout-brand-text {
  font-family: var(--pl-font-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.perez-checkout-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(192, 133, 82, 0.14);
  color: var(--pl-caramel);
  border: 1px solid rgba(192, 133, 82, 0.28);
}

.perez-checkout-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  opacity: 0.65;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-checkout-close-btn {
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-checkout-close-btn {
  color: var(--pl-cream);
}
.perez-checkout-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
  color: var(--pl-caramel);
}

/* Stepper Indicator */
.perez-checkout-stepper-wrap {
  padding: 16px 28px;
  border-bottom: 1px solid;
  flex-shrink: 0;
}

body.perez-light-mode .perez-checkout-stepper-wrap {
  background: #F4EFEB;
  border-color: rgba(94, 48, 35, 0.08);
}

body.perez-dark-mode .perez-checkout-stepper-wrap {
  background: #1B130F;
  border-color: rgba(192, 133, 82, 0.14);
}

.perez-checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
}

.perez-stepper-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  opacity: 0.45;
  transition: var(--pl-transition);
}

.perez-stepper-item.is-active,
.perez-stepper-item.is-done {
  opacity: 1;
}

.perez-stepper-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-stepper-num {
  border-color: rgba(94, 48, 35, 0.3);
  background: #FFFFFF;
  color: var(--pl-brownie);
}
body.perez-dark-mode .perez-stepper-num {
  border-color: rgba(192, 133, 82, 0.3);
  background: #241A14;
  color: var(--pl-cream);
}

.perez-stepper-item.is-active .perez-stepper-num {
  background: var(--pl-caramel) !important;
  color: #FFFFFF !important;
  border-color: var(--pl-caramel) !important;
  box-shadow: 0 0 12px rgba(192, 133, 82, 0.4);
}

.perez-stepper-item.is-done .perez-stepper-num {
  background: #27ae60 !important;
  color: #FFFFFF !important;
  border-color: #27ae60 !important;
}

.perez-stepper-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.perez-stepper-line {
  flex: 1;
  height: 2px;
  margin: 0 12px;
  background: rgba(192, 133, 82, 0.2);
  transition: var(--pl-transition);
}

.perez-stepper-line.is-done {
  background: #27ae60;
}

/* Modal Body Layout */
.perez-checkout-modal-body {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.perez-checkout-main-col {
  padding: 30px;
  overflow-y: auto;
  border-right: 1px solid;
}

body.perez-light-mode .perez-checkout-main-col {
  border-color: rgba(94, 48, 35, 0.08);
}
body.perez-dark-mode .perez-checkout-main-col {
  border-color: rgba(192, 133, 82, 0.14);
}

.perez-checkout-summary-col {
  padding: 30px;
  overflow-y: auto;
}

body.perez-light-mode .perez-checkout-summary-col {
  background: #F5EFEB;
}
body.perez-dark-mode .perez-checkout-summary-col {
  background: #140D0A;
}

/* Step Panels */
.perez-checkout-step-panel {
  display: none;
  animation: perezStepFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.perez-checkout-step-panel.is-active {
  display: block;
}

@keyframes perezStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Headers */
.perez-step-header {
  margin-bottom: 24px;
}

.perez-step-title {
  font-family: var(--pl-font-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.perez-step-desc {
  font-size: 13px;
  opacity: 0.75;
  margin: 0;
}

/* Form Elements */
.perez-form-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--pl-caramel);
}

.perez-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.perez-form-3col {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 14px;
}

.perez-form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perez-form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.perez-form-input,
.perez-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid;
  outline: none;
  font-family: inherit;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-form-input,
body.perez-light-mode .perez-form-textarea {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.2);
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-form-input:focus,
body.perez-light-mode .perez-form-textarea:focus {
  border-color: var(--pl-caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.15);
}

body.perez-dark-mode .perez-form-input,
body.perez-dark-mode .perez-form-textarea {
  background: #201712;
  border-color: rgba(192, 133, 82, 0.25);
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-form-input:focus,
body.perez-dark-mode .perez-form-textarea:focus {
  border-color: var(--pl-caramel);
  box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.25);
}

.perez-input-with-icon {
  position: relative;
}

.perez-input-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(192, 133, 82, 0.16);
  color: var(--pl-caramel);
}

/* Shipping Options List */
.perez-shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.perez-shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid;
  cursor: pointer;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-shipping-option {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.14);
}
body.perez-light-mode .perez-shipping-option:hover,
body.perez-light-mode .perez-shipping-option.is-selected {
  border-color: var(--pl-caramel);
  background: #FDFBF8;
}

body.perez-dark-mode .perez-shipping-option {
  background: #1F1713;
  border-color: rgba(192, 133, 82, 0.2);
}
body.perez-dark-mode .perez-shipping-option:hover,
body.perez-dark-mode .perez-shipping-option.is-selected {
  border-color: var(--pl-caramel);
  background: #281D17;
}

.perez-shipping-opt-info {
  flex: 1;
}

.perez-shipping-opt-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 2px;
}

.perez-shipping-opt-desc {
  font-size: 11px;
  opacity: 0.7;
}

.perez-shipping-opt-price {
  font-weight: 700;
  font-size: 13px;
}

.perez-opt-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

.perez-opt-badge.is-gold {
  background: rgba(192, 133, 82, 0.18);
  color: var(--pl-caramel);
}

/* Step 2: Customizer Cards & Live Leather Monogram Simulation */
.perez-customizer-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid;
}

body.perez-light-mode .perez-customizer-card {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.12);
}
body.perez-dark-mode .perez-customizer-card {
  background: #1F1713;
  border-color: rgba(192, 133, 82, 0.2);
}

.perez-customizer-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perez-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
}

.perez-monogram-body {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(192, 133, 82, 0.25);
}

.perez-monogram-config-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
}

.perez-foil-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.perez-foil-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  cursor: pointer;
  background: transparent;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-foil-btn {
  border-color: rgba(94, 48, 35, 0.18);
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-foil-btn.is-active {
  border-color: var(--pl-caramel);
  background: rgba(192, 133, 82, 0.12);
}

body.perez-dark-mode .perez-foil-btn {
  border-color: rgba(192, 133, 82, 0.25);
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-foil-btn.is-active {
  border-color: var(--pl-caramel);
  background: rgba(192, 133, 82, 0.2);
}

.perez-foil-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.perez-foil-dot.is-gold {
  background: linear-gradient(135deg, #FFE082, #D4AF37, #996515);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}
.perez-foil-dot.is-silver {
  background: linear-gradient(135deg, #FFFFFF, #B0BEC5, #78909C);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}
.perez-foil-dot.is-blind {
  background: #3E2723;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Leather Monogram Simulation Patch */
.perez-monogram-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.perez-monogram-patch {
  position: relative;
  width: 180px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4A2E1B 0%, #341F12 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.15), inset 0 -3px 6px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 8px;
}

.perez-patch-stitching {
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  pointer-events: none;
}

.perez-patch-emblem {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

.perez-patch-initials {
  font-family: var(--pl-font-serif);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 2px 0;
  transition: all 0.3s ease;
}

.perez-patch-initials.foil-gold {
  background: linear-gradient(135deg, #FFF6D6 0%, #D4AF37 50%, #996515 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.6));
}

.perez-patch-initials.foil-silver {
  background: linear-gradient(135deg, #FFFFFF 0%, #CFD8DC 50%, #78909C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.5));
}

.perez-patch-initials.foil-blind {
  background: transparent;
  color: #1F120A;
  -webkit-text-fill-color: #1F120A;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2), 0 -1px 2px rgba(0, 0, 0, 0.8);
}

.perez-patch-sub {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
}

.perez-patch-caption {
  font-size: 11px;
  opacity: 0.7;
  font-style: italic;
}

/* Packaging Options */
.perez-packaging-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perez-packaging-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid;
  cursor: pointer;
  transition: var(--pl-transition);
}

body.perez-light-mode .perez-packaging-option {
  background: #FAF7F2;
  border-color: rgba(94, 48, 35, 0.12);
}
body.perez-light-mode .perez-packaging-option.is-selected {
  border-color: var(--pl-caramel);
  background: #FFFFFF;
}

body.perez-dark-mode .perez-packaging-option {
  background: #17100D;
  border-color: rgba(192, 133, 82, 0.18);
}
body.perez-dark-mode .perez-packaging-option.is-selected {
  border-color: var(--pl-caramel);
  background: #251B15;
}

.perez-pkg-icon {
  font-size: 20px;
  line-height: 1;
}

.perez-pkg-text strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.perez-pkg-text span {
  font-size: 11px;
  opacity: 0.7;
  line-height: 1.4;
  display: block;
}

/* Step 3: Payment Tabs */
.perez-payment-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.perez-payment-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid;
  cursor: pointer;
  background: transparent;
  transition: var(--pl-transition);
  text-align: center;
}

body.perez-light-mode .perez-payment-tab {
  border-color: rgba(94, 48, 35, 0.14);
  color: var(--pl-brownie);
}
body.perez-light-mode .perez-payment-tab.is-active {
  border-color: var(--pl-caramel);
  background: #FFFFFF;
  color: var(--pl-caramel);
  box-shadow: 0 4px 12px rgba(192, 133, 82, 0.15);
}

body.perez-dark-mode .perez-payment-tab {
  border-color: rgba(192, 133, 82, 0.2);
  color: var(--pl-cream);
}
body.perez-dark-mode .perez-payment-tab.is-active {
  border-color: var(--pl-caramel);
  background: #241A14;
  color: var(--pl-caramel);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.perez-payment-body {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid;
}

body.perez-light-mode .perez-payment-body {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.12);
}
body.perez-dark-mode .perez-payment-body {
  background: #1F1713;
  border-color: rgba(192, 133, 82, 0.2);
}

.perez-alt-payment-box {
  text-align: center;
  padding: 16px;
}

.perez-alt-pay-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.perez-alt-payment-box h4 {
  font-family: var(--pl-font-serif);
  font-size: 16px;
  margin-bottom: 6px;
}

.perez-alt-payment-box p {
  font-size: 12px;
  opacity: 0.75;
  margin: 0;
  line-height: 1.5;
}

.perez-security-reassurance {
  margin-top: 16px;
  font-size: 11px;
  opacity: 0.7;
}

/* Step Action Buttons */
.perez-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.perez-step-actions .perez-btn-primary,
.perez-step-actions .perez-btn-secondary {
  padding: 14px 24px;
  font-size: 12px;
}

.perez-place-order-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Step 4: Confirmed Celebration & Interactive Atelier Timeline */
.perez-confirmed-hero {
  padding: 10px 0 20px;
}

.perez-seal-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.perez-confirmed-seal {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pl-caramel);
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(192, 133, 82, 0.6);
  animation: perezSealPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes perezSealPop {
  0% { transform: scale(0) rotate(-180deg); }
  70% { transform: scale(1.15) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

.perez-confirmed-title {
  font-family: var(--pl-font-serif);
  font-size: 24px;
  font-weight: 700;
  margin: 6px 0 4px;
}

.perez-confirmed-sub {
  font-size: 13px;
  opacity: 0.75;
  margin: 0 0 14px;
}

.perez-order-ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(192, 133, 82, 0.15);
  border: 1px solid rgba(192, 133, 82, 0.3);
}

.perez-craft-timeline-box {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid;
  margin-bottom: 20px;
}

body.perez-light-mode .perez-craft-timeline-box {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.1);
}
body.perez-dark-mode .perez-craft-timeline-box {
  background: #1F1713;
  border-color: rgba(192, 133, 82, 0.2);
}

.perez-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin-top: 14px;
}

.perez-timeline-list::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(192, 133, 82, 0.2);
}

.perez-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  opacity: 0.45;
  transition: var(--pl-transition);
}

.perez-timeline-step.is-done,
.perez-timeline-step.is-active {
  opacity: 1;
}

.perez-tl-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid;
  z-index: 1;
  flex-shrink: 0;
}

body.perez-light-mode .perez-tl-dot {
  background: #FFFFFF;
  border-color: rgba(94, 48, 35, 0.2);
}
body.perez-dark-mode .perez-tl-dot {
  background: #241A14;
  border-color: rgba(192, 133, 82, 0.3);
}

.perez-timeline-step.is-done .perez-tl-dot {
  background: #27ae60 !important;
  color: #FFFFFF !important;
  border-color: #27ae60 !important;
}

.perez-timeline-step.is-active .perez-tl-dot {
  background: var(--pl-caramel) !important;
  color: #FFFFFF !important;
  border-color: var(--pl-caramel) !important;
  box-shadow: 0 0 12px rgba(192, 133, 82, 0.5);
  animation: perezPulseDot 2s infinite;
}

@keyframes perezPulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.perez-tl-content strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.perez-tl-content span {
  font-size: 11px;
  opacity: 0.7;
  line-height: 1.4;
  display: block;
}

.perez-confirmed-summary-box {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(192, 133, 82, 0.3);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perez-conf-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.perez-confirmed-actions {
  display: flex;
  gap: 12px;
}

/* Right Column: Order Summary Card */
.perez-summary-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.perez-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.perez-summary-head h4 {
  font-family: var(--pl-font-serif);
  font-size: 18px;
  margin: 0;
}

.perez-chk-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}

.perez-chk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(192, 133, 82, 0.12);
}

.perez-chk-item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.perez-chk-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perez-chk-item-details {
  flex: 1;
  min-width: 0;
}

.perez-chk-item-title {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perez-chk-item-meta {
  font-size: 11px;
  opacity: 0.65;
}

.perez-chk-item-price {
  font-weight: 700;
  font-size: 13px;
  color: var(--pl-caramel);
}

/* Promo Code Box */
.perez-promo-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perez-promo-input-row {
  display: flex;
  gap: 8px;
}

.perez-promo-message {
  font-size: 11px;
  display: none;
}
.perez-promo-message.is-success {
  display: block;
  color: #27ae60;
}
.perez-promo-message.is-error {
  display: block;
  color: #e74c3c;
}

/* Line Calculation Rows */
.perez-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(192, 133, 82, 0.15);
  border-bottom: 1px solid rgba(192, 133, 82, 0.15);
}

.perez-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.perez-total-row {
  font-size: 15px;
  font-weight: 800;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(192, 133, 82, 0.25);
}

.perez-total-val {
  color: var(--pl-caramel);
  font-size: 18px;
  font-family: var(--pl-font-serif);
}

.perez-summary-guarantees {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  opacity: 0.75;
}

/* Responsive Modal Adjustments */
@media (max-width: 900px) {
  .perez-checkout-modal-body {
    grid-template-columns: 1fr;
  }
  .perez-checkout-main-col {
    border-right: none;
    border-bottom: 1px solid rgba(192, 133, 82, 0.15);
    padding: 20px;
  }
  .perez-checkout-summary-col {
    padding: 20px;
  }
  .perez-payment-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .perez-monogram-config-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .perez-checkout-modal-overlay {
    padding: 10px;
  }
  .perez-checkout-modal-box {
    max-height: 96vh;
  }
  .perez-form-2col,
  .perez-form-3col {
    grid-template-columns: 1fr;
  }
  .perez-stepper-label {
    display: none;
  }
  .perez-checkout-modal-head {
    padding: 14px 18px;
  }
}

/* =========================================================
   15. CREATIVE ARTISAN FOOTER & PILLARS SECTION
   ========================================================= */
.perez-artisan-footer.patina-footer {
  background-color: #12100E !important;
  color: #D4C9BC !important;
  border-top: 1px solid rgba(229, 163, 56, 0.22) !important;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin-top: auto;
}

.perez-artisan-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 163, 56, 0.45), transparent);
  pointer-events: none;
}

.perez-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

/* --- Top Value Pillars Ribbon --- */
.perez-footer-pillars {
  border-bottom: 1px solid rgba(229, 163, 56, 0.12);
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.2);
}

.perez-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.perez-pillar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.perez-pillar-item:hover {
  background: rgba(229, 163, 56, 0.06);
  border-color: rgba(229, 163, 56, 0.25);
  transform: translateY(-2px);
}

.perez-pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 163, 56, 0.12);
  border: 1px solid rgba(229, 163, 56, 0.3);
  color: #E5A338;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.perez-pillar-item:hover .perez-pillar-icon-box {
  background: #E5A338;
  color: #12100E;
  box-shadow: 0 0 16px rgba(229, 163, 56, 0.4);
}

.perez-pillar-content {
  display: flex;
  flex-direction: column;
}

.perez-pillar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #F7F2E9;
  letter-spacing: 0.2px;
}

.perez-pillar-sub {
  font-size: 11.5px;
  color: #9E9486;
  margin-top: 2px;
}

/* --- Main Footer Grid --- */
.perez-footer-main {
  padding: 60px 0 45px;
}

.perez-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.6fr;
  gap: 48px;
}

/* Brand Col */
.perez-footer-brand-col {
  display: flex;
  flex-direction: column;
}

/* Header & Navigation Bar Height, Fixed Positioning & Alignment */
.patina-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  height: auto !important;
  min-height: 76px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Ensure header respects WordPress admin bar */
body.admin-bar .patina-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .patina-header {
    top: 46px !important;
  }
}
@media screen and (max-width: 600px) {
  body.admin-bar .patina-header {
    top: 0 !important;
  }
}

/* Home Page & First Section Clearance - Never Overlap Header at Scroll 0 */
body.home #patina-main,
body.home .patina-main,
.home .elementor-2 .elementor-element-55b824e,
.home .elementor-2 > .elementor-top-section:first-child {
  padding-top: calc(var(--pt-header-h, 88px) + 24px) !important;
}

.perez-about-hero,
.elementor-1792 .perez-about-hero,
.elementor-element-perez_about_hero_sec {
  padding-top: calc(var(--pt-header-h, 88px) + 24px) !important;
}

@media (min-width: 992px) {
  .patina-header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 76px !important;
  }

  .patina-nav {
    display: flex !important;
    align-items: center !important;
  }

  .patina-header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
}

/* Header Brand Logo - Enhanced Large & Crisp Sizing */
.perez-header-brand,
.patina-header .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  padding: 4px 0 !important;
  flex-shrink: 0 !important;
  max-height: 72px !important;
  overflow: hidden !important;
}

.perez-header-logo-img,
.patina-header .custom-logo {
  height: 66px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 8px rgba(229, 163, 56, 0.15));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease !important;
}

.perez-header-brand:hover .perez-header-logo-img,
.patina-header .custom-logo-link:hover .custom-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(229, 163, 56, 0.35));
}

/* Fail-Safe Single Logo Default (Dark Mode Baseline) */
.perez-logo-dark-theme,
.patina-brand .perez-logo-dark-theme {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}
.perez-logo-light-theme,
.patina-brand .perez-logo-light-theme {
  display: inline-block !important;
  visibility: visible !important;
  width: auto !important;
  height: 38px !important;
  max-height: 38px !important;
  opacity: 1 !important;
  position: static !important;
  pointer-events: auto !important;
}

/* Light Mode Header (Cream/Light background): Show Dark Logo, Hide Light Logo */
body.perez-light-mode .perez-logo-dark-theme,
html.perez-light-mode .perez-logo-dark-theme,
.perez-light-mode .perez-header-logo-img.perez-logo-dark-theme,
.perez-light-mode .patina-brand .perez-logo-dark-theme,
[data-theme="light"] .perez-logo-dark-theme {
  display: inline-block !important;
  visibility: visible !important;
  width: auto !important;
  height: 38px !important;
  max-height: 38px !important;
  opacity: 1 !important;
  position: static !important;
  pointer-events: auto !important;
}
body.perez-light-mode .perez-logo-light-theme,
html.perez-light-mode .perez-logo-light-theme,
.perez-light-mode .perez-header-logo-img.perez-logo-light-theme,
.perez-light-mode .patina-brand .perez-logo-light-theme,
[data-theme="light"] .perez-logo-light-theme {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Dark Mode Header (Dark/Black background): Show Light Logo, Hide Dark Logo */
body.perez-dark-mode .perez-logo-dark-theme,
html.perez-dark-mode .perez-logo-dark-theme,
.perez-dark-mode .perez-header-logo-img.perez-logo-dark-theme,
.perez-dark-mode .patina-brand .perez-logo-dark-theme,
[data-theme="dark"] .perez-logo-dark-theme {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}
body.perez-dark-mode .perez-logo-light-theme,
html.perez-dark-mode .perez-logo-light-theme,
.perez-dark-mode .perez-header-logo-img.perez-logo-light-theme,
.perez-dark-mode .patina-brand .perez-logo-light-theme,
[data-theme="dark"] .perez-logo-light-theme {
  display: inline-block !important;
  visibility: visible !important;
  width: auto !important;
  height: 38px !important;
  max-height: 38px !important;
  opacity: 1 !important;
  position: static !important;
  pointer-events: auto !important;
}

/* Responsive Scaling for Header Logo */
@media (max-width: 1024px) {
  .perez-header-logo-img,
  .patina-header .custom-logo {
    height: 56px !important;
    max-height: 60px !important;
  }
  .patina-header__inner {
    min-height: 66px !important;
  }
}

@media (max-width: 640px) {
  .perez-header-logo-img,
  .patina-header .custom-logo {
    height: 48px !important;
    max-height: 52px !important;
  }
  .patina-header__inner {
    min-height: 60px !important;
  }
}

/* Footer Brand Logo */
.perez-footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.perez-footer-brand-lockup:hover {
  opacity: 0.95;
  transform: scale(1.03);
}

.perez-footer-logo-img {
  height: 72px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 16px rgba(229, 163, 56, 0.3));
}

.perez-footer-tagline {
  margin: 18px 0 0 0;
  font-size: 13.5px;
  font-style: italic;
  font-family: Georgia, serif;
  color: #BDB2A3;
  line-height: 1.5;
}

.perez-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.perez-footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 163, 56, 0.2);
  color: #D4C9BC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.perez-footer-social-btn:hover {
  background: #E5A338;
  border-color: #E5A338;
  color: #12100E;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(229, 163, 56, 0.35);
}

/* Nav Link Columns */
.perez-footer-col-heading {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #F8F4EC;
  margin: 0 0 20px 0;
  position: relative;
  display: inline-block;
}

.perez-footer-col-heading::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 20px;
  height: 2px;
  background: #E5A338;
  border-radius: 1px;
}

.perez-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.perez-footer-links li a {
  color: #A89E90 !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.perez-footer-links li a:hover {
  color: #E5A338 !important;
  transform: translateX(4px);
}

/* Newsletter Col */
.perez-footer-newsletter-col {
  display: flex;
  flex-direction: column;
}

.perez-footer-newsletter-text {
  font-size: 13.5px;
  color: #BDB2A3;
  line-height: 1.55;
  margin: 0 0 18px 0;
}

.perez-footer-newsletter-form {
  width: 100%;
}

.perez-footer-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 163, 56, 0.28);
  border-radius: 6px;
  padding: 3px 6px 3px 16px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.perez-footer-input-group:focus-within {
  border-color: #E5A338;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(229, 163, 56, 0.18);
}

.perez-footer-email-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #F8F4EC !important;
  font-size: 14px !important;
  font-family: inherit !important;
  outline: none !important;
  padding: 10px 0 !important;
  min-width: 0;
}

.perez-footer-email-input::placeholder {
  color: rgba(215, 203, 190, 0.45);
}

.perez-footer-submit-btn {
  background: transparent;
  border: none;
  color: #E5A338;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.perez-footer-submit-btn:hover {
  background: #E5A338;
  color: #12100E;
  transform: translateX(2px);
  box-shadow: 0 2px 10px rgba(229, 163, 56, 0.35);
}

.perez-newsletter-status-msg {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  min-height: 18px;
  transition: all 0.3s ease;
}

.perez-newsletter-status-msg.success {
  color: #78D596;
  font-weight: 600;
}

.perez-newsletter-status-msg.error {
  color: #F87171;
}

.perez-newsletter-guarantee {
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(189, 178, 163, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}

.perez-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E5A338;
  display: inline-block;
  opacity: 0.8;
}

/* --- Bottom Bar --- */
.perez-footer-bottom-bar {
  border-top: 1px solid rgba(229, 163, 56, 0.12);
  padding: 22px 0;
  background: rgba(0, 0, 0, 0.35);
}

.perez-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.perez-footer-copy {
  font-size: 12.5px;
  color: #9E9486;
  line-height: 1.4;
}

.perez-footer-copy strong {
  color: #D4C9BC;
}

.perez-footer-bottom-extras {
  display: flex;
  align-items: center;
  gap: 20px;
}

.perez-atelier-location {
  font-size: 12px;
  color: #A89E90;
}

.perez-back-top-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 163, 56, 0.22);
  color: #D4C9BC;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.perez-back-top-btn:hover {
  background: #E5A338;
  border-color: #E5A338;
  color: #12100E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 163, 56, 0.3);
}

/* --- Legal Modal --- */
.perez-legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.perez-legal-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.perez-legal-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 11, 9, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.perez-legal-modal-box {
  position: relative;
  background: #1A1613;
  border: 1px solid rgba(229, 163, 56, 0.28);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 2;
}

.perez-legal-modal-overlay.is-active .perez-legal-modal-box {
  transform: translateY(0) scale(1);
}

.perez-legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(229, 163, 56, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.perez-legal-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perez-legal-emblem {
  color: #E5A338;
  font-size: 16px;
}

.perez-legal-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  color: #F8F4EC;
}

.perez-legal-close-btn {
  background: transparent;
  border: none;
  color: #A89E90;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.perez-legal-close-btn:hover {
  color: #E5A338;
}

.perez-legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.perez-legal-section h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #E5A338;
  font-weight: 700;
}

.perez-legal-section p {
  margin: 0;
  font-size: 13.5px;
  color: #C5BCB0;
  line-height: 1.6;
}

.perez-legal-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(229, 163, 56, 0.15);
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.2);
}

.perez-legal-dismiss-btn {
  background: #E5A338;
  border: 1px solid #E5A338;
  color: #12100E;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.perez-legal-dismiss-btn:hover {
  background: #F3B552;
  box-shadow: 0 4px 14px rgba(229, 163, 56, 0.35);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .perez-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perez-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .perez-pillars-grid {
    grid-template-columns: 1fr;
  }
  .perez-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .perez-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   PEREZ LEATHER - MASTER MOBILE RESPONSIVE ENHANCEMENTS
   ========================================================= */

/* Global Mobile Viewport Bounds & Touch Ergonomics */
html, body, .patina-shell {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* =========================================================
   TABLET & MOBILE HEADER (<= 900px)
   ========================================================= */
@media (max-width: 900px) {
  /* 1. Hide Desktop Navigation bar so header is never cluttered */
  .patina-nav {
    display: none !important;
  }

  /* 2. Compact, Sleek Header Bar */
  .patina-header {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .patina-header__inner {
    min-height: 58px !important;
    height: 58px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* 3. Scaled Logo */
  .perez-header-logo-img,
  .patina-header .custom-logo {
    height: 40px !important;
    max-height: 42px !important;
    max-width: 130px !important;
  }

  /* 4. Compact Actions Group */
  .patina-header__actions {
    gap: 8px !important;
  }

  /* 5. Compact Theme Mode Toggle Button (Icon-Only on Mobile) */
  .perez-mode-toggle {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
  }
  .perez-mode-toggle .perez-toggle-text {
    display: none !important;
  }
  .perez-mode-toggle .perez-toggle-icon {
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  /* 6. Cart & Burger Buttons */
  .patina-cartbtn,
  .patina-iconbtn {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .patina-burger {
    width: 40px !important;
    height: 40px !important;
    padding: 8px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  /* 7. Fullscreen Mobile Drawer Menu */
  .patina-menu {
    padding: 24px 20px !important;
  }
  .patina-menu__list a {
    font-size: clamp(20px, 5.5vw, 26px) !important;
    padding: 12px 0 !important;
    display: block !important;
  }
}

/* =========================================================
   HERO & 3D CANVAS ON MOBILE (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
  .patina-hero {
    min-height: 75vh !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }
  .patina-hero__inner {
    padding: 0 16px !important;
    text-align: center !important;
  }
  .patina-hero__title {
    font-size: clamp(28px, 7.5vw, 42px) !important;
    line-height: 1.15 !important;
    margin-inline: auto !important;
    max-width: 100% !important;
  }
  .patina-hero__lede {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-inline: auto !important;
    max-width: 100% !important;
  }
  .patina-hero__actions {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin-inline: auto !important;
  }
  .patina-hero__actions .patina-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 24px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
  }
  .patina-hero__cue {
    display: none !important;
  }
}

/* =========================================================
   PRODUCTS CATALOG TOOLBAR & FILTERS MOBILE ENHANCEMENTS
   ========================================================= */
@media (max-width: 768px) {
  .perez-products-section {
    padding-top: 20px !important;
    padding-bottom: 60px !important;
  }
  .perez-products-hero {
    padding: 24px 16px 16px !important;
    text-align: center !important;
  }
  .perez-products-hero h1 {
    font-size: clamp(26px, 6.5vw, 36px) !important;
    line-height: 1.2 !important;
  }
  .perez-products-hero p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  /* Sticky / Clean Mobile Toolbar */
  .perez-catalog-toolbar-wrap {
    padding: 12px 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .perez-catalog-toolbar {
    padding: 0 16px !important;
    gap: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Full-Width Search Input with Opaque Surface */
  .perez-toolbar-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .perez-search-box {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }
  .perez-search-input {
    width: 100% !important;
    height: 44px !important;
    font-size: 13px !important;
    padding: 10px 38px 10px 42px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    background: #18120E !important;
    color: #F5EDE2 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
    outline: none !important;
  }
  body.perez-light-mode .perez-search-input,
  html.perez-light-mode .perez-search-input {
    background: #FFFFFF !important;
    border-color: rgba(94, 48, 35, 0.25) !important;
    color: #2C1A11 !important;
    box-shadow: 0 3px 10px rgba(94, 48, 35, 0.08) !important;
  }
  .perez-search-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #C5A059 !important;
    pointer-events: none !important;
    font-size: 14px !important;
  }
  body.perez-light-mode .perez-search-icon,
  html.perez-light-mode .perez-search-icon {
    color: #894228 !important;
  }

  /* Horizontal Swipeable Category Pills Carousel with Edge Bleed */
  .perez-category-pills {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 8px !important;
    padding: 4px 16px 8px 16px !important;
    margin: 0 -16px !important;
    width: calc(100% + 32px) !important;
    box-sizing: border-box !important;
  }
  .perez-category-pills::-webkit-scrollbar {
    display: none !important;
  }
  .perez-filter-pill {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: 18px !important;
    background: #18120E !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    color: #E2D5C3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }
  .perez-filter-pill.is-active,
  .perez-category-pills .is-active {
    background: #C5A059 !important;
    color: #0D0A08 !important;
    border-color: #C5A059 !important;
    box-shadow: 0 3px 10px rgba(197, 160, 89, 0.3) !important;
  }
  body.perez-light-mode .perez-filter-pill,
  html.perez-light-mode .perez-filter-pill {
    background: #FFFFFF !important;
    border-color: rgba(94, 48, 35, 0.22) !important;
    color: #5E3023 !important;
    box-shadow: 0 2px 6px rgba(94, 48, 35, 0.08) !important;
  }
  body.perez-light-mode .perez-filter-pill.is-active,
  html.perez-light-mode .perez-filter-pill.is-active {
    background: #894228 !important;
    color: #FFFFFF !important;
    border-color: #894228 !important;
    box-shadow: 0 3px 10px rgba(137, 66, 40, 0.25) !important;
  }

  /* Filter Selects & Balanced Segmented Layout Switcher */
  .perez-toolbar-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .perez-select-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .perez-select-filters select:last-child,
  .perez-select-filters #perez-sort-filter {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  .perez-filter-select {
    width: 100% !important;
    height: 42px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 0 32px 0 12px !important;
    background-color: #18120E !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    color: #F5EDE2 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22) !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C5A059' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 10px !important;
  }
  body.perez-light-mode .perez-filter-select,
  html.perez-light-mode .perez-filter-select {
    background-color: #FFFFFF !important;
    border-color: rgba(94, 48, 35, 0.22) !important;
    color: #2C1A11 !important;
    box-shadow: 0 2px 6px rgba(94, 48, 35, 0.08) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23894228' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E") !important;
  }

  /* Full-Width Segmented Layout Switcher (Grid & Editorial) */
  .perez-layout-switcher {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    background: #18120E !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    border-radius: 10px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    gap: 6px !important;
  }
  body.perez-light-mode .perez-layout-switcher,
  html.perez-light-mode .perez-layout-switcher {
    background: #FFFFFF !important;
    border-color: rgba(94, 48, 35, 0.2) !important;
    box-shadow: 0 2px 6px rgba(94, 48, 35, 0.06) !important;
  }
  .perez-layout-btn {
    flex: 1 !important;
    height: 36px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border: none !important;
    background: transparent !important;
    color: #C5A059 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
  }
  .perez-layout-btn.is-active,
  .perez-layout-btn.active {
    background: #C5A059 !important;
    color: #0D0A08 !important;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3) !important;
  }
  body.perez-light-mode .perez-layout-btn,
  html.perez-light-mode .perez-layout-btn {
    color: #894228 !important;
  }
  body.perez-light-mode .perez-layout-btn.is-active,
  body.perez-light-mode .perez-layout-btn.active,
  html.perez-light-mode .perez-layout-btn.is-active,
  html.perez-light-mode .perez-layout-btn.active {
    background: #894228 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(137, 66, 40, 0.25) !important;
  }

  /* Results count row */
  .perez-filter-stats-row {
    padding: 4px 16px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    font-size: 11px !important;
    box-sizing: border-box !important;
  }
  #perez-results-count {
    font-weight: 600 !important;
    color: #C5A059 !important;
  }
  body.perez-light-mode #perez-results-count,
  html.perez-light-mode #perez-results-count {
    color: #894228 !important;
  }
}

/* =========================================================
   PRODUCT CARDS & GRID MOBILE LAYOUT
   ========================================================= */
/* Mobile Portrait & Small Screens (<= 540px) */
@media (max-width: 540px) {
  .perez-products-container {
    padding: 0 12px 60px !important;
  }

  /* Adaptive 2-Column Grid on Mobile for high visual impact */
  .perez-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Editorial mode stays 1-column */
  .perez-product-grid.is-editorial {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Compact, Elegant Product Card */
  .perez-product-card {
    border-radius: 12px !important;
  }
  .perez-product-img-wrap {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }
  .perez-card-badge {
    top: 6px !important;
    left: 6px !important;
    font-size: 8px !important;
    padding: 2px 7px !important;
    letter-spacing: 0.04em !important;
  }

  .perez-product-info {
    padding: 10px 10px 12px !important;
    gap: 4px !important;
  }
  .perez-product-meta-row {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }
  .perez-product-leather-type {
    display: none !important; /* Hide tiny subtitle on 2-col to keep clean */
  }
  .perez-product-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .perez-product-desc {
    display: none !important; /* Hide verbose description in 2-col mobile view for crisp catalog feel */
  }
  .perez-product-grid.is-editorial .perez-product-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 12px !important;
  }

  .perez-product-footer {
    margin-top: 6px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }
  .perez-product-price {
    font-size: 13px !important;
    font-weight: 800 !important;
  }
  .perez-add-to-cart-btn {
    width: 100% !important;
    padding: 7px 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.05em !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }
}

/* =========================================================
   CHECKOUT / ORDER MODAL ON MOBILE (<= 640px)
   ========================================================= */
@media (max-width: 640px) {
  .perez-checkout-modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .perez-checkout-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh !important;
    margin: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .perez-checkout-dialog-inner {
    padding: 24px 18px 36px !important;
  }

  /* Essential 16px font-size to prevent iOS Safari auto-zoom */
  .perez-form-input,
  .perez-form-textarea,
  .perez-form-select {
    font-size: 16px !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
  }

  .perez-checkout-product-preview {
    gap: 12px !important;
  }
  .perez-checkout-product-img {
    width: 60px !important;
    height: 60px !important;
  }
  .perez-checkout-product-title {
    font-size: 15px !important;
  }

  /* Payment Method Tabs */
  .perez-payment-tabs {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .perez-payment-tab {
    padding: 12px 14px !important;
    min-height: 48px !important;
  }

  .perez-checkout-submit-btn {
    padding: 16px !important;
    font-size: 13px !important;
    min-height: 50px !important;
  }
}

/* =========================================================
   SHOWCASE CARDS & VALUE PILLARS (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
  .perez-showcase-section {
    padding: 40px 16px !important;
  }
  .perez-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .perez-showcase-card {
    border-radius: 14px !important;
    padding: 20px !important;
  }
  .perez-showcase-img {
    max-height: 260px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }

  .perez-pillars-section {
    padding: 40px 16px !important;
  }
  .perez-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .perez-pillar-card {
    padding: 24px 18px !important;
  }

  /* Footer Mobile polish */
  .patina-footer {
    padding: 48px 16px 24px !important;
  }
  .perez-footer-brand-lockup {
    margin-bottom: 20px !important;
  }
}

/* =========================================================
   17. COMPREHENSIVE MOBILE VIEWPORT POLISH (<= 991px & <= 768px)
   ========================================================= */

/* Global horizontal overflow prevention */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative !important;
}

.patina-shell {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

/* Header Mobile Polish (<= 991px) */
@media (max-width: 991px) {
  /* 1. Complete Hiding of Desktop Navigation on Mobile (<= 991px) */
  html body .patina-shell .patina-header .patina-header__inner .patina-nav,
  html body .patina-header .patina-nav,
  html body .patina-nav,
  body .patina-header .patina-nav,
  .patina-header .patina-nav,
  .patina-nav {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 2. Sleek Fixed Header Bar & Line Styling */
  html body .patina-header,
  body .patina-header,
  .patina-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  }

  body.admin-bar .patina-header {
    top: 46px !important;
  }
  body.admin-bar .patina-menu {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
  }
  @media screen and (min-width: 783px) and (max-width: 991px) {
    body.admin-bar .patina-header {
      top: 32px !important;
    }
    body.admin-bar .patina-menu {
      top: 32px !important;
      height: calc(100vh - 32px) !important;
    }
  }

  /* Dark Mode Header Line & Luxury Blur */
  html.perez-dark-mode .patina-header,
  body.perez-dark-mode .patina-header,
  html:not(.perez-light-mode) .patina-header {
    background-color: rgba(13, 10, 8, 0.96) !important;
    background: rgba(13, 10, 8, 0.96) !important;
    backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    border-bottom: 1px solid rgba(192, 133, 82, 0.28) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
  }

  /* Light Mode Header Line & Luxury Blur */
  html.perez-light-mode .patina-header,
  body.perez-light-mode .patina-header {
    background-color: rgba(243, 233, 220, 0.96) !important;
    background: rgba(243, 233, 220, 0.96) !important;
    backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    border-bottom: 1px solid rgba(94, 48, 35, 0.16) !important;
    box-shadow: 0 4px 18px rgba(94, 48, 35, 0.08) !important;
  }

  /* 3. Header Inner Container Layout */
  html body .patina-header .patina-header__inner,
  body .patina-header .patina-header__inner,
  .patina-header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }

  /* 4. Brand Logo */
  .patina-brand,
  .perez-header-brand {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    max-width: 140px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .patina-brand img,
  .patina-brand svg,
  .perez-header-logo-img,
  .patina-header .custom-logo {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* 5. Header Actions Group */
  html body .patina-header .patina-header__actions,
  body .patina-header .patina-header__actions,
  .patina-header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    justify-self: end !important;
  }

  /* 6. Theme Mode Toggle Button */
  .perez-mode-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(192, 133, 82, 0.3) !important;
  }
  .perez-mode-toggle .perez-toggle-text {
    display: none !important;
  }
  .perez-mode-toggle .perez-toggle-icon {
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  /* 7. Cart & Account Icon Buttons */
  .patina-iconbtn,
  .patina-cartbtn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 1px solid rgba(192, 133, 82, 0.3) !important;
    padding: 0 !important;
  }

  /* 8. Luxury Hamburger Menu Button */
  html body .patina-header .patina-burger,
  body .patina-header .patina-burger,
  .patina-burger {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(192, 133, 82, 0.35) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin-left: 2px !important;
    flex-shrink: 0 !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .patina-burger span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 2px !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform-origin: center center !important;
  }
  html.perez-dark-mode .patina-burger span,
  body.perez-dark-mode .patina-burger span,
  html:not(.perez-light-mode) .patina-burger span {
    background-color: #F3E9DC !important;
  }
  html.perez-dark-mode .patina-burger,
  body.perez-dark-mode .patina-burger,
  html:not(.perez-light-mode) .patina-burger {
    border-color: rgba(197, 160, 89, 0.38) !important;
    background: rgba(197, 160, 89, 0.06) !important;
    color: #F3E9DC !important;
  }
  html.perez-light-mode .patina-burger span,
  body.perez-light-mode .patina-burger span {
    background-color: #5E3023 !important;
  }
  html.perez-light-mode .patina-burger,
  body.perez-light-mode .patina-burger {
    border-color: rgba(94, 48, 35, 0.25) !important;
    background: rgba(94, 48, 35, 0.05) !important;
    color: #5E3023 !important;
  }
  /* When menu is open, burger transforms to a clean X */
  html.is-menu-open .patina-burger span:nth-child(1),
  .patina-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }
  html.is-menu-open .patina-burger span:nth-child(2),
  .patina-burger.is-active span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
  }
  html.is-menu-open .patina-burger span:nth-child(3),
  .patina-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }

  /* 9. Fullscreen Mobile Overlay Menu Drawer */
  .patina-menu {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100001 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 24px 24px 32px !important;
    box-sizing: border-box !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  html.is-menu-open .patina-menu,
  .patina-menu.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  html.perez-light-mode .patina-menu,
  body.perez-light-mode .patina-menu {
    background-color: #F3E9DC !important;
    background: #F3E9DC !important;
    color: #5E3023 !important;
  }
  html.perez-dark-mode .patina-menu,
  body.perez-dark-mode .patina-menu,
  html:not(.perez-light-mode) .patina-menu {
    background-color: #0D0A08 !important;
    background: #0D0A08 !important;
    color: #F3E9DC !important;
  }
  .patina-menu__top {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    height: 50px !important;
    flex-shrink: 0 !important;
  }
  .patina-menu__top .patina-burger {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
  }
  .patina-menu__list {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: auto 0 !important;
    padding: 20px 0 !important;
    list-style: none !important;
  }
  .patina-menu__list > li {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .patina-menu__list > li > a {
    display: inline-block !important;
    font-family: var(--pt-font-display, "Playfair Display", Georgia, serif) !important;
    font-size: clamp(26px, 6.8vw, 38px) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    padding: 6px 0 !important;
    translate: 0 0 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
  }
  html.perez-dark-mode .patina-menu__list > li > a,
  body.perez-dark-mode .patina-menu__list > li > a,
  html:not(.perez-light-mode) .patina-menu__list > li > a {
    color: #F3E9DC !important;
  }
  html.perez-dark-mode .patina-menu__list > li > a:hover,
  html.perez-dark-mode .patina-menu__list > li.current-menu-item > a {
    color: var(--pl-caramel, #C08552) !important;
  }
  html.perez-light-mode .patina-menu__list > li > a,
  body.perez-light-mode .patina-menu__list > li > a {
    color: #5E3023 !important;
  }
  html.perez-light-mode .patina-menu__list > li > a:hover,
  html.perez-light-mode .patina-menu__list > li.current-menu-item > a {
    color: var(--pl-caramel, #C08552) !important;
  }
  .patina-menu__meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(192, 133, 82, 0.2) !important;
    font-size: 13px !important;
    letter-spacing: 0.04em !important;
    flex-shrink: 0 !important;
    opacity: 0.85 !important;
  }

  /* 10. Content Clearance */
  #patina-main,
  .patina-shell > main,
  body.home #patina-main,
  body.home .elementor-element-55b824e,
  .elementor-2 .elementor-element-55b824e {
    padding-top: 76px !important;
  }
  body.admin-bar #patina-main,
  body.admin-bar .patina-shell > main,
  body.admin-bar.home #patina-main,
  body.admin-bar.home .elementor-element-55b824e,
  body.admin-bar .elementor-2 .elementor-element-55b824e {
    padding-top: calc(76px + 46px) !important;
  }
}

/* Mobile Hero, Content & Typography Adjustments (<= 768px) */
@media (max-width: 768px) {
  /* Global Container Sizing */
  .patina-container,
  .perez-showcase-container,
  .perez-products-container,
  .elementor-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* Home Hero (PHP & Elementor) */
  .patina-hero {
    padding: 88px 16px 36px !important;
    min-height: auto !important;
    text-align: center !important;
  }

  .patina-hero__title,
  .elementor-2 .elementor-element.elementor-element-67d4297 .elementor-heading-title {
    font-size: clamp(28px, 7.5vw, 38px) !important;
    line-height: 1.18 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
  }

  .patina-hero__lede,
  .elementor-2 .elementor-element.elementor-element-900a1fa p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 auto 20px !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  /* Hero Action Buttons */
  .patina-hero__actions,
  .elementor-element-9d5aa47 > div {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
    justify-content: center !important;
    margin-bottom: 24px !important;
  }

  .patina-hero__actions .patina-btn,
  .elementor-element-9d5aa47 a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    box-sizing: border-box !important;
  }

  /* Hero Features Checkmarks */
  .elementor-element-f0b2b78 > div {
    justify-content: center !important;
    gap: 10px 16px !important;
    font-size: 11px !important;
  }

  /* 3D Model Stage Box - Frameless Floating */
  .elementor-element-fa03244,
  .elementor-element-fa03244 .elementor-widget-wrap,
  .elementor-element-fa03244 .elementor-widget-container,
  .elementor-element-3f71996,
  .elementor-element-3f71996 .elementor-widget-container {
    min-height: 360px !important;
  }
  .perez-3d-stage-box {
    width: 100% !important;
    max-width: 380px !important;
    height: 380px !important;
    min-height: 340px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 10px auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .perez-3d-stage-box .patina-gl-scene,
  .perez-3d-stage-box [data-gl-scene] {
    min-height: 340px !important;
  }

  /* Elementor Columns Full Width Stack */
  .elementor-column.elementor-col-55,
  .elementor-column.elementor-col-45,
  .elementor-column.elementor-col-60,
  .elementor-column.elementor-col-40,
  .elementor-column.elementor-col-33,
  .elementor-column.elementor-col-33\.33,
  .elementor-column.elementor-col-50,
  .elementor-column.elementor-col-100 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .elementor-column > .elementor-element-populated {
    padding: 12px 0 !important;
  }

  /* Curated Masterpieces Section */
  .perez-showcase-section {
    padding: 36px 0 60px !important;
  }

  .perez-showcase-header {
    margin-bottom: 30px !important;
    padding: 0 16px !important;
  }

  .perez-showcase-header h2 {
    font-size: clamp(26px, 6.5vw, 34px) !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }

  .perez-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .perez-showcase-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .perez-showcase-card {
    border-radius: 18px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    width: 100% !important;
  }

  /* Featured Card 1 on Mobile: Normal top image, clean body below, matching Cards 2 & 3 */
  .perez-showcase-card--featured {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 16px !important;
    position: relative !important;
  }

  .perez-showcase-card--featured .perez-showcase-img-wrap {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .perez-showcase-card--featured .perez-showcase-img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .perez-showcase-card--featured .perez-showcase-vignette {
    display: none !important;
  }

  .perez-showcase-card--featured .perez-showcase-body {
    position: static !important;
    padding: 14px 0 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
  }

  body.perez-light-mode .perez-showcase-card--featured,
  html.perez-light-mode .perez-showcase-card--featured {
    background: #FFFFFF !important;
    color: var(--pl-brownie, #5E3023) !important;
    border-color: rgba(94, 48, 35, 0.14) !important;
  }
  body.perez-light-mode .perez-showcase-card--featured .perez-showcase-card-title,
  html.perez-light-mode .perez-showcase-card--featured .perez-showcase-card-title {
    color: var(--pl-brownie, #5E3023) !important;
    font-size: 20px !important;
  }
  body.perez-light-mode .perez-showcase-card--featured .perez-showcase-card-desc,
  html.perez-light-mode .perez-showcase-card--featured .perez-showcase-card-desc {
    color: #6D4C41 !important;
    opacity: 0.9 !important;
  }

  body.perez-dark-mode .perez-showcase-card--featured,
  html.perez-dark-mode .perez-showcase-card--featured {
    background: #19120E !important;
    color: var(--pl-cream, #F3E9DC) !important;
    border-color: rgba(192, 133, 82, 0.22) !important;
  }
  body.perez-dark-mode .perez-showcase-card--featured .perez-showcase-card-title,
  html.perez-dark-mode .perez-showcase-card--featured .perez-showcase-card-title {
    color: var(--pl-cream, #F3E9DC) !important;
    font-size: 20px !important;
  }
  body.perez-dark-mode .perez-showcase-card--featured .perez-showcase-card-desc,
  html.perez-dark-mode .perez-showcase-card--featured .perez-showcase-card-desc {
    color: rgba(243, 233, 220, 0.85) !important;
  }

  /* Sub Cards 2 & 3 Alignment */
  .perez-showcase-card--sub {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    padding: 16px !important;
  }

  .perez-showcase-card--sub .perez-showcase-img-wrap {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .perez-showcase-card--sub .perez-showcase-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .perez-showcase-card--sub .perez-showcase-body {
    padding: 14px 0 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .perez-showcase-card-title {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
  }

  .perez-showcase-card-desc {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin: 0 0 14px !important;
  }

  .perez-swatches-wrap {
    margin-bottom: 12px !important;
  }

  .perez-tags-cluster {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
  }

  .perez-pill-tag {
    font-size: 10px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
  }

  .perez-showcase-link-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 11px 18px !important;
    font-size: 12px !important;
    text-align: center !important;
  }

  .perez-inspect-trigger {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 6 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(18, 12, 10, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Philosophy Quote Box */
  .perez-luxury-card {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  /* Footer Mobile */
  .patina-footer {
    padding: 40px 16px 20px !important;
  }

  /* Single Product View Modal on Mobile */
  #perez-showcase-modal,
  .perez-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 9999999 !important;
    padding: 12px 10px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    background: rgba(10, 7, 5, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }
  #perez-showcase-modal.is-open,
  .perez-modal-overlay.is-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #perez-showcase-modal .perez-modal-box {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 480px !important;
    max-height: 88vh !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  #perez-showcase-modal .perez-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 50 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    background: rgba(18, 12, 10, 0.78) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  #perez-showcase-modal .perez-modal-media {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
  }

  #perez-showcase-modal .perez-modal-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  #perez-showcase-modal .perez-modal-media-badge {
    left: 12px !important;
    bottom: 12px !important;
    font-size: 9px !important;
    padding: 4px 10px !important;
  }

  #perez-showcase-modal .perez-modal-info {
    padding: 20px 18px 26px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    flex: 1 0 auto !important;
    box-sizing: border-box !important;
  }

  #perez-showcase-modal .perez-modal-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
    gap: 8px !important;
  }

  #perez-showcase-modal .perez-modal-badge {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }

  #perez-showcase-modal .perez-modal-rating {
    font-size: 11px !important;
  }

  #perez-showcase-modal .perez-modal-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
  }

  #perez-showcase-modal .perez-modal-price-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  #perez-showcase-modal .perez-modal-price {
    font-size: 20px !important;
  }

  #perez-showcase-modal .perez-modal-desc {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin: 0 0 14px !important;
    opacity: 0.88 !important;
  }

  #perez-showcase-modal .perez-modal-options-block {
    margin-bottom: 12px !important;
  }

  #perez-showcase-modal .perez-modal-label {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }

  #perez-showcase-modal .perez-modal-swatches {
    gap: 8px !important;
  }

  #perez-showcase-modal .perez-modal-swatch {
    width: 22px !important;
    height: 22px !important;
  }

  #perez-showcase-modal .perez-modal-specs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
    margin-bottom: 16px !important;
    padding: 10px 0 !important;
  }

  #perez-showcase-modal .perez-spec-item strong {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }

  #perez-showcase-modal .perez-spec-item span {
    font-size: 11px !important;
  }

  #perez-showcase-modal .perez-modal-cart-controls {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
  }

  #perez-showcase-modal .perez-modal-qty-picker {
    flex-shrink: 0 !important;
  }

  #perez-showcase-modal .perez-modal-add-btn {
    flex: 1 !important;
    padding: 12px 14px !important;
    font-size: 11px !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  #perez-showcase-modal .perez-modal-secondary-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  #perez-showcase-modal .perez-modal-secondary-actions button,
  #perez-showcase-modal .perez-modal-secondary-actions a {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 11px 14px !important;
    font-size: 11px !important;
    min-height: 40px !important;
  }

  #perez-showcase-modal .perez-modal-guarantees {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    font-size: 10px !important;
    opacity: 0.8 !important;
    text-align: center !important;
  }
}

/* =========================================================
   18. MOBILE EXPANDABLE LONG DESCRIPTIONS
   ========================================================= */
@media (max-width: 768px) {
  .perez-expandable-text {
    position: relative !important;
    max-height: 4.8em !important;
    overflow: hidden !important;
    line-height: 1.6 !important;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
  }

  .perez-expandable-text:not(.is-expanded)::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 42px !important;
    background: linear-gradient(to bottom, transparent, rgba(13, 10, 8, 0.96)) !important;
    pointer-events: none !important;
  }

  body.perez-light-mode .perez-expandable-text:not(.is-expanded)::after,
  html.perez-light-mode .perez-expandable-text:not(.is-expanded)::after {
    background: linear-gradient(to bottom, transparent, rgba(243, 233, 220, 0.96)) !important;
  }

  .perez-expandable-text.is-expanded {
    max-height: 3500px !important;
    cursor: default !important;
  }

  .perez-expandable-text.is-expanded::after {
    display: none !important;
  }

  .perez-expand-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 8px !important;
    margin-bottom: 14px !important;
    padding: 7px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--pl-caramel, #C08552) !important;
    background: rgba(192, 133, 82, 0.12) !important;
    border: 1px solid rgba(192, 133, 82, 0.35) !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  .perez-expand-btn:active,
  .perez-expand-btn.is-active {
    background: rgba(192, 133, 82, 0.25) !important;
    transform: scale(0.97) !important;
    border-color: var(--pl-caramel, #C08552) !important;
  }

  body.perez-light-mode .perez-expand-btn,
  html.perez-light-mode .perez-expand-btn {
    background: rgba(94, 48, 35, 0.08) !important;
    border-color: rgba(94, 48, 35, 0.25) !important;
    color: var(--pl-brownie, #5E3023) !important;
  }
}

@media (min-width: 769px) {
  .perez-expand-btn {
    display: none !important;
  }

  .perez-expandable-text {
    max-height: none !important;
    overflow: visible !important;
  }

  .perez-expandable-text::after {
    display: none !important;
  }

  #perez-showcase-modal .perez-modal-box {
    max-width: 900px !important;
    display: grid !important;
    grid-template-columns: 1fr 1.05fr !important;
    max-height: 86vh !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    align-items: stretch !important;
  }
  #perez-showcase-modal .perez-modal-media {
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    width: 100% !important;
    align-self: stretch !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 19px 0 0 19px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0E0907 !important;
  }
  html.perez-light-mode #perez-showcase-modal .perez-modal-media,
  body.perez-light-mode #perez-showcase-modal .perez-modal-media {
    background: #F4EFE6 !important;
  }
  #perez-showcase-modal .perez-modal-media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
  #perez-showcase-modal .perez-modal-info {
    overflow-y: auto !important;
    max-height: 86vh !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 24px 28px 28px !important;
    box-sizing: border-box !important;
  }
  #perez-showcase-modal .perez-modal-media-badge {
    left: 14px !important;
    bottom: 14px !important;
    font-size: 9px !important;
    padding: 5px 12px !important;
  }
}

/* =========================================================
   19. PRODUCT CATALOG PAGINATION SYSTEM
   ========================================================= */
.perez-pagination-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 48px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
}

.perez-pagination,
.perez-catalog-pagination {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 6px 12px !important;
}

.perez-pagination::-webkit-scrollbar,
.perez-catalog-pagination::-webkit-scrollbar {
  display: none !important;
}

.perez-page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e6ded5 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.perez-page-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 14px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e6ded5 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.perez-page-ellipsis {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 38px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  color: rgba(255, 255, 255, 0.4) !important;
  user-select: none !important;
  flex-shrink: 0 !important;
}

.perez-page-btn:hover:not(:disabled),
.perez-page-nav-btn:hover:not(:disabled) {
  border-color: var(--pl-caramel, #C08552) !important;
  color: var(--pl-caramel, #C08552) !important;
  background: rgba(192, 133, 82, 0.12) !important;
  transform: translateY(-1px) !important;
}

.perez-page-btn.is-active {
  background: var(--pl-caramel, #C08552) !important;
  color: #FFFFFF !important;
  border-color: var(--pl-caramel, #C08552) !important;
  box-shadow: 0 4px 14px rgba(192, 133, 82, 0.35) !important;
}

.perez-page-btn:disabled,
.perez-page-nav-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Light Mode adjustments for Pagination */
body.perez-light-mode .perez-page-btn,
body.perez-light-mode .perez-page-nav-btn,
html.perez-light-mode .perez-page-btn,
html.perez-light-mode .perez-page-nav-btn {
  background: rgba(94, 48, 35, 0.05) !important;
  color: var(--pl-brownie, #5E3023) !important;
  border: 1px solid rgba(94, 48, 35, 0.15) !important;
}

body.perez-light-mode .perez-page-btn:hover:not(:disabled),
body.perez-light-mode .perez-page-nav-btn:hover:not(:disabled),
html.perez-light-mode .perez-page-btn:hover:not(:disabled),
html.perez-light-mode .perez-page-nav-btn:hover:not(:disabled) {
  background: rgba(192, 133, 82, 0.14) !important;
  color: var(--pl-brownie, #5E3023) !important;
  border-color: var(--pl-caramel, #C08552) !important;
}

body.perez-light-mode .perez-page-btn.is-active,
html.perez-light-mode .perez-page-btn.is-active {
  background: var(--pl-brownie, #5E3023) !important;
  color: #FAF4EC !important;
  border-color: var(--pl-brownie, #5E3023) !important;
  box-shadow: 0 4px 14px rgba(94, 48, 35, 0.25) !important;
}

body.perez-light-mode .perez-page-ellipsis,
html.perez-light-mode .perez-page-ellipsis {
  color: rgba(94, 48, 35, 0.45) !important;
}

/* Anti-Duplicate Rule: Never display fallback snippet pagination if theme container exists */
#perez-pagination-container ~ .perez-catalog-pagination,
.perez-catalog-pagination:has(+ #perez-pagination-container),
.perez-catalog-pagination:has(~ #perez-pagination-container),
.perez-catalog-pagination + #perez-pagination-container {
  display: none !important;
}

/* =========================================================
   PRODUCT CARD COLOR SWATCHES & VARIANT PREVIEWS
   ========================================================= */
.perez-product-img-wrap {
  position: relative;
}

.perez-card-swatches {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 4;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.perez-card-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  outline: none;
  background-clip: padding-box;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}

.perez-card-swatch:hover,
.perez-card-swatch.is-active {
  transform: scale(1.3);
  border-color: #c5a059 !important;
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.8) !important;
}

html.perez-light-mode .perez-card-swatches,
body.perez-light-mode .perez-card-swatches {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(94, 48, 35, 0.18);
  box-shadow: 0 4px 12px rgba(94, 48, 35, 0.12);
}

html.perez-light-mode .perez-card-swatch,
body.perez-light-mode .perez-card-swatch {
  border-color: rgba(94, 48, 35, 0.3);
}

html.perez-light-mode .perez-card-swatch.is-active,
body.perez-light-mode .perez-card-swatch.is-active {
  border-color: #9e7228 !important;
  box-shadow: 0 0 6px rgba(158, 114, 40, 0.6) !important;
}


/* =========================================================
   PEREZ ARTISAN FOOTER - HIGH-CONTRAST LUXURY LIGHT MODE
   ========================================================= */
html.perez-light-mode .perez-artisan-footer.patina-footer,
body.perez-light-mode .perez-artisan-footer.patina-footer {
  background-color: #FAF5ED !important;
  color: #1A0F09 !important;
  border-top: 1px solid rgba(94, 48, 35, 0.18) !important;
}

/* Light Mode Footer Brand Logo Switching */
html.perez-light-mode .perez-footer-brand-lockup .perez-logo-dark-theme,
body.perez-light-mode .perez-footer-brand-lockup .perez-logo-dark-theme {
  display: inline-block !important;
}
html.perez-light-mode .perez-footer-brand-lockup .perez-logo-light-theme,
body.perez-light-mode .perez-footer-brand-lockup .perez-logo-light-theme {
  display: none !important;
}

/* Fallback if single logo remains in cache: darken light logo */
html.perez-light-mode .perez-footer-logo-img:not(.perez-logo-dark-theme):not(.perez-logo-light-theme),
body.perez-light-mode .perez-footer-logo-img:not(.perez-logo-dark-theme):not(.perez-logo-light-theme) {
  filter: brightness(0.2) contrast(1.2) !important;
}

/* Brand Tagline */
html.perez-light-mode .perez-footer-tagline,
body.perez-light-mode .perez-footer-tagline {
  color: #382317 !important;
  font-weight: 500 !important;
}

/* Social Buttons */
html.perez-light-mode .perez-footer-social-btn,
body.perez-light-mode .perez-footer-social-btn {
  background: rgba(94, 48, 35, 0.08) !important;
  border: 1px solid rgba(94, 48, 35, 0.25) !important;
  color: #2C1A11 !important;
}
html.perez-light-mode .perez-footer-social-btn:hover,
body.perez-light-mode .perez-footer-social-btn:hover {
  background: #2C1A11 !important;
  border-color: #2C1A11 !important;
  color: #FAF5ED !important;
  box-shadow: 0 4px 12px rgba(44, 26, 17, 0.25) !important;
}

/* Top Value Pillars Ribbon */
html.perez-light-mode .perez-footer-pillars,
body.perez-light-mode .perez-footer-pillars {
  background: #EFE6D8 !important;
  border-bottom: 1px solid rgba(94, 48, 35, 0.16) !important;
}

html.perez-light-mode .perez-pillar-item,
body.perez-light-mode .perez-pillar-item {
  background: #FAF5ED !important;
  border: 1px solid rgba(94, 48, 35, 0.16) !important;
  box-shadow: 0 2px 8px rgba(94, 48, 35, 0.04) !important;
}
html.perez-light-mode .perez-pillar-item:hover,
body.perez-light-mode .perez-pillar-item:hover {
  background: #FFFFFF !important;
  border-color: rgba(94, 48, 35, 0.35) !important;
  box-shadow: 0 6px 16px rgba(94, 48, 35, 0.09) !important;
}

html.perez-light-mode .perez-pillar-icon-box,
body.perez-light-mode .perez-pillar-icon-box {
  background: rgba(197, 160, 89, 0.22) !important;
  border: 1px solid rgba(140, 90, 54, 0.35) !important;
  color: #7A4A16 !important;
}
html.perez-light-mode .perez-pillar-item:hover .perez-pillar-icon-box,
body.perez-light-mode .perez-pillar-item:hover .perez-pillar-icon-box {
  background: #2C1A11 !important;
  border-color: #2C1A11 !important;
  color: #FAF5ED !important;
}

html.perez-light-mode .perez-pillar-title,
body.perez-light-mode .perez-pillar-title {
  color: #1A0F09 !important;
  font-weight: 700 !important;
}
html.perez-light-mode .perez-pillar-sub,
body.perez-light-mode .perez-pillar-sub {
  color: #4A3324 !important;
  font-weight: 500 !important;
}

/* Column Headings (EXPLORE, SUPPORT, NEWSLETTER) */
html.perez-light-mode .perez-footer-col-heading,
body.perez-light-mode .perez-footer-col-heading {
  color: #1A0F09 !important;
  font-weight: 800 !important;
  letter-spacing: 2.5px !important;
}
html.perez-light-mode .perez-footer-col-heading::after,
body.perez-light-mode .perez-footer-col-heading::after {
  background: #8C5A36 !important;
}

/* Nav Links */
html.perez-light-mode .perez-footer-links li a,
body.perez-light-mode .perez-footer-links li a {
  color: #2C1A11 !important;
  font-weight: 500 !important;
}
html.perez-light-mode .perez-footer-links li a:hover,
body.perez-light-mode .perez-footer-links li a:hover {
  color: #8C5A36 !important;
  transform: translateX(4px) !important;
}

/* Newsletter Section */
html.perez-light-mode .perez-footer-newsletter-text,
body.perez-light-mode .perez-footer-newsletter-text {
  color: #2C1A11 !important;
  font-weight: 500 !important;
}

html.perez-light-mode .perez-footer-input-group,
body.perez-light-mode .perez-footer-input-group {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(94, 48, 35, 0.3) !important;
  box-shadow: 0 2px 6px rgba(94, 48, 35, 0.05) !important;
}
html.perez-light-mode .perez-footer-input-group:focus-within,
body.perez-light-mode .perez-footer-input-group:focus-within {
  border-color: #2C1A11 !important;
  box-shadow: 0 0 0 3px rgba(94, 48, 35, 0.12) !important;
}

html.perez-light-mode .perez-footer-email-input,
body.perez-light-mode .perez-footer-email-input {
  color: #1A0F09 !important;
}
html.perez-light-mode .perez-footer-email-input::placeholder,
body.perez-light-mode .perez-footer-email-input::placeholder {
  color: #6B5547 !important;
  opacity: 1 !important;
}

html.perez-light-mode .perez-footer-submit-btn,
body.perez-light-mode .perez-footer-submit-btn {
  background: #382317 !important;
  color: #FAF5ED !important;
  border-radius: 4px !important;
}
html.perez-light-mode .perez-footer-submit-btn:hover,
body.perez-light-mode .perez-footer-submit-btn:hover {
  background: #1A0F09 !important;
  color: #FFFFFF !important;
}

html.perez-light-mode .perez-newsletter-guarantee,
body.perez-light-mode .perez-newsletter-guarantee {
  color: #4A3324 !important;
  font-weight: 500 !important;
}
html.perez-light-mode .perez-dot-indicator,
body.perez-light-mode .perez-dot-indicator {
  background: #7A4A16 !important;
}

/* Bottom Bar */
html.perez-light-mode .perez-footer-bottom-bar,
body.perez-light-mode .perez-footer-bottom-bar {
  background: #E8DECE !important;
  border-top: 1px solid rgba(94, 48, 35, 0.18) !important;
}

html.perez-light-mode .perez-footer-copy,
body.perez-light-mode .perez-footer-copy {
  color: #2C1A11 !important;
}
html.perez-light-mode .perez-footer-copy strong,
body.perez-light-mode .perez-footer-copy strong {
  color: #1A0F09 !important;
  font-weight: 700 !important;
}

html.perez-light-mode .perez-atelier-location,
body.perez-light-mode .perez-atelier-location {
  color: #2C1A11 !important;
  font-weight: 600 !important;
}

html.perez-light-mode .perez-back-top-btn,
body.perez-light-mode .perez-back-top-btn {
  background: #FAF5ED !important;
  border: 1px solid rgba(94, 48, 35, 0.28) !important;
  color: #1A0F09 !important;
  font-weight: 700 !important;
}
html.perez-light-mode .perez-back-top-btn:hover,
body.perez-light-mode .perez-back-top-btn:hover {
  background: #1A0F09 !important;
  border-color: #1A0F09 !important;
  color: #FAF5ED !important;
}

/* =========================================================
   PRODUCT CARD IMAGE PERFECTION & FIT GUARANTEE
   ========================================================= */
.perez-product-card .perez-product-img-wrap,
.perez-product-img-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3.1 !important;
  overflow: hidden !important;
  display: block !important;
  background: transparent !important;
}

html.perez-light-mode .perez-product-card .perez-product-img-wrap,
body.perez-light-mode .perez-product-card .perez-product-img-wrap,
html.perez-light-mode .perez-product-img-wrap,
body.perez-light-mode .perez-product-img-wrap {
  background: #FAF5ED !important;
}

html:not(.perez-light-mode) .perez-product-card .perez-product-img-wrap,
body:not(.perez-light-mode) .perez-product-card .perez-product-img-wrap,
html:not(.perez-light-mode) .perez-product-img-wrap,
body:not(.perez-light-mode) .perez-product-img-wrap {
  background: #140E0A !important;
}

.perez-product-card .perez-product-img,
.perez-product-img-wrap .perez-product-img,
img.perez-product-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.perez-product-card:hover .perez-product-img {
  transform: scale(1.06) !important;
}


.perez-modal-swatch.is-disabled {
  opacity: 0.22 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  position: relative !important;
  filter: grayscale(0.6) !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.perez-modal-swatch.is-disabled::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 2px !important;
  right: 2px !important;
  height: 1.5px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  transform: rotate(-45deg) !important;
}


/* =========================================================
   PEREZ LEATHER ATELIER - CUSTOMER AUTH & BESPOKE PROFILE MODAL
   ========================================================= */

.perez-auth-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C5A059;
  box-shadow: 0 0 8px #C5A059, 0 0 12px rgba(197, 160, 89, 0.6);
  animation: perezAuthPulse 2.5s infinite;
  display: block;
}

@keyframes perezAuthPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; }
}

.patina-iconbtn[data-perez-account-btn] {
  position: relative;
}

.perez-customer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  pointer-events: none;
}

.perez-customer-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.perez-customer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 3, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.perez-customer-modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #18110D 0%, #100A07 100%);
  border: 1px solid rgba(197, 160, 89, 0.32);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(197, 160, 89, 0.12);
  overflow: hidden;
  transform: scale(0.95) translateY(14px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.35s ease;
}

.perez-customer-modal-overlay.is-open .perez-customer-modal-box {
  transform: scale(1) translateY(0);
}

.perez-customer-modal-box.is-wide {
  max-width: 680px;
}

/* Modal Header */
.perez-customer-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.18);
  background: rgba(14, 9, 6, 0.6);
}

.perez-customer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perez-customer-emblem {
  color: #C5A059;
  font-size: 14px;
}

.perez-customer-brand-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #F7F2E7;
  text-transform: uppercase;
}

.perez-customer-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C5A059;
  background: rgba(197, 160, 89, 0.14);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.perez-customer-close-btn {
  background: transparent;
  border: none;
  color: #B8A89A;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.perez-customer-close-btn:hover {
  color: #E0C285;
}

/* Modal Body */
.perez-customer-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  color: #E8DFD8;
}

.perez-customer-modal-body::-webkit-scrollbar {
  width: 6px;
}
.perez-customer-modal-body::-webkit-scrollbar-track {
  background: #100A07;
}
.perez-customer-modal-body::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.3);
  border-radius: 3px;
}

/* Views Switcher */
.perez-auth-view {
  display: none;
  animation: perezFadeIn 0.3s ease;
}

.perez-auth-view.is-active {
  display: block;
}

@keyframes perezFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.perez-auth-header-card {
  text-align: center;
  margin-bottom: 24px;
}

.perez-auth-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #261911 0%, #140E0A 100%);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5A059;
}

.perez-auth-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  color: #F7F2E7;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.perez-auth-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #A8988B;
  margin: 0;
}

.perez-checkout-gate-banner {
  margin-top: 14px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #E0C285;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.perez-highlight-gold {
  color: #E0C285;
  font-weight: 600;
}

/* Forms */
.perez-form-group {
  margin-bottom: 16px;
}

.perez-form-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #C5A059;
  margin-bottom: 6px;
  font-weight: 500;
}

.perez-auth-input {
  width: 100%;
  box-sizing: border-box;
  background: #0E0907;
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: #F7F2E7;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.perez-auth-input:focus {
  outline: none;
  border-color: #C5A059;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.perez-auth-input:disabled,
.perez-auth-input[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
  background: #140E0A;
}

.perez-auth-btn {
  width: 100%;
  background: linear-gradient(135deg, #C5A059 0%, #A8833E 100%);
  color: #0E0907;
  border: none;
  padding: 13px 20px;
  border-radius: 8px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.perez-auth-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
  transform: translateY(-1px);
}

.perez-auth-btn:active {
  transform: translateY(0);
}

.perez-auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.perez-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(14, 9, 7, 0.3);
  border-top-color: #0E0907;
  border-radius: 50%;
  animation: perezSpinner 0.8s linear infinite;
}

@keyframes perezSpinner {
  to { transform: rotate(360deg); }
}

.perez-auth-footnote {
  text-align: center;
  font-size: 11px;
  color: #7A6C60;
  margin-top: 14px;
  line-height: 1.5;
}

.perez-auth-feedback {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
}

.perez-auth-feedback.is-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #E74C3C;
}

.perez-auth-feedback.is-success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ECC71;
}

/* 6-Digit OTP Boxes */
.perez-otp-inputs-wrap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.perez-otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: monospace;
  font-size: 24px;
  font-weight: 700;
  color: #E0C285;
  background: #0A0705;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.perez-otp-digit:focus {
  outline: none;
  border-color: #C5A059;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.4);
  background: #140E0A;
}

.perez-otp-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
}

.perez-link-btn {
  background: none;
  border: none;
  color: #C5A059;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.perez-link-btn:hover {
  color: #E0C285;
}

.perez-link-btn:disabled {
  color: #6E6156;
  text-decoration: none;
  cursor: not-allowed;
}

.perez-sep {
  color: rgba(197, 160, 89, 0.4);
  font-size: 8px;
}

.perez-new-user-fields {
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(197, 160, 89, 0.06);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 8px;
}

/* Profile View */
.perez-profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.perez-profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.perez-profile-monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D1D13 0%, #150E09 100%);
  border: 1.5px solid #C5A059;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 17px;
  color: #C5A059;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.2);
}

.perez-profile-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 16px;
  color: #F7F2E7;
  margin: 0 0 3px;
  font-weight: 600;
}

.perez-profile-email {
  display: block;
  font-size: 12px;
  color: #A8988B;
  margin-bottom: 4px;
}

.perez-profile-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C5A059;
}

.perez-signout-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #B8A89A;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.perez-signout-btn:hover {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.4);
  color: #E74C3C;
}

.perez-profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.perez-profile-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: #B8A89A;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.perez-profile-tab:hover {
  background: rgba(197, 160, 89, 0.1);
  color: #E0C285;
}

.perez-profile-tab.is-active {
  background: rgba(197, 160, 89, 0.16);
  border-color: #C5A059;
  color: #F7F2E7;
  font-weight: 600;
}

.perez-profile-pane {
  display: none;
}

.perez-profile-pane.is-active {
  display: block;
}

.perez-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.perez-form-row.three-cols {
  grid-template-columns: 2fr 1fr 1fr;
}

.perez-section-title-wrap {
  margin: 18px 0 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
}

.perez-section-title-text {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #C5A059;
}

/* Orders List */
.perez-orders-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perez-order-card {
  background: #0E0907;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.perez-order-card:hover {
  border-color: rgba(197, 160, 89, 0.45);
}

.perez-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.perez-order-num {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  color: #E0C285;
}

.perez-order-date {
  font-size: 11px;
  color: #7A6C60;
  margin-left: 8px;
}

.perez-order-status-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.perez-order-status-badge.status-processing {
  background: rgba(197, 160, 89, 0.18);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: #E0C285;
}

.perez-order-status-badge.status-completed {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #2ECC71;
}

.perez-order-status-badge.status-pending,
.perez-order-status-badge.status-on-hold {
  background: rgba(230, 126, 34, 0.15);
  border: 1px solid rgba(230, 126, 34, 0.35);
  color: #E67E22;
}

.perez-order-status-badge.status-cancelled,
.perez-order-status-badge.status-failed {
  background: rgba(255, 255, 255, 0.08);
  color: #8A7A6E;
}

.perez-order-items {
  border-top: 1px solid rgba(197, 160, 89, 0.1);
  padding-top: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.perez-order-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #D2C4B7;
}

.perez-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(197, 160, 89, 0.1);
  font-size: 12px;
}

.perez-order-total {
  font-weight: 700;
  color: #C5A059;
  font-size: 14px;
}

.perez-orders-empty {
  text-align: center;
  padding: 36px 16px;
  color: #8A7A6E;
}

.perez-orders-empty svg {
  margin-bottom: 12px;
  color: rgba(197, 160, 89, 0.4);
}

.perez-browse-collection-btn {
  display: inline-block;
  margin-top: 14px;
  background: rgba(197, 160, 89, 0.14);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: #E0C285;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.perez-browse-collection-btn:hover {
  background: rgba(197, 160, 89, 0.24);
  color: #F7F2E7;
}

/* Light Mode Overrides */
html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-customer-modal-backdrop {
  background: rgba(245, 240, 235, 0.85);
}

html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-customer-modal-box {
  background: linear-gradient(180deg, #FBF8F5 0%, #F4ECE4 100%);
  border-color: rgba(126, 75, 49, 0.25);
  box-shadow: 0 25px 70px rgba(78, 42, 24, 0.25), 0 0 35px rgba(197, 160, 89, 0.15);
}

html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-customer-modal-head {
  background: rgba(240, 230, 220, 0.7);
  border-color: rgba(126, 75, 49, 0.15);
}

html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-customer-brand-title,
html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-auth-title,
html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-profile-name {
  color: #2D1A10;
}

html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-auth-desc,
html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-profile-email {
  color: #6E5343;
}

html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-auth-input,
html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-otp-digit,
html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-order-card {
  background: #FFFFFF;
  border-color: rgba(126, 75, 49, 0.2);
  color: #2D1A10;
}

html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-auth-input:focus,
html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-otp-digit:focus {
  border-color: #8B4513;
  box-shadow: 0 0 10px rgba(139, 69, 19, 0.25);
}

html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-profile-tab {
  background: #EFE6DD;
  color: #6E5343;
}

html.perez-light-mode, body.perez-light-mode, .perez-light-mode .perez-profile-tab.is-active {
  background: #DFD0C2;
  border-color: #8B4513;
  color: #2D1A10;
}

@media (max-width: 576px) {
  .perez-otp-digit {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }
  .perez-form-row {
    grid-template-columns: 1fr;
  }
  .perez-form-row.three-cols {
    grid-template-columns: 1fr;
  }
  .perez-customer-modal-box {
    margin: 10px;
  }
}

/* =========================================================
   PEREZ ATELIER PRODUCT VARIATIONS & SIZE CHART SUITE
   Large Expanded Showcase · Split-Screen Dual-Panel View
   Parallel Real-Time Sync · High-Contrast Metric/Imperial
   ========================================================= */

/* On-Card Variations Selector */
.perez-card-variations {
  margin: 8px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.perez-var-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.perez-var-label {
  color: #C5A059;
  font-weight: 700;
  opacity: 0.9;
}

.perez-card-size-guide-link {
  background: none;
  border: none;
  padding: 0;
  color: #DFC08A;
  font-size: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.perez-card-size-guide-link:hover {
  color: #FFF;
  transform: translateY(-1px);
}

.perez-var-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.perez-var-chip {
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(22, 15, 11, 0.7);
  color: #E2D7CC;
  border: 1px solid rgba(197, 160, 89, 0.25);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.perez-var-chip:hover {
  border-color: #C5A059;
  color: #FFF;
  background: rgba(197, 160, 89, 0.12);
  transform: translateY(-1px);
}

.perez-var-chip.is-active {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.25) 0%, rgba(139, 69, 19, 0.35) 100%);
  border-color: #C5A059;
  color: #F8EAD0;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
}

.perez-var-chip-dim {
  font-size: 9px;
  opacity: 0.75;
  font-weight: 400;
}

/* Modal Variation Selector */
.perez-modal-var-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.perez-modal-var-pill {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #E8DED2;
  border: 1px solid rgba(197, 160, 89, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.perez-modal-var-pill:hover {
  border-color: #C5A059;
  background: rgba(197, 160, 89, 0.1);
}

.perez-modal-var-pill.is-active {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.28) 0%, rgba(35, 20, 14, 0.9) 100%);
  border-color: #C5A059;
  color: #FFF;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.3);
}

.perez-modal-var-pill-title {
  font-size: 12px;
  font-weight: 700;
}

.perez-modal-var-pill-meta {
  font-size: 10px;
  color: #C5A059;
  font-weight: 500;
}

.perez-modal-size-guide-row {
  display: flex;
  justify-content: flex-start;
  margin: 10px 0;
}

.perez-modal-size-guide-btn {
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 6px;
  padding: 8px 16px;
  color: #DFC08A;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.perez-modal-size-guide-btn:hover {
  background: rgba(197, 160, 89, 0.2);
  border-color: #C5A059;
  color: #FFF;
  transform: translateY(-1px);
}

/* =========================================================
   1. LARGE EXPANDED SHOWCASE MODAL CARD (Single View)
   ========================================================= */
#perez-showcase-modal.perez-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(5, 3, 2, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  padding: 24px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#perez-showcase-modal.perez-modal-overlay.is-active,
#perez-showcase-modal.perez-modal-overlay[style*="display: flex"],
#perez-showcase-modal.perez-modal-overlay[style*="display:flex"] {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#perez-showcase-modal .perez-modal-box {
  position: relative !important;
  width: 100% !important;
  background: #140E0B !important;
  border: 1px solid rgba(197, 160, 89, 0.45) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(197, 160, 89, 0.15) !important;
  color: #E2D7CC !important;
  overflow: hidden !important;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
}

/* DESKTOP SINGLE VIEW: Expanded Large Card */
@media (min-width: 769px) {
  #perez-showcase-modal .perez-modal-box {
    max-width: 1160px !important; /* Expanded wide */
    width: 92vw !important;
    min-height: 640px !important; /* Expanded high */
    max-height: 90vh !important;
  }

  #perez-showcase-modal .perez-modal-showcase-pane {
    display: grid !important;
    grid-template-columns: 1fr 1.06fr !important;
    gap: 36px !important;
    padding: 36px 42px !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    align-items: start !important;
  }

  #perez-showcase-modal .perez-modal-media-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  #perez-showcase-modal .perez-modal-media {
    width: 100% !important;
    height: 480px !important;
    min-height: 440px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  }

  #perez-showcase-modal .perez-modal-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease, opacity 0.25s ease !important;
  }

  #perez-showcase-modal .perez-modal-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
  }
}

/* Color Swatches Positioned Directly Under Product Image */
.perez-modal-media-colors {
  background: rgba(22, 14, 10, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 4px;
}

.perez-modal-media-colors .perez-modal-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #C5A059;
  margin-bottom: 8px;
}

.perez-modal-media-colors .perez-modal-label strong {
  color: #F8EAD0;
  font-weight: 700;
}

.perez-modal-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.perez-modal-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.perez-modal-swatch:hover {
  transform: scale(1.15);
  border-color: #F8EAD0;
}

.perez-modal-swatch.is-active {
  transform: scale(1.2);
  border-color: #C5A059;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.7);
}

.perez-modal-swatch.is-active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #FFF;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* =========================================================
   2. SPLIT-SCREEN DUAL-PANEL VIEW (.is-split-active)
   ========================================================= */
@media (min-width: 992px) {
  #perez-showcase-modal .perez-modal-box.is-split-active {
    max-width: 1580px !important;
    width: 96vw !important;
    height: 92vh !important;
    max-height: 92vh !important;
    display: grid !important;
    grid-template-columns: 46% 54% !important;
    overflow: hidden !important;
  }

  #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-showcase-pane {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding: 30px 34px !important;
    overflow-y: auto !important;
    border-right: 1px solid rgba(197, 160, 89, 0.25) !important;
    height: 100% !important;
    max-height: 92vh !important;
  }

  #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-media-col {
    width: 100% !important;
  }

  #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-media {
    height: 380px !important;
    min-height: 340px !important;
  }

  #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    padding: 30px 34px 0 34px !important;
    position: relative !important;
    background: rgba(14, 9, 6, 0.6) !important;
  }
}

/* Mobile & Tablet Split Behavior */
@media (max-width: 991px) {
  #perez-showcase-modal .perez-modal-box.is-split-active {
    max-height: 92vh !important;
    overflow-y: auto !important;
  }
  #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane {
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px 0 20px !important;
    border-top: 1px solid rgba(197, 160, 89, 0.25) !important;
  }
}

/* Split Size Pane Header */
.perez-split-size-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}



.perez-split-size-close-btn:hover {
  background: #C5A059;
  color: #140E0B;
  border-color: #C5A059;
}

/* =========================================================
   3. METRIC / IMPERIAL TOGGLE - HIGH CONTRAST DARK FIX
   ========================================================= */
.perez-unit-toggle {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 8px !important;
  padding: 3px !important;
  gap: 3px !important;
}

/* Dark Mode Defaults */
.perez-unit-toggle {
  background: #1C120C !important;
  border: 1.5px solid rgba(197, 160, 89, 0.45) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.perez-unit-btn {
  padding: 6px 14px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: #F8EAD0 !important; /* Non-selected font is crisp cream in dark mode */
  background: transparent !important;
}

.perez-unit-btn:hover:not(.is-active) {
  background: rgba(197, 160, 89, 0.15) !important;
  color: #FFF !important;
}

.perez-unit-btn.is-active {
  background: #C5A059 !important;
  color: #110804 !important; /* Selected text is deep dark */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* =========================================================
   4. CRITICAL FIX: SIZE CHART TABLE ROW ALIGNMENT
   ========================================================= */
.perez-size-table-wrap {
  overflow-x: auto !important;
  margin-bottom: 18px !important;
  border: 1px solid rgba(197, 160, 89, 0.25) !important;
  border-radius: 8px !important;
  background: rgba(10, 6, 4, 0.4) !important;
}

.perez-size-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}

.perez-size-table th {
  display: table-cell !important;
  background: rgba(197, 160, 89, 0.12) !important;
  color: #C5A059 !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25) !important;
  vertical-align: middle !important;
  text-align: left !important;
}

.perez-size-table th:last-child {
  text-align: right !important;
}

/* ALL TABLE CELLS PERFECTLY VERTICALLY CENTERED */
.perez-size-table td {
  display: table-cell !important; /* DO NOT USE DISPLAY: FLEX ON TD */
  padding: 14px 14px !important;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1) !important;
  color: #E2D7CC !important;
  vertical-align: middle !important; /* Fixes row vertical misalignment */
  text-align: left !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

.perez-size-table td:last-child {
  text-align: right !important;
}

.perez-size-table tr.perez-size-row {
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.perez-size-table tr.perez-size-row:hover td {
  background: rgba(197, 160, 89, 0.08) !important;
}

.perez-size-table tr.perez-size-row.is-selected td {
  background: rgba(197, 160, 89, 0.18) !important;
  border-bottom-color: rgba(197, 160, 89, 0.4) !important;
}

/* Column 1: Inner container for Radio + Title */
.perez-size-table td.perez-size-col-name {
  display: table-cell !important;
  vertical-align: middle !important;
}

.perez-size-col-inner {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  vertical-align: middle !important;
}

.perez-size-piece-name {
  font-weight: 800 !important;
  font-size: 13px !important;
  color: #F8EAD0;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

.perez-size-radio {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  border: 2px solid rgba(197, 160, 89, 0.6) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  vertical-align: middle !important;
}

.perez-size-row.is-selected .perez-size-radio {
  border-color: #C5A059 !important;
  background: #C5A059 !important;
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.5) !important;
}

.perez-size-radio::after {
  content: '' !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #140E0B !important;
  opacity: 0 !important;
  transform: scale(0.5) !important;
  transition: all 0.2s ease !important;
}

.perez-size-row.is-selected .perez-size-radio::after {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.perez-size-table .highlight-col {
  color: #C5A059 !important;
  font-weight: 700 !important;
}

/* =========================================================
   5. STICKY FOOTER & OK BUTTON
   ========================================================= */
.perez-size-modal-footer {
  position: sticky !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #140E0B !important;
  border-top: 1px solid rgba(197, 160, 89, 0.3) !important;
  padding: 14px 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  z-index: 10 !important;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.6) !important;
  border-radius: 0 0 12px 12px !important;
}

.perez-size-footer-summary {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.perez-size-footer-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #C5A059 !important;
}

.perez-size-footer-value {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #F8EAD0 !important;
}

.perez-size-footer-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.perez-size-btn-cancel {
  padding: 9px 18px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #A89587 !important;
  border: 1px solid rgba(197, 160, 89, 0.25) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.perez-size-btn-cancel:hover {
  color: #FFF !important;
  border-color: #C5A059 !important;
}

.perez-size-btn-ok {
  padding: 9px 24px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #C5A059 0%, #8B4513 100%) !important;
  color: #FFF !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.perez-size-btn-ok:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45) !important;
}

.perez-size-btn-ok:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Floating Toast Notification */
.perez-size-toast {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 100000005 !important;
  background: #110804 !important;
  color: #F8EAD0 !important;
  border: 1px solid #C5A059 !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(197, 160, 89, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transform: translateY(30px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.perez-size-toast.is-show {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* =========================================================
   6. LIGHT MODE OVERRIDES - HIGH CONTRAST & DARK 1ST COLUMN
   ========================================================= */
body.is-light-mode #perez-showcase-modal .perez-modal-box,
html.perez-light-mode #perez-showcase-modal .perez-modal-box,
body.perez-light-mode #perez-showcase-modal .perez-modal-box,
.perez-light-mode #perez-showcase-modal .perez-modal-box {
  background: #FDFCFA !important;
  border-color: rgba(94, 48, 35, 0.3) !important;
  box-shadow: 0 25px 70px rgba(94, 48, 35, 0.25) !important;
  color: #2D1A10 !important;
}

body.is-light-mode #perez-showcase-modal .perez-modal-title,
html.perez-light-mode #perez-showcase-modal .perez-modal-title,
body.perez-light-mode #perez-showcase-modal .perez-modal-title {
  color: #110804 !important;
}

body.is-light-mode #perez-showcase-modal .perez-modal-desc,
html.perez-light-mode #perez-showcase-modal .perez-modal-desc,
body.perez-light-mode #perez-showcase-modal .perez-modal-desc {
  color: #4D3325 !important;
}

body.is-light-mode .perez-modal-media-colors,
html.perez-light-mode .perez-modal-media-colors {
  background: #FAF6F0 !important;
  border-color: rgba(139, 69, 19, 0.25) !important;
}

body.is-light-mode .perez-modal-media-colors .perez-modal-label strong,
html.perez-light-mode .perez-modal-media-colors .perez-modal-label strong {
  color: #110804 !important;
}

/* Light Mode Split Pane */
body.is-light-mode #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-showcase-pane,
html.perez-light-mode #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-showcase-pane {
  border-right-color: rgba(139, 69, 19, 0.22) !important;
}

body.is-light-mode #perez-showcase-modal .perez-modal-split-size-pane,
html.perez-light-mode #perez-showcase-modal .perez-modal-split-size-pane {
  background: #FAF6F0 !important;
  color: #2D1A10 !important;
}

body.is-light-mode .perez-split-size-close-btn,
html.perez-light-mode .perez-split-size-close-btn {
  background: #EFE6DD !important;
  color: #2D1A10 !important;
  border-color: rgba(139, 69, 19, 0.25) !important;
}

body.is-light-mode .perez-split-size-close-btn:hover,
html.perez-light-mode .perez-split-size-close-btn:hover {
  background: #8B4513 !important;
  color: #FFF !important;
}

/* Light Mode Metric/Imperial Toggle - SUPER DARK NON-SELECTED TEXT */
body.is-light-mode .perez-unit-toggle,
html.perez-light-mode .perez-unit-toggle,
body.perez-light-mode .perez-unit-toggle,
.perez-light-mode .perez-unit-toggle {
  background: #E8DEC8 !important;
  border: 1.5px solid rgba(139, 69, 19, 0.45) !important;
}

body.is-light-mode .perez-unit-btn,
html.perez-light-mode .perez-unit-btn,
body.perez-light-mode .perez-unit-btn,
.perez-light-mode .perez-unit-btn {
  color: #110804 !important; /* CRITICAL: NON-SELECTED FONT IS JET DARK & BOLD */
  font-weight: 800 !important;
  background: transparent !important;
}

body.is-light-mode .perez-unit-btn.is-active,
html.perez-light-mode .perez-unit-btn.is-active,
body.perez-light-mode .perez-unit-btn.is-active,
.perez-light-mode .perez-unit-btn.is-active {
  background: #8B4513 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.35) !important;
}

/* Light Mode Table */
body.is-light-mode .perez-size-table-wrap,
html.perez-light-mode .perez-size-table-wrap,
body.perez-light-mode .perez-size-table-wrap,
.perez-light-mode .perez-size-table-wrap {
  background: #FFFDF9 !important;
  border-color: rgba(139, 69, 19, 0.22) !important;
}

body.is-light-mode .perez-size-table th,
html.perez-light-mode .perez-size-table th,
body.perez-light-mode .perez-size-table th,
.perez-light-mode .perez-size-table th {
  background: rgba(139, 69, 19, 0.08) !important;
  color: #8B4513 !important;
  border-color: rgba(139, 69, 19, 0.2) !important;
}

body.is-light-mode .perez-size-table td,
html.perez-light-mode .perez-size-table td,
body.perez-light-mode .perez-size-table td,
.perez-light-mode .perez-size-table td {
  color: #3C2415 !important;
  border-color: rgba(139, 69, 19, 0.1) !important;
}

/* CRITICAL FIX: 1ST COLUMN FONT IS JET DARK IN LIGHT MODE */
body.is-light-mode .perez-size-table .perez-size-piece-name,
html.perez-light-mode .perez-size-table .perez-size-piece-name,
body.perez-light-mode .perez-size-table .perez-size-piece-name,
.perez-light-mode .perez-size-table .perez-size-piece-name,
body.is-light-mode .perez-size-table td.perez-size-col-name,
html.perez-light-mode .perez-size-table td.perez-size-col-name {
  color: #110804 !important;
  font-weight: 800 !important;
}

body.is-light-mode .perez-size-table tr.perez-size-row:hover td,
html.perez-light-mode .perez-size-table tr.perez-size-row:hover td {
  background: rgba(139, 69, 19, 0.06) !important;
}

body.is-light-mode .perez-size-table tr.perez-size-row.is-selected td,
html.perez-light-mode .perez-size-table tr.perez-size-row.is-selected td {
  background: rgba(139, 69, 19, 0.12) !important;
  border-bottom-color: rgba(139, 69, 19, 0.35) !important;
}

body.is-light-mode .perez-size-radio,
html.perez-light-mode .perez-size-radio {
  border-color: #8B4513 !important;
}

body.is-light-mode .perez-size-row.is-selected .perez-size-radio,
html.perez-light-mode .perez-size-row.is-selected .perez-size-radio {
  border-color: #8B4513 !important;
  background: #8B4513 !important;
}

body.is-light-mode .perez-size-radio::after,
html.perez-light-mode .perez-size-radio::after {
  background: #FFFFFF !important;
}

body.is-light-mode .perez-size-modal-footer,
html.perez-light-mode .perez-size-modal-footer {
  background: #FDFBF7 !important;
  border-top-color: rgba(139, 69, 19, 0.25) !important;
}

body.is-light-mode .perez-size-footer-label,
html.perez-light-mode .perez-size-footer-label {
  color: #8B4513 !important;
}

body.is-light-mode .perez-size-footer-value,
html.perez-light-mode .perez-size-footer-value {
  color: #110804 !important;
  font-weight: 700 !important;
}

body.is-light-mode .perez-size-btn-cancel,
html.perez-light-mode .perez-size-btn-cancel {
  background: #EFE6DD !important;
  color: #6E5343 !important;
  border-color: rgba(139, 69, 19, 0.25) !important;
}

body.is-light-mode .perez-size-btn-cancel:hover,
html.perez-light-mode .perez-size-btn-cancel:hover {
  color: #110804 !important;
  border-color: #8B4513 !important;
}

body.is-light-mode .perez-size-btn-ok,
html.perez-light-mode .perez-size-btn-ok {
  background: linear-gradient(135deg, #8B4513 0%, #5C2E0B 100%) !important;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3) !important;
}




/* =========================================================
   2. SPLIT-SCREEN DUAL-PANEL VIEW (.is-split-active)
   ========================================================= */
@media (min-width: 992px) {
  #perez-showcase-modal .perez-modal-box.is-split-active {
    max-width: 1600px !important;
    width: 96vw !important;
    height: 92vh !important;
    max-height: 92vh !important;
    display: grid !important;
    grid-template-columns: 44% 56% !important;
    grid-template-rows: 1fr !important;
    overflow: hidden !important;
  }

  /* Force exact grid placement: Column 1 = Left Showcase, Column 2 = Right Size Guide */
  #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-showcase-pane {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 26px 30px !important;
    overflow-y: auto !important;
    border-right: 1px solid rgba(197, 160, 89, 0.25) !important;
    height: 100% !important;
    max-height: 92vh !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-media-col {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-media {
    height: 320px !important;
    min-height: 280px !important;
  }

  /* Force exact grid placement: Column 2 = Right Size Guide with ZERO BLANK SPACE */
  #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    padding: 26px 32px 0 32px !important;
    margin: 0 !important;
    background: rgba(14, 9, 6, 0.6) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative !important;
  }
}

/* Prominent View Size Chart Button Styling */
.perez-modal-size-guide-row {
  display: flex !important;
  margin: 14px 0 8px 0 !important;
  width: 100% !important;
}

.perez-modal-size-guide-btn {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 14px 20px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  background: rgba(197, 160, 89, 0.16) !important;
  border: 1.5px solid #C5A059 !important;
  color: #F8EAD0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.perez-modal-size-guide-btn:hover {
  background: #C5A059 !important;
  color: #140E0B !important;
  border-color: #DFC08A !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(197, 160, 89, 0.45) !important;
}

/* Light Mode Overrides for Size Guide Button */
body.is-light-mode .perez-modal-size-guide-btn,
html.perez-light-mode .perez-modal-size-guide-btn,
.perez-light-mode .perez-modal-size-guide-btn {
  background: rgba(139, 69, 19, 0.08) !important;
  border: 1.5px solid #8B4513 !important;
  color: #3D1C0D !important;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.15) !important;
}
body.is-light-mode .perez-modal-size-guide-btn:hover,
html.perez-light-mode .perez-modal-size-guide-btn:hover,
.perez-light-mode .perez-modal-size-guide-btn:hover {
  background: #8B4513 !important;
  color: #FFFFFF !important;
  border-color: #8B4513 !important;
}



/* =========================================================
   2. SPLIT-SCREEN DUAL-PANEL VIEW (.is-split-active)
   ========================================================= */
@media (min-width: 992px) {
  #perez-showcase-modal .perez-modal-box.is-split-active {
    max-width: 1600px !important;
    width: 96vw !important;
    height: 92vh !important;
    max-height: 92vh !important;
    display: grid !important;
    grid-template-columns: 44% 56% !important;
    grid-template-rows: 1fr !important;
    overflow: hidden !important;
  }

  /* Force exact grid placement: Column 1 = Left Showcase, Column 2 = Right Size Guide */
  #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-showcase-pane {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 26px 30px !important;
    overflow-y: auto !important;
    border-right: 1px solid rgba(197, 160, 89, 0.25) !important;
    height: 100% !important;
    max-height: 92vh !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-media-col {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  #perez-showcase-modal .perez-modal-box.is-split-active .perez-modal-media {
    height: 320px !important;
    min-height: 280px !important;
  }

  /* Force exact grid placement: Column 2 = Right Size Guide with ZERO BLANK SPACE */
  #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    padding: 26px 32px 0 32px !important;
    margin: 0 !important;
    background: rgba(14, 9, 6, 0.6) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative !important;
  }
}

/* Light mode split size pane background & guidance card fix */
body.is-light-mode #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane,
html.perez-light-mode #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane,
.perez-light-mode #perez-showcase-modal .perez-modal-box.is-split-active > .perez-modal-split-size-pane {
  background: #FDFBF7 !important;
  border-left: 1px solid rgba(139, 69, 19, 0.2) !important;
}

body.is-light-mode .perez-size-guide-card,
html.perez-light-mode .perez-size-guide-card,
.perez-light-mode .perez-size-guide-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(139, 69, 19, 0.15) !important;
}

body.is-light-mode .perez-size-guide-card h4,
html.perez-light-mode .perez-size-guide-card h4,
.perez-light-mode .perez-size-guide-card h4 {
  color: #8B4513 !important;
}

body.is-light-mode .perez-size-guide-card p,
html.perez-light-mode .perez-size-guide-card p,
.perez-light-mode .perez-size-guide-card p {
  color: #3D2214 !important;
}

/* Prominent View Size Chart Button Styling */
.perez-modal-size-guide-row {
  display: flex !important;
  margin: 14px 0 8px 0 !important;
  width: 100% !important;
}

.perez-modal-size-guide-btn {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 14px 20px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  background: rgba(197, 160, 89, 0.16) !important;
  border: 1.5px solid #C5A059 !important;
  color: #F8EAD0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.perez-modal-size-guide-btn:hover {
  background: #C5A059 !important;
  color: #140E0B !important;
  border-color: #DFC08A !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(197, 160, 89, 0.45) !important;
}

/* Light Mode Overrides for Size Guide Button */
body.is-light-mode .perez-modal-size-guide-btn,
html.perez-light-mode .perez-modal-size-guide-btn,
.perez-light-mode .perez-modal-size-guide-btn {
  background: rgba(139, 69, 19, 0.08) !important;
  border: 1.5px solid #8B4513 !important;
  color: #3D1C0D !important;
  box-shadow: 0 3px 10px rgba(139, 69, 19, 0.15) !important;
}
body.is-light-mode .perez-modal-size-guide-btn:hover,
html.perez-light-mode .perez-modal-size-guide-btn:hover,
.perez-light-mode .perez-modal-size-guide-btn:hover {
  background: #8B4513 !important;
  color: #FFFFFF !important;
  border-color: #8B4513 !important;
}

/* Split Size Pane Header */
.perez-split-size-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 16px !important;
  gap: 16px !important;
  position: relative !important;
}

.perez-split-header-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.perez-split-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  /* CRITICAL: 52px clearance ensures header controls NEVER touch or overlap with the absolute top-right modal close button */
  margin-right: 52px !important;
}

/* Typography Base Styles */
.perez-size-chart-badge {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-bottom: 2px !important;
  color: #C5A059 !important; /* Dark mode antique gold */
  transition: color 0.2s ease !important;
}

.perez-size-chart-title {
  margin: 4px 0 3px 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  font-family: 'Cinzel', serif !important;
  line-height: 1.25 !important;
  color: #F8EAD0 !important; /* Dark mode warm ivory */
  transition: color 0.2s ease !important;
}

.perez-size-chart-subtitle {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #DFC08A !important; /* Dark mode soft amber gold */
  opacity: 0.9 !important;
  transition: color 0.2s ease !important;
}

/* Distinct Size Guide Close Button */
.perez-split-size-close-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  height: 32px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  background: rgba(197, 160, 89, 0.14) !important;
  border: 1px solid rgba(197, 160, 89, 0.35) !important;
  color: #F8EAD0 !important;
}

.perez-split-size-close-btn .perez-split-close-icon {
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

.perez-split-size-close-btn:hover {
  background: #C5A059 !important;
  color: #120A06 !important;
  border-color: #C5A059 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35) !important;
}

/* =========================================================
   LIGHT MODE: HIGH CONTRAST DARK TYPOGRAPHY FOR SIZE GUIDE
   ========================================================= */
body.is-light-mode .perez-size-chart-badge,
html.perez-light-mode .perez-size-chart-badge,
body.perez-light-mode .perez-size-chart-badge,
.perez-light-mode .perez-size-chart-badge {
  color: #8B4513 !important; /* Deep Saddle Cognac */
}

body.is-light-mode .perez-size-chart-title,
html.perez-light-mode .perez-size-chart-title,
body.perez-light-mode .perez-size-chart-title,
.perez-light-mode .perez-size-chart-title,
body.is-light-mode #perez-split-size-title,
html.perez-light-mode #perez-split-size-title,
body.perez-light-mode #perez-split-size-title,
.perez-light-mode #perez-split-size-title {
  color: #1C1008 !important; /* Pitch Dark Espresso Noir - Maximum contrast */
}

body.is-light-mode .perez-size-chart-subtitle,
html.perez-light-mode .perez-size-chart-subtitle,
body.perez-light-mode .perez-size-chart-subtitle,
.perez-light-mode .perez-size-chart-subtitle,
body.is-light-mode #perez-split-size-subtitle,
html.perez-light-mode #perez-split-size-subtitle,
body.perez-light-mode #perez-split-size-subtitle,
.perez-light-mode #perez-split-size-subtitle {
  color: #4A2814 !important; /* Dark Roasted Chestnut */
  opacity: 1 !important;
}

body.is-light-mode .perez-split-size-close-btn,
html.perez-light-mode .perez-split-size-close-btn,
body.perez-light-mode .perez-split-size-close-btn,
.perez-light-mode .perez-split-size-close-btn {
  background: rgba(139, 69, 19, 0.08) !important;
  border: 1.5px solid rgba(139, 69, 19, 0.3) !important;
  color: #2E150A !important;
}

body.is-light-mode .perez-split-size-close-btn:hover,
html.perez-light-mode .perez-split-size-close-btn:hover,
body.perez-light-mode .perez-split-size-close-btn:hover,
.perez-light-mode .perez-split-size-close-btn:hover {
  background: #8B4513 !important;
  color: #FFFFFF !important;
  border-color: #8B4513 !important;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25) !important;
}

/* Master Modal Close Button: Absolute Top-Right */
#perez-showcase-modal .perez-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 10000010 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(18, 12, 10, 0.85) !important;
  border: 1.5px solid rgba(197, 160, 89, 0.45) !important;
  color: #FFFFFF !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

#perez-showcase-modal .perez-modal-close:hover {
  background: #C5A059 !important;
  color: #120C0A !important;
  border-color: #C5A059 !important;
  transform: rotate(90deg) !important;
}

body.is-light-mode #perez-showcase-modal .perez-modal-close,
html.perez-light-mode #perez-showcase-modal .perez-modal-close,
body.perez-light-mode #perez-showcase-modal .perez-modal-close,
.perez-light-mode #perez-showcase-modal .perez-modal-close {
  background: #F4ECE1 !important;
  border: 1.5px solid rgba(139, 69, 19, 0.35) !important;
  color: #2C1A11 !important;
}

body.is-light-mode #perez-showcase-modal .perez-modal-close:hover,
html.perez-light-mode #perez-showcase-modal .perez-modal-close:hover,
body.perez-light-mode #perez-showcase-modal .perez-modal-close:hover,
.perez-light-mode #perez-showcase-modal .perez-modal-close:hover {
  background: #8B4513 !important;
  color: #FFFFFF !important;
  border-color: #8B4513 !important;
}


/* =========================================================
   PEREZ SPLIT SIZE GUIDE HEADER & CLOSE BUTTON ARCHITECTURE
   ========================================================= */
.perez-split-size-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 16px !important;
  gap: 16px !important;
  position: relative !important;
}

.perez-split-header-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.perez-split-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  /* CRITICAL: 56px clearance guarantees zero collision with the absolute top-right modal close button */
  margin-right: 56px !important;
}

/* Typography Base Styles (Dark Mode Defaults) */
.perez-size-chart-badge {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-bottom: 2px !important;
  color: #C5A059 !important;
  transition: color 0.2s ease !important;
}

.perez-size-chart-title,
#perez-split-size-title {
  margin: 4px 0 3px 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  font-family: 'Cinzel', serif !important;
  line-height: 1.25 !important;
  color: #F8EAD0 !important;
  transition: color 0.2s ease !important;
}

.perez-size-chart-subtitle,
#perez-split-size-subtitle {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #DFC08A !important;
  opacity: 0.9 !important;
  transition: color 0.2s ease !important;
}

/* Distinct Size Guide Close Pill Button */
.perez-split-size-close-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 16px !important;
  width: auto !important;
  min-width: max-content !important;
  height: 32px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  background: rgba(197, 160, 89, 0.14) !important;
  border: 1.5px solid rgba(197, 160, 89, 0.38) !important;
  color: #F8EAD0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.perez-split-size-close-btn .perez-split-close-icon {
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

.perez-split-size-close-btn:hover {
  background: #C5A059 !important;
  color: #120A06 !important;
  border-color: #C5A059 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35) !important;
}

/* Master Modal Close Button (Top-Right of Dialog) */
#perez-showcase-modal .perez-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 10000010 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(18, 12, 10, 0.85) !important;
  border: 1.5px solid rgba(197, 160, 89, 0.45) !important;
  color: #FFFFFF !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

#perez-showcase-modal .perez-modal-close:hover {
  background: #C5A059 !important;
  color: #120C0A !important;
  border-color: #C5A059 !important;
  transform: rotate(90deg) !important;
}

/* =========================================================
   LIGHT MODE: HIGH CONTRAST DARK TYPOGRAPHY & BUTTON STYLING
   ========================================================= */
body.is-light-mode .perez-size-chart-badge,
html.perez-light-mode .perez-size-chart-badge,
body.perez-light-mode .perez-size-chart-badge,
.perez-light-mode .perez-size-chart-badge {
  color: #8B4513 !important; /* Deep Saddle Cognac */
}

body.is-light-mode .perez-size-chart-title,
html.perez-light-mode .perez-size-chart-title,
body.perez-light-mode .perez-size-chart-title,
.perez-light-mode .perez-size-chart-title,
body.is-light-mode #perez-split-size-title,
html.perez-light-mode #perez-split-size-title,
body.perez-light-mode #perez-split-size-title,
.perez-light-mode #perez-split-size-title {
  color: #1C1008 !important; /* Pitch Dark Espresso Noir - Maximum contrast */
}

body.is-light-mode .perez-size-chart-subtitle,
html.perez-light-mode .perez-size-chart-subtitle,
body.perez-light-mode .perez-size-chart-subtitle,
.perez-light-mode .perez-size-chart-subtitle,
body.is-light-mode #perez-split-size-subtitle,
html.perez-light-mode #perez-split-size-subtitle,
body.perez-light-mode #perez-split-size-subtitle,
.perez-light-mode #perez-split-size-subtitle {
  color: #4A2814 !important; /* Dark Roasted Chestnut */
  opacity: 1 !important;
}

body.is-light-mode .perez-split-size-close-btn,
html.perez-light-mode .perez-split-size-close-btn,
body.perez-light-mode .perez-split-size-close-btn,
.perez-light-mode .perez-split-size-close-btn {
  background: rgba(139, 69, 19, 0.08) !important;
  border: 1.5px solid rgba(139, 69, 19, 0.35) !important;
  color: #2E150A !important;
  box-shadow: 0 1px 4px rgba(139, 69, 19, 0.12) !important;
}

body.is-light-mode .perez-split-size-close-btn:hover,
html.perez-light-mode .perez-split-size-close-btn:hover,
body.perez-light-mode .perez-split-size-close-btn:hover,
.perez-light-mode .perez-split-size-close-btn:hover {
  background: #8B4513 !important;
  color: #FFFFFF !important;
  border-color: #8B4513 !important;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25) !important;
}

body.is-light-mode #perez-showcase-modal .perez-modal-close,
html.perez-light-mode #perez-showcase-modal .perez-modal-close,
body.perez-light-mode #perez-showcase-modal .perez-modal-close,
.perez-light-mode #perez-showcase-modal .perez-modal-close {
  background: #F4ECE1 !important;
  border: 1.5px solid rgba(139, 69, 19, 0.35) !important;
  color: #2C1A11 !important;
}

body.is-light-mode #perez-showcase-modal .perez-modal-close:hover,
html.perez-light-mode #perez-showcase-modal .perez-modal-close:hover,
body.perez-light-mode #perez-showcase-modal .perez-modal-close:hover,
.perez-light-mode #perez-showcase-modal .perez-modal-close:hover {
  background: #8B4513 !important;
  color: #FFFFFF !important;
  border-color: #8B4513 !important;
}

/* =========================================================
   COMPLIANZ CONSENT TAB - DE-CONFLICT & LUXURY STYLING
   Fixes bottom section overlap, pagination collision & clashing white card
   ========================================================= */
#cmplz-manage-consent {
  position: fixed !important;
  bottom: 18px !important;
  left: 18px !important;
  right: auto !important;
  top: auto !important;
  z-index: 999 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: max-content !important;
  height: auto !important;
  pointer-events: auto !important;
  transform: none !important;
}

#cmplz-manage-consent .cmplz-manage-consent,
.cmplz-btn.cmplz-manage-consent {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 14px !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  animation: none !important;
  transform: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: rgba(22, 14, 10, 0.92) !important;
  color: #DFC08A !important;
  border: 1px solid rgba(197, 160, 89, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

#cmplz-manage-consent .cmplz-manage-consent:hover,
#cmplz-manage-consent .cmplz-manage-consent:focus,
.cmplz-btn.cmplz-manage-consent:hover,
.cmplz-btn.cmplz-manage-consent:focus {
  background: #C5A059 !important;
  color: #120A06 !important;
  border-color: #C5A059 !important;
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.45) !important;
  transform: translateY(-1px) !important;
  animation: none !important;
}

/* Light Mode Styling */
body.perez-light-mode #cmplz-manage-consent .cmplz-manage-consent,
html.perez-light-mode #cmplz-manage-consent .cmplz-manage-consent,
body.is-light-mode #cmplz-manage-consent .cmplz-manage-consent,
body.perez-light-mode .cmplz-btn.cmplz-manage-consent,
html.perez-light-mode .cmplz-btn.cmplz-manage-consent,
body.is-light-mode .cmplz-btn.cmplz-manage-consent {
  background: rgba(248, 241, 233, 0.96) !important;
  color: #3D2214 !important;
  border: 1px solid rgba(139, 69, 19, 0.3) !important;
  box-shadow: 0 4px 14px rgba(61, 34, 20, 0.15) !important;
}

body.perez-light-mode #cmplz-manage-consent .cmplz-manage-consent:hover,
html.perez-light-mode #cmplz-manage-consent .cmplz-manage-consent:hover,
body.is-light-mode #cmplz-manage-consent .cmplz-manage-consent:hover,
body.perez-light-mode .cmplz-btn.cmplz-manage-consent:hover,
html.perez-light-mode .cmplz-btn.cmplz-manage-consent:hover,
body.is-light-mode .cmplz-btn.cmplz-manage-consent:hover {
  background: #8B4513 !important;
  color: #FFFFFF !important;
  border-color: #8B4513 !important;
}

/* Modal Active Protection - Never obscure modal view */
body.perez-modal-active #cmplz-manage-consent,
body:has(#perez-showcase-modal.is-open) #cmplz-manage-consent,
#perez-showcase-modal.is-open ~ #cmplz-manage-consent {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Pagination container extra safe clearance */
.perez-pagination-container {
  margin-bottom: 40px !important;
  position: relative !important;
  z-index: 10 !important;
}
