/* BiaWear - Modern Elegant Pakistani Ecommerce */
:root {
  --primary: #e42827;
  --primary-dark: #c22020;
  --primary-light: #fde8e8;
  --primary-soft: #d88888;
  --dark: #333;
  --dark-deep: #1b1b1b;
  --charcoal: #5a5a5a;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eee;
  --gray-300: #d0cece;
  --gray-400: #b0b0b0;
  --gray-600: #858585;
  --gray-700: #5a5a5a;
  --gray-800: #333;
  --white: #fff;
  --success: #2d8a4e;
  --danger: #d63031;
  --warning: #f39c12;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.05);
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 14px;
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark-deep);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: 6px 0;
  letter-spacing: .3px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.topbar-inner > a {
  color: rgba(255,255,255,.75);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition);
}
.topbar-inner > a:hover { color: #fff; }
.topbar-inner i { font-size: .8rem; }
.topbar-social { display: flex; gap: 10px; margin-left: auto; }
.topbar-social a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}
.topbar-social a:hover { color: #fff; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid var(--gray-200);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 62px; width: auto; }
.logo-text { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; color: var(--primary); }
.nav-main { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 100px;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link i { margin-right: 4px; font-size: .85rem; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--charcoal);
  transition: all var(--transition);
}
.header-icon:hover { background: var(--primary-light); color: var(--primary); }
.cart-icon { position: relative; }
.cart-badge {
  position: absolute;
  top: 1px;
  right: -1px;
  background: var(--primary);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 20px;
  padding: 0 4px;
}
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); padding: 4px; }

/* ===== SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}
.hero-slider .slider-track {
  display: flex;
  transition: transform .4s ease;
}
.hero-slider .slider-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}
.hero-slider .slider-img-wrap {
  width: 100%;
  height: 340px;
  overflow: hidden;
  position: relative;
}
.hero-slider .slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-slider .slider-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hero-slider .slider-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-slider .slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s;
}
.hero-slider .slider-shop-btn {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
/* Mobile/tablet: center 1200px visible, no extra space */
@media (max-width: 992px) {
  .hero-slider {
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
  .hero-slider .slider-track {
    display: flex;
    align-items: flex-start;
  }
  .hero-slider .slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: block;
    height: auto;
  }
  .hero-slider .slider-img-wrap {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    display: block;
  }
  .hero-slider .slider-img-wrap .slider-img {
    /* 1900 -> 1200 focus crop: show center 1200px, hide 350px each side */
    width: calc(100% * (1900 / 1200));
    min-width: calc(100% * (1900 / 1200));
    max-width: none;
    height: auto;
    margin-left: calc((100% - (100% * (1900 / 1200))) / 2);
    transform: none;
    left: auto;
    top: auto;
    bottom: auto;
    object-fit: unset;
    object-position: initial;
  }
  .hero-slider .slider-dots,
  .hero-slider .slider-shop-btn {
    display: none !important;
  }
  .hero-slider + .section {
    padding-top: 24px;
  }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 60%, #d0cece 100%);
  color: var(--dark);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hero h1 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; margin-bottom: 12px; letter-spacing: .5px; }
.hero p { opacity: .75; font-size: 1.1rem; margin-bottom: 28px; font-weight: 400; }
.hero .btn { font-size: 1rem; padding: 14px 36px; }

