/* =========================================================
   MAISON SOLEIL - 3D Marble E-Commerce Gallery Stylesheet
   ========================================================= */
:root {
  --bg-ivory: #f6f4ef;
  --surface-glass: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --text-dark: #1d1a16;
  --text-muted: #6f675d;
  --gold: #b89152;
  --gold-light: #d6b67d;
  --gold-soft: rgba(184, 145, 82, 0.14);
  --border-light: rgba(29, 26, 22, 0.1);
  --shadow-soft: 0 18px 45px rgba(29, 26, 22, 0.08);
  --shadow-lg: 0 28px 70px rgba(29, 26, 22, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
}

/* 3D Fullscreen Canvas */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  cursor: grab;
}
#webgl-canvas.hovering-frame {
  cursor: pointer;
}

/* =========================================================
   TOP E-COMMERCE NAVIGATION BAR
   ========================================================= */
.store-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 50;
  background: rgba(252, 250, 247, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  cursor: pointer;
  flex-shrink: 0;
}
.brand-logo strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand-logo span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
}

/* Main Nav Links */
.store-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--gold-soft);
  color: #8c6930;
}

/* Dropdown Mega-Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 80;
}
.nav-item:hover .dropdown-menu,
.nav-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s;
  text-align: right;
}
.dropdown-btn:hover {
  background: #f5f1ea;
  color: var(--gold);
}
.dropdown-btn .count-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: #f0ece4;
  color: var(--text-muted);
}

/* Live Search Bar */
.header-search {
  position: relative;
  flex: 1;
  max-width: 340px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  background: #f2efe9;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  height: 42px;
  transition: all 0.22s;
}
.search-input-wrap:focus-within {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 145, 82, 0.12);
}
.search-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0 10px;
  font-size: 0.86rem;
  color: var(--text-dark);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  max-height: 360px;
  overflow-y: auto;
  z-index: 90;
}
.search-results.active {
  display: block;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
}
.search-result-item:hover {
  background: #f7f4ee;
}
.search-result-item img {
  width: 44px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}
.search-result-info h4 {
  font-size: 0.86rem;
  font-weight: 700;
}
.search-result-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Header Action Buttons (Left Side) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  color: #7d5d28;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle-btn:hover, .view-toggle-btn.active {
  background: var(--gold);
  color: #fff;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.badge-count {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--text-dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-count.gold {
  background: var(--gold);
}

/* =========================================================
   HERO OVERLAY (ENTRANCE OF 3D MARBLE CORRIDOR)
   ========================================================= */
.entrance-hero {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  z-index: 15;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  width: min(680px, 90vw);
  padding: 28px 34px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 60px rgba(29, 26, 22, 0.06);
}
.entrance-hero.hidden {
  opacity: 0;
  transform: translate(-50%, -56%) scale(0.96);
}
.entrance-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(184, 145, 82, 0.25);
}
.entrance-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}
.entrance-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}
.scroll-wheel {
  width: 20px;
  height: 32px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  position: relative;
}
.scroll-wheel::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: var(--gold);
  animation: wheelAnim 1.5s infinite;
}
@keyframes wheelAnim {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* Hover Tooltip on 3D Frame */
.frame-tooltip {
  position: fixed;
  z-index: 25;
  pointer-events: none;
  background: rgba(29, 26, 22, 0.9);
  color: #fff;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity 0.2s;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.frame-tooltip.visible {
  opacity: 1;
}

/* =========================================================
   BOTTOM DEPTH NAVIGATION BAR
   ========================================================= */
.depth-bar {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  width: auto;
  max-width: 92vw;
}
.depth-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  min-width: 96px;
}
.depth-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 99px;
  background: #e4ded4;
  outline: none;
  cursor: pointer;
}
.depth-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(184, 145, 82, 0.5);
  cursor: pointer;
}
.depth-meter {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 56px;
  text-align: left;
  direction: ltr;
}

/* =========================================================
   PRODUCT ZOOM-IN PANEL (WHEN CLICKING A 3D FRAME)
   ========================================================= */
.product-panel {
  position: fixed;
  top: calc(var(--header-height) + 18px);
  left: 24px;
  bottom: 24px;
  width: min(410px, calc(100vw - 48px));
  z-index: 45;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-120%);
  opacity: 0;
  transition: all 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-panel.open {
  transform: translateX(0);
  opacity: 1;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--gold-soft);
  color: #8c6930;
  margin-bottom: 6px;
}
.panel-title {
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.3;
}
.panel-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.close-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-circle:hover {
  background: #f5f2ec;
}

