/* ==========================================================================
   HERLYN GEMS - LUXURY MONOCHROME BLACK & WHITE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Clean Monochrome Brand Palette */
  --brand-violet: #000000;
  --brand-violet-dark: #000000;
  --brand-violet-light: #f8fafc;
  --brand-cream: #ffffff;
  --brand-cream-light: #ffffff;
  --brand-peach: #cbd5e1;
  --brand-peach-dark: #94a3b8;
  --brand-platinum: #cbd5e1;
  --brand-platinum-light: #e5e7eb;

  /* Backgrounds - 100% Pure White Canvas Across All Sections */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  /* Silver/Gold compatibility aliases */
  --silver-light: #ffffff;
  --silver-main: #000000;
  --silver-dark: #000000;
  --silver-gradient: linear-gradient(135deg, #000000 0%, #1e293b 100%);
  --silver-glow: 0 6px 25px rgba(0, 0, 0, 0.15);
  --silver-subtle-bg: #ffffff;

  --gold-light: #ffffff;
  --gold-main: #000000;
  --gold-dark: #000000;
  --gold-gradient: linear-gradient(135deg, #000000 0%, #1e293b 100%);
  --gold-glow: 0 6px 25px rgba(0, 0, 0, 0.15);
  --gold-subtle-bg: #ffffff;

  /* Status Colors */
  --diamond-blue: #000000;
  --diamond-sparkle: #ffffff;
  --status-in-stock: #059669;
  --status-in-stock-bg: #ecfdf5;
  --status-reserved: #d97706;
  --status-reserved-bg: #fffbe6;
  --status-sold: #dc2626;
  --status-sold-bg: #fef2f2;

  /* Typography */
  --font-heading: 'Prompt', 'Plus Jakarta Sans', 'Playfair Display', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Prompt', 'Sarabun', sans-serif;

  /* UI Tokens - Pitch Black Text & White Canvas */
  --text-primary: #000000;
  --text-secondary: #1c1917;
  --text-muted: #64748b;
  --border-gold: #cbd5e1;
  --border-light: #e5e7eb;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.03);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Smooth Modern Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding-top: 85px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Typography Utilities - Crisp Black Headers */
h1,
h2,
h3,
h4,
.brand-title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  color: #000000;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0.1em 0;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #000000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background: #1e293b;
  border-color: #1e293b;
}

.btn-outline {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
  background: #f1f5f9;
  color: #000000;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.btn-dark {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
}

.btn-dark:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-danger-outline {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
}

.btn-text:hover {
  color: #000000;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.85rem;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #000000;
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 6px rgba(148, 163, 184, 0.5));
}

.brand-logo-img {
  height: 70px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(148, 163, 184, 0.4));
  transition: var(--transition-smooth);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #000000;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #475569;
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #000000;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #000000;
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header LINE Consult CTA Button */
.header-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #06c755;
  color: #ffffff;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.25);
  white-space: nowrap;
}

.header-line-btn:hover {
  background: #05b34c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
}

.burger-line-icon {
  background: #06c755 !important;
}

.burger-line-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #06c755;
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.65rem;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.2);
  transition: var(--transition-smooth);
}

.burger-line-cta-btn:hover {
  background: #05b34c;
  color: #ffffff;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  color: #000000;
}

.lang-btn.active {
  color: #ffffff;
  background: #000000;
  font-weight: 700;
}

.lang-divider {
  color: #cbd5e1;
  font-size: 0.75rem;
  user-select: none;
}

.action-btn {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  color: #000000;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.action-btn:hover {
  border-color: #64748b;
  background: #f1f5f9;
  color: #000000;
  transform: translateY(-1px);
}

.action-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-toggle-btn {
  width: auto;
  height: 42px;
  padding: 0 1.25rem;
  border-radius: var(--radius-full);
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--bg-secondary);
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}

.admin-toggle-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--silver-glow);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 7rem 0 6rem;
  background: url('../images/Herlyngems-slider-cover-2-Timeless.jpg') no-repeat center center / cover;
  background-attachment: fixed;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  min-height: 480px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* GPU Hardware Acceleration for Smooth Rendering */
.product-card,
.showroom-card,
.custom-step-card,
.btn-gold,
.site-header {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.65) 45%, rgba(255, 255, 255, 0.15) 100%);
  pointer-events: none;
}

.sparkles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: #64748b;
  opacity: 0.35;
  animation: pulseSparkle 3s infinite ease-in-out;
}

.sparkle-1 {
  top: 15%;
  left: 12%;
  font-size: 1.5rem;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 25%;
  right: 15%;
  font-size: 2rem;
  animation-delay: 1s;
}

