﻿/* ========================================
   GEMIMPRESSION® - Main Stylesheet
   Global CSS Foundation
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Nunito:wght@300;400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  --cream: #FAF6EE;
  --cream-dark: #F0E8D8;
  --cream-hover: #E8DCC8;
  --rose-gold: #C4813A;
  --rose-gold-dark: #A86830;
  --rose-gold-light: #E0A870;
  --rose-gold-pale: rgba(196,129,58,0.08);
  --charcoal: #2D1F1F;
  --charcoal-mid: #4A3535;
  --charcoal-light: #7A6565;
  --charcoal-muted: #B09090;
  --gold: #D4AF37;
  --gold-dark: #B8941E;
  --white: #FFFFFF;
  --border: #E8E0D8;
  --border-dark: #D4C8BE;
  --shadow-color: rgba(45,31,31,0.08);
  --shadow-sm: 0 2px 8px var(--shadow-color);
  --shadow-md: 0 4px 20px var(--shadow-color);
  --shadow-lg: 0 8px 40px var(--shadow-color);
  --shadow-xl: 0 20px 60px var(--shadow-color);
  --shadow-rose: 0 8px 30px rgba(196,129,58,0.2);
  --font-serif: 'Lora', Georgia, serif;
  --font-accent: 'Lora', Georgia, serif;
  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 72px;
  --max-width: 1440px;
  --content-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --t-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  color: var(--charcoal-mid);
  line-height: 1.7;
}

.text-serif  { font-family: var(--font-serif); }
.text-accent { font-family: var(--font-accent); }
.text-muted  { color: var(--charcoal-muted); }
.text-gold   { color: var(--gold); }
.text-rose   { color: var(--rose-gold); }

/* === LAYOUT === */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.container-wide {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section    { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-sm { padding: clamp(2rem, 5vw, 4rem) 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* === NAVIGATION === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.nav-logo {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  text-decoration: none;
}

.nav-logo span { color: var(--rose-gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal-mid);
  text-decoration: none;
  position: relative;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--rose-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal);
}

.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}

.nav-icon-btn:hover {
  background: var(--cream-dark);
  color: var(--rose-gold);
}

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--rose-gold);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--t-fast);
}

.cart-count-badge.visible { transform: scale(1); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--t-normal), opacity var(--t-fast);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--cream);
  z-index: 999;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform var(--t-normal);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.open { transform: translateY(0); }

.mobile-nav-drawer ul { list-style: none; padding: 0; }

.mobile-nav-drawer ul li { border-bottom: 1px solid var(--border); }

.mobile-nav-drawer ul li a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--charcoal);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-icon-btn:not(.cart-btn) { display: none; }
}

/* === CART SIDEBAR === */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--cream);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transition: right var(--t-normal);
}

.cart-sidebar.open { right: 0; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,31,31,0.4);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
  backdrop-filter: blur(2px);
}

.cart-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-sidebar-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--cream-dark);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.875rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.qty-btn:hover {
  border-color: var(--rose-gold);
  background: var(--rose-gold-pale);
}

.qty-display {
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal-muted);
  font-size: 1.25rem;
  transition: color var(--t-fast);
}

.cart-remove-btn:hover { color: var(--rose-gold); }

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.cart-subtotal span:last-child {
  font-weight: 600;
  color: var(--gold);
}

.cart-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--charcoal-muted);
}

.cart-empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

@media (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* === FOOTER === */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--content-width);
  margin: auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.footer-brand .footer-logo {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: white;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.footer-social a:hover {
  background: var(--rose-gold);
  border-color: var(--rose-gold);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col ul li { margin-bottom: 0.625rem; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--t-fast);
}

.footer-col ul li a:hover { color: var(--rose-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--t-fast);
}

.footer-bottom a:hover { color: var(--rose-gold); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose-gold);
  color: white;
  border-color: var(--rose-gold);
}

.btn-primary:hover {
  background: var(--rose-gold-dark);
  border-color: var(--rose-gold-dark);
  box-shadow: var(--shadow-rose);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background: var(--cream-dark);
  border-color: var(--charcoal);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--rose-gold);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover { color: var(--rose-gold-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
}

.btn-dark:hover {
  background: var(--charcoal-mid);
  border-color: var(--charcoal-mid);
  transform: translateY(-1px);
}

.btn-lg  { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm  { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

.btn:disabled,
.btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.btn-icon:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold);
}

.btn-icon.active {
  background: var(--rose-gold);
  border-color: var(--rose-gold);
  color: white;
}

/* === PRODUCT CARD === */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.product-card:hover .product-card-image img { transform: scale(1.06); }

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,31,31,0.0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--t-normal), background var(--t-normal);
}

