/* ======================================================
   COMMON BRAND VARIABLES & THEME
====================================================== */
:root {
  --background: #FFFFFF;
  --foreground: #111111;
  --card: #FAFAFA;
  --card-foreground: #111111;
  --primary: #C8A96A; /* Gold Accent */
  --primary-foreground: #FFFFFF;
  --secondary: #F5F5F5;
  --secondary-foreground: #111111;
  --muted: #767676;
  --border: #E5E5E5;
  --input: #E5E5E5;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 4px 12px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 17, 17, 0.12);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

/* Dark Theme Variables */
body.dark-mode {
  --background: #111111;
  --foreground: #FAFAFA;
  --card: #1A1105; /* Deep luxury dark card */
  --card-foreground: #FAFAFA;
  --secondary: #1C1C1C;
  --secondary-foreground: #FAFAFA;
  --border: #2D2D2D;
  --input: #2D2D2D;
  --muted: #A0A0A0;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}
h1, h2, h3, h4, .serif-font {
  font-family: var(--font-serif);
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Header Styling */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s, border-color 0.3s;
}
body.dark-mode header {
  background-color: rgba(17, 17, 17, 0.95);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img {
  height: 40px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle-btn, .menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 8px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.theme-toggle-btn:hover, .menu-toggle-btn:hover {
  background-color: var(--secondary);
}
.menu-toggle-btn {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background-color: var(--background);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav.open {
  display: block;
}

/* Footer Styling */
footer {
  background-color: #111111;
  color: #FFFFFF;
  padding: 64px 24px 24px;
  border-top: 1px solid #222222;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .logo-img {
  height: 48px;
  width: auto;
  filter: brightness(1.2);
}
.footer-description {
  color: #CCCCCC;
  font-size: 14px;
  max-width: 400px;
}
.footer-column h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #CCCCCC;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #CCCCCC;
  font-size: 14px;
}
.footer-social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #222222;
  text-align: center;
  font-size: 14px;
  color: #888888;
}
.footer-bottom a {
  color: var(--primary);
  text-decoration: underline;
}

/* ======================================================
   SHOP PAGE BESPOKE STYLES
====================================================== */

/* Hero Banner */
.shop-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #FFFFFF;
}
.shop-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.55);
  z-index: 2;
}
.shop-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}
.shop-hero-subtitle {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.shop-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.2;
}
.shop-hero p.tagline {
  font-size: 18px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

/* Shop Layout Content Container */
.shop-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

/* Sidebar Filter Panel */
.filter-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.filter-sidebar:hover {
  border-color: rgba(200, 169, 106, 0.5);
  box-shadow: var(--shadow-md);
}
.filter-sidebar h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-group {
  margin-bottom: 20px;
}
.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.filter-select {
  width: 100%;
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8A96A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(200, 169, 106, 0.15);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  margin-bottom: 24px;
}
.checkbox-input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  accent-color: var(--primary);
}
.sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Products Column Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.products-count {
  font-size: 24px;
  font-weight: 600;
}
.demo-tag {
  font-size: 13px;
  color: var(--muted);
  background-color: var(--secondary);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Loading Skeleton */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-img {
  aspect-ratio: 3/4;
  background-color: var(--secondary);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.skeleton-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
.skeleton-title {
  height: 20px;
  width: 75%;
  background-color: var(--secondary);
  border-radius: 4px;
}
.skeleton-price {
  height: 16px;
  width: 40%;
  background-color: var(--secondary);
  border-radius: 4px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product Card Styling */
.product-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-img-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: var(--secondary);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.product-img.alternate {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-img.primary {
  opacity: 0;
}
.product-card:hover .product-img.alternate {
  opacity: 1;
}
.badge-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
}
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}
.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.product-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.product-price {
  font-size: 15px;
  font-weight: 600;
}
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.rating-star-icon {
  color: var(--primary);
  fill: var(--primary);
}
.product-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 64px 24px;
}
.empty-icon-circle {
  margin: 0 auto 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 24px;
}

/* Load More Button Wrapper */
.load-more-container {
  text-align: center;
  margin-top: 48px;
}

/* Quick View Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.75);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.modal-shell {
  background-color: var(--background);
  color: var(--foreground);
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 8px;
  border-radius: var(--radius);
  transition: background-color 0.2s;
  z-index: 10;
}
.modal-close-btn:hover {
  background-color: var(--secondary);
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-img-container {
  aspect-ratio: 3/4;
  background-color: var(--secondary);
}
.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-info-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-badge {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.modal-title {
  font-size: 28px;
  font-weight: 700;
}
.modal-price {
  font-size: 20px;
  font-weight: 600;
}
.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.modal-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.modal-sizes-header {
  font-size: 14px;
  font-weight: 600;
}
.modal-sizes-flex {
  display: flex;
  gap: 8px;
}
.modal-size-badge {
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius);
}
.modal-material {
  font-size: 13px;
}
.modal-material strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Button UI Primitives */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background-color: var(--border);
  transform: translateY(-1px);
}

/* Back to Top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-2px);
}

/* Responsive configurations */
@media (max-width: 1024px) {
  .products-grid, .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .shop-content-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .filter-sidebar {
    position: relative;
    top: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .menu-toggle-btn {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .shop-hero h1 {
    font-size: 36px;
  }
}
@media (max-width: 600px) {
  .products-grid, .skeleton-grid {
    grid-template-columns: 1fr;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-img-container {
    aspect-ratio: 16/9;
  }
  .modal-info-panel {
    padding: 24px;
  }
}
