/* Google Fonts & Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #AA7C11;
  --black: #0A0A0A;
  --dark-bg: #121212;
  --dark-surface: #1E1E1E;
  --dark-card: #252525;
  --light-bg: #FAFAF7;
  --light-surface: #FFFFFF;
  --light-card: #F4F4EE;
  --text-primary: #1F1F1F;
  --text-secondary: #5C5C54;
  --text-light: #9C9C90;
  --accent: #B38628;
  --success: #2E7D32;
  --danger: #C62828;
  --info: #1565C0;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 10px 40px rgba(10, 10, 10, 0.12);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: background-color 0.4s, color 0.4s;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: var(--font-body);
}

/* Defensive styling for Material Icons fallback */
.material-symbols-outlined {
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 1 !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--accent);
}

.btn--outline:hover {
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--danger {
  background: var(--danger);
  color: white;
}

.btn--danger:hover {
  background: #a32020;
}

/* Cards */
.card {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__image-container {
  height: 300px;
  overflow: hidden;
  position: relative;
  background: var(--light-card);
  cursor: pointer;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.product-card__info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin-bottom: 4px;
  font-weight: 600;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card__price--original {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--text-light);
}

.product-card__rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.product-card__actions .btn {
  flex: 1;
}

/* Grids */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .features-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #E0E0D0;
}

.star-rating .material-symbols-outlined {
  font-size: 1.1rem;
}

.star-rating .filled {
  color: var(--gold);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge--gold {
  background-color: rgba(212, 175, 55, 0.12);
  color: var(--accent);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.badge--success {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--success);
}

.badge--danger {
  background-color: rgba(198, 40, 40, 0.1);
  color: var(--danger);
}

/* Tags */
.tag {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--light-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.tag:hover, .tag--active {
  background: var(--gold);
  color: white;
  transform: translateY(-1px);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--light-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  min-height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo-img {
  height: 42px;
  object-fit: contain;
}

.nav__brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text-primary);
}

.nav__brand-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: var(--transition);
}

.nav__link:hover::after, .nav__link--active::after {
  width: 100%;
}

.nav__link:hover, .nav__link--active {
  color: var(--gold-dark);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.nav__action-btn:hover {
  background-color: rgba(212, 175, 55, 0.08);
  color: var(--accent);
}

.nav__action-btn .material-symbols-outlined {
  font-size: 1.4rem;
}

#cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Mobile Hamburger Menu (Fix peeking issue: use display:none by default) */
.mobile-menu-btn {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--light-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px;
  display: none; /* Changed: Completely hidden when closed to prevent top peeking */
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  animation: fadeInMenu 0.3s ease-out;
}

.mobile-menu--open {
  display: flex; /* Display as flex when open */
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* Hero Carousel */
.hero {
  position: relative;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
  background-color: var(--black);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
}

.hero__slide--active {
  opacity: 1;
}

.hero__slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.4) 60%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  padding: 0 60px;
  color: white;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.05);
}

.hero-nav--prev {
  left: 24px;
}

.hero-nav--next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot--active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .hero {
    height: 480px;
  }
  .hero__content {
    padding: 0 24px;
  }
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .hero-nav {
    display: none;
  }
}

/* Album Cards CSS */
.album-card {
  position: relative;
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.album-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.album-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: brightness(0.65);
}

.album-card:hover .album-card__image {
  transform: scale(1.06);
}

.album-card__content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: white;
}

.album-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.album-card__desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive Product Detail Layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.detail-image-container {
  background: var(--light-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .detail-image-container {
    height: 350px !important;
  }
  .product-gallery__main {
    height: 350px !important;
  }
}

/* Thumbnail layout for Multi-images */
.product-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-gallery__main {
  height: 450px;
  background: var(--light-card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
}

.product-gallery__thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition);
}

.product-gallery__thumb:hover, .product-gallery__thumb--active {
  opacity: 1;
  border-color: var(--gold);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Uploader styling for uploading multiple photos */
.uploader-box {
  border: 2px dashed rgba(212, 175, 55, 0.3);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(212, 175, 55, 0.02);
  cursor: pointer;
  transition: var(--transition);
}

.uploader-box:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--gold);
}

.uploader-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.uploader-preview-item {
  position: relative;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.uploader-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploader-preview-item__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(10, 10, 10, 0.7);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay--active {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 440px;
  background: var(--light-surface);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar--open {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-item__image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--light-card);
}

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.cart-item__price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cart-item__qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.cart-item__qty-val {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--danger);
  display: flex;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--light-bg);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cart-total span:last-child {
  color: var(--accent);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay--active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay--active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(10, 10, 10, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
}

.modal-close:hover {
  background: rgba(10, 10, 10, 0.1);
  transform: rotate(90deg);
}

/* Toasts */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--light-surface);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 300px;
  max-width: 400px;
  border-left: 4px solid var(--gold);
}

.toast--show {
  transform: translateX(0);
}

.toast--success {
  border-left-color: var(--success);
}

.toast--error {
  border-left-color: var(--danger);
}

