/* ============================================
   All Season Breeze — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #1a1a2e;
  --color-accent: #e94560;
  --color-accent-dark: #c73e54;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #1a1a2e;
  --color-text-muted: #6c757d;
  --color-border: #e0e0e0;
  --color-success: #28a745;
  --color-white: #ffffff;
  --color-dark: #1a1a2e;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --nav-height: 64px;
  --max-width: 1280px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   HEADER / NAVIGATION — FIXED
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  gap: var(--space-md);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo span { color: var(--color-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
.nav-links li {
  flex-shrink: 0;
}
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: var(--nav-height);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  transition: color var(--transition);
  line-height: 1.2;
}
.nav-links a:hover {
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-search-btn,
.nav-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 18px;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-search-btn:hover,
.nav-cart-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count:empty { display: none; }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-text);
  border-radius: var(--radius);
}
.hamburger:hover { background: var(--color-bg-alt); }

/* Nav Search */
.nav-search {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--color-bg-alt);
  border-top: 1px solid transparent;
}
.nav-search.open {
  max-height: 400px;
  border-top: 1px solid var(--color-border);
}
.nav-search input {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: block;
  padding: 12px var(--space-lg);
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
}
.search-results {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg) 12px;
}
.search-results .search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.search-result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius);
}
.search-result-item .sri-title { font-weight: 600; font-size: 14px; }
.search-result-item .sri-price { color: var(--color-accent); font-weight: 700; font-size: 14px; }

/* ============================================
   MOBILE MENU — FIXED
   ============================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 1600;
  overflow-y: auto;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-text);
  border-radius: var(--radius);
}
.mobile-menu-close:hover { background: var(--color-bg-alt); }
.mobile-menu-links {
  padding: 8px 0;
}
.mobile-menu-links li {
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu-links a {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-links a:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}
.mobile-menu-section-label {
  padding: 16px 20px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.7), rgba(26,26,46,0.5));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--color-white);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: var(--space-md);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ============================================
   COLLECTION CARDS
   ============================================ */
.collection-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.8), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}
.collection-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
}
.collection-card-count {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-sale {
  background: var(--color-accent);
  color: var(--color-white);
}
.product-card-body {
  padding: var(--space-md);
}
.product-card-vendor {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.product-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title a:hover { color: var(--color-accent); }
.product-card-price-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
}
.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.product-card-compare-price {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.product-card-atc {
  width: 100%;
}

/* ============================================
   WHY CHOOSE
   ============================================ */
.why-choose {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.why-choose-item {
  text-align: center;
  padding: var(--space-lg);
}
.why-choose-icon {
  font-size: 36px;
  margin-bottom: var(--space-sm);
}
.why-choose-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.why-choose-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: var(--space-md);
}
.blog-card-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}
.blog-card-title a:hover { color: var(--color-accent); }
.blog-card-excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   ARTICLE (BLOG POST)
   ============================================ */
.article-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.85), rgba(26,26,46,0.3));
}
.article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-lg);
  color: var(--color-white);
}
.article-hero-content h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  line-height: 1.8;
  font-size: 16px;
}
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
}
.article-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-sm);
}
.article-content p { margin-bottom: var(--space-md); }
.article-content ul, .article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}
.article-content li { margin-bottom: var(--space-xs); list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content img {
  border-radius: var(--radius);
  margin: var(--space-md) 0;
}
.article-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--space-md) 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-text-muted); }
.breadcrumb-item { color: var(--color-text); font-weight: 500; }

