/* 
   Halle Salatiga - Global Stylesheet & Design System
   Redesigned for a Premium, High-Fashion E-commerce Aesthetic
*/

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

:root {
  --primary: #121212;
  --primary-light: #2c2c2c;
  --accent: #c2a478; /* Muted Gold / Champagne */
  --accent-hover: #ab8f65;
  --accent-light: #f7f3ed;
  --bg: #ffffff;
  --bg-secondary: #faf9f6; /* Warm alabaster */
  --bg-dark: #1a1a1a;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-light: #9e9e9e;
  --text-on-dark: #ffffff;
  --border: #eeeeee;
  --border-dark: #dddddd;
  
  /* Status Colors */
  --success: #2e7d32;
  --warning: #d84315;
  --info: #1565c0;
  
  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  
  /* Layout */
  --container-width: 1280px;
}

/* ==========================================================================
   1. RESET & BASE ELEMENTS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   2. UTILITIES & COMPONENTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-spacing {
  padding: 80px 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

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

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

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--bg);
}

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

.btn-accent:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

.btn-block {
  width: 100%;
}

.btn-link {
  color: var(--text-muted);
  text-decoration: underline;
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
}

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

/* Section Header */
.section-header {
  margin-bottom: 48px;
  text-align: center;
  position: relative;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Badges */
.badge-new, .badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  border-radius: 2px;
}

.badge-new {
  background-color: var(--accent);
  color: var(--primary);
}

.badge-sale {
  background-color: var(--warning);
  color: #fff;
}

/* Star Ratings */
.star-rating {
  color: #ffb100;
  font-size: 14px;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 80px;
}

nav.nav-scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

nav .container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

nav .logo-wrapper {
  display: flex;
  align-items: center;
}

nav .logo-wrapper a {
  display: flex;
  align-items: center;
}

nav .logo {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

nav.nav-scrolled .logo {
  height: 38px;
}

/* Navigation Links */
nav .nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
}

nav .nav-links li {
  margin: 0 20px;
}

nav .nav-links a {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  position: relative;
  padding: 8px 0;
}

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

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

/* Actions in Nav */
nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav .nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

nav .nav-search-input {
  width: 180px;
  padding: 8px 16px 8px 36px;
  border-radius: 30px;
  border: 1px solid var(--border-dark);
  font-size: 13px;
  background-color: var(--bg-secondary);
  transition: var(--transition);
}

nav .nav-search-input:focus {
  width: 240px;
  border-color: var(--accent);
  background-color: var(--bg);
}

nav .nav-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 13px;
}

nav .nav-icon-btn {
  font-size: 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

nav .nav-icon-btn:hover {
  color: var(--accent);
}

nav .cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

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

/* ==========================================================================
   4. HOMEPAGE HERO
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  padding-top: 80px; /* offset navbar */
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-content {
  z-index: 2;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--primary);
}

.hero-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

/* Hero Search Bar */
.hero-search-container {
  margin-bottom: 30px;
  max-width: 480px;
}

.hero-search-form {
  display: flex;
  background-color: var(--bg);
  border: 1px solid var(--border-dark);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.hero-search-input {
  flex-grow: 1;
  font-size: 15px;
  border: none;
  background: none;
}

.hero-search-btn {
  background-color: var(--primary);
  color: var(--bg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-search-btn:hover {
  background-color: var(--accent);
  color: var(--primary);
}

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

/* Hero Image side */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  width: 85%;
  aspect-ratio: 4/5;
  background-color: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--bg);
}

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

.hero-image-frame:hover .hero-image {
  transform: scale(1.05);
}

.hero-floating-tag {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background-color: var(--primary);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-floating-tag .tag-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}

.hero-floating-tag .tag-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================================================
   5. FEATURED CATEGORIES
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: var(--transition-smooth);
}

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
  transition: var(--transition);
}

.category-card-content {
  position: relative;
  z-index: 3;
}

.category-card h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-card-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.1em;
}

.category-card-link span {
  transition: var(--transition);
}

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

.category-card:hover::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.95) 100%);
}

.category-card:hover .category-card-link span {
  transform: translateX(4px);
}

