/* ============================================
   WEKENDS.COM - Main Stylesheet
   Colors: Orange #FF6B00 | Dark #1a1a1a | Gray #f5f5f5
   ============================================ */

:root {
  --orange:     #FF6B00;
  --orange-dk:  #e05e00;
  --orange-lt:  #fff3eb;
  --dark:       #1a1a1a;
  --dark2:      #2d2d2d;
  --gray:       #f5f5f5;
  --gray2:      #e8e8e8;
  --gray3:      #888;
  --white:      #ffffff;
  --text:       #222222;
  --text2:      #555555;
  --success:    #28a745;
  --danger:     #dc3545;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);
  --transition: .2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--white); font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--orange); }
.topbar-links { display: flex; gap: 16px; }

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--dark2);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo img { height: 48px; width: auto; }
.header-logo { flex-shrink: 0; }

.search-bar {
  flex: 1;
  display: flex;
  max-width: 700px;
}
.search-bar select {
  background: var(--gray2);
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  min-width: 120px;
  height: 44px;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  background: var(--white);
  height: 44px;
  outline: none;
}
.search-bar button {
  background: var(--orange);
  border: none;
  color: #fff;
  padding: 0 20px;
  height: 44px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--orange-dk); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-btn {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  font-size: 11px;
  border: none;
  background: transparent;
  white-space: nowrap;
}
.header-btn:hover { background: rgba(255,255,255,.1); }
.header-btn i { font-size: 20px; }
.header-btn span { font-size: 11px; color: #ddd; }
.cart-count {
  position: absolute;
  top: 2px; right: 8px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
}

/* ============================================
   NAV BAR
   ============================================ */
.navbar {
  background: var(--orange);
  padding: 0;
}
.navbar .container {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
}
.nav-link {
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
}
.nav-link:hover, .nav-link.active { background: rgba(0,0,0,.15); }
.all-cats-btn { font-weight: bold; border-right: 1px solid rgba(255,255,255,.3); }

/* ============================================
   CONTAINER
   ============================================ */
.container { max-width: 1300px; margin: 0 auto; padding: 0 16px; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-section { display: flex; gap: 12px; padding: 16px 0; }
.hero-slider { flex: 1; border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 340px; background: var(--gray); }
.slide { display: none; position: absolute; inset: 0; }
.slide.active { display: flex; align-items: center; }
.slide-img { width: 100%; height: 340px; object-fit: cover; }
.slide-placeholder {
  width: 100%; height: 340px;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 60%, var(--orange) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-direction: column;
  gap: 12px;
}
.slide-placeholder h2 { font-size: 28px; font-weight: 700; }
.slide-placeholder p  { font-size: 16px; color: #ddd; }
.slide-placeholder .btn { margin-top: 8px; }
.slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; border: none; }
.dot.active { background: var(--orange); width: 20px; border-radius: 4px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: none; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: background var(--transition);
  z-index: 5;
}
.slider-arrow:hover { background: var(--orange); color: #fff; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.hero-sidebar { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.promo-card {
  flex: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--gray); position: relative;
  min-height: 120px; cursor: pointer;
  transition: transform var(--transition);
}
.promo-card:hover { transform: scale(1.02); }
.promo-card img { width: 100%; height: 100%; object-fit: cover; }
.promo-placeholder {
  width: 100%; height: 100%; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--text2); font-size: 13px;
}
.promo-placeholder i { font-size: 28px; color: var(--orange); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section { padding: 20px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}
.section-header h2 { font-size: 20px; font-weight: 700; color: var(--dark); }
.section-header h2 span { color: var(--orange); }
.see-all { color: var(--orange); font-size: 13px; font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* ============================================
   CATEGORY PILLS
   ============================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cat-card:hover { border-color: var(--orange); background: var(--orange-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card i { font-size: 28px; color: var(--orange); }
.cat-card span { font-size: 12px; font-weight: 600; color: var(--text); }

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--orange); }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: bold;
  padding: 2px 8px; border-radius: 20px;
}
.product-badge.featured { background: var(--orange); }
.wishlist-btn {
  position: absolute; top: 8px; right: 8px;
  background: #fff; border: 1px solid var(--gray2);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--gray3);
  transition: all var(--transition);
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--danger); border-color: var(--danger); }