.sparkle-3 {
  bottom: 20%;
  left: 20%;
  font-size: 1.2rem;
  animation-delay: 1.5s;
}

.sparkle-4 {
  bottom: 15%;
  right: 22%;
  font-size: 1.8rem;
  animation-delay: 0.5s;
}

@keyframes pulseSparkle {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 900px;
  margin-left: 20rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 4px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  background: #f1f5f9;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #000000;
}

.hero-description {
  font-size: 1.15rem;
  color: #1e293b;
  max-width: 720px;
  margin: 0 0 1.25rem 0;
  font-weight: 400;
  text-align: left;
}

.hero-sub-tags {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #334155;
  font-weight: 600;
  flex-wrap: wrap;
  text-align: center;
}

.hero-sub-tags .tag-sep {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* Tablet & Mobile Hero Layout Optimization (iPad & Mobile Phones) */
@media (max-width: 1200px) {
  .hero-section {
    padding: 5rem 1.5rem 5.5rem;
    min-height: 440px;
    background-position: center center;
  }

  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.35;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1.05rem;
    text-align: center;
    margin: 0 auto 1rem;
  }

  .hero-sub-tags {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 5;
    margin-top: 0;
    gap: 0.6rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 3.5rem 1rem 4.5rem;
    min-height: 400px;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 0.85rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-sub-tags {
    position: absolute;
    bottom: 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    gap: 0.4rem;
  }
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  gap: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #475569;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-gold);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.1rem;
  line-height: 1.45;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.75rem;
}

.section-description {
  color: #1e293b;
  max-width: 600px;
  margin: 0 auto;
}

/* Product Catalog Section */
/* Product Catalog Section */
.catalog-section {
  padding: 5rem 0;
  background: #ffffff;
}

.catalog-controls {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 2.25rem;
}

.search-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 992px) {
  .search-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .search-filter-bar {
    grid-template-columns: 1fr;
  }
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i,
.search-box svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #64748b;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.search-box:focus-within svg,
.search-box:focus-within i {
  color: #0f172a;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.filter-select {
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-select:focus {
  outline: none;
  border-color: #0f172a;
}

.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  color: #475569;
  font-size: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Products Grid - 4 Cards Per Row on Desktop (Clean Tiffany Grid Aesthetic) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Touch-Swipe Slider on Mobile & iPad (<992px) */
@media (max-width: 992px) {
  .products-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    gap: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    scroll-padding-left: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .products-grid::-webkit-scrollbar {
    height: 6px;
  }

  .products-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
  }

  .products-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
  }

  .products-grid .product-card {
    flex: 0 0 76% !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
  }
}

@media (max-width: 576px) {
  .products-grid .product-card {
    flex: 0 0 84% !important;
    max-width: 300px !important;
  }
}

/* Tiffany & Co. Style Product Card */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}

.card-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-status-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.status-in_stock {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.status-reserved {
  background: #fffbe6;
  color: #d97706;
  border: 1px solid #fef3c7;
}

.status-sold {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.card-discount-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  z-index: 3;
}

.price-original {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.card-cert-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.card-content {
  padding: 1.25rem 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  width: 100%;
  padding: 0.65rem 0.4rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  box-sizing: border-box;
}

.spec-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.spec-label {
  font-size: 0.62rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.spec-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
}

.btn-card-action {
  width: 100%;
  padding: 0.6rem 1rem;
  background: #ffffff;
  color: #000000;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.product-card:hover .btn-card-action {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-gold);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 3rem;
  color: #475569;
  margin-bottom: 1rem;
}

/* Quality 4Cs Section */
.cert-section {
  padding: 6rem 0 6.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.c-card {
  padding: 2rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.c-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.12);
  background: #ffffff;
  border-color: #cbd5e1;
}

.c-icon {
  width: 60px;
  height: 60px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #000000;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.c-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #000000;
}

.c-desc {
  font-size: 0.9rem;
  color: #1e293b;
}

/* Bespoke Custom Ring Section */
.custom-ring-section {
  padding: 6.5rem 0;
  margin-top: 1rem;
  background: #ffffff;
  color: #000000;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.custom-ring-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.custom-ring-header .section-title {
  color: #000000;
  margin-bottom: 1rem;
}

.custom-ring-header .section-description {
  color: #1c1917;
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.custom-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 840px) {
  .custom-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.custom-step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
  transition: var(--transition-smooth);
}

.custom-step-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.step-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
}

.step-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1.25rem;
  font-size: 1.4rem;
}

.step-img-box {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 1.25rem auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 0.25rem;
}

.step-img-full {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.custom-step-card:hover .step-img-full {
  transform: scale(1.05);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: #1c1917;
  line-height: 1.6;
}

/* Showroom Atmosphere Slider Carousel */
.showroom-gallery-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.showroom-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.showroom-slider-track-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
}

