/* ==========================================
   AURA Studio - Global Styles & Design System
   ========================================== */

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

/* CSS Variables */
:root {
  --color-bg: #0a0a0b;
  --color-surface: #121214;
  --color-surface-hover: #1c1c1f;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-focus: rgba(212, 175, 55, 0.4);
  
  --color-primary: #ffffff;
  --color-secondary: #8a8a93;
  --color-muted: #4e4e52;
  
  --color-accent: #d4af37; /* Gold */
  --color-accent-soft: rgba(212, 175, 55, 0.1);
  --color-accent-hover: #f3e5ab;
  
  --color-success: #10b981;
  --color-error: #ef4444;
  
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
  --glass-bg: rgba(18, 18, 20, 0.75);
  --glass-blur: blur(12px);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

p {
  color: var(--color-secondary);
}

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

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 0; /* Minimalist sharp edges */
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #000000;
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #000000;
  transform: translateY(-2px);
}

.btn-text {
  padding: 0;
  background: none;
  border: none;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.btn-text:hover::after {
  width: 100%;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 60px auto;
  letter-spacing: 0.05em;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 12px 0;
  background-color: rgba(10, 10, 11, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
  height: 60px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  padding: 8px 0;
  position: relative;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cart-toggle {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: var(--transition-fast);
}

.cart-toggle:hover {
  color: var(--color-accent);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--color-accent);
  color: #000000;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   Hero Section (Landing)
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 40px;
}

/* Subtle overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 10, 11, 0.9) 20%, rgba(10, 10, 11, 0.3) 60%, rgba(10, 10, 11, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.2s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ==========================================
   Categories Grid (Landing)
   ========================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  cursor: pointer;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.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.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  z-index: 2;
}

.category-title {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.category-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

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

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: var(--transition-smooth);
  z-index: 3;
}

.category-card:hover::after {
  border: 1px solid var(--color-accent-soft);
  transform: scale(0.96);
}

/* ==========================================
   Product Cards
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

.product-img-container {
  position: relative;
  width: 100%;
  padding-top: 125%; /* 4:5 aspect ratio */
  overflow: hidden;
  background-color: #171719;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-accent);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

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

.product-category {
  font-size: 0.75rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.8rem;
}

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

.product-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
}

.add-to-cart-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
  background-color: var(--color-accent);
  color: #000000;
  border-color: var(--color-accent);
}

/* ==========================================
   Propuesta de Valor & Newsletter (Landing)
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: inline-flex;
}

.feature-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9rem;
}

.newsletter-section {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.newsletter-container {
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  margin-top: 32px;
}

.newsletter-input {
  flex-grow: 1;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  border-right: none;
  padding: 16px 20px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.newsletter-form .btn {
  padding: 16px 32px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background-color: #060607;
  border-top: 1px solid var(--color-border);
  padding: 80px 0 40px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.footer-brand p {
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-primary);
  color: #000000;
  border-color: var(--color-primary);
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--color-primary);
}

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

.footer-links a {
  color: var(--color-secondary);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-muted);
}

.footer-bottom p {
  color: var(--color-muted);
}

/* ==========================================
   Tienda Page Styles
   ========================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding-top: 120px;
  margin-bottom: 80px;
}

/* Sidebar / Filters */
.filters-sidebar {
  position: sticky;
  top: 120px;
  height: calc(100vh - 160px);
  overflow-y: auto;
  padding-right: 16px;
}

.filter-group {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  color: var(--color-primary);
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 12px 16px 12px 40px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-secondary);
  font-size: 0.95rem;
}

.filter-list li {
  margin-bottom: 10px;
}

.filter-link {
  font-size: 0.9rem;
  color: var(--color-secondary);
  cursor: pointer;
  display: block;
}

.filter-link:hover, .filter-link.active {
  color: var(--color-accent);
}

/* Price Range Slider styling */
.price-slider-container {
  padding-top: 8px;
}

.price-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-muted);
  outline: none;
  margin: 16px 0;
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.price-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

/* Shop Header Controls */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.products-count {
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.sort-select {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 16px;
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--color-accent);
}

/* ==========================================
   Shopping Cart Drawer
   ========================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: var(--shadow-lg);
}

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

.cart-header {
  padding: 30px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 1.5rem;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-close-btn:hover {
  color: var(--color-accent);
}

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

.cart-empty-message {
  text-align: center;
  padding: 40px 0;
  color: var(--color-secondary);
  font-size: 1rem;
}

/* Cart Item Row */
.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cart-item-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background-color: #171719;
  border: 1px solid var(--color-border);
}

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

.cart-item-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-category {
  font-size: 0.75rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.03);
}

.qty-value {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  padding: 4px;
}

.cart-item-remove:hover {
  color: var(--color-error);
}

.cart-footer {
  padding: 30px;
  border-top: 1px solid var(--color-border);
  background-color: rgba(0, 0, 0, 0.2);
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.cart-totals-price {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-accent);
}

.cart-footer .btn {
  width: 100%;
}

/* ==========================================
   Checkout Modal & simulated payment gateway
   ========================================== */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.checkout-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.checkout-close-btn:hover {
  color: var(--color-accent);
}

.checkout-form-side {
  padding: 40px;
  border-right: 1px solid var(--color-border);
}

.checkout-summary-side {
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.checkout-step-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.form-control {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Card 3D Component */
.card-wrapper {
  perspective: 1000px;
  margin: 10px auto 30px auto;
  width: 320px;
  height: 190px;
}

.credit-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.credit-card-3d.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #1f1d1a 0%, #111112 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  overflow: hidden;
}

.card-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.card-back {
  transform: rotateY(180deg);
  padding: 24px 0;
  justify-content: flex-start;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #d4af37 0%, #aa8412 100%);
  border-radius: 4px;
}

.card-logo {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  align-self: flex-end;
}

.card-number-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  word-spacing: 0.1em;
  color: var(--color-primary);
  margin-top: 20px;
  margin-bottom: auto;
}

.card-holder-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-label-small {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.card-holder-name, .card-expiry-display {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-strip {
  width: 100%;
  height: 40px;
  background-color: #000;
  margin-top: 10px;
  margin-bottom: 20px;
}

.card-signature-area {
  margin: 0 24px;
  background-color: #e2e8f0;
  height: 36px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 12px;
  border-radius: 4px;
}

.card-cvv-display {
  font-family: 'Courier New', Courier, monospace;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* Order Summary */
.checkout-items {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 250px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.checkout-item-qty {
  color: var(--color-secondary);
}

.checkout-totals {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.checkout-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.checkout-totals-row.grand-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 12px;
  border-top: 1px dashed var(--color-border);
  padding-top: 12px;
}

.checkout-submit-btn {
  width: 100%;
  margin-top: 24px;
}

/* Payment Processing Screen & Success Screen */
.payment-processing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top: 3px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

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

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-success);
  font-size: 2.5rem;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 2.2rem;
  color: var(--color-success);
  margin-bottom: 12px;
}

.success-order-id {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 30px;
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .category-card {
    height: 300px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .shop-layout {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: static;
    height: auto;
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .checkout-modal {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  
  .checkout-form-side {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-menu {
    display: none; /* Mobile menu logic can be added, but for simplicity we keep it clean */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .cart-drawer {
    max-width: 100%;
  }
  
  .card-wrapper {
    width: 280px;
    height: 165px;
  }
  
  .card-number-display {
    font-size: 1.05rem;
    margin-top: 15px;
  }
  
  .checkout-form-side, .checkout-summary-side {
    padding: 24px;
  }
}

/* ==========================================
   Product Detail Modal
   ========================================== */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.product-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  line-height: 1;
}

.product-modal-close:hover {
  color: var(--color-accent);
}

.product-modal-img-side {
  width: 100%;
  height: 100%;
  min-height: 450px;
  background-color: #171719;
}

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

.product-modal-info-side {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-modal-category {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.product-modal-name {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.product-modal-rating {
  color: var(--color-accent);
  display: flex;
  gap: 4px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.product-modal-price {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.product-modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.size-selector-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--color-secondary);
}

.size-options {
  display: flex;
  gap: 12px;
  margin-bottom: 35px;
}

.size-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: none;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.size-btn.active {
  background-color: var(--color-accent);
  color: #000000;
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .product-modal {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .product-modal-img-side {
    min-height: 280px;
    height: 320px;
  }
  .product-modal-info-side {
    padding: 24px;
  }
  .product-modal-name {
    font-size: 1.8rem;
  }
}
