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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: var(--letter-space);
  word-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-align: justify;
}

/* هر تگی که پیش‌فرض مرورگر فونت مخصوص دارد، از body ارث ببرد */
body,
button,
input,
select,
textarea,
optgroup {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.5;
  font-weight: 700;
}

h1 { font-size: 2rem; margin-bottom: var(--space-md); }
h2 { font-size: 1.6rem; margin-bottom: var(--space-sm); }
h3 { font-size: 1.3rem; margin-bottom: var(--space-xs); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

strong { font-weight: 700; color: var(--text-dark); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

small { font-size: 0.85rem; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-jade) 0%, var(--royal-jade) 50%, var(--light-jade) 100%);
  border-bottom: 2px solid var(--gold-500);
  transition: var(--transition);
}

.site-header .container {
  width: 100%;
  height: auto;
}

.site-header.scrolled {
  box-shadow: var(--shadow-royal);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--transition);
  text-decoration: none;
  gap: 10px;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.03);
}

.logo-text {
  display: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-400);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.site-footer .logo-text {
  display: inline-block;
}

@media (max-width: 767px) {
  .site-header .logo-text {
    display: none;
  }
  
  .site-footer .logo-text {
    font-size: 1rem;
  }
}

.site-footer .logo {
  gap: var(--space-sm);
}

.site-footer .logo-text {
  display: inline;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-400);
  white-space: nowrap;
  line-height: 1;
  margin-top: 2px;
}

.site-footer .logo:hover .logo-text {
  color: var(--gold-300);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin: 0 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

.nav-link:hover {
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--gold-500);
  background: rgba(212, 175, 55, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
  margin-inline-start: auto;
}

.gold-price-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.gold-price-badge:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.gold-price-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.gold-price-value {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-400);
  direction: ltr;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--gold-500);
  color: var(--bg-dark);
  font-size: 0.55rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-dark);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}

.auth-btn--login {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--bg-dark);
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.auth-btn--login:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
}

.auth-btn--login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.auth-btn--profile {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-btn--profile:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.auth-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

@media (max-width: 767px) {
  .auth-btn {
    padding: 0 12px;
    height: 36px;
    font-size: 0.75rem;
    gap: 6px;
  }
  
  .auth-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 400px) {
  .auth-btn--login .auth-btn__text {
    display: none;
  }
  
  .auth-btn--login {
    padding: 0;
    width: 36px;
    justify-content: center;
  }
  
  .auth-btn--profile .auth-btn__text {
    display: none;
  }
  
  .auth-btn--profile {
    padding: 0;
    width: 36px;
    justify-content: center;
  }
}

.auth-btn--logout {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.auth-btn--logout:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.mobile-nav-btn.auth-btn {
  justify-content: center;
  gap: 8px;
}

.search-slide {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(65, 109, 109, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              visibility 0.3s ease;
}

.search-slide.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-slide-inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.search-slide-input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-slide-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-slide-input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 24px rgba(207, 164, 52, 0.12);
}

.search-slide-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  flex-shrink: 0;
}

.search-slide-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
}

.search-results {
  background: var(--bg-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border-gold);
  border-bottom: none;
  margin-top: 0;
}

.search-section {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.search-section:last-child {
  border-bottom: none;
}

.search-section-title {
  font-size: 0.75rem;
  color: var(--gold-600);
  font-weight: 700;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(212, 175, 55, 0.04);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 767px) {
  .search-slide {
    top: 60px;
  }
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  border-radius: var(--radius-md);
  margin-bottom: 2px;
}

.search-item:hover {
  background: rgba(212, 175, 55, 0.04);
  transform: translateX(-4px);
}

.search-item-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--gold-200), var(--gold-300));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.search-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-type {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.search-loading {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.search-loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-500);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.search-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-dark);
  z-index: 1002;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--border-gold);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent);
  border-bottom: 1px solid var(--border-gold-light);
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
}

.mobile-nav-list {
  flex: 1;
  padding: var(--space-sm) 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-400);
  padding-right: 28px;
}

.mobile-nav-link--active {
  color: var(--gold-500);
  background: rgba(212, 175, 55, 0.08);
}

.mobile-nav-footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.mobile-nav-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.mobile-nav-btn.auth-btn {
  width: 100%;
  justify-content: center;
}

.mobile-nav-btn.auth-btn--login {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--bg-dark);
  border: 1px solid transparent;
  font-weight: 600;
}

.mobile-nav-btn.auth-btn--login:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--bg-dark);
  border-color: transparent;
}

.mobile-nav-btn.auth-btn--profile {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-btn.auth-btn--profile:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
  border-color: rgba(212, 175, 55, 0.3);
}

.mobile-nav-btn.auth-btn--logout {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.mobile-nav-btn.auth-btn--logout:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  left: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-cream);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--gold-500);
}

.cart-sidebar.active {
  left: 0;
}

.cart-sidebar-header {
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-alt));
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 2px solid var(--gold-500);
}

.cart-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-sidebar-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cart-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-400);
  transform: rotate(90deg);
}

.cart-timer {
  text-align: center;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-400);
  border: 1px solid var(--border-gold);
}

.cart-timer.expired {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444;
  border-color: rgba(220, 38, 38, 0.3);
}

.cart-sidebar-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-gold-light);
  transition: var(--transition);
  position: relative;
  animation: slideIn 0.3s ease;
}