.panel-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #46403a;
}

.notes-box {
  background: #f8f5f0;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(184, 145, 82, 0.16);
}
.note-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}
.note-row span:first-child {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.note-row span:last-child {
  color: var(--text-dark);
  text-align: left;
}

.size-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.size-btn {
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.size-btn strong {
  display: block;
  font-size: 0.92rem;
}
.size-btn span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.size-btn.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.panel-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.price-value {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-dark);
}
.price-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.panel-cta-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.btn-primary {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: var(--text-dark);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--gold);
}
.btn-outline {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-light);
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover, .btn-outline.active {
  border-color: #c94a59;
  color: #c94a59;
}

/* =========================================================
   FULL E-COMMERCE GRID CATALOG OVERLAY
   ========================================================= */
.catalog-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.97);
  backdrop-filter: blur(22px);
  overflow-y: auto;
  padding: 32px 28px 60px;
  display: none;
}
.catalog-overlay.open {
  display: block;
}
.catalog-container {
  max-width: 1220px;
  margin: 0 auto;
}
.catalog-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 960px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f4f1eb;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.04);
}
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-body h3 {
  font-size: 1rem;
  font-weight: 800;
}
.card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.card-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-price {
  font-weight: 800;
  font-size: 0.96rem;
}
.card-actions {
  display: flex;
  gap: 6px;
}
.mini-btn {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.mini-btn.dark {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}
.mini-btn.dark:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* =========================================================
   DRAWERS & MODALS (CART, CHECKOUT, ACCOUNT, CONTACT)
   ========================================================= */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.42);
  backdrop-filter: blur(5px);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s;
}
.backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 94vw);
  background: #ffffff;
  z-index: 100;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f9f7f3;
  border: 1px solid var(--border-light);
}
.cart-item img {
  width: 62px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.drawer-foot {
  padding: 18px 22px;
  border-top: 1px solid var(--border-light);
  background: #fcfaf7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.coupon-row {
  display: flex;
  gap: 8px;
}
.coupon-row input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.coupon-row button {
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.95);
  width: min(520px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px;
  z-index: 105;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s;
}
.modal-box.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #faf8f4;
  font-size: 0.88rem;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
  background: #fff;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-dark);
  color: #fff;
  padding: 11px 22px;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 600;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Local Server Notice (only shown if opened via file://) */
.cors-banner {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 20px;
  z-index: 60;
  background: #fff9eb;
  border: 1px solid #e4c789;
  color: #6b4e16;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  max-width: 380px;
  box-shadow: var(--shadow-soft);
  display: none;
}
.cors-banner.show {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .store-header { padding: 0 14px; gap: 10px; }
  .store-nav { display: none; }
  .header-search { max-width: 210px; }
  .view-toggle-btn span { display: none; }
}


/* =========================================================
   PORTAL WHITE TRANSITION & CONTINUATION WEBSITE SECTION
   ========================================================= */
.portal-white-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 28;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s linear;
}

.depth-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 30px);
  transition: all 0.35s ease;
}

.after-scroll-site {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: #ffffff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
}
.after-scroll-site.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 64px 28px;
}

.after-hero {
  text-align: center;
  padding: 72px 24px 48px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
  border-bottom: 1px solid var(--border-light);
}
.after-hero h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  margin: 14px 0 12px;
}
.after-hero p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.98rem;
}
.back-3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: #ffffff;
  color: #7d5d28;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
}
.back-3d-btn:hover {
  background: var(--gold);
  color: #ffffff;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.pillar-card {
  background: #faf8f4;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.pillar-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.pillar-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =========================================================
   AFTER-SCROLL PAGE EFFECTS (TEXT, IMAGE-ONLY 3D, PILLARS, STORY)
   ========================================================= */

/* Always-visible, high-contrast luxury headings with 3D kinetic word animation + golden light bar */
.fx-title-shimmer {
  position: relative;
  display: inline-block;
  color: #1d1a16;
  padding-bottom: 14px;
  perspective: 900px;
}

.fx-title-shimmer::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent 0%, #b89152 30%, #e7c888 50%, #b89152 70%, transparent 100%);
  background-size: 200% 100%;
  animation: goldUnderlineFlow 3.4s linear infinite;
}