.product-card:hover .product-card-overlay {
  opacity: 1;
  background: rgba(45,31,31,0.12);
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  transform: translateY(10px);
  transition: transform var(--t-normal);
}

.product-card:hover .product-card-actions { transform: translateY(0); }

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
}

.wishlist-btn:hover,
.wishlist-btn.active { background: var(--rose-gold); }

.wishlist-btn svg {
  width: 16px;
  height: 16px;
  transition: fill var(--t-fast);
}

.wishlist-btn.active svg  { fill: white; stroke: white; }
.wishlist-btn:hover svg   { fill: white; stroke: white; }

.product-card-info { padding: 1rem; }

.product-card-category {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
  margin-bottom: 0.25rem;
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.product-card-gemstone {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
  margin-bottom: 0.5rem;
}

.gemstone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
}

.product-card-price .original-price {
  font-size: 0.875rem;
  color: var(--charcoal-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* === FORMS === */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(196,121,122,0.12);
}

.form-input::placeholder { color: var(--charcoal-muted); }

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.8125rem;
  color: #e05555;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .form-input  { border-color: #e05555; }
.form-group.error .form-error  { display: block; }

/* === BADGES & PILLS === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-rose     { background: rgba(196,121,122,0.12); color: var(--rose-gold); }
.badge-gold     { background: rgba(212,175,55,0.12); color: var(--gold-dark); }
.badge-charcoal { background: var(--charcoal); color: white; }
.badge-outline  { border: 1px solid var(--border); color: var(--charcoal-mid); }

.gemstone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--t-fast);
}

.gemstone-pill:hover,
.gemstone-pill.active {
  border-color: var(--rose-gold);
  background: var(--rose-gold-pale);
  color: var(--rose-gold);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--charcoal);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--t-normal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
}

.toast.show   { transform: translateX(0); }
.toast.success { background: #2a7a4b; }
.toast.error   { background: #b83232; }
.toast-icon    { font-size: 1.1rem; }

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title { font-family: var(--font-serif); color: var(--charcoal); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--charcoal-mid);
  max-width: 560px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* === SEARCH MODAL === */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(45,31,31,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}

.search-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-inner {
  background: white;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px);
  transition: transform var(--t-normal);
}

.search-modal.open .search-modal-inner { transform: translateY(0); }

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.search-input-wrapper svg {
  width: 20px;
  height: 20px;
  color: var(--charcoal-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 1rem;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  color: var(--charcoal);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.75rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-fast);
}

.search-result-item:hover { background: var(--cream-dark); }

.search-result-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--cream-dark);
}

.search-result-name  { font-size: 0.9375rem; font-weight: 500; }
.search-result-price { font-size: 0.875rem; color: var(--gold); }

/* === PAGE WRAPPER === */
.page-content { padding-top: var(--nav-height); }

/* === GEMSTONE COLORS === */
.gem-jade        { background: #7BC8A4; }
.gem-moonstone   { background: #B8D4E8; }
.gem-rose-quartz { background: #F4A8C0; }
.gem-amethyst    { background: #C8A8E8; }
.gem-lapis       { background: #7888C8; }
.gem-citrine     { background: #F8D060; }
.gem-garnet      { background: #C84848; }
.gem-pearl       { background: #F8F4E8; border: 1px solid #E8DCC8; }
.gem-turquoise   { background: #68C8C0; }
.gem-onyx        { background: #484848; }
.gem-coral       { background: #F88060; }
.gem-labradorite { background: #88A8C8; }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--charcoal-muted);
  transition: color var(--t-fast);
}

.breadcrumb a:hover { color: var(--rose-gold); }

.breadcrumb-sep     { color: var(--border-dark); }
.breadcrumb-current { color: var(--charcoal); }

/* === PAGE HERO === */
.page-hero {
  background: var(--cream-dark);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.page-hero h1 { margin-bottom: 1rem; }

.page-hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* === UTILITY CLASSES === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.no-scroll    { overflow: hidden; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.mt-auto      { margin-top: auto; }
.mb-0         { margin-bottom: 0 !important; }
.fw-400       { font-weight: 400; }
.fw-500       { font-weight: 500; }
.fw-600       { font-weight: 600; }
.d-none       { display: none !important; }
.w-100        { width: 100%; }
.divider      { height: 1px; background: var(--border); margin: 2rem 0; }

/* === PRINT STYLES === */
@media print {
  .site-nav,
  .site-footer,
  .cart-sidebar,
  .cart-overlay,
  .search-modal,
  .toast-container {
    display: none;
  }
}