.cart-item:hover {
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-200), var(--gold-300));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cart-item-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--border-light);
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg-white);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--gold-500);
  color: white;
}

.quantity-number {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 50%;
}

.remove-item-btn:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--gold-200), var(--gold-300));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: float 3s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cart-empty-state p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-empty-state .empty-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.cart-sidebar-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-gold-light);
  background: var(--bg-white);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.cart-total-price {
  font-size: 1.2rem;
  color: var(--gold-600);
  font-weight: 800;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-clear-cart {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: transparent;
  color: #dc2626;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-cart:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.btn-checkout {
  flex: 2;
  padding: 12px;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-checkout:hover,
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
}

.cart-loading {
  text-align: center;
  padding: 40px;
}

.cart-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-gold-light);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-md);
}

.cart-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.cart-confirm-overlay.active { opacity: 1; }

.cart-confirm-box {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-gold);
}

.cart-confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.cart-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: rgba(220, 38, 38, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cart-confirm-message {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-lg);
}

.cart-confirm-actions {
  display: flex;
  gap: var(--space-sm);
}

.cart-confirm-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}

.cart-confirm-btn--cancel {
  background: #f3f4f6;
  color: var(--text-muted);
}

.cart-confirm-btn--cancel:hover { background: #e5e7eb; }

.cart-confirm-btn--confirm {
  background: #dc2626;
  color: white;
}

.cart-confirm-btn--confirm:hover { background: #b91c1c; }

.site-main {
  flex: 1 0 auto;
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-2xl) 0 var(--space-md);
  border-top: 1px solid var(--border-gold);
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0.5;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section {
  padding: var(--space-xs);
}

.footer-title {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--gold-400);
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.footer-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

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

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

.footer-link {
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--gold-400);
  transform: translateX(-4px);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-social-link:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  margin-top: 2px;
  opacity: 0.6;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.35);
}

.footer-policy {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

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

.footer-policy a:hover {
  color: var(--gold-400);
}

.divider {
  color: rgba(255, 255, 255, 0.2);
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-xl);
}

.error-page__icon {
  margin-bottom: var(--space-xl);
  font-size: 4rem;
}

.error-page__title {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-weight: 800;
}

.error-page__description {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.error-page__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-color);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}



.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.btn--secondary:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
}

.site-main--full {
  padding: 0 !important;
}

.site-main--full > .container {
  max-width: 100%;
  padding: 0;
}

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

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes goldPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes revealText {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

@media (max-width: 991px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .header-nav {
    display: none;
  }

  .header-search-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo-img {
    height: 32px;
    max-width: 110px;
  }

  .gold-price-badge {
    flex: 1;
    justify-content: center;
    padding: 3px 10px;
    gap: 4px;
    margin: 0 4px;
    border-color: rgba(212, 175, 55, 0.1);
  }

  .gold-price-label {
    display: none;
  }

  .gold-price-value {
    font-size: 0.7rem;
    font-weight: 700;
  }

  .cart-sidebar {
    width: 340px;
    left: -340px;
  }

  .cart-sidebar-footer {
    padding: var(--space-md) var(--space-lg);
  }

  .cart-actions {
    flex-direction: row;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .header-inner {
    gap: var(--space-sm);
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .gold-price-badge {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 60px;
  }

  .site-main {
    padding-top: calc(60px + var(--space-md));
  }

  .header-inner {
    gap: var(--space-xs);
  }

  .header-actions {
    gap: 2px;
    flex: 0 0 auto;
  }

  .gold-price-badge {
    flex: 1;
    justify-content: center;
    padding: 2px 8px;
    margin: 0 2px;
  }

  .gold-price-value {
    font-size: 0.65rem;
  }

  .action-btn {
    width: 36px;
    height: 36px;
  }

  .action-btn svg {
    width: 18px;
    height: 18px;
  }

  .cart-count {
    min-width: 16px;
    height: 16px;
    font-size: 0.5rem;
    top: -1px;
    right: -1px;
  }

  .cart-sidebar {
    width: 100%;
    left: -100%;
    border-left: none;
    height: 100dvh;
    height: 100vh;
  }

  .cart-sidebar.active {
    left: 0;
  }

  .cart-sidebar-items {
    padding: var(--space-md);
    gap: var(--space-sm);
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }

  .cart-sidebar-footer {
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    bottom: 0;
    z-index: 1;
  }

  .cart-total {
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
  }

  .cart-total-price {
    font-size: 1rem;
  }

  .cart-actions {
    flex-direction: row;
    gap: var(--space-xs);
  }

  .btn-checkout {
    flex: 2;
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .btn-clear-cart {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .cart-item {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .cart-item-image {
    width: 52px;
    height: 52px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-section:first-child .logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

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

  .footer-title::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer-policy {
    justify-content: center;
    flex-wrap: wrap;
  }

}
.footer-enamad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 20px;
}

.enamad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 26px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(207, 164, 52, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.enamad-card:hover {
    border-color: var(--gold-500);
    box-shadow: 0 14px 36px rgba(207, 164, 52, 0.22);
    transform: translateY(-3px);
}

.enamad-card::before {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    border-radius: 2px;
}

.enamad-link {
    display: inline-flex !important;
    width: 100px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
}

.enamad-img {
    display: block;
    width: 100px;
    height: auto;
    cursor: pointer;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

.enamad-caption {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }

  .cart-actions {
    flex-direction: column;
  }

  .btn-clear-cart,
  .btn-checkout {
    width: 100%;
  }
}