/* ===== SECTIONS ===== */
.section { padding: 50px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-img {
  aspect-ratio: 2/3;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.product-info { padding: 16px; }
.product-name {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  color: var(--dark);
}
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-price .current { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.product-price .old { color: var(--gray-400); text-decoration: line-through; font-size: .85rem; }
.btn-add-cart {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .3px;
}
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-add-cart.btn-out-of-stock {
  background: #fff; color: var(--danger);
  border: 1.5px solid var(--danger);
  cursor: default; pointer-events: auto;
  font-weight: 600; opacity: .85;
}
.btn-add-cart.btn-out-of-stock:hover { background: #fff; }

/* ===== STAR RATINGS ===== */
.stars { display: inline-flex; gap: 1px; color: #f59e0b; font-size: .85rem; line-height: 1; }
.stars-sm { font-size: .75rem; }
.stars .star-empty { color: var(--gray-300); }
.product-card .card-rating {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  padding: 3px 8px; border-radius: 20px;
  font-size: .72rem; line-height: 1;
}
.product-card .card-rating .stars { font-size: .68rem; }
.product-card .card-rating .rating-count { font-size: .65rem; color: rgba(255,255,255,.7); margin-left: 2px; }

.pd-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pd-rating .stars { font-size: 1.1rem; }
.pd-rating .rating-num { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.pd-rating .rating-count { font-size: .85rem; color: var(--gray-600); }

/* ===== REVIEWS SECTION ===== */
.reviews-section { margin-top: 48px; padding-top: 36px; border-top: 2px solid var(--gray-100); }
.reviews-header { margin-bottom: 28px; }
.reviews-header h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: -.02em; position: relative; display: inline-block;
}
.reviews-header h3::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 40px; height: 2px; background: var(--primary);
}

.review-overview {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  align-items: center; margin-bottom: 32px;
  padding: 24px 28px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
  border: 1px solid var(--gray-100);
}
.review-overview-score { text-align: center; }
.review-overview-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  line-height: 1; color: var(--dark); letter-spacing: -.03em;
}
.review-overview-label { font-size: .78rem; color: var(--gray-500); margin-top: 4px; }

.review-bars { display: flex; flex-direction: column; gap: 5px; }
.review-bar-row {
  display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--gray-600);
}
.review-bar-row span:first-child { width: 44px; text-align: right; flex-shrink: 0; }
.review-bar-track {
  flex: 1; height: 8px; background: var(--gray-100);
  border-radius: 4px; overflow: hidden; position: relative;
}
.review-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width .5s ease;
}
.review-bar-row span:last-child { width: 20px; font-size: .72rem; color: var(--gray-400); }

.review-grid { display: flex; flex-direction: column; gap: 0; }
.review-card {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 20px 0; border-bottom: 1px solid var(--gray-100);
}
.review-card:last-child { border-bottom: none; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: .02em;
}
.review-body { min-width: 0; }
.review-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.review-name { font-weight: 600; font-size: .88rem; color: var(--dark); }
.review-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46;
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; letter-spacing: .04em;
}
.review-badge i { font-size: .65rem; }
.review-stars-inline { color: #f59e0b; font-size: .78rem; letter-spacing: 1px; }
.review-text {
  font-size: .88rem; color: var(--gray-700); line-height: 1.65;
  margin: 6px 0 4px; font-style: italic;
}
.review-text::before { content: '\201C'; font-weight: 700; color: var(--gray-400); margin-right: 2px; }
.review-date { font-size: .72rem; color: var(--gray-400); }

.review-empty {
  text-align: center; padding: 48px 20px; color: var(--gray-400);
  border: 2px dashed var(--gray-100); border-radius: 16px;
}
.review-empty i { font-size: 2.2rem; display: block; margin-bottom: 10px; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label {
  font-size: 1.6rem; color: var(--gray-300); cursor: pointer;
  transition: color .15s, transform .15s;
}
.star-input label:hover { transform: scale(1.15); }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #f59e0b; }

@media (max-width: 768px) {
  .review-overview { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .review-overview-score { display: flex; align-items: center; gap: 12px; }
  .review-overview-num { font-size: 2.2rem; }
  .review-card { grid-template-columns: 36px 1fr; gap: 10px; padding: 16px 0; }
  .review-avatar { width: 36px; height: 36px; font-size: .78rem; }
  .reviews-header h3 { font-size: 1.1rem; }
}

/* ===== CATEGORY FILTER ===== */
.cat-filter { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.cat-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 100px;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  color: var(--charcoal);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
.cat-pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.cat-pill-logo { height: 28px; width: auto; object-fit: contain; }
.cat-pill.active .cat-pill-logo { filter: none; }

/* ===== PROMO PAIR ===== */
.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo-pair-item { display: block; border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.promo-pair-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo-pair-item img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ===== COLOR SWATCHES ===== */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gray-300);
  cursor: pointer; padding: 3px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.color-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.color-swatch.active, .color-swatch:hover { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

/* ===== FULL-WIDTH BANNER ===== */
.full-width-banner { width: 100%; overflow: hidden; border-radius: var(--radius-lg); }
.full-width-banner a { display: block; }
.full-width-banner img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 300px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: .3px;
  text-align: center;
  justify-content: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--primary); color: var(--white); }
.btn-accent:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-300); color: var(--dark); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: var(--white); }
.btn-dark { background: var(--dark-deep); color: var(--white); }
.btn-dark:hover { background: var(--dark); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .9rem; color: var(--charcoal); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  transition: border var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(228,40,39,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== QUANTITY CONTROL ===== */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--dark);
  transition: all var(--transition);
  user-select: none;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--primary); color: var(--white); }
