/* Global Design Tokens & Custom Stylesheet - Villa Rock Couture */

/* Reset & Fonts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette */
  --color-bg-dark: #0a0a0a;
  --color-bg-card: #141414;
  --color-gold-solid: #D4AF37;
  --color-gold-hover: #F3E5AB;
  --color-gold-dark: #AA7C11;
  --color-text-light: #ffffff;
  --color-text-muted: #8e8e93;
  --color-border: rgba(212, 175, 55, 0.2);
  --color-border-hover: rgba(212, 175, 55, 0.6);
  --color-error: #ff453a;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Glassmorphism */
  --glass-bg: rgba(13, 13, 13, 0.7);
  --glass-blur: blur(12px) saturate(180%);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

/* Utility Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-medium);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-solid), var(--color-gold-dark));
  color: #000000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, var(--color-gold-hover), var(--color-gold-solid));
}

.btn-full {
  width: 100%;
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  border-radius: 0;
}

.badge-exclusive {
  background-color: transparent;
  color: var(--color-gold-solid);
  border: none;
  padding: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.badge-new {
  background-color: #007aff;
  color: #fff;
}

.badge-trending {
  background-color: #ff453a;
  color: #fff;
}

/* ==========================================================================
   INTERACTIVE HERO SECTION (HOTSPOTS OVERLAY)
   ========================================================================== */
.custom-hero-section {
  position: relative;
  width: 100%;
  background-color: #000;
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1536 / 873;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-hotspots-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Hotspot Base Styling */
.hotspot {
  position: absolute;
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hotspot-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition-fast);
  pointer-events: none;
}

/* Nav Item Hover Underline */
.line-effect {
  border-bottom: 2px solid var(--color-gold-solid);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}

.hotspot-nav:hover .line-effect {
  opacity: 1;
  transform: scaleX(0.7);
}

/* Logo Hover Effect */
.logo-effect {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 70%);
  transform: scale(0.8);
  border-radius: 50%;
}

.hotspot-logo:hover .logo-effect {
  opacity: 1;
  transform: scale(1.1);
}

/* Trust Badge Hover Glow */
.badge-effect {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--color-border);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  border-radius: 4px;
}

.hotspot-trust:hover .badge-effect {
  opacity: 1;
}

/* Shop Collection Custom Overlay Button */
.button-effect {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(170,124,17,0.15));
  border: 1.5px solid var(--color-gold-solid);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.2);
  transition: var(--transition-medium);
}

.hotspot-cta:hover .button-effect {
  opacity: 1;
  transform: scale(1.02);
}

/* ==========================================================================
   PRODUCT CATALOG GRID SECTION
   ========================================================================== */
.custom-products-section {
  padding: 100px 0;
  background-color: #0d0d0d;
  border-top: 1px solid #1a1a1a;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.subtitle {
  font-family: var(--font-heading);
  color: var(--color-gold-solid);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 42px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
}

.product-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--color-gold-solid);
  color: var(--color-text-light);
  background-color: rgba(212, 175, 55, 0.05);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.hat-sprite-img {
  max-width: none !important;
  max-height: none !important;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  background-color: #121212;
  overflow: hidden;
}

.product-media .img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

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

.quick-add-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--color-gold-solid), var(--color-gold-dark));
  color: #000000;
  border: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 12px;
  cursor: pointer;
  transform: translateY(100%);
  transition: var(--transition-medium);
  z-index: 3;
}

.product-card:hover .quick-add-btn {
  transform: translateY(0);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.product-name a:hover {
  color: var(--color-gold-solid);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-gold-solid);
}

/* ==========================================================================
   JERSEY CUSTOMIZER SECTION
   ========================================================================== */
.customizer-section {
  padding: 100px 0;
  background-color: #0a0a0a;
  border-top: 1px solid #141414;
}

.customizer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.customizer-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.jersey-svg-preview {
  width: 100%;
  max-width: 450px;
  background-color: #111111;
  border: 1px solid var(--color-border);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
  padding: 30px;
  border-radius: 4px;
}

.customizer-controls .control-card {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 4px;
  box-shadow: var(--glass-shadow);
}

.control-group {
  margin-bottom: 25px;
}