/* ==========================================================================
   6. PRODUCT CARD & GRID
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.product-card {
  background-color: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card-img-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--bg-secondary);
  margin-bottom: 16px;
}

.product-card-img-wrapper > a {
  display: block;
  width: 100%;
  height: 100%;
}

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

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

.product-card:hover .product-card-img-secondary {
  opacity: 1;
}

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

.product-card-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transition: var(--transition);
  opacity: 0;
}

.product-card-img-wrapper:hover .product-card-actions {
  bottom: 0;
  opacity: 1;
}

.product-card-actions .btn {
  flex-grow: 1;
  padding: 10px;
  font-size: 11px;
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.product-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-title a:hover {
  color: var(--accent);
}

.product-card-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card-reviews {
  font-size: 11px;
  color: var(--text-light);
}

.product-card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.product-card-original-price {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* ==========================================================================
   7. TRUST SIGNALS
   ========================================================================== */
.trust-banner {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

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

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-icon {
  font-size: 28px;
  color: var(--accent);
  margin-top: 4px;
}

.trust-text h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.trust-text p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   8. LOCATION / MAPS & CONTACT
   ========================================================================== */
.location-section {
  background-color: var(--bg);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.location-info h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.location-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.location-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.location-details li {
  display: flex;
  gap: 12px;
}

.location-details-icon {
  color: var(--accent);
  font-size: 18px;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-dark);
}

.map-frame {
  width: 100%;
  height: 400px;
  border: none;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 80px 0 30px 0;
}

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

.footer-brand h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 300px;
}

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

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2c2c2c;
  color: #fff;
  font-size: 16px;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--accent);
  color: var(--primary);
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #bbb;
  font-size: 14px;
}

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

.footer-col form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col input {
  padding: 12px 16px;
  background-color: #2c2c2c;
  border: 1px solid #3d3d3d;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
}

.footer-col input:focus {
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #777;
  font-size: 13px;
}

.footer-payments {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-payments span {
  font-size: 12px;
  color: #777;
}

.footer-payment-icons {
  display: flex;
  gap: 8px;
  font-size: 22px;
  color: #555;
}

/* ==========================================================================
   10. SHOPPING CART DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: var(--bg);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

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

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

.cart-drawer-header h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.close-cart-btn {
  font-size: 32px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

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

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

/* Cart Item Cards */
.cart-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}

.cart-item-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--bg-secondary);
}

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

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  max-width: 250px;
}

.cart-item-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-spec-badge {
  font-size: 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--text-muted);
}

.cart-item-price-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-remove {
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
}

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

/* Quantity Selector Component */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
  height: 32px;
}

.qty-btn {
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--bg-secondary);
  font-weight: 600;
  transition: var(--transition);
}

.qty-btn:hover {
  background-color: var(--border);
}

.qty-input {
  width: 40px;
  height: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
}

/* Hide spin arrows in inputs */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 16px;
  color: var(--text-light);
}