.qty-btn:active { transform: scale(.92); }
.qty-input {
  width: 50px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--gray-300);
  border-right: 1px solid var(--gray-300);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--white);
  -moz-appearance: textfield;
  outline: none;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== SIZE SELECTOR ===== */
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 48px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--dark);
}
.size-btn:hover:not(.disabled) { border-color: var(--primary); color: var(--primary); }
.size-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.size-btn.disabled {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 28px;
  margin-bottom: 20px;
}

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; }
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.alert-error { background: var(--primary-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

/* ===== PRODUCT DETAIL ===== */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.pd-main-img {
  max-width: 400px;
  max-height: 600px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; flex-direction: column; gap: 8px; order: -1; }
.pd-thumb {
  width: 60px;
  height: 80px;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border var(--transition);
  background: var(--gray-100);
  flex-shrink: 0;
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.pd-main-img { position: relative; }
.pd-main-img:hover .pd-zoom-hint { opacity: 1; }

.img-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.img-lightbox.open { opacity: 1; visibility: visible; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; z-index: 10;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-img-wrap {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  border-radius: 8px; user-select: none;
}
.lightbox-loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.lightbox-spinner {
  width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: lbSpin .7s linear infinite;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .lightbox-nav { width: 36px; height: 36px; font-size: 1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .lightbox-img-wrap img { max-width: 96vw; max-height: 85vh; border-radius: 4px; }
  .pd-zoom-hint { opacity: .7; width: 30px; height: 30px; font-size: .85rem; bottom: 8px; right: 8px; }
}
.pd-info h1 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.pd-category-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd-category-logo { height: 32px; width: auto; border-radius: var(--radius); object-fit: contain; }
.pd-category { display: inline-block; font-size: .8rem; font-weight: 500; color: var(--primary); background: var(--primary-light); padding: 4px 14px; border-radius: 100px; }
.pd-price { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; color: var(--primary); }
.pd-price .old { font-size: 1rem; color: var(--gray-400); text-decoration: line-through; font-weight: 400; }
.pd-desc { color: var(--charcoal); line-height: 1.7; font-size: .95rem; }
.pd-desc-content.pd-desc-collapsed .pd-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-desc-content.pd-desc-expanded .pd-desc {
  display: block;
  overflow: visible;
}
.pd-desc-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 8px 0; margin-top: 4px;
  font-size: .9rem; font-weight: 600; color: var(--primary); cursor: pointer;
  font-family: inherit; text-align: left; transition: color var(--transition);
}
.pd-desc-toggle:hover { color: var(--primary-dark); text-decoration: underline; }
.pd-desc-icon { font-size: .85rem; transition: transform var(--transition); }
.pd-qty { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pd-qty label { font-weight: 500; font-size: .9rem; }
.pd-stock { font-size: .85rem; color: var(--success); margin-bottom: 20px; }
.pd-stock.out { color: var(--danger); }
.pd-trust { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.pd-trust p { color: var(--charcoal); font-size: .85rem; margin-bottom: 6px; }
.pd-trust i { color: var(--primary); margin-right: 6px; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: 32px; align-items: start; }
.cart-layout > .card { min-width: 0; overflow: hidden; padding: 20px 24px; }
.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--gray-100); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; overflow: hidden; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; word-wrap: break-word; overflow-wrap: break-word; line-height: 1.4; display: block; }
.cart-item-name a { color: var(--dark); text-decoration: none; }
.cart-item-name a:hover { color: var(--primary); }
.cart-item-price { color: var(--charcoal); font-size: .85rem; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-item-total { font-weight: 700; min-width: 80px; text-align: right; color: var(--primary); flex-shrink: 0; }
.cart-item-remove { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 1.1rem; padding: 6px; transition: color var(--transition); flex-shrink: 0; }
.cart-item-remove:hover { color: var(--danger); }
.cart-summary-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; max-width: 100%; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: .95rem; }
.cart-summary-total { font-size: 1.25rem; font-weight: 700; border-top: 2px solid var(--primary); padding-top: 14px; margin-top: 8px; color: var(--primary); }

/* ===== CHECKOUT ===== */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.checkout-grid > div > .card { padding: 24px; }

/* ===== ORDER TRACKING ===== */
.track-steps { display: flex; gap: 0; margin: 32px 0; position: relative; }
.track-step {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  position: relative;
  z-index: 1;
}
.track-step::before {
  content: '';
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  border: 3px solid var(--gray-300);
  transition: all var(--transition);
}
.track-step.done::before { background: var(--success); border-color: var(--success); }
.track-step.active::before { background: var(--primary); border-color: var(--primary); }
.track-step span { font-size: .8rem; font-weight: 500; color: var(--gray-600); }
.track-step.done span, .track-step.active span { color: var(--dark); font-weight: 600; }

/* ===== AUTH PAGES ===== */
.auth-wrapper { max-width: 420px; margin: 0 auto; padding: 40px 0; }
.auth-card { text-align: center; }
.auth-card h2 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--charcoal); margin-bottom: 28px; font-size: .95rem; }
.auth-card form { text-align: left; }
.auth-footer { margin-top: 20px; text-align: center; color: var(--charcoal); font-size: .9rem; }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===== ORDER CARDS ===== */
.order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
  transition: box-shadow var(--transition);
}
.order-card:hover { box-shadow: var(--shadow); }
.order-num { font-weight: 700; font-size: 1rem; }
.order-status {
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-processing { background: #e2d5f1; color: #5a2d82; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #d4edda; color: #155724; }
.status-returned { background: #e0e7ff; color: #3730a3; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark-deep); color: rgba(255,255,255,.8); padding: 50px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 0; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; padding: 4px 0; font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-col p i { margin-right: 6px; color: var(--primary); }
.footer-about { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-copyright { color: rgba(255,255,255,.3); font-size: .8rem; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.footer-mobile { display: none; text-align: center; padding: 8px 0; }
.footer-mobile-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.footer-mobile-links a { color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 500; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark-deep);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: var(--gray-300); margin-bottom: 16px; display: block; }
.empty-state p { color: var(--charcoal); margin-bottom: 20px; font-size: 1.05rem; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--charcoal); }
.trust-item i { font-size: 1.4rem; color: var(--primary); }

/* ===== MOBILE NUMBER INPUT ===== */
.mobile-input-wrapper { width: 100%; position: relative; }
.mobile-slots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  cursor: text;
  transition: border-color var(--transition), box-shadow var(--transition);
  user-select: none;
  min-height: 44px;
  color: #333;
}
.mobile-slots .mobile-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 20px;
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Inter', monospace;
  color: #858585 !important;
  transition: color .15s;
}
.mobile-slots .mobile-digit.filled {
  color: #333 !important;
}
.mobile-sep { width: 8px; }

.mobile-input-real {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  opacity: 0;
  font-size: .95rem;
  z-index: 2;
  cursor: text;
  border: none;
  outline: none;
  background: transparent !important;
  padding: 12px 16px;
  letter-spacing: .2rem;
}
.mobile-input-real:focus ~ .mobile-slots {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(228,40,39,.1);
}

/* ===== PAYMENT METHODS (checkout) ===== */
.payment-methods-vertical { display: flex; flex-direction: column; gap: 10px; }
.pay-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}
.pay-row:hover { border-color: var(--primary-soft); }
.pay-row.selected { border-color: var(--primary); background: var(--primary-light); }
.pay-row input[type="radio"] { display: none; }
.pay-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}
.pay-row.selected .pay-radio {
  border-color: var(--primary);
}
.pay-row.selected .pay-radio::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  background: var(--primary);
  border-radius: 50%;
}
.pay-row-icon { font-size: 1.35rem; color: var(--primary); flex-shrink: 0; }
.pay-row-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pay-row-logos img { height: 26px; width: auto; object-fit: contain; }
.pay-row-label { font-size: .9rem; font-weight: 600; color: var(--dark); }

/* ===== PRODUCT ACTION BUTTONS ===== */
.pd-action-btns { display: flex; gap: 12px; }
.pd-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  display: inline-flex;
  padding: 14px 24px;
  font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
  .checkout-grid > div > .card { padding: 20px; }
}
@media (max-width: 768px) {
  .promo-pair { grid-template-columns: 1fr; gap: 12px; }
  .full-width-banner img { max-height: 180px; }
  .topbar { font-size: .72rem; }
  .topbar-inner { justify-content: center; gap: 8px; }
  .topbar-social { margin-left: 0; }
  .mobile-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .nav-main.open { display: flex; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 40px 20px; }
  .section { padding: 36px 0; }
  .section-title { font-size: 1.45rem; margin-bottom: 20px; }
  .container { padding: 0 16px; }

  /* Product grid */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 10px 12px; }
  .product-name { font-size: .82rem; }
  .product-price .current { font-size: .95rem; }
  .btn-add-cart { font-size: .78rem; padding: 8px 6px; }

  /* Product detail */
  .pd-layout { grid-template-columns: 1fr; gap: 20px; }
  .pd-gallery { grid-template-columns: 1fr; gap: 10px; }
  .pd-main-img { max-width: 100%; max-height: none; }
  .pd-thumbs { flex-direction: row; order: 0; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .pd-thumb { width: 56px; height: 72px; }
  .pd-info h1 { font-size: 1.35rem; }
  .pd-action-btns { flex-direction: column; gap: 10px; }
  .pd-btn { flex: none; width: 100%; font-size: .95rem; padding: 14px 16px; }

  /* Cart mobile */
  .cart-layout > .card { padding: 12px 14px; }
  .cart-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    gap: 0 12px;
    align-items: start;
    padding: 14px 0;
  }
  .cart-item-img {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    aspect-ratio: 1;
  }
  .cart-item-details {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }
  .cart-item-name { font-size: .88rem; margin-bottom: 2px; display: block; }
  .cart-item-price { font-size: .8rem; margin-bottom: 0; }
  .cart-item-actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: nowrap;
  }
  .cart-item .qty-control { margin: 0; }
  .cart-item .qty-btn { width: 32px; height: 32px; font-size: .9rem; }
  .cart-item .qty-input { width: 36px; height: 32px; font-size: .85rem; }
  .cart-item-total { min-width: auto; text-align: left; font-size: .9rem; }
  .cart-item-remove { padding: 4px; font-size: 1rem; margin-left: auto; }

  /* Cart summary */
  .cart-summary-card { padding: 18px 16px; border-radius: var(--radius); }
  .cart-summary-card h3 { font-size: 1rem; }
  .cart-summary-row { font-size: .88rem; padding: 8px 0; }
  .cart-summary-total { font-size: 1.1rem; }

  /* Checkout */
  .checkout-grid > div > .card { padding: 16px; }
  .checkout-grid .card h3 { font-size: 1rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Mobile input */
  .mobile-digit { width: 16px; height: 18px; font-size: .88rem; }
  .mobile-slots { gap: 3px; padding: 10px 12px; min-height: 42px; }
  .mobile-sep { width: 5px; }

  /* Payment methods */
  .pay-row { padding: 12px 14px; gap: 10px; }
  .pay-row-label { font-size: .85rem; }
  .pay-row-logos img { height: 22px; }

  /* Contact page */
  .contact-info-grid { grid-template-columns: 1fr !important; }

  /* Order tracking */
  .track-steps { flex-direction: column; gap: 0; }
  .track-step { text-align: left; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
  .track-step::before { margin: 0; flex-shrink: 0; width: 28px; height: 28px; }
  .track-step span { font-size: .78rem; }

  /* Order cards */
  .order-card { flex-direction: column; align-items: flex-start; padding: 16px; gap: 10px; }
  .order-num { font-size: .95rem; }

  /* Auth */
  .auth-wrapper { padding: 20px 0; }
  .auth-card h2 { font-size: 1.5rem; }

  /* Footer */
  .footer-desktop { display: none !important; }
  .footer-mobile { display: block; }
  .site-footer { padding: 24px 0 16px; margin-top: 40px; }
  .trust-items { gap: 16px; }
  .trust-item { font-size: .82rem; }

  /* Cards */
  .card { padding: 20px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card { border-radius: var(--radius); }
  .product-info { padding: 8px 10px; }
  .product-name { font-size: .78rem; }
  .btn-add-cart { font-size: .72rem; padding: 7px 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner > a:last-of-type { display: none; }
  .section { padding: 28px 0; }
  .container { padding: 0 12px; }
  .cart-layout > .card { padding: 10px 12px; }
  .cart-item-img { width: 56px; height: 56px; }
  .cart-item { grid-template-columns: 56px 1fr; gap: 0 10px; }
  .cart-item-name { font-size: .82rem; }
  .cart-summary-card { padding: 14px 12px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 12px; }
.d-flex { display: flex; }
.fw-700 { font-weight: 700; }
