/* === VARIABLES === */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #bfdbfe;
  --secondary: #ff6b6b;
  --dark: #2d2d2d;
  --gray: #666;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --white: #fff;
  --success: #4caf50;
  --warning: #ff9800;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 25px rgba(37,99,235,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ========================
   HEADER / NAVBAR
======================== */
.top-bar {
  background: var(--primary);
  color: white;
  font-size: 16px;
  padding: 6px 0;
}
.top-bar a { color: white; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

.navbar {
  background: white !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar-brand {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}
.navbar-brand span { color: var(--dark); }

.nav-link {
  font-weight: 500;
  font-size: 16px;
  color: var(--dark) !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: #dbeafe;
}

.search-form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 25px;
  overflow: hidden;
  transition: var(--transition);
}
.search-form:focus-within { border-color: var(--primary); }
.search-form input {
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 16px;
  width: 220px;
}
.search-form button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}
.cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.cart-count {
  background: white;
  color: var(--primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ========================
   HERO BANNER SLIDER
======================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.slide {
  display: none;
  position: relative;
  height: 480px;
  align-items: center;
  overflow: hidden;
}
.slide.active { display: flex; }
.slide-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.85) 0%, rgba(44,44,44,0.4) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 550px;
  padding: 0 60px;
  animation: slideIn 0.6s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.slide-label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.slide-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.slide-desc { font-size: 16px; opacity: 0.9; margin-bottom: 28px; }
.slide-price { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.slide-price span { font-size: 16px; opacity: 0.7; text-decoration: line-through; margin-left: 10px; }
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
}
.slide-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.slider-dot.active { background: white; width: 28px; border-radius: 5px; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}
.slider-arrow:hover { background: var(--primary); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ========================
   PROMO STRIP
======================== */
.promo-strip {
  background: var(--light-gray);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.promo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.promo-item .icon {
  font-size: 28px;
  flex-shrink: 0;
}
.promo-item h6 { font-size: 16px; font-weight: 700; margin: 0; }
.promo-item p { font-size: 13px; color: var(--gray); margin: 0; }

/* ========================
   SECTION STYLES
======================== */
.section { padding: 60px 0; }
.section-alt { background: var(--light-gray); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title small {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--gray);
  margin-top: 2px;
}
.view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}
.view-all:hover { color: var(--primary-dark); gap: 8px; }

/* ========================
   CATEGORY CARDS
======================== */
.cat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  display: block;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.cat-icon { font-size: 36px; margin-bottom: 10px; }
.cat-name { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.cat-count { font-size: 13px; color: var(--gray); }

/* ========================
   PRODUCT CARD
======================== */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-card:hover .product-img { transform: scale(1.05); }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
  aspect-ratio: 4/5;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.product-badge.badge-new { background: var(--success); }
.product-badge.badge-hot { background: var(--secondary); }
.product-badge.badge-premium { background: #9c27b0; }
.product-badge.badge-sale { background: var(--primary); }
.product-badge.badge-price { background: var(--warning); color: white; }

.sale-percent {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff5252;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.product-actions button {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-quick-view {
  background: rgba(255,255,255,0.95);
  color: var(--dark);
}
.btn-quick-view:hover { background: var(--light-gray); }
.btn-add-cart {
  background: var(--primary);
  color: white;
}
.btn-add-cart:hover { background: var(--primary-dark); }

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
  z-index: 2;
}
.wishlist-btn:hover { background: var(--primary); color: white; }

.product-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat { font-size: 13px; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.product-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-name a:hover { color: var(--primary); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.stars { color: #ffc107; font-size: 13px; }
.rating-num { font-size: 13px; color: var(--gray); }

.product-price-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.product-original {
  font-size: 16px;
  color: #aaa;
  text-decoration: line-through;
}
.product-sold { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ========================
   FLASH SALE BANNER
======================== */
.flash-sale-section {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  padding: 50px 0;
  color: white;
}
.flash-sale-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.flash-icon { font-size: 48px; animation: flash 1s infinite; }
@keyframes flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.flash-title { font-size: 32px; font-weight: 800; }
.flash-subtitle { font-size: 16px; opacity: 0.85; }

.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.countdown-item {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  min-width: 60px;
}
.countdown-num { font-size: 24px; font-weight: 800; display: block; }
.countdown-label { font-size: 10px; opacity: 0.8; }
.countdown-sep { font-size: 24px; font-weight: 800; }

/* ========================
   BLOG CARD
======================== */
.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.blog-img-wrap { overflow: hidden; aspect-ratio: 16/9; }
.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-img { transform: scale(1.05); }
.blog-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.blog-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-title a:hover { color: var(--primary); }
.blog-excerpt {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #999;
  margin-top: auto;
}
.blog-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}
.blog-read-more:hover { gap: 8px; }

/* ========================
   NEWSLETTER
======================== */
.newsletter-section {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  padding: 60px 0;
  text-align: center;
}
.newsletter-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.newsletter-section p { color: var(--gray); margin-bottom: 24px; font-size: 16px; }
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  outline: none;
}
.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); }

/* ========================
   FOOTER
======================== */
footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-brand { font-size: 24px; font-weight: 800; color: white; margin-bottom: 14px; }
.footer-desc { font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }

.footer-title { font-size: 16px; font-weight: 700; color: white; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}
.footer-contact-item .icon { color: var(--primary); font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--primary); }

/* ========================
   PRODUCT FILTER (products page)
======================== */
.filter-sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.filter-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 20px; }
.filter-group-title { font-size: 16px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }

.filter-checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 16px; }
.filter-checkbox input { accent-color: var(--primary); cursor: pointer; width: 16px; height: 16px; }
.filter-checkbox:hover { color: var(--primary); }

.price-range { display: flex; gap: 8px; align-items: center; }
.price-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
  outline: none;
}
.price-input:focus { border-color: var(--primary); }

.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sort-label { font-size: 16px; font-weight: 600; white-space: nowrap; }
.sort-btn {
  border: 1px solid var(--border);
  background: white;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.sort-btn:hover, .sort-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.sort-select {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 16px;
  outline: none;
  cursor: pointer;
  margin-left: auto;
}

/* ========================
   CART PAGE
======================== */
.cart-item {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-hover); }
.cart-item-img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.cart-item-price { font-size: 18px; font-weight: 800; color: var(--primary); }

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--light-gray);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: white; }
.qty-num {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.cart-remove {
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}
.cart-remove:hover { color: #ff5252; transform: scale(1.1); }

.cart-summary {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 16px; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 10px; padding-top: 16px; font-size: 18px; font-weight: 800; }
.summary-row.total .price { color: var(--primary); font-size: 22px; }

.btn-checkout {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 16px;
}
.btn-checkout:hover { background: var(--primary-dark); transform: translateY(-2px); }

.empty-cart {
  text-align: center;
  padding: 80px 20px;
}
.empty-cart .icon { font-size: 80px; margin-bottom: 20px; }
.empty-cart h3 { font-size: 22px; margin-bottom: 10px; }
.empty-cart p { color: var(--gray); margin-bottom: 24px; }

/* ========================
   PRODUCT DETAIL
======================== */
.product-gallery {
  display: flex;
  gap: 12px;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery-thumb {
  width: 72px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-main { flex: 1; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: #f9f9f9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-name { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.product-detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.product-detail-original { font-size: 18px; color: #aaa; text-decoration: line-through; }
.product-detail-save { font-size: 16px; color: var(--success); font-weight: 600; }

.color-options { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.color-opt {
  padding: 6px 16px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.color-opt:hover, .color-opt.active { border-color: var(--primary); color: var(--primary); background: #dbeafe; }

.size-options { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.size-opt {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.size-opt:hover, .size-opt.active { border-color: var(--primary); color: var(--primary); background: #dbeafe; }

.btn-add-to-cart {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-add-to-cart:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-buy-now {
  flex: 1;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-buy-now:hover { background: #dbeafe; transform: translateY(-2px); }

.product-features {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
}
.feature-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 16px; }
.feature-item .icon { color: var(--success); font-size: 16px; }

.tab-section { margin-top: 40px; }
.tab-btns { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) { background: var(--light-gray); }
.spec-table td { padding: 12px 16px; font-size: 16px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { font-weight: 600; width: 200px; color: var(--gray); }

/* ========================
   BLOG DETAIL
======================== */
.blog-content { font-size: 16px; line-height: 1.8; color: #444; }
.blog-content h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 28px 0 14px; }
.blog-content p { margin-bottom: 16px; }
.blog-content img { border-radius: var(--radius); margin: 20px 0; }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.blog-tag {
  background: var(--light-gray);
  color: var(--gray);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.blog-tag:hover { background: var(--primary); color: white; }

/* ========================
   CONTACT PAGE
======================== */
.contact-info-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.contact-icon { font-size: 40px; margin-bottom: 12px; }
.contact-info-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { font-size: 16px; color: var(--gray); }

.contact-form {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-label { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.form-control {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  outline: none;
}
.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ========================
   PAGE HERO (inner pages)
======================== */
.page-hero {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  padding: 50px 0;
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.breadcrumb { justify-content: center; background: none; margin: 0; }
.breadcrumb-item { font-size: 16px; color: rgba(255,255,255,0.8); }
.breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-item.active { color: white; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

/* ========================
   CHECKOUT PAGE
======================== */
.checkout-form {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.checkout-form h5 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.payment-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.payment-option:hover, .payment-option.active { border-color: var(--primary); background: #dbeafe; }
.payment-option input[type="radio"] { accent-color: var(--primary); }
.payment-option-icon { font-size: 24px; }

/* ========================
   TOAST NOTIFICATION
======================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}
.toast {
  background: white;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  margin-bottom: 10px;
  animation: toastIn 0.3s ease;
  border-left: 4px solid var(--primary);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-icon { font-size: 24px; }
.toast-msg { font-size: 16px; font-weight: 600; flex: 1; }
.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: #ff5252; }

/* ========================
   BACK TO TOP
======================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,99,235,0.4);
  transition: var(--transition);
  z-index: 998;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* ========================
   UTILITIES
======================== */
.text-primary-custom { color: var(--primary) !important; }
.btn-primary-custom {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
.btn-outline-custom {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-custom:hover { background: var(--primary); color: white; }

.loading { text-align: center; padding: 60px; color: var(--gray); }
.no-result { text-align: center; padding: 60px; }
.no-result .icon { font-size: 60px; margin-bottom: 16px; }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 992px) {
  .slide { height: 360px; }
  .slide-title { font-size: 32px; }
  .filter-sidebar { position: static; margin-bottom: 20px; }
}

@media (max-width: 768px) {
  .slide { height: 280px; }
  .slide-content { padding: 0 30px; }
  .slide-title { font-size: 24px; }
  .slide-desc, .slide-price { display: none; }
  .section { padding: 40px 0; }
  .section-title { font-size: 20px; }
  .flash-title { font-size: 22px; }
  .product-gallery { flex-direction: column; }
  .gallery-thumbs { flex-direction: row; }
  .top-bar .d-none-sm { display: none; }
  .cart-item { flex-wrap: wrap; }
  .newsletter-form { border-radius: 8px; flex-direction: column; }
  .newsletter-form input, .newsletter-form button { border-radius: 0; }
}

@media (max-width: 576px) {
  .slide { height: 220px; }
  .slide-title { font-size: 18px; }
  .slide-btn { padding: 8px 18px; font-size: 16px; }
  .promo-item { padding: 0 10px; }
  .section { padding: 30px 0; }
  .flash-sale-header { flex-wrap: wrap; }
  .countdown { margin-left: 0; }
}