@keyframes goldUnderlineFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fx-word {
  display: inline-block;
  color: #1d1a16;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease, text-shadow 0.4s ease;
  transition-delay: calc(var(--wi, 0) * 55ms);
}

.fx-title-shimmer.play-anim .fx-word {
  animation: wordKineticPop 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--wi, 0) * 65ms);
}

@keyframes wordKineticPop {
  0% {
    opacity: 0.15;
    transform: translateY(22px) rotateX(-55deg) scale(0.92);
    color: #b89152;
    text-shadow: 0 10px 24px rgba(184, 145, 82, 0.45);
  }
  65% {
    opacity: 1;
    transform: translateY(-3px) rotateX(6deg) scale(1.02);
    color: #8c6930;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    color: #1d1a16;
    text-shadow: 0 2px 14px rgba(184, 145, 82, 0.14);
  }
}

.fx-fade-up {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
.fx-fade-up.play-anim {
  animation: softRiseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes softRiseIn {
  0% { opacity: 0.2; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Stationary Product Card Box — Effect applies ONLY to the Product Image inside! */
#after-scroll-products .product-card.card-3d,
#catalog-grid .product-card.card-3d {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: none !important; /* Keep card box completely steady */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
#after-scroll-products .product-card.card-3d:hover,
#catalog-grid .product-card.card-3d:hover {
  transform: none !important;
  border-color: rgba(184, 145, 82, 0.45);
  box-shadow: var(--shadow-soft);
}

/* Image Container & Image-Only 3D Tilt + Zoom + Specular Glare */
.card-3d-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #f8f5ef 0%, #ede7dc 100%);
  overflow: hidden;
  perspective: 900px;
}

.card-3d-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
  transform-origin: center center;
}

.card-3d-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 242, 212, 0.18) 38%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}
.card-3d-media:hover .card-3d-glare {
  opacity: 1;
}

.card-3d-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  z-index: 4;
  pointer-events: none;
}

.mini-btn.btn-3d-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-color: rgba(184, 145, 82, 0.45);
  color: #7d5d28;
  background: #fdfaf4;
  transition: all 0.2s ease;
}
.mini-btn.btn-3d-view:hover {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

/* Pagination Bar Below Featured Products */
.pagination-bar {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.page-btn.active {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(184, 145, 82, 0.3);
}
.page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.page-status-pill {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 10px;
}

/* 4 Service Pillars Cards — Staggered Entrance + Hover Elevation & Icon Spin */
.pillars-grid {
  perspective: 1200px;
}

.pillar-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}
.pillar-card.play-anim {
  animation: pillarRise 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--pi, 0) * 110ms);
}
@keyframes pillarRise {
  0% { opacity: 0.2; transform: translateY(28px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 145, 82, 0.15) 0%, transparent 58%);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.pillar-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(184, 145, 82, 0.55);
  box-shadow: 0 22px 45px rgba(29, 26, 22, 0.1);
}
.pillar-card:hover::before {
  opacity: 1;
}
.pillar-card .pillar-icon {
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.pillar-card:hover .pillar-icon {
  transform: translateY(-4px) rotateY(180deg) scale(1.12);
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(184, 145, 82, 0.35);
}

/* Brand Story Split Section — Always-visible Dedicated 3:2 Image with 3D Tilt & Golden Sheen */
.story-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.story-media-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(184, 145, 82, 0.28);
  background: #f4f0e8;
  perspective: 1000px;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.story-media-3d.play-anim {
  animation: storyImgEntrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes storyImgEntrance {
  0% { opacity: 0.25; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.story-media-3d:hover {
  border-color: rgba(184, 145, 82, 0.65);
  box-shadow: 0 28px 60px rgba(29, 26, 22, 0.16);
}
.story-media-3d img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.story-media-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    transparent 20%,
    rgba(255, 252, 244, 0.42) 48%,
    transparent 75%
  );
  transform: translateX(120%);
  transition: transform 0.85s ease;
}
.story-media-3d:hover .story-media-glare {
  transform: translateX(-120%);
}

.story-split h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 16px;
  color: #1d1a16;
}
.story-split p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 0.94rem;
}

/* =========================================================
   4-COLUMN EQUAL-HEIGHT LUXURY FOOTER
   ========================================================= */
