/* =============================================
   EPIPHANY BEAUTY - SHARED STYLES
   ============================================= */

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

:root {
  --gold: #C6A664;
  --gold-light: #E8D5A3;
  --gold-dark: #A68B4B;
  --dark: #1A1118;
  --dark-warm: #2A1F26;
  --cream: #FBF7F0;
  --rose: #B88A8A;
  --text: #3D2F36;
  --text-light: #7A6872;
  --white: #FFFFFF;
  --success: #4A7C59;
  --error: #9C3A3A;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
}

/* =============================================
   NAVIGATION
   ============================================= */

.site-nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(198,166,100,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 16px;
}

.currency-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(198,166,100,0.2);
  color: rgba(255,255,255,0.7);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  outline: none;
}

.currency-select:focus {
  border-color: var(--gold);
}

.currency-select option {
  background: var(--dark);
  color: #fff;
}

.cart-link {
  position: relative;
  font-weight: 600 !important;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: 4px;
  vertical-align: middle;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: 0.2s;
}

/* =============================================
   PAGE LAYOUT
   ============================================= */

.page-content {
  min-height: calc(100vh - 64px - 120px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   PAGE HEADER
   ============================================= */

.page-header {
  background: linear-gradient(165deg, var(--dark) 0%, var(--dark-warm) 40%, #3D2832 100%);
  padding: 60px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(198,166,100,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: #FFF;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-header h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--gold-dark);
  text-decoration: none;
}

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-light);
  opacity: 0.5;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198,166,100,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--dark);
}

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

.btn-dark:hover {
  background: var(--dark-warm);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 12px;
}

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

/* =============================================
   PRODUCT CARD
   ============================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 32px 0;
}

.product-card {
  background: var(--white);
  border-radius: 2px;
  border: 1px solid rgba(198,166,100,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(26,17,24,0.08);
  transform: translateY(-4px);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 20px;
}

.product-card-category {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-origin {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.product-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.product-card-price .from {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
}

/* =============================================
   FILTER BAR
   ============================================= */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(198,166,100,0.1);
}

.filter-chip {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid rgba(198,166,100,0.2);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.filter-count {
  font-size: 13px;
  color: var(--text-light);
  margin-left: auto;
}

/* =============================================
   TOAST
   ============================================= */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: var(--gold-light);
  padding: 16px 28px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-error {
  border-left-color: var(--error);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  padding: 60px 24px 40px;
  background: var(--dark);
  border-top: 1px solid rgba(198,166,100,0.15);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(198,166,100,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* =============================================
   LOADING
   ============================================= */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(198,166,100,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   EMPTY STATE
   ============================================= */

.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 32px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(198,166,100,0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-right {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card-body {
    padding: 14px;
  }

  .product-card-name {
    font-size: 15px;
  }

  .product-card-price {
    font-size: 17px;
  }
}