.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; color: var(--gray3); text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.product-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { color: #f5a623; font-size: 12px; }
.review-count { font-size: 11px; color: var(--gray3); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.price-current { font-size: 18px; font-weight: 700; color: var(--dark); }
.price-original { font-size: 13px; color: var(--gray3); text-decoration: line-through; }
.price-save { font-size: 11px; color: var(--success); font-weight: 600; }
.add-cart-btn {
  background: var(--orange);
  color: #fff; border: none;
  padding: 8px; width: 100%;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.add-cart-btn:hover { background: var(--orange-dk); }
.out-of-stock { background: var(--gray2); color: var(--gray3); cursor: not-allowed; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark2); }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

/* ============================================
   FLASH DEALS BANNER
   ============================================ */
.flash-banner {
  background: linear-gradient(90deg, var(--dark) 0%, var(--dark2) 50%, var(--orange) 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  margin: 8px 0;
  color: #fff;
}
.flash-banner h3 { font-size: 22px; font-weight: 800; }
.flash-banner p  { font-size: 13px; color: #ddd; }
.countdown { display: flex; gap: 8px; }
.count-box {
  background: var(--orange); border-radius: var(--radius);
  padding: 8px 12px; text-align: center; min-width: 52px;
}
.count-box .num { font-size: 22px; font-weight: 800; line-height: 1; display: block; }
.count-box .lbl { font-size: 10px; text-transform: uppercase; display: block; }

/* ============================================
   PRODUCT PAGE
   ============================================ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0; }
.product-gallery { position: sticky; top: 80px; }
.main-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray2); aspect-ratio: 1; }
.main-img img { width: 100%; height: 100%; object-fit: contain; background: var(--gray); }
.thumb-row { display: flex; gap: 8px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gray2); cursor: pointer; }
.thumb:hover, .thumb.active { border-color: var(--orange); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.price-block { margin: 16px 0; }
.price-block .main-price { font-size: 28px; font-weight: 800; color: var(--dark); }
.price-block .old-price { font-size: 16px; color: var(--gray3); text-decoration: line-through; margin-left: 10px; }
.price-block .save-badge { background: var(--success); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.variant-group { margin: 12px 0; }
.variant-group label { font-size: 13px; font-weight: 600; color: var(--text2); display: block; margin-bottom: 6px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt {
  border: 2px solid var(--gray2); border-radius: var(--radius);
  padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: all var(--transition);
}
.variant-opt:hover, .variant-opt.selected { border-color: var(--orange); background: var(--orange-lt); color: var(--orange); }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--gray2); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 36px; height: 36px; background: var(--gray); border: none; font-size: 18px; cursor: pointer; }
.qty-num { width: 48px; text-align: center; border: none; font-size: 15px; font-weight: 600; }
.action-row { display: flex; gap: 12px; margin: 16px 0; }
.action-row .btn { flex: 1; }
.delivery-info { background: var(--gray); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.delivery-row { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.delivery-row i { color: var(--orange); font-size: 18px; width: 20px; }
.delivery-row:last-child { margin-bottom: 0; }

/* ============================================
   CART PAGE
   ============================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 24px 0; }
.cart-item {
  display: flex; gap: 16px; padding: 16px;
  border: 1px solid var(--gray2); border-radius: var(--radius-lg);
  margin-bottom: 12px; background: var(--white);
}
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--gray3); margin-bottom: 8px; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--orange); }
.cart-item-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.remove-btn { color: var(--danger); font-size: 12px; cursor: pointer; background: none; border: none; }
.order-summary {
  background: var(--white); border: 1px solid var(--gray2);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 80px; height: fit-content;
}
.order-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; border-bottom: 1px solid var(--gray2); padding-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-total { font-size: 18px; font-weight: 700; border-top: 2px solid var(--dark); padding-top: 10px; margin-top: 8px; }
.coupon-row { display: flex; gap: 8px; margin: 12px 0; }
.coupon-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--gray2); border-radius: var(--radius); font-size: 13px; }

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 24px 0; }
.checkout-section { background: var(--white); border: 1px solid var(--gray2); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.checkout-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gray2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--gray2); border-radius: var(--radius);
  font-size: 14px; outline: none; transition: border var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); }
.payment-opts { display: flex; flex-direction: column; gap: 10px; }
.payment-opt {
  border: 2px solid var(--gray2); border-radius: var(--radius);
  padding: 12px 16px; cursor: pointer; display: flex; gap: 12px; align-items: center;
  transition: all var(--transition);
}
.payment-opt:hover, .payment-opt.selected { border-color: var(--orange); background: var(--orange-lt); }
.payment-opt input { accent-color: var(--orange); }
.payment-opt-info strong { display: block; font-size: 14px; }
.payment-opt-info span { font-size: 12px; color: var(--gray3); }

/* ============================================
   USER ACCOUNT
   ============================================ */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; }
.account-sidebar { background: var(--white); border: 1px solid var(--gray2); border-radius: var(--radius-lg); padding: 20px; height: fit-content; }
.account-avatar { text-align: center; margin-bottom: 16px; }
.account-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); margin: 0 auto 8px; }
.account-avatar h4 { font-size: 15px; font-weight: 700; }
.account-avatar p { font-size: 12px; color: var(--gray3); }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; color: var(--text); transition: all var(--transition); margin-bottom: 4px; }
.account-nav a:hover, .account-nav a.active { background: var(--orange-lt); color: var(--orange); }
.account-nav a i { width: 18px; text-align: center; }
.order-card { border: 1px solid var(--gray2); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-status { padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pending    { background: #fff3cd; color: #856404; }
.status-confirmed  { background: #cce5ff; color: #004085; }
.status-processing { background: #e2d9f3; color: #6f42c1; }
.status-shipped    { background: #d4edda; color: #155724; }
.status-delivered  { background: #d4edda; color: #155724; }
.status-cancelled  { background: #f8d7da; color: #721c24; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--gray3); }
.breadcrumb a { color: var(--gray3); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 20px 0; }
.filters-sidebar { height: fit-content; }
.filter-section { border: 1px solid var(--gray2); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; background: var(--white); }
.filter-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.filter-check input { accent-color: var(--orange); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 80px; padding: 6px 8px; border: 1px solid var(--gray2); border-radius: var(--radius); font-size: 13px; }
.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sort-bar select { padding: 8px 12px; border: 1px solid var(--gray2); border-radius: var(--radius); font-size: 13px; }
.results-count { font-size: 13px; color: var(--gray3); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: #ccc; padding: 40px 0 0; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #aaa; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; background: var(--dark2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 16px; transition: all var(--transition);
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; border-bottom: 2px solid var(--orange); padding-bottom: 8px; display: inline-block; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; font-size: 13px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #333; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #777; }
.payment-icons { display: flex; gap: 8px; }
.payment-icons img { height: 24px; border-radius: 4px; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container { position: fixed; top: 80px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--dark); color: #fff;
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 13px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: slideIn .3s ease;
  max-width: 300px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--orange); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 2000; display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 440px; position: relative; animation: modalIn .3s ease; }
@keyframes modalIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray3); }
.modal h2 { font-size: 22px; margin-bottom: 6px; }
.modal p.sub { font-size: 13px; color: var(--gray3); margin-bottom: 20px; }
.modal-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray2); }
.modal-tab { padding: 8px 20px; cursor: pointer; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--gray3); }
.modal-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.divider { text-align: center; color: var(--gray3); font-size: 12px; margin: 14px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 45%; height: 1px; background: var(--gray2); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--dark); color: #ccc; padding: 0; }
.admin-logo { padding: 20px 16px; border-bottom: 1px solid #333; }
.admin-logo img { height: 40px; }
.admin-logo span { display: block; font-size: 11px; color: var(--orange); margin-top: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; font-size: 13px; color: #aaa; transition: all var(--transition); border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,107,0,.1); color: #fff; border-left-color: var(--orange); }
.admin-nav a i { width: 18px; }
.admin-nav .nav-section { padding: 20px 20px 6px; font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: 1px; }
.admin-content { background: #f0f0f0; padding: 24px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-header h1 { font-size: 22px; font-weight: 700; color: var(--dark); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.stat-icon.orange { background: var(--orange); }
.stat-icon.dark   { background: var(--dark); }
.stat-icon.green  { background: var(--success); }
.stat-icon.blue   { background: #3498db; }
.stat-info h3 { font-size: 22px; font-weight: 800; color: var(--dark); }
.stat-info p  { font-size: 12px; color: var(--gray3); }
.admin-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-card-header h3 { font-size: 16px; font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray); padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gray3); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--gray); font-size: 13px; }
.data-table tr:hover td { background: var(--gray); }
.data-table img { width: 44px; height: 44px; border-radius: var(--radius); object-fit: cover; }

/* ============================================
   MISC
   ============================================ */
.page-header { background: var(--gray); padding: 24px 0; margin-bottom: 0; }
.page-header h1 { font-size: 24px; font-weight: 700; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray3); }
.empty-state i { font-size: 64px; margin-bottom: 16px; color: var(--gray2); }
.empty-state h3 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 24px 0; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray2); cursor: pointer; font-size: 13px; transition: all var(--transition); background: var(--white); }
.page-btn:hover, .page-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-info    { background: var(--orange-lt); color: var(--orange-dk); border-left: 4px solid var(--orange); }


/* ============================================
   ADMIN MOBILE SIDEBAR — slide-in drawer
   ============================================ */
.admin-menu-toggle {
  display: none;
  background: var(--orange);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1998;
}
.admin-overlay.open { display: block; }

.mobile-admin-bar {
  display: none;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.mobile-admin-bar .page-title {
  font-weight: 700;
  font-size: 16px;
  flex: 1;
}

/* ============================================
   RESPONSIVE — 1024px (tablet landscape)
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .hero-sidebar        { display: none; }
  .stat-cards          { grid-template-columns: repeat(2, 1fr); }
  .admin-layout        { grid-template-columns: 200px 1fr; }
  .product-detail      { grid-template-columns: 1fr; }
  .cart-layout         { grid-template-columns: 1fr; }
  .checkout-layout     { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE — 768px (tablet portrait + mobile)
   ============================================ */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on everything */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }
  img { max-width: 100%; height: auto; }

  /* STOREFRONT HEADER */
  .topbar { display: none; }
  .header { padding: 10px 0; }
  .header .container { flex-wrap: wrap; gap: 8px; }
  .header-logo img   { height: 40px; }
  .search-bar  { order: 3; width: 100%; min-width: 0; }
  .search-bar select { min-width: 70px; font-size: 12px; padding: 0 8px; }
  .header-actions { margin-left: auto; gap: 4px; }
  .header-btn { padding: 6px 8px; }

  /* NAVBAR */
  .navbar .container { overflow-x: auto; scrollbar-width: none; }
  .navbar .container::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; padding: 10px 12px; font-size: 12px; }

  /* SHOP / PRODUCTS */
  .products-grid       { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-layout         { grid-template-columns: 1fr; }
  .filters-sidebar     { display: none; }
  .product-detail      { grid-template-columns: 1fr; }
  .cart-layout         { grid-template-columns: 1fr; }
  .checkout-layout     { grid-template-columns: 1fr; }
  .account-layout      { grid-template-columns: 1fr; }
  .form-row            { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }

  /* HERO */
  .hero-section        { flex-direction: column; }
  .hero-sidebar        { display: none; }
  .slide-placeholder h2 { font-size: 20px; }

  /* TRUST BADGES — 2 columns on mobile */
  .trust-badges-grid   { grid-template-columns: 1fr 1fr !important; }

  /* CART */
  .cart-item { gap: 10px; }
  .cart-item-img { width: 70px; height: 70px; }

  /* PRODUCT CARD */
  .product-card .price-current { font-size: 15px; }
  .add-cart-btn { font-size: 12px; padding: 8px 4px; }

  /* ---- ADMIN PANEL MOBILE ---- */
  /* Switch to single column, sidebar off-screen */
  .admin-layout {
    display: block;        /* single column, no grid */
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;          /* hidden off left edge */
    width: 260px;
    height: 100vh;
    z-index: 1999;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 24px rgba(0,0,0,.5);
  }
  .admin-sidebar.open { left: 0; }

  /* Mobile top bar — shown only on mobile */
  .mobile-admin-bar {
    display: flex !important;
  }

  /* hamburger button */
  .admin-menu-toggle {
    display: inline-flex !important;
  }

  /* Admin content area */
  .admin-content {
    padding: 0;           /* bar handles top spacing */
    min-height: 100vh;
  }
  .admin-inner {
    padding: 16px;
  }

  .admin-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 12px;
  }
  .admin-header h1 { font-size: 20px; }

  /* Stat cards 2-col */
  .stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat-card  { padding: 12px; gap: 10px; }
  .stat-icon  { width: 40px; height: 40px; font-size: 17px; flex-shrink: 0; }
  .stat-info h3 { font-size: 16px; }
  .stat-info p  { font-size: 11px; }

  /* Admin cards scroll horizontally for tables */
  .admin-card { padding: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 6px; }
}

/* ============================================
   RESPONSIVE — 480px (small phones)
   ============================================ */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-grid   { grid-template-columns: 1fr; }
  .stat-cards    { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flash-banner  { flex-wrap: wrap; gap: 10px; }
  .flash-banner h3 { font-size: 18px; }
  .count-box .num { font-size: 18px; }
  .product-card .product-name { font-size: 12px; }
}

/* Trust badges grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