.showroom-slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.showroom-slider-track .showroom-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-gold);
  background: #0f172a;
}

@media (max-width: 992px) {
  .showroom-slider-track .showroom-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 640px) {
  .showroom-slider-track .showroom-card {
    flex: 0 0 100%;
  }
}

.showroom-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}

.showroom-card:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.showroom-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.88) 100%);
  color: #ffffff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-smooth);
}

.showroom-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.showroom-card-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.showroom-slider-track .showroom-card {
  cursor: pointer;
}

.showroom-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3Cpath d='M21 3l-7 7'/%3E%3Cpath d='M3 21l7-7'/%3E%3C/svg%3E") center no-repeat;
  border: 1px solid var(--border-gold);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.showroom-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Showroom Modal Preview Custom Styling */
.showroom-modal-container {
  max-width: 850px !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: relative;
  background: #0f172a !important;
  border: 1px solid var(--gold-main) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

.showroom-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.8) !important;
  color: #ffffff !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: 50% !important;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showroom-modal-close:hover {
  background: var(--gold-main) !important;
  color: #000000 !important;
}

.showroom-modal-img-wrapper {
  background: #020617;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  overflow: hidden;
}

.showroom-modal-img-wrapper img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.showroom-modal-details {
  padding: 1.5rem 2rem;
  background: #0f172a;
  border-top: 1px solid var(--border-gold);
}

.showroom-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.showroom-modal-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-gold);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-50%) scale(1.1);
}

.arrow-left {
  left: -18px;
}

.arrow-right {
  right: -18px;
}

@media (max-width: 768px) {
  .arrow-left {
    left: 5px;
  }

  .arrow-right {
    right: 5px;
  }
}

.slider-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #0f172a;
  width: 28px;
  border-radius: 12px;
}

/* Contact & Google Maps Section */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-info-card {
  background: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--border-gold);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-content-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.25rem;
}

.info-content-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

.contact-action-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.map-container {
  width: 100%;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  position: relative;
  background: #0f172a;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

/* Footer */
/* Footer */
.site-footer {
  background: #ffffff;
  color: #000000;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .site-footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-brand {
    grid-column: span 2;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 0.5rem;
  }

  .footer-brand .brand-logo {
    justify-content: center;
  }

  .footer-brand p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #1c1917;
    margin-top: 0.75rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-title {
    display: inline-block;
    border-bottom: 2px solid var(--border-gold);
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
  }

  .footer-links {
    align-items: center;
  }
}

.footer-brand .brand-title {
  color: #000000;
}

.mobile-burger-social {
  display: none;
}

.footer-brand p {
  color: #1c1917;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Pure White Social Icons in site-footer */
.footer-social-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-social-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.white-social-icon {
  color: #000000 !important;
  fill: none;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.white-social-icon svg {
  width: 22px;
  height: 22px;
  color: #000000 !important;
}

.white-social-icon:hover {
  color: #000000 !important;
  opacity: 0.7;
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #1c1917;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: #000000;
  font-weight: 700;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: #64748b;
  font-size: 0.85rem;
}

/* Modals & Overlay (Shared) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
  font-size: 1.35rem;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

.modal-body {
  padding: 2rem;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.span-2 {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .span-2 {
    grid-column: span 1;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000000;
}

.form-group label.required::after {
  content: ' *';
  color: #dc2626;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preset-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}

.preset-images span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preset-img-btn {
  background: #f8fafc;
  border: 1px solid var(--border-gold);
  color: #0f172a;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.preset-img-btn:hover {
  background: #0f172a;
  color: #ffffff;
}

.image-preview-box {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-gold);
  text-align: center;
}

.image-preview-box img {
  max-height: 180px;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  box-shadow: var(--shadow-card);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   ADMIN BACK-OFFICE STANDALONE STYLES (admin.html)
   ========================================================================== */

.admin-body {
  background: #f1f5f9;
  min-height: 100vh;
}

.admin-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-gold);
  padding: 1.25rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.admin-badge {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-left: 0.75rem;
  letter-spacing: 1px;
}

.admin-main-container {
  padding: 2.5rem 0 4rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 1200px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.stat-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-card-icon.icon-in-stock {
  background: var(--status-in-stock-bg);
  color: var(--status-in-stock);
  border-color: rgba(5, 150, 105, 0.3);
}

.stat-card-icon.icon-reserved {
  background: var(--status-reserved-bg);
  color: var(--status-reserved);
  border-color: rgba(217, 119, 6, 0.3);
}

.stat-card-icon.icon-sold {
  background: var(--status-sold-bg);
  color: var(--status-sold);
  border-color: rgba(220, 38, 38, 0.3);
}

.stat-card-info {
  display: flex;
  flex-direction: column;
}

.stat-card-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

/* Admin Toolbar */
.admin-toolbar-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
}

.admin-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Admin Data Table */
.admin-table-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-gold);
  white-space: nowrap;
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  vertical-align: middle;
  color: #000000;
}