.control-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-gold-solid);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.team-selector-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-option {
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.team-option:hover, .team-option.active {
  border-color: var(--color-gold-solid);
  background-color: rgba(212, 175, 55, 0.03);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 12px;
  display: inline-block;
}

.brazil-dot { background-color: #006c35; border: 1px solid #D4AF37; }
.france-dot { background-color: #1c1c1c; border: 1px solid #7a7a7a; }
.argentina-dot { background-color: #75aadb; border: 1px solid #fff; }

.form-input {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold-solid);
  background-color: #202020;
}

.customizer-price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.price-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--color-gold-solid);
}

/* ==========================================================================
   CART DRAWER & POPUP MODALS
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s, opacity 0.4s;
}

.cart-drawer[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.cart-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.cart-drawer-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: #0e0e0e;
  border-left: 1px solid var(--color-border);
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer[aria-hidden="false"] .cart-drawer-container {
  transform: translateX(0);
}

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

.cart-drawer-header h3 {
  font-size: 16px;
  letter-spacing: 0.1em;
}

.cart-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.cart-shipping-notice {
  padding: 16px 24px;
  background-color: rgba(212, 175, 55, 0.03);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.shipping-notice-text {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  text-align: center;
}

.shipping-progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.08);
}

.shipping-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-solid), var(--color-gold-hover));
  transition: width 0.4s ease;
}

.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

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

.cart-item-img {
  width: 75px;
  height: 75px;
  background-color: #121212;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cart-item-props {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.qty-btn {
  background: none;
  border: none;
  color: #fff;
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.qty-val {
  font-size: 13px;
  padding: 0 10px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--color-gold-solid);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-error);
  font-size: 11px;
  cursor: pointer;
  align-self: flex-start;
}

.empty-cart-message {
  text-align: center;
  padding: 50px 0;
  color: var(--color-text-muted);
}

.empty-cart-message p {
  margin-bottom: 20px;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #0b0b0b;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}

.cart-subtotal-amount {
  color: var(--color-gold-solid);
}

.cart-footer-note {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  text-align: center;
}

/* Trust Badge Modals */
.trust-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1010;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trust-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 15px 50px rgba(0,0,0,0.8);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1020;
}

.trust-modal[aria-hidden="false"] .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 28px;
  cursor: pointer;
}

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

.modal-header h3 {
  font-size: 24px;
  text-transform: uppercase;
  color: var(--color-gold-solid);
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-body ul {
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
}

/* Smooth Scrolling Setup */
html {
  scroll-behavior: smooth;
}

/* Header Spacer for anchoring */
section[id] {
  scroll-margin-top: 20px;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .customizer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .product-filters {
    justify-content: flex-start;
    padding: 10px 0;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .custom-products-section {
    padding: 60px 0;
  }
  
  .customizer-section {
    padding: 60px 0;
  }
}

/* Jersey Product Card Styles */
.jersey-product-card .product-media {
  background-color: #000000 !important;
}

/* Product Size Selector Styles */
.product-size-selector {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
  align-items: center;
}

.size-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.size-options {
  display: flex;
  gap: 6px;
}

.size-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-btn:hover, .size-btn.active {
  border-color: var(--color-gold-solid);
  color: var(--color-gold-solid);
  background-color: rgba(212, 175, 55, 0.05);
}

/* ==========================================================================
   ABOUT / BRAND STORY SECTION
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background-color: #060606;
  border-top: 1px solid #141414;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.about-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-solid), var(--color-gold-hover));
  opacity: 0;
  transition: var(--transition-fast);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.05);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  color: var(--color-gold-solid);
  margin-bottom: 24px;
  opacity: 0.8;
}

.about-card-icon svg {
  display: block;
}

.about-card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-gold-solid);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.about-card-subtitle {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gold-hover);
  line-height: 1.4;
  margin-bottom: 24px;
}

.about-card-body {
  color: rgba(243, 229, 171, 0.8);
  font-size: 14px;
  line-height: 1.7;
  flex-grow: 1;
}

.about-card-body p {
  margin-bottom: 16px;
}

.about-card-body p:last-child {
  margin-bottom: 0;
}

.about-card-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card-footer span {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold-solid);
  text-transform: uppercase;
}

/* Responsive grid for about section */
@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-card {
    padding: 36px;
  }
}