/* Social Share */
.social-share {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}
.share-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.share-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}
.newsletter h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.newsletter p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--color-accent); }

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.trust-item {
  text-align: center;
  padding: var(--space-md);
}
.trust-item-icon { font-size: 32px; margin-bottom: var(--space-sm); }
.trust-item-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.trust-item-text {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding: 0 var(--space-lg);
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.footer-logo span { color: var(--color-accent); }
.footer-brand-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
  color: rgba(255,255,255,0.6);
}
.social-links {
  display: flex;
  gap: 8px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-white);
  transition: background var(--transition);
}
.social-links a:hover { background: var(--color-accent); color: var(--color-white); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.footer-col ul li {
  margin-bottom: var(--space-sm);
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page h1 {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.error-page p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ============================================
   CHECKOUT FORM
   ============================================ */
.checkout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.checkout-overlay.open { display: block; }
.checkout-modal {
  max-width: 900px;
  margin: 20px auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.checkout-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}
.checkout-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.checkout-close:hover { background: var(--color-bg-alt); }
.checkout-modal-body {
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.checkout-form-section {
  margin-bottom: 24px;
}
.checkout-form-section h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkout-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checkout-form-group.full { grid-column: 1 / -1; }
.checkout-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.checkout-form-group label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 12px;
}
.checkout-form-group input,
.checkout-form-group select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
  color: var(--color-text);
}
.checkout-form-group input:focus,
.checkout-form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}
.checkout-form-group input.error {
  border-color: var(--color-accent);
}

/* Order Summary */
.checkout-summary {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 80px;
  align-self: start;
}
.checkout-summary h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.checkout-summary-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.checkout-summary-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.checkout-summary-item-info {
  flex: 1;
  min-width: 0;
}
.checkout-summary-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.checkout-summary-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
}
.checkout-summary-item-qty {
  font-size: 12px;
  color: var(--color-text-muted);
}
.checkout-summary-totals {
  padding-top: 16px;
  margin-top: 8px;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  color: var(--color-text-muted);
}
.checkout-summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  border-top: 2px solid var(--color-border);
  margin-top: 8px;
  padding-top: 12px;
}

/* Payment Methods */
.checkout-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
}
.checkout-payment-option:hover { border-color: var(--color-accent); }
.checkout-payment-option.selected { border-color: var(--color-accent); background: rgba(233,69,96,0.05); }
.checkout-payment-option input { accent-color: var(--color-accent); }
.checkout-payment-option label {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}
.checkout-payment-icon { font-size: 20px; }

/* Place Order Button */
.checkout-place-order {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 16px;
}
.checkout-place-order:hover { background: var(--color-accent-dark); }
.checkout-place-order:disabled { opacity: 0.6; cursor: not-allowed; }

/* Checkout Success */
.checkout-success {
  text-align: center;
  padding: 48px 24px;
}
.checkout-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.checkout-success h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.checkout-success p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-accent); }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .nav-links a { padding: 0 8px; font-size: 12px; }
  .hero-title { font-size: 36px; }
  .grid-2 { grid-template-columns: 1fr; }
  .why-choose { grid-template-columns: repeat(2, 1fr); }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 16px; gap: 8px; }
  .nav-logo { font-size: 18px; }
  .nav-search-btn, .nav-cart-btn { width: 36px; height: 36px; font-size: 16px; }
  .hamburger { width: 36px; height: 36px; font-size: 20px; }

  .hero { min-height: 380px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: var(--space-xl) 0; }
  .section-title { font-size: 24px; }
  .container { padding: 0 16px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-choose { grid-template-columns: 1fr 1fr; }
  .trust-badges { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .article-hero { height: 240px; }
  .article-hero-content h1 { font-size: 22px; }
  .article-content { padding: var(--space-lg) 16px; font-size: 15px; }
  .article-content h2 { font-size: 22px; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }

  .checkout-modal { margin: 0; border-radius: 0; min-height: 100vh; }
  .checkout-modal-body { padding: 16px; max-height: none; }
  .checkout-form-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }

  .product-card-title { font-size: 13px; }
  .product-card-price { font-size: 16px; }
}

@media (max-width: 480px) {
  .grid-auto { grid-template-columns: 1fr; }
  .why-choose { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
  .section-title { font-size: 20px; }
  .error-page h1 { font-size: 56px; }
  .mobile-menu { width: 260px; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }
