/* ==========================================
   Allbirds Style E-commerce - Main CSS
   Color Palette: Earthy, Natural Tones
   ========================================== */

:root {
  --primary: #1B4D3E;
  --primary-light: #2A6B56;
  --primary-dark: #0F3328;
  --secondary: #D4C5A9;
  --secondary-light: #E8DFD0;
  --accent: #C45B28;
  --accent-light: #E07A45;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --text-muted: #9B9B9B;
  --bg: #F7F5F2;
  --bg-white: #FFFFFF;
  --bg-cream: #FAF8F5;
  --border: #E5E0D8;
  --border-light: #F0ECE6;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

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

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .leaf {
  font-size: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

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

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav-cart:hover {
  background: var(--bg);
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-green {
  background: var(--primary);
  color: white;
}

.btn-green:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ========== FEATURED CAROUSEL ========== */
.featured-section {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-cream);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.carousel-card .card-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.carousel-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.carousel-card .card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-card .card-info {
  padding: 20px 24px;
}

.carousel-card .card-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.carousel-card .card-info .card-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.carousel-card .card-info .card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-card .card-info .card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.carousel-card .card-info .card-rating {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  z-index: 10;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.carousel-nav:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.carousel-nav.prev { left: -4px; }
.carousel-nav.next { right: -4px; }

/* ========== CATEGORIES ========== */
.categories-section {
  padding: 64px 0;
  background: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.category-card:hover,
.category-card.active {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card .cat-icon {
  font-size: 40px;
}

.category-card .cat-name {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.category-card .cat-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== PRODUCT GRID ========== */
.products-section {
  padding: 64px 0 80px;
  background: var(--bg);
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.products-toolbar h2 {
  font-size: 28px;
  font-weight: 800;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-cream);
  position: relative;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card .quick-add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

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

.product-card .quick-add:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

.product-card .product-info {
  padding: 16px 20px 20px;
}

.product-card .product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-color {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

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

.product-card .product-rating {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card .product-rating .star {
  color: #F5A623;
}

/* ========== TRUST BADGES ========== */
.trust-section {
  padding: 64px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.trust-item {
  text-align: center;
  padding: 24px;
}

.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.trust-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.trust-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.6;
}

.footer-bottom .payment-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payment-icon {
  background: rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail {
  padding: 40px 0 80px;
  background: var(--bg);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-muted); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-cream);
  position: sticky;
  top: 100px;
}

.detail-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.detail-info {
  padding: 16px 0;
}

.detail-info .detail-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.detail-info h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.detail-info .detail-subtitle {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.detail-info .detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.detail-info .detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.detail-info .detail-rating .stars {
  color: #F5A623;
}

.detail-info .detail-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 32px;
}

.size-selector {
  margin-bottom: 32px;
}

.size-selector label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.size-option {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  background: var(--bg-white);
}

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

.size-option.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.detail-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-actions .btn {
  flex: 1;
  padding: 16px 32px;
  font-size: 16px;
}

.detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-cream);
  border-radius: var(--radius);
}

.feature-item .feat-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 14px;
  font-weight: 500;
}

/* ========== CART PAGE ========== */
.cart-page {
  padding: 40px 0 80px;
  background: var(--bg);
  min-height: 60vh;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

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

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

.cart-item-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-info .item-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  background: var(--bg-cream);
  transition: background var(--transition);
}

.qty-control button:hover {
  background: var(--border);
}

.qty-control .qty-value {
  width: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.cart-item-right {
  text-align: right;
}

.cart-item-right .item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.cart-item-right .remove-btn {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition);
}

.cart-item-right .remove-btn:hover {
  color: #a03010;
  text-decoration: underline;
}

.cart-summary {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
}

.summary-row.total {
  border-top: 2px solid var(--text);
  padding-top: 16px;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
}

.summary-row.total .amount {
  color: var(--primary);
}

.cart-summary .btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  font-size: 16px;
}

.cart-empty {
  text-align: center;
  padding: 80px 24px;
}

.cart-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.cart-empty h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cart-empty p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ========== CHECKOUT PAGE ========== */
.checkout-page {
  padding: 40px 0 80px;
  background: var(--bg);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.checkout-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.checkout-form h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg-white);
}

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

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

.payment-methods {
  margin-top: 32px;
}

.payment-methods h2 {
  margin-top: 0;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--primary);
  background: var(--bg-cream);
}

.payment-option .pay-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.payment-option.selected .pay-radio {
  border-color: var(--primary);
}

.payment-option.selected .pay-radio::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.payment-option .pay-logo {
  width: 80px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.3px;
}

.pay-jazzcash .pay-logo {
  background: linear-gradient(135deg, #C8102E, #8B0000);
  color: white;
}

.pay-easypaisa .pay-logo {
  background: linear-gradient(135deg, #36B37E, #006644);
  color: white;
}

.payment-option .pay-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.payment-option .pay-info p {
  font-size: 13px;
  color: var(--text-light);
}

.order-success {
  text-align: center;
  padding: 80px 24px;
}

.order-success .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.order-success h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.order-success p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.order-success .order-id {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 32px;
}

/* ========== POLICY PAGES ========== */
.policy-page {
  padding: 60px 0 80px;
  background: var(--bg-white);
  min-height: 60vh;
}

.policy-page .container {
  max-width: 800px;
}

.policy-page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
}

.policy-page .policy-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.policy-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

.policy-page p, .policy-page ul {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}

.policy-page ul {
  padding-left: 24px;
  list-style-type: disc;
}

.policy-page ul li {
  margin-bottom: 8px;
}

.policy-page a {
  color: var(--primary);
  text-decoration: underline;
}

/* ========== TOAST ========== */
.toast-notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: var(--primary);
  color: white;
}

.toast-error {
  background: #DC3545;
  color: white;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ========== MOBILE NAV ========== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
}

.mobile-menu.open { display: block; }

.mobile-menu-inner {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background: var(--bg-white);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-inner {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-menu-close {
  font-size: 28px;
  color: var(--text);
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail-grid { gap: 32px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero-content { padding: 60px 24px; }
  .hero { min-height: 420px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .carousel-card { flex: 0 0 300px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-image { position: static; }
  .detail-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
  .detail-info h1 { font-size: 28px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .carousel-card { flex: 0 0 260px; }
  .hero h1 { font-size: 28px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cart-item { grid-template-columns: 80px 1fr; gap: 12px; }
  .cart-item-right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
}