.toast--info {
  border-left-color: var(--info);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--light-bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading-screen--hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-screen p {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
  margin-top: 24px;
  letter-spacing: 2px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 90;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

/* Stat Card */
.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonial Card */
.testimonial-card {
  padding: 40px;
  position: relative;
  background: var(--light-surface);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 24px;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #0d0d0d 0%, #201a0f 100%);
  padding: 60px 0;
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.page-header__title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.page-header__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.page-header__breadcrumb a {
  color: var(--gold-light);
}

.page-header__breadcrumb a:hover {
  color: var(--gold);
}

/* Grid layout for about and contact */
.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.press-card {
  padding: 24px;
}

.press-card__date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.press-card__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.press-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.location-card {
  overflow: hidden;
}

.location-card__map {
  height: 200px;
  background: var(--light-card);
  overflow: hidden;
  position: relative;
}

.location-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.location-card__info {
  padding: 24px;
}

.location-card__title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.location-card__hours {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.divider {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 40px 0;
}

.divider--gold {
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  height: 2px;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: #c9c9c2;
  padding: 80px 0 40px;
  margin-top: auto;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 38px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #9c9c90;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #c9c9c2;
}

.footer-social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.footer-title {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #9c9c90;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-newsletter-text {
  font-size: 0.9rem;
  color: #9c9c90;
  margin-bottom: 20px;
}

.footer-form {
  display: flex;
  gap: 8px;
}

.footer-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-form input::placeholder {
  color: #555550;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #7c7c70;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: #7c7c70;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

/* Page transitions */
#main-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Fade-in animation class */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Admin Dashboard CSS layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--light-bg);
}

.admin-sidebar {
  width: 280px;
  background-color: #0b0b0a;
  border-right: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  color: #c9c9c2;
  position: fixed;
  height: 100vh;
  z-index: 50;
}

.admin-sidebar__brand {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-main {
  margin-left: 280px;
  flex: 1;
  padding: 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 2rem;
}

.admin-nav {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #9c9c90;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.admin-nav-item:hover, .admin-nav-item--active {
  color: var(--gold);
  background-color: rgba(212, 175, 55, 0.06);
}

.admin-nav-item--active {
  border-left: 3px solid var(--gold);
  font-weight: 600;
}

.admin-card {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
  margin-bottom: 30px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.admin-stat {
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(0,0,0,0.03);
}

.admin-stat__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
}

.admin-stat__info {
  display: flex;
  flex-direction: column;
}

.admin-stat__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.admin-stat__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Data Table */
.data-table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 16px;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.data-table tr:hover td {
  background-color: rgba(212, 175, 55, 0.02);
}

.data-table__img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--light-card);
}

.admin-actions {
  display: flex;
  gap: 8px;
}

/* Print CSS Styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .site-header, #site-header, .site-footer, #site-footer, .cart-sidebar, #cart-sidebar, .back-to-top, #back-to-top, .hero-nav, .hero-dots, .nav__actions, .admin-sidebar, #write-review-form, .product-card__actions, .admin-actions {
    display: none !important;
  }
  .admin-main {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  #main-content, .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .card, .admin-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* Dark Mode Overrides */
html.dark {
  --light-bg: var(--dark-bg);
  --light-surface: var(--dark-surface);
  --light-card: var(--dark-card);
  --text-primary: #ECECEC;
  --text-secondary: #A0A096;
  --text-light: #6C6C64;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.35);
}

html.dark body {
  background-color: var(--dark-bg);
  color: #ECECEC;
}

html.dark .site-header {
  background: rgba(18, 18, 18, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

html.dark .mobile-menu {
  background: var(--dark-surface);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

html.dark .form-input, html.dark .form-textarea, html.dark .form-select {
  background-color: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .cart-sidebar {
  background: var(--dark-surface);
}

html.dark .cart-footer {
  background: var(--dark-bg);
}

html.dark .cart-item__qty {
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .toast {
  background: var(--dark-surface);
  border-color: rgba(255, 255, 255, 0.05);
}

html.dark .divider {
  background: rgba(255, 255, 255, 0.05);
}

html.dark .data-table th {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark .data-table td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

html.dark .data-table tr:hover td {
  background-color: rgba(212, 175, 55, 0.04);
}

html.dark .admin-stat {
  border-color: rgba(255, 255, 255, 0.04);
}

/* Mobile & Tablet Responsive Layout Optimization */
@media (max-width: 768px) {
  /* Admin layout stacking */
  .admin-layout {
    flex-direction: column !important;
  }
  .admin-sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
  }
  .admin-main {
    margin-left: 0 !important;
    padding: 24px 16px !important;
  }
  .admin-nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    padding: 12px !important;
    gap: 8px !important;
  }
  .admin-nav-item {
    flex: 1 1 calc(50% - 8px) !important;
    justify-content: center !important;
    margin-right: 0 !important;
    padding: 10px 12px !important;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* Force inline forms with two columns to stack */
  .admin-main div[style*="grid-template-columns: 1fr 1fr"],
  .admin-main div[style*="grid-template-columns:1fr 1fr"],
  .admin-main div[style*="grid-template-columns: 1fr 1fr 1fr"],
  .admin-main div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 576px) {
  /* Header alignment for small devices */
  .site-header .container {
    padding: 12px 16px !important;
    min-height: 70px !important;
  }
  .nav__logo-img {
    height: 32px !important;
  }
  .nav__brand-name {
    font-size: 1.05rem !important;
    white-space: nowrap !important;
  }
  .nav__brand-tagline {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
  }
  .nav__actions {
    gap: 4px !important;
    padding: 2px 6px !important;
  }
  .nav__action-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .nav__action-btn .material-symbols-outlined {
    font-size: 1.15rem !important;
  }
  #print-btn {
    display: none !important;
  }
  
  /* Admin table responsive */
  .data-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
  
  .admin-stats {
    grid-template-columns: 1fr !important;
  }
}