/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables for Premium Design System */
:root {
  --bg-color: #0a0a0b;
  --card-bg: #141416;
  --card-border: rgba(212, 175, 55, 0.1);
  --card-border-hover: rgba(212, 175, 55, 0.4);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --gold-primary: #d4af37;
  --gold-hover: #f3e5ab;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.35);
  --nav-bg: rgba(10, 10, 11, 0.75);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

/* Reset and Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Elegant Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Header & Navigation (Glassmorphic) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo span {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--gold-primary);
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Custom Premium Dropdown Widget */
.custom-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.dropdown-trigger:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.dropdown-trigger i {
  font-size: 0.65rem;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border-hover);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), var(--gold-glow);
  min-width: 170px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 1100;
  overflow: hidden;
}

.custom-dropdown.active .dropdown-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-option {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--text-primary);
}

.dropdown-option.selected {
  color: var(--gold-primary);
  font-weight: 600;
  background: rgba(212, 175, 55, 0.05);
}

.ip-badge {
  font-size: 0.65rem;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.5rem;
}

/* Shopping Cart Header Icon */
.cart-trigger {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cart-trigger:hover {
  color: var(--gold-primary);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 2rem;
  background: radial-gradient(circle at center, rgba(30, 25, 10, 0.8) 0%, rgba(10, 10, 11, 1) 75%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/shop_storefront.jpg') no-repeat center center/cover;
  opacity: 0.28;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 5;
  animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 5px;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero-title span {
  font-weight: 600;
  background: linear-gradient(to right, #fff 30%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-weight: 300;
}

.btn-luxury {
  display: inline-block;
  background: var(--gold-gradient);
  color: #000;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: var(--gold-glow);
  transition: var(--transition-smooth);
}

.btn-luxury:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.65);
  background: linear-gradient(135deg, #e5be3c 0%, #c49219 100%);
}

.btn-luxury-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold-primary);
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--gold-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-left: 1rem;
}

.btn-luxury-outline:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-3px);
}

/* Geo-Info Banner */
.geo-banner {
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0.75rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  margin-top: 92px; /* Adjusted from 75px to sit fully below the sticky navigation bar */
}

/* Products Section */
.products-section {
  max-width: var(--max-width);
  margin: 6rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-subtitle {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0d0d0f;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  z-index: 2;
}

.product-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
}

.product-price span {
  font-family: var(--font-sans);
}

.price-converted-subtext {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.15rem;
}

.btn-add-to-cart {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-add-to-cart:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Shopping Cart Drawer (Slide-out Glassmorphic Panel) */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 2000;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.btn-close-cart {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-cart:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-empty-msg {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 3rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.cart-item-price {
  font-size: 0.95rem;
  color: var(--gold-primary);
  font-weight: 500;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: transparent;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #ff4a4a;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  align-self: flex-start;
  margin-top: 0.25rem;
}

.cart-item-remove:hover {
  color: #ff7878;
  text-decoration: underline;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 11, 0.4);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cart-summary-label {
  color: var(--text-secondary);
}

.cart-summary-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-checkout {
  width: 100%;
  margin-top: 1rem;
}

/* Background Overlay for drawer */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Footer styling */
footer {
  background: #070708;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 5rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--gold-primary);
  text-decoration: none;
}

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

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

/* Categories Section */
.categories-section {
  max-width: var(--max-width);
  margin: 6rem auto 2rem auto;
  padding: 0 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.category-card {
  position: relative;
  height: 250px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.category-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.9) 10%, rgba(10, 10, 11, 0.4) 60%, rgba(10, 10, 11, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  z-index: 2;
  transition: var(--transition-smooth);
}

.category-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 4px;
  transition: var(--transition-smooth);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.category-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), var(--gold-glow);
  transform: translateY(-5px);
}

.category-card:hover .category-img {
  transform: scale(1.08);
}

.category-card:hover .category-title {
  color: var(--gold-primary);
  letter-spacing: 6px;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(10, 10, 11, 0.95) 15%, rgba(212, 175, 55, 0.05) 60%, rgba(10, 10, 11, 0.1) 100%);
}

/* Category Page Elements */
.category-header-banner {
  padding: 8rem 2rem 4rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(20, 20, 22, 0.9) 0%, rgba(10, 10, 11, 1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.back-home-container {
  max-width: var(--max-width);
  margin: 3rem auto 0 auto;
  padding: 0 2rem;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.btn-back-home:hover {
  color: var(--text-primary);
  transform: translateX(-5px);
}

.empty-category-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  background: var(--card-bg);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: var(--text-secondary);
}

.empty-category-msg i {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-category-msg h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-content {
    padding: 0 1rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    height: 180px;
  }
}

/* User Profile Menu & Dropdown Styling */
.user-profile-menu {
  position: relative;
  display: inline-block;
}

.nav-btn-user {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.15rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-btn-user:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-primary);
}

.user-active-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0a0a0b;
}

.user-dropdown-panel {
  position: absolute;
  top: 130%;
  right: 0;
  width: 250px;
  background: rgba(20, 20, 22, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-dropdown-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.user-info-header {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-info-header h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.user-info-header span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.user-menu-links {
  padding: 0.5rem 0;
}

.user-menu-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.user-menu-link:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold-primary);
  padding-left: 1.4rem;
}

.user-menu-link.admin-link-gold {
  color: var(--gold-primary);
  font-weight: 600;
}

.user-menu-link.admin-link-gold:hover {
  color: #fff;
  background: rgba(212, 175, 55, 0.1);
}

/* Auth Modals Styling */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
  display: block;
  opacity: 1;
}

.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 450px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  z-index: 1001;
  display: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.auth-modal.active {
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

.btn-close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  color: #fff;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.auth-modal-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.form-group input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: var(--gold-primary);
}

.btn-auth-action {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 1px;
  margin-top: 1rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-auth-action:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.auth-modal-footer {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-modal-footer a {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.auth-modal-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-alert-error {
  background: rgba(255, 74, 74, 0.1);
  border: 1px solid rgba(255, 74, 74, 0.2);
  color: #ff4a4a;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Product Detail Page Styling */
.product-detail-container {
  max-width: 1200px;
  margin: 10rem auto 8rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

@media (max-width: 900px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 8rem;
  }
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail-main-img-wrapper {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0; /* Changed to 0 to make sure the photo fills the frame exactly */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: 500px; /* Default desktop width, adjusted dynamically */
  height: 500px; /* Default desktop height, adjusted dynamically */
  max-width: 100%;
  margin: 0 auto;
}

.product-detail-main-img {
  max-width: 100%;
  max-height: 100%; /* Changed to 100% to allow vertical centering inside the dynamic wrapper */
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.product-detail-main-img:hover {
  transform: scale(1.05);
}

.product-detail-thumbnails {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.product-detail-thumb {
  width: 70px;
  height: 70px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 0.25rem;
  background-color: var(--card-bg);
  cursor: pointer;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.product-detail-thumb.active, .product-detail-thumb:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-detail-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.product-detail-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.product-detail-brand {
  font-size: 1rem;
  color: var(--gold-primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-detail-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.product-detail-rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1.5rem;
}

.product-detail-rating-stars {
  color: #ff9f43;
}

.product-detail-price-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.product-detail-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-detail-price-original {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: var(--text-secondary);
  font-weight: 400;
}

.product-detail-badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.product-detail-option-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-detail-options-grid {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.product-detail-option-card {
  border: 1.5px solid var(--card-border);
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  background: var(--card-bg);
  transition: var(--transition-smooth);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  min-width: 100px;
}

.product-detail-option-card.active, .product-detail-option-card:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.product-detail-services-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
}

.product-detail-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-detail-service-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.product-detail-service-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--gold-primary);
}

.product-detail-service-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.product-detail-service-price {
  font-weight: 600;
  color: #2ecc71;
}

.product-detail-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.btn-detail-add-to-cart {
  flex: 1;
  background: linear-gradient(135deg, #ff7f11 0%, #ff5e00 100%);
  color: #fff;
  border: none;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
}

.btn-detail-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.5);
  filter: brightness(1.1);
}

.btn-detail-favorite, .btn-detail-bookmark {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 55px;
  height: 55px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-detail-favorite:hover {
  color: #ff4a4a;
  border-color: #ff4a4a;
  background: rgba(255, 74, 74, 0.05);
}

.btn-detail-bookmark:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.product-detail-delivery-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
}

/* Discounted Products Slider */
.discount-slider-container {
  position: relative;
}

.slider-arrow {
  transition: var(--transition-smooth);
}

.slider-arrow:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(0, 0, 0, 0.85) !important;
}

.discount-slider-track {
  scroll-snap-type: x mandatory;
}

.discount-slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbars */
}

.discount-slider-track .product-card {
  flex: 0 0 calc(33.333% - 1.333rem); /* 3 cards per view */
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .discount-slider-track .product-card {
    flex: 0 0 calc(50% - 1rem); /* 2 cards per view */
  }
}

@media (max-width: 600px) {
  .discount-slider-track .product-card {
    flex: 0 0 100%; /* 1 card per view */
  }
}

/* --- Etsy Shop Traffic Stats Dashboard --- */

.stats-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.stats-card.gold-border {
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(212,175,55,0.02) 100%);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.02);
}

.stats-card.gold-border:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.05);
}

.stats-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.stats-card-icon {
  font-size: 1rem;
  color: var(--text-secondary);
}

.stats-card-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-serif);
}

.stats-card-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.stats-card-trend.trend-up {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.08);
}

.stats-card-trend.trend-down {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

.stats-section-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease;
}

.stats-section-box:hover {
  border-color: rgba(255, 255, 255, 0.06);
}

.stats-period-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.stats-period-btn:hover {
  color: #fff;
}

.stats-period-btn.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 600;
}

/* SVG Chart interactivity */
.chart-point {
  cursor: pointer;
  transition: r 0.2s ease, fill 0.2s ease;
}

.chart-point:hover {
  fill: #fff !important;
}

.stats-chart-wrapper svg {
  width: 100%;
  height: 100%;
}

/* --- Product Detail Gallery Multi-Image Slider --- */

.product-detail-main-img-wrapper {
  overflow: hidden;
}

.product-detail-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.product-detail-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar completely */
}

.product-detail-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: start;
  background: transparent; /* Removed black background bars */
}

/* Slide Navigation Arrows */
.product-detail-main-img-wrapper .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 12, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 0.95rem;
}

.product-detail-main-img-wrapper .slider-arrow:hover {
  background: rgba(12, 12, 14, 0.95);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.product-detail-main-img-wrapper .slider-arrow.arrow-left {
  left: 15px;
}

.product-detail-main-img-wrapper .slider-arrow.arrow-right {
  right: 15px;
}

.product-detail-thumbnails {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.product-detail-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.product-detail-thumb:hover {
  opacity: 0.8;
  border-color: rgba(212, 175, 55, 0.5);
}

.product-detail-thumb.active {
  opacity: 1;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}
