:root {
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-hover: #b5952f;
  --dark-bg: #0a0a0a;
  --dark-surface: #171717;
  --dark-border: #333333;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Cinzel', serif;
}

/* Arabic Typography overrides */
html[lang="ar"] {
  --font-sans: 'Tajawal', sans-serif;
  --font-serif: 'Tajawal', serif;
}

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6 {
  font-weight: 800; /* Extra bold for Arabic headings */
}

html[lang="ar"] .font-light {
  font-weight: 400; /* Prevent Arabic text from being too thin */
}

label {
  font-weight: 500;
}

body {
  background-color: var(--dark-bg);
  color: #f3f4f6;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
}

.font-serif {
  font-family: var(--font-serif);
}

/* Glassmorphism */
.glass {
  background: rgba(23, 23, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Image Hover Zoom */
.hover-zoom {
  overflow: hidden;
}
.hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-zoom:hover img {
  transform: scale(1.08);
}

/* Homepage overlay levels are controlled per section from the page editor. */
.home-image-overlay {
  background-color: rgb(0 0 0 / var(--home-image-overlay, 60%));
}

.home-hero-gradient {
  opacity: var(--home-hero-gradient-opacity, 1);
}

.home-hero-gradient--vertical {
  background: linear-gradient(to top, #0a0a0a, rgb(10 10 10 / 80%), transparent);
}

.home-hero-gradient--horizontal {
  background: linear-gradient(to right, #0a0a0a, rgb(10 10 10 / 60%), transparent);
}

.home-card-overlay {
  background-color: rgb(0 0 0 / var(--home-card-overlay, 20%));
}

.group:hover .home-card-overlay {
  background-color: transparent;
}

/* Subtle glow */
.glow-effect:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* WooCommerce Premium Notices Styling */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: rgba(23, 23, 23, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid #D4AF37 !important;
  border-left: 4px solid #D4AF37 !important;
  color: #fff !important;
  border-radius: 0.75rem !important;
  padding: 1.25rem 1.75rem !important;
  margin-bottom: 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-family: sans-serif !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  display: none !important;
}
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error a.button {
  background: #D4AF37 !important;
  color: #000 !important;
  border-radius: 0.5rem !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  transition: all 0.3s !important;
  border: none !important;
  margin-left: 1.5rem !important;
  display: inline-block !important;
  text-decoration: none !important;
}
.woocommerce-message a.button:hover, .woocommerce-info a.button:hover {
  background: #fff !important;
  color: #000 !important;
}

/* Product Card Button Overrides for WooCommerce compatibility */
.product-card[data-product-url] {
  cursor: pointer;
}
.product-card .add_to_cart_button,
.product-card .ajax_add_to_cart,
.product-card a.button,
.product-card .card-add-to-cart-btn {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 9999px !important;
  background-color: #171717 !important; /* bg-dark-surface */
  border: 1px solid #333333 !important; /* border-dark-border */
  color: #d1d5db !important; /* text-gray-300 */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.product-card .add_to_cart_button:hover,
.product-card .ajax_add_to_cart:hover,
.product-card a.button:hover,
.product-card .card-add-to-cart-btn:hover {
  background-color: #D4AF37 !important; /* bg-gold */
  border-color: #D4AF37 !important;
  color: #000000 !important;
}

/* Ensure clean price display on variable cards */
.product-card .price-html-wrap .price,
.product-card .price-html-wrap,
.product-card .price {
  font-family: 'Inter', sans-serif !important;
  color: #D4AF37 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important; /* compact size to avoid wrapping */
  display: block !important;
  line-height: 1.4 !important;
}
.product-card .price ins {
  text-decoration: none !important;
  color: #D4AF37 !important;
  font-weight: 700 !important;
}
.product-card .price del {
  color: #6b7280 !important; /* text-gray-500 */
  font-size: 0.8rem !important;
  margin-right: 0.5rem !important;
  display: inline-block !important;
}

/* WooCommerce My Account Area Premium styling */
.woocommerce-account .woocommerce {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 4rem 1rem !important;
}
@media (min-width: 768px) {
  .woocommerce-account.logged-in .woocommerce {
    flex-direction: row;
    align-items: flex-start;
  }
  .woocommerce-MyAccount-navigation {
    width: 25% !important;
    flex-shrink: 0;
  }
  .woocommerce-MyAccount-content {
    width: 75% !important;
    flex-grow: 1;
  }
}

/* My Account Navigation Menu */
.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #111111 !important;
  border: 1px solid #222222 !important;
  border-radius: 12px;
  overflow: hidden;
}
.woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid #222222 !important;
  margin: 0 !important;
}
.woocommerce-MyAccount-navigation li:last-child {
  border-bottom: none !important;
}
.woocommerce-MyAccount-navigation li a {
  display: block !important;
  padding: 1rem 1.5rem !important;
  color: #9ca3af !important; /* text-gray-400 */
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s ease !important;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  color: #D4AF37 !important; /* text-gold */
  background-color: #171717 !important; /* bg-dark-surface */
  padding-left: 1.75rem !important;
}

/* My Account Content Area */
.woocommerce-MyAccount-content {
  background-color: #111111 !important;
  border: 1px solid #222222 !important;
  border-radius: 12px;
  padding: 2.5rem !important;
  color: #d1d5db !important; /* text-gray-300 */
  font-family: 'Inter', sans-serif !important;
}
.woocommerce-MyAccount-content h3, 
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content legend {
  font-family: 'Playfair Display', serif !important;
  color: #ffffff !important;
  font-size: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  border: none !important;
  padding: 0 !important;
}
.woocommerce-MyAccount-content p {
  font-size: 0.925rem !important;
  line-height: 1.6 !important;
  color: #9ca3af !important;
  margin-bottom: 1.5rem !important;
}
.woocommerce-MyAccount-content a {
  color: #D4AF37 !important;
  text-decoration: underline !important;
}
.woocommerce-MyAccount-content a:hover {
  color: #ffffff !important;
}

/* My Account Form & Button elements */
.woocommerce-MyAccount-content form .form-row {
  margin-bottom: 1.25rem !important;
}
.woocommerce-MyAccount-content form label {
  display: block !important;
  color: #9ca3af !important;
  font-size: 0.825rem !important;
  text-transform: uppercase !important;
  margin-bottom: 0.5rem !important;
}
.woocommerce-MyAccount-content form input.input-text,
.woocommerce-MyAccount-content form select {
  width: 100% !important;
  background-color: #171717 !important;
  border: 1px solid #333333 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  color: #ffffff !important;
  font-size: 0.875rem !important;
}
.woocommerce-MyAccount-content form input.input-text:focus {
  border-color: #D4AF37 !important;
  outline: none !important;
}
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
  background-color: #D4AF37 !important; /* bg-gold */
  color: #000000 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.825rem !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-decoration: none !important;
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
  background-color: #f3c63f !important;
  transform: translateY(-1px) !important;
}

/* Orders table styling */
.woocommerce-orders-table, 
.woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
.woocommerce-orders-table th, 
.woocommerce-table--order-details th {
  background-color: #171717 !important;
  color: #ffffff !important;
  text-align: left !important;
  padding: 1rem !important;
  border: 1px solid #222222 !important;
  font-size: 0.825rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
.woocommerce-orders-table td, 
.woocommerce-table--order-details td {
  padding: 1rem !important;
  border: 1px solid #222222 !important;
  font-size: 0.875rem !important;
}
.woocommerce-orders-table tr:hover {
  background-color: #171717/30 !important;
}

/* Login/Register Columns and Forms overrides */
.woocommerce-account .woocommerce .col2-set {
  display: flex !important;
  flex-direction: column !important;
  gap: 2.5rem !important;
  max-width: 80rem !important;
  margin: 8rem auto 4rem auto !important;
  width: 100% !important;
}
@media (min-width: 768px) {
  .woocommerce-account .woocommerce .col2-set {
    flex-direction: row !important;
    align-items: flex-start !important;
  }
  .woocommerce-account .woocommerce .col2-set .col-1,
  .woocommerce-account .woocommerce .col2-set .col-2 {
    width: 50% !important;
    flex-grow: 1 !important;
  }
}

.woocommerce-account .woocommerce > form.login, 
.woocommerce-account .woocommerce > form.register,
.woocommerce-account .woocommerce .col-1 form.login,
.woocommerce-account .woocommerce .col-2 form.register,
.woocommerce form.login, 
.woocommerce form.register {
  background-color: #111111 !important;
  border: 1px solid #222222 !important;
  padding: 2.5rem !important;
  border-radius: 12px !important;
  margin: 1rem auto !important;
  max-width: 480px !important;
  color: #d1d5db !important;
  font-family: 'Inter', sans-serif !important;
}
.woocommerce-account .col-1 h2,
.woocommerce-account .col-2 h2,
.woocommerce form.login h2, 
.woocommerce form.register h2 {
  font-family: 'Playfair Display', serif !important;
  color: #ffffff !important;
  font-size: 1.75rem !important;
  margin-bottom: 1.5rem !important;
  text-align: center !important;
}
.woocommerce form.login .button, 
.woocommerce form.register .button {
  width: 100% !important;
  text-align: center !important;
  margin-top: 1rem !important;
  background-color: #D4AF37 !important;
  color: #000000 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 0.75rem !important;
}
.woocommerce form.login .button:hover, 
.woocommerce form.register .button:hover {
  background-color: #f3c63f !important;
}

/* Ensure spacious columns inside My Account Favorites */
.woocommerce-MyAccount-content #wishlist-content .grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
}
@media (min-width: 640px) {
  .woocommerce-MyAccount-content #wishlist-content .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
  .woocommerce-MyAccount-content #wishlist-content .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2 columns is perfect for the 75% width container */
  }
}

/* Reduce top spacing for login title */
.woocommerce-account .woocommerce .col2-set {
  margin-top: 2rem !important;
}
.woocommerce-account .woocommerce .text-center.mb-12 {
  margin-top: 1.5rem !important;
}

/* Single Product Selected Variation Price Color Fix */
.price-html-wrap,
.price-html-wrap .price,
.price-html-wrap ins,
.price-html-wrap .amount {
  color: #D4AF37 !important;
  text-decoration: none !important;
}
.price-html-wrap del,
.price-html-wrap del .amount {
  color: #6b7280 !important; /* text-gray-500 */
  font-size: 0.8em !important;
  margin-right: 0.5rem !important;
  text-decoration: line-through !important;
}

/* Contact navigation submenu */
.nav-contact-group {
  position: relative;
  display: flex;
  align-items: center;
  height: 6rem;
}
.nav-contact-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-contact-chevron {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
}
.nav-contact-submenu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% - 0.75rem);
  min-width: 11rem;
  padding: 0.45rem;
  border: 1px solid #2c2c2c;
  border-radius: 0.65rem;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.nav-contact-group:hover .nav-contact-submenu,
.nav-contact-group:focus-within .nav-contact-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-contact-group:hover .nav-contact-chevron,
.nav-contact-group:focus-within .nav-contact-chevron {
  transform: rotate(180deg);
}
.nav-contact-submenu a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 0.45rem;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-contact-submenu a:hover,
.nav-contact-submenu a:focus,
.nav-contact-submenu a.is-active {
  background: rgba(212, 175, 55, 0.08);
  color: #d4af37;
}
.mobile-contact-child {
  position: relative;
  margin-inline: 2.5rem;
  border-inline-start: 1px solid rgba(212, 175, 55, 0.35);
}