.site-footer {
  background: #1a1714;
  color: #f4f1eb;
  padding: 58px 28px 30px;
  margin-top: 40px;
  border-top: 2px solid rgba(184, 145, 82, 0.35);
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.footer-col {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.footer-col:hover {
  border-color: rgba(214, 182, 125, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(214, 182, 125, 0.2);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #faf7f2;
  padding: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
}
.footer-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-brand-titles strong {
  display: block;
  font-size: 1.08rem;
  color: #ffffff;
  font-weight: 800;
}
.footer-brand-titles span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}

.footer-col p {
  font-size: 0.85rem;
  color: #cfc8bd;
  line-height: 1.85;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: #d6cfc4;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 3px 0;
  text-align: right;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.footer-link-btn:hover {
  color: var(--gold-light);
  transform: translateX(-4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  color: #d6cfc4;
  line-height: 1.75;
}
.footer-contact-list li strong {
  color: var(--gold-light);
  font-weight: 700;
}
.footer-tel-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed rgba(214, 182, 125, 0.5);
  transition: color 0.2s, border-color 0.2s;
}
.footer-tel-link:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.footer-trust-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-trust-square {
  width: 142px;
  height: 142px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #ffffff;
  padding: 6px;
  border: 2px solid rgba(214, 182, 125, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.footer-trust-square:hover {
  transform: scale(1.04);
}
.footer-trust-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.footer-trust-caption {
  font-size: 0.76rem;
  color: #b4aca0;
  text-align: center;
}

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #9b9388;
}

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

@media (max-width: 820px) {
  .story-split { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ON-THE-SPOT INTERACTIVE 3D PERFUME SHOWCASE MODAL
   ========================================================= */
.viewer-3d-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.95);
  width: min(940px, 94vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 90px rgba(20, 18, 15, 0.28);
  border: 1px solid var(--border-light);
  z-index: 110;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  opacity: 0;
  visibility: hidden;
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.viewer-3d-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.viewer-3d-stage {
  position: relative;
  min-height: 460px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f3efe6 70%, #e7dfd1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.viewer-3d-stage:active {
  cursor: grabbing;
}
#product-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viewer-3d-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 145, 82, 0.3);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7d5d28;
  pointer-events: none;
}

.viewer-3d-controls {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.v3d-ctrl-btn {
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.v3d-ctrl-btn:hover, .v3d-ctrl-btn.active {
  background: var(--gold);
  color: #ffffff;
}

.viewer-3d-details {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
}

@media (max-width: 820px) {
  .viewer-3d-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .viewer-3d-stage {
    min-height: 310px;
  }
}

/* =========================================================
   MOBILE MENU & FULL RESPONSIVE ADAPTATIONS
   ========================================================= */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-sheet-handle {
  display: none;
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: #d8d1c5;
  margin: -6px auto 4px;
  flex-shrink: 0;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #ffffff;
  z-index: 102;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-nav-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-search-box input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #f5f2ec;
  font-size: 0.88rem;
  outline: none;
}
.mobile-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-item {
  width: 100%;
  text-align: right;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
}
.mobile-nav-item:hover {
  background: var(--gold-soft);
  color: #8c6930;
}
.mobile-cat-group {
  background: #faf8f4;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-cat-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.mobile-cat-btn {
  text-align: right;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.86rem;
  color: var(--text-dark);
  cursor: pointer;
}
.mobile-cat-btn:hover {
  background: #ffffff;
  color: var(--gold);
}

@media (max-width: 980px) {
  .mobile-menu-btn { display: inline-flex; }
  .header-right { gap: 12px; }
  .store-nav { display: none; }
  .header-search { max-width: 240px; }
  .view-toggle-btn span { display: none; }
  .view-toggle-btn { padding: 0 11px; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .store-header {
    padding: 0 12px;
    gap: 8px;
  }
  .header-search {
    display: none; /* Accessible inside mobile menu drawer for clean header */
  }
  .brand-logo strong { font-size: 1rem; }
  .brand-logo span { font-size: 0.58rem; }
  .icon-btn { width: 36px; height: 36px; }
  .view-toggle-btn { height: 36px; padding: 0 10px; }

  .entrance-hero {
    padding: 20px 18px;
    width: 92vw;
  }
  .entrance-hero h1 { font-size: 1.38rem; }
  .entrance-hero p { font-size: 0.84rem; margin-bottom: 12px; }

  .depth-bar {
    bottom: 14px;
    padding: 8px 18px;
    gap: 10px;
    width: auto;
  }
  .depth-label { min-width: 76px; font-size: 0.72rem; }
  .depth-meter { min-width: 44px; font-size: 0.7rem; }

  /* Product Zoom Panel becomes a clean Bottom Sheet on Mobile */
  .product-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 62vh;
    border-radius: 24px 24px 0 0;
    padding: 16px 18px 22px;
    transform: translateY(105%);
  }
  .product-panel.open {
    transform: translateY(0);
  }
  .mobile-sheet-handle {
    display: block;
  }
  .panel-title { font-size: 1.12rem; }
  .panel-desc { font-size: 0.82rem; line-height: 1.65; }

  .catalog-overlay {
    padding: 20px 14px 48px;
  }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 0.88rem; }
  .card-footer { flex-direction: column; align-items: stretch; }
  .card-actions { justify-content: space-between; }

  .site-section { padding: 40px 16px; }
  .after-hero { padding: 44px 16px 32px; }
}


/* =========================================================
   FULL PAGES (ABOUT, CONTACT, CHECKOUT, ACCOUNT & WISHLIST)
   ========================================================= */
.full-page-view {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 42;
  background: #ffffff;
  overflow-y: auto;
  display: none;
  animation: pageFadeSlide 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.full-page-view.open {
  display: block;
}

@keyframes pageFadeSlide {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero-banner {
  text-align: center;
  padding: 54px 24px 40px;
  background: linear-gradient(180deg, #faf8f4 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}
.page-hero-banner h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin: 12px 0;
}
.page-hero-banner p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.page-tabs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.page-tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}
.page-tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.page-tab-btn.active {
  background: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
}

.page-card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

/* About Page Stats & Craftsmanship */
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.stat-box {
  background: #faf8f4;
  border: 1px solid rgba(184, 145, 82, 0.22);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
}
.stat-box strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}
.stat-box span {
  font-size: 0.86rem;
  color: var(--text-dark);
  font-weight: 600;
}

.craft-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.craft-step-card {
  background: #faf8f4;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.craft-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.step-num {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 4px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.craft-step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.craft-step-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Contact Page Grid & Map Preview */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
.contact-info-card {
  background: #faf8f4;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 800;
}
.contact-info-card p {
  font-size: 0.86rem;
  color: var(--text-dark);
  line-height: 1.75;
}
.contact-direct-link {
  font-size: 1.08rem;
  font-weight: 800;
  color: #8c6930;
  text-decoration: none;
}
.contact-direct-link:hover {
  text-decoration: underline;
}
.contact-sub-note {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.contact-main-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #faf8f4;
  font-size: 0.88rem;
  outline: none;
}
.form-group select:focus {
  border-color: var(--gold);
  background: #fff;
}

.boutique-map-preview {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f3efe6 0%, #e7dfd0 100%);
  border: 1px solid rgba(184, 145, 82, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(184, 145, 82, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 145, 82, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-pin-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(29, 26, 22, 0.12);
  max-width: 310px;
}
.map-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto 8px;
  box-shadow: 0 0 0 6px rgba(184, 145, 82, 0.24);
}
.map-pin-card strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 4px;
}
.map-pin-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #faf8f4;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 20px;
}
.faq-item summary {
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  list-style: none;
}
.faq-item p {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* Checkout Page */
.checkout-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: start;
}
.radio-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-light);
  background: #faf8f4;
  cursor: pointer;
  transition: all 0.2s;
}
.radio-card input {
  margin-top: 4px;
  accent-color: var(--gold);
}
.radio-card strong {
  display: block;
  font-size: 0.88rem;
}
.radio-card span {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.radio-card:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.gift-wrap-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fdfaf4;
  border: 1px dashed var(--gold);
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
}
.summary-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: #faf8f4;
}
.summary-item-row img {
  width: 46px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.summary-totals {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}
.summary-totals > div {
  display: flex;
  justify-content: space-between;
}
.summary-totals .total-final {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  font-size: 1.05rem;
}

.receipt-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
  background: #f4fbf7;
  border: 1.5px solid #2b9365;
  color: #164b33;
}
.receipt-box h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.order-history-card {
  background: #faf8f4;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 880px) {
  .contact-main-split,
  .checkout-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .form-row-2,
  .radio-cards-grid {
    grid-template-columns: 1fr;
  }
}