.admin-table tbody tr {
  transition: var(--transition-smooth);
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.table-img-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.product-sku-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.product-title-text {
  font-weight: 700;
  color: #000000;
}

.badge-status {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon-action {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-icon-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #000000;
}

.btn-icon-action.btn-delete:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

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

.toast {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #0f172a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left-color: #059669;
}

.toast-error {
  border-left-color: #dc2626;
}

/* ==========================================================================
   ADMIN MODAL POPUP SYSTEM (.modal-overlay & .modal-container)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-light, #e2e8f0);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-body {
  padding: 1.75rem;
}

.toast-info {
  border-left-color: #0284c7;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & IPAD / TABLET OPTIMIZATIONS)
   ========================================================================== */

.mobile-menu-toggle {
  display: none;
}

/* Tablet & iPad Screens (<= 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Mobile & iPad Portrait Screens (<= 992px) */
@media (max-width: 992px) {
  .header-line-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gold);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
    animation: fadeInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
  }

  /* Mobile & iPad Burger Menu Social Section */
  .mobile-burger-social {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gold);
  }

  .burger-social-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .burger-social-icons {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .burger-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .burger-social-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff !important;
  }

  .burger-social-icon:hover {
    background: #000000;
    transform: translateY(-2px);
  }

  /* Hide Footer Social Section on Mobile & iPad */
  .footer-social-section {
    display: none !important;
  }

  .admin-toggle-btn span {
    display: none;
  }

  .admin-toggle-btn {
    padding: 0;
    width: 42px;
    height: 42px;
  }

  .search-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .brand-title {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }

  .brand-subtitle {
    font-size: 0.55rem;
    letter-spacing: 2px;
  }

  .hero-section {
    padding: 3.5rem 0 3rem;
  }

  .hero-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 0.25rem 0.85rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-description {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    width: 100%;
  }

  .stat-divider {
    width: 60%;
    height: 1px;
  }

  .search-filter-bar {
    grid-template-columns: 1fr;
  }

  .catalog-controls {
    padding: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cs-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Admin Responsive Rules */
  .admin-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-header-content>div:last-child {
    width: 100%;
  }

  .admin-header-content .btn {
    width: 100%;
  }

  .admin-badge {
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .admin-stat-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .stat-card-value {
    font-size: 1.3rem;
  }

  .admin-toolbar-card {
    padding: 1rem;
  }

  .admin-toolbar-left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .admin-toolbar-left .search-box {
    max-width: 100%;
  }

  .admin-toolbar-right {
    width: 100%;
  }

  .admin-toolbar-right .btn {
    width: 100%;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  .modal-container {
    max-width: 95vw;
    margin: 0 0.5rem;
    max-height: 88vh;
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HERLYN GEMS - MODERN BACK-OFFICE ADMIN DASHBOARD & MODAL STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-body {
  background: #f8fafc;
  color: #0f172a;
  font-family: 'Outfit', 'Kanit', sans-serif;
  min-height: 100vh;
}

.admin-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.5rem;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

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

.admin-badge {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-main-container {
  padding-top: 0.85rem;
  padding-bottom: 3rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-stat-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-card-icon.icon-in-stock {
  background: #ecfdf5;
  color: #10b981;
}

.stat-card-icon.icon-reserved {
  background: #fffbe6;
  color: #d97706;
}

.stat-card-icon.icon-sold {
  background: #fef2f2;
  color: #ef4444;
}

.stat-card-info {
  display: flex;
  flex-direction: column;
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.stat-card-value {
  font-size: 1.45rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.admin-toolbar-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex-grow: 1;
}

.admin-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-select {
  padding: 0.6rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.filter-select:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.admin-table-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.admin-table td {
  padding: 0.9rem 1.15rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 400;
}

.admin-table tbody tr {
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.table-img-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.table-img-thumb:hover {
  transform: scale(1.1);
}

.product-title-text {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.93rem;
  margin-bottom: 0.15rem;
}

.product-sku-text {
  font-size: 0.76rem;
  color: #64748b;
  font-family: monospace;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-status.status-in_stock {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-status.status-reserved {
  background: #fffbe6;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-status.status-sold {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.badge-status.status-not_ready {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.actions-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-icon-action {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-action:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-1px);
}

.btn-icon-action.btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.discount-management-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-top: 0.25rem;
}