.cart-empty-icon {
  font-size: 48px;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cart-summary-row span:first-child {
  font-weight: 600;
  font-size: 15px;
}

.cart-total-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.cart-shipping-note {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   11. CATALOG PAGE SPECIFIC
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

/* Catalog Sidebar Filter */
.catalog-sidebar {
  border-right: 1px solid var(--border);
  padding-right: 24px;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 32px;
}

.filter-group h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.filter-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-category-item {
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.filter-category-item:hover,
.filter-category-item.active {
  color: var(--accent);
  font-weight: 600;
}

.filter-category-item.active::after {
  content: '✓';
  font-size: 10px;
}

/* Price Slider styling */
.price-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range-inputs input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
}

.price-range-slider {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 8px;
}

/* Catalog Content Bar */
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.catalog-search-summary {
  font-size: 14px;
  color: var(--text-muted);
}

.catalog-sort-select {
  padding: 8px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 13px;
  background-color: var(--bg);
  cursor: pointer;
}

/* ==========================================================================
   12. PRODUCT DETAILS PAGE
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.product-gallery {
  display: flex;
  gap: 20px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80px;
}

.gallery-thumb-item {
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-thumb-item.active {
  border-color: var(--accent);
}

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

.gallery-main-frame {
  flex-grow: 1;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-main-frame:hover .gallery-main-img {
  transform: scale(1.08);
}

/* Product Info columns */
.product-info-panel {
  display: flex;
  flex-direction: column;
}

.product-breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 16px;
}

.product-breadcrumb a:hover {
  color: var(--accent);
}

.product-detail-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-detail-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.product-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.product-detail-original-price {
  font-size: 20px;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-detail-discount-pill {
  background-color: var(--warning);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
}

.product-detail-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Swatches styling */
.product-option-group {
  margin-bottom: 24px;
}

.option-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.color-swatches {
  display: flex;
  gap: 12px;
}

.color-swatch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-swatch-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--accent);
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-chip-btn {
  padding: 10px 18px;
  border: 1px solid var(--border-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--bg);
  transition: var(--transition);
}

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

.size-chip-btn.active {
  background-color: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.stock-indicator {
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-indicator.in-stock { color: var(--success); }
.stock-indicator.low-stock { color: var(--warning); }

/* Add to cart panel */
.detail-purchase-panel {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.detail-purchase-panel .qty-selector {
  height: 48px;
}

.detail-purchase-panel .qty-btn {
  width: 48px;
}

.detail-purchase-panel .qty-input {
  width: 50px;
}

/* Bullet list detail specs */
.product-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.product-specs-list li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-specs-list li::before {
  content: '•';
  color: var(--accent);
  font-size: 18px;
}

/* ==========================================================================
   13. CHECKOUT PAGE
   ========================================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.checkout-section-box {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.checkout-section-box h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 12px;
}

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

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  padding: 12px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  background-color: var(--bg);
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
  border-color: var(--accent);
}

/* Checkout option grid (couriers, payments) */
.option-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option-select-card {
  position: relative;
}

.option-select-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-select-label {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--bg);
  transition: var(--transition);
}

.option-select-card input[type="radio"]:checked + .option-select-label {
  border-color: var(--primary);
  background-color: var(--accent-light);
  box-shadow: 0 0 0 2px var(--accent);
}

.option-title {
  font-weight: 700;
  font-size: 14px;
}

.option-subtitle {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Checkout item row */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.checkout-item-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.checkout-item-img {
  width: 50px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.checkout-item-info {
  flex-grow: 1;
}

.checkout-item-name {
  font-size: 13px;
  font-weight: 600;
}

.checkout-item-specs {
  font-size: 11px;
  color: var(--text-light);
}

.checkout-item-price {
  font-weight: 700;
  font-size: 13px;
}

.checkout-totals {
  border-top: 1px solid var(--border-dark);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.checkout-total-row.grand-total {
  font-size: 18px;
  font-weight: 700;
  border-top: 1px dashed var(--border-dark);
  padding-top: 10px;
  margin-top: 4px;
}

/* ==========================================================================
   14. TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
}

/* ==========================================================================
   15. MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 50px;
  }
  
  .catalog-layout {
    grid-template-columns: 220px 1fr;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  nav {
    height: 70px;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  nav .nav-search-form {
    display: none; /* Hide top search bar on mobile, use hero/catalog instead */
  }
  
  nav .nav-links {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px 32px;
    z-index: 1009;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
  }
  
  nav .nav-links.active {
    left: 0;
  }
  
  nav .nav-links li {
    margin: 16px 0;
    width: 100%;
  }
  
  nav .nav-links a {
    font-size: 16px;
    display: block;
    width: 100%;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding: 120px 0 60px 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-search-container {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image-frame {
    width: 60%;
    aspect-ratio: 4/5;
  }
  
  /* Grid Layouts */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Details and Checkout */
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-content h1 {
    font-size: 38px;
  }
  
  .hero-image-frame {
    width: 80%;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .catalog-sidebar {
    display: none; /* In production, we'd add a collapsible filter drawer for mobile */
  }
  
  .product-gallery {
    flex-direction: column-reverse;
  }
  
  .gallery-thumbs {
    flex-direction: row;
    width: 100%;
  }
  
  .gallery-thumb-item {
    width: calc(25% - 9px);
  }
  
  .detail-purchase-panel {
    flex-direction: column;
  }
  
  .option-select-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}