/* ==========================================================================
   KUAKATA DRIED FISH — DARAZ EXACT DESIGN SYSTEM CSS
   Strictly follows DESIGN_SYSTEM.md across Mobile (<640px), Tab (640-1023px), Desktop (>=1024px)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* Exact Daraz (@font-face) EuclidCircularA mapped to NotoSans-Regular / SemiBold / Bold */
@font-face {
  font-family: "NotoSans-Regular";
  font-weight: 400;
  src: url("https://g.lazcdn.com/g/lzd/assets/1.2.13/font/EuclidCircularA-Regular.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "NotoSans-Regular";
  font-weight: 500;
  src: url("https://g.lazcdn.com/g/lzd/assets/1.2.13/font/EuclidCircularA-Medium.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "NotoSans-Regular";
  font-weight: 600;
  src: url("https://g.lazcdn.com/g/lzd/assets/1.2.13/font/EuclidCircularA-Bold.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "NotoSans-Regular";
  font-weight: 700;
  src: url("https://g.lazcdn.com/g/lzd/assets/1.2.13/font/EuclidCircularA-Bold.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "NotoSans-SemiBold";
  src: url("https://g.lazcdn.com/g/lzd/assets/1.2.13/font/EuclidCircularA-Medium.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "NotoSans-Bold";
  src: url("https://g.lazcdn.com/g/lzd/assets/1.2.13/font/EuclidCircularA-Bold.woff2") format("woff2");
  font-display: fallback;
}

:root {
  /* 1. Brand Primary & CTA Colors (Daraz Signature) */
  --color-primary: #F85606;
  --color-primary-hover: #D04602;
  --color-primary-tint: #FFF1EB;

  --color-secondary: #2ABBE8;
  --color-secondary-hover: #1CA3CD;

  /* 2. Canvas & Surface Backgrounds */
  --bg-canvas: #EFF0F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #FAFAFA;

  /* 3. Text & Typography Colors */
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-muted: #9E9E9E;
  --text-on-brand: #FFFFFF;

  /* 4. Status, Trust & Payment Brand Colors */
  --badge-mall-red: #D0011B;
  --badge-trust-green: #00B553;
  --badge-trust-tint: #E8F8F0;
  --badge-flash-gold: #FFB800;
  --brand-bkash: #E2136E;
  --brand-nagad: #F7941D;
  --brand-whatsapp: #25D366;

  /* 5. Borders, Focus Rings & Shadows */
  --border-card: #EFF0F5;
  --border-input: #DADADA;
  --border-input-focus: #F85606;
  --ring-focus: 0 0 0 3px rgba(248, 86, 6, 0.15);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 2px 10px rgba(0, 0, 0, 0.14);
  --shadow-sticky-bar: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'NotoSans-Regular', -apple-system, BlinkMacSystemFont, 'Roboto', 'Noto Sans Bengali', 'Helvetica Neue', Helvetica, Tahoma, Arial, 'Nirmala UI', sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  padding-bottom: 64px; /* Space for mobile sticky bottom bar */
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   CONTAINER & RESPONSIVE GRID SYSTEM
   ========================================================================== */

.daraz-container {
  width: 100%;
  margin: 0 auto;
  padding-left: 8px;
  padding-right: 8px;
}

@media (min-width: 640px) {
  .daraz-container {
    max-width: 960px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 1024px) {
  .daraz-container {
    max-width: 1188px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Product Card Grid: 2 Col Mobile -> 3 Col Tab -> 4 Col Desktop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ==========================================================================
   DARAZ REUSABLE PRODUCT CARD COMPONENT (.df-product-card)
   100% Uniform Slot Heights Across Mobile, Tablet, and Desktop
   ========================================================================== */

.df-product-card, .product-card {
  background-color: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border-card);
  height: 100%;
}

@media (min-width: 1024px) {
  .df-product-card, .product-card {
    border-radius: 4px;
  }
}

.df-product-card:hover, .product-card:hover {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
  border-color: rgba(248, 86, 6, 0.35);
}

/* Slot 1: 1:1 Square Thumbnail */
.df-card-thumb, .product-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F9F9F9;
  overflow: hidden;
  flex-shrink: 0;
}

.df-card-thumb img, .product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.df-product-card:hover .df-card-thumb img {
  transform: scale(1.04);
}

.df-card-badge-left, .badge-mall {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--badge-mall-red);
  color: var(--text-on-brand);
  font-size: 10px;
  font-weight: 600;
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-bottom-right-radius: 4px;
  z-index: 2;
  white-space: nowrap;
}

.df-card-badge-right, .badge-discount-corner {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: var(--color-primary);
  color: var(--text-on-brand);
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  z-index: 2;
  white-space: nowrap;
}

/* Dynamic HTML Feature Strip at Bottom of Thumbnail (Replaces baked SVG text) */
.df-card-img-feature-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 47, 75, 0.86);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 500;
  height: 20px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

@media (min-width: 640px) {
  .df-card-img-feature-strip {
    font-size: 10.5px;
    height: 22px;
    padding: 0 8px;
  }
}

/* Dynamic Available Weights Strip inside Card Body */
.df-card-weights-bar {
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 9.5px;
  font-weight: 600;
  height: 19px;
  padding: 0 5px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

@media (min-width: 640px) {
  .df-card-weights-bar {
    font-size: 10.5px;
    height: 20px;
    padding: 0 6px;
  }
}

/* Uniform Card Body (Daraz Audited Padding: 6px 8px 10px Mobile / 8px 10px 12px Desktop) */
.df-card-body, .product-card-body {
  padding: 6px 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 640px) {
  .df-card-body, .product-card-body {
    padding: 8px 10px 12px;
  }
}

/* Slot 2: Batch Freshness Tag (Fixed 18px Height) */
.df-card-batch, .batch-fresh-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--badge-trust-green);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.df-card-batch-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Slot 3: Product Title (Daraz Exact: 2-Line Clamp, line-height: 18px, height: 36px) */
.df-card-title, .product-card-title {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  color: #000000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  margin-bottom: 4px;
}

@media (min-width: 640px) {
  .df-card-title, .product-card-title {
    font-size: 13.5px;
    line-height: 18px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
  }
}

@media (min-width: 1024px) {
  .df-card-title, .product-card-title {
    font-size: 14px;
    line-height: 18px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
  }
}

.df-card-title:hover, .product-card-title:hover {
  color: var(--color-primary);
}

/* Slot 4: Retail Price Row (Daraz Exact: 22px height, -0.56px letter-spacing) */
.df-card-price-row, .product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  height: 22px;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 4px;
}

.df-card-price-current, .price-current {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  height: 22px;
  letter-spacing: -0.56px;
  color: #f57224;
}

@media (min-width: 640px) {
  .df-card-price-current, .price-current { font-size: 17px; }
}
@media (min-width: 1024px) {
  .df-card-price-current, .price-current { font-size: 18px; }
}

.df-card-currency, .price-currency {
  font-size: 0.85em;
  margin-right: 1px;
}

.df-card-price-old, .price-old {
  font-size: 11px;
  font-weight: 400;
  line-height: 12px;
  color: #9e9e9e;
  text-decoration: line-through;
}

@media (min-width: 1024px) {
  .df-card-price-old, .price-old { font-size: 12px; }
}

.df-card-price-pct, .price-discount-pct {
  font-size: 11px;
  font-weight: 400;
  line-height: 12px;
  color: #212121;
  opacity: 0.85;
}

@media (min-width: 1024px) {
  .df-card-price-pct, .price-discount-pct { font-size: 12px; }
}

/* Slot 5: Wholesale Tier Row (Fixed 22px Height) */
.df-card-wholesale-row {
  height: 22px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.df-card-wholesale-chip, .wholesale-chip {
  display: inline-block;
  background-color: var(--badge-trust-tint);
  color: var(--badge-trust-green);
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  height: 20px;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 640px) {
  .df-card-wholesale-chip, .wholesale-chip {
    font-size: 11px;
    padding: 1px 6px;
  }
}

/* Slot 6: Uniform Footer (Fixed 38px Height) */
.df-card-footer, .product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 38px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border-card);
}

.df-card-unit, .weight-label {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.df-card-add-btn, .btn-card-quick-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background-color: var(--color-primary-tint);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.df-card-add-btn:hover, .btn-card-quick-add:hover {
  background-color: var(--color-primary);
  color: var(--text-on-brand);
}

@media (min-width: 640px) {
  .df-card-add-btn, .btn-card-quick-add { height: 32px; padding: 0 12px; font-size: 12.5px; }
}

/* ==========================================================================
   BUTTONS BY DEVICE (Exact Heights & Paddings from DESIGN_SYSTEM.md)
   ========================================================================== */

.btn-primary-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  background-color: var(--color-primary);
  color: var(--text-on-brand);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

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

.btn-secondary-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  background-color: var(--color-secondary);
  color: var(--text-on-brand);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.btn-secondary-cart:hover {
  background-color: var(--color-secondary-hover);
}

@media (min-width: 640px) {
  .btn-primary-buy { height: 42px; padding: 0 20px; font-size: 14px; }
  .btn-secondary-cart { height: 42px; padding: 0 18px; font-size: 14px; }
}

@media (min-width: 1024px) {
  .btn-primary-buy { height: 44px; padding: 0 28px; font-size: 15px; min-width: 180px; }
  .btn-secondary-cart { height: 44px; padding: 0 24px; font-size: 15px; min-width: 180px; }
}

/* Card Quick Add Button (+ কার্ট) */
.btn-card-quick-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background-color: var(--color-primary-tint);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-card-quick-add:hover {
  background-color: var(--color-primary);
  color: var(--text-on-brand);
}

@media (min-width: 640px) {
  .btn-card-quick-add { height: 32px; padding: 0 12px; font-size: 12.5px; }
}
@media (min-width: 1024px) {
  .btn-card-quick-add { height: 34px; padding: 0 14px; font-size: 13px; }
}

/* Weight / Tier Variant Pill */
.variant-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 2px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.variant-pill.active, .variant-pill:hover {
  background-color: var(--color-primary-tint);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

@media (min-width: 640px) {
  .variant-pill { height: 36px; padding: 0 14px; font-size: 13px; }
}
@media (min-width: 1024px) {
  .variant-pill { height: 36px; padding: 0 16px; font-size: 13px; }
}

/* ==========================================================================
   INPUTS & SEARCH BOX BY DEVICE (Mobile 16px Focus Safe)
   ========================================================================== */

.header-search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 560px;
}

.header-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid transparent;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: all 0.15s ease;
}

.header-search-input:focus {
  background-color: var(--bg-surface);
  border-color: var(--color-primary);
}

.header-search-btn {
  height: 36px;
  width: 40px;
  background-color: var(--color-primary);
  color: var(--text-on-brand);
  border: none;
  border-radius: 0 4px 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search-btn:hover {
  background-color: var(--color-primary-hover);
}

@media (min-width: 640px) {
  .header-search-input { height: 40px; padding: 0 14px; }
  .header-search-btn { height: 40px; width: 45px; }
}

@media (min-width: 1024px) {
  .header-search-input { height: 44px; padding: 0 16px; background-color: #F5F5F5; }
  .header-search-btn { height: 44px; width: 52px; }
}

.form-input, .form-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 16px; /* Prevents iOS/FB WebView auto-zoom */
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-input-focus);
  box-shadow: var(--ring-focus);
}

@media (min-width: 640px) {
  .form-input, .form-select {
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }
}

.form-textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  font-size: 16px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  border-radius: 4px;
  outline: none;
  resize: vertical;
}

@media (min-width: 640px) {
  .form-textarea {
    min-height: 82px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* ==========================================================================
   HEADER, FLASH SALE & STICKY MOBILE FOOTER
   ========================================================================== */

.top-utility-bar {
  display: none;
  background-color: #F5F5F5;
  border-bottom: 1px solid #E8E8E8;
  font-size: 12px;
  color: var(--text-secondary);
  min-height: 30px;
  padding: 4px 0;
}

@media (min-width: 768px) {
  .top-utility-bar {
    display: flex;
    align-items: center;
  }
}

.daraz-sticky-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-surface);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  height: 56px;
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .daraz-sticky-header { height: 64px; }
}
@media (min-width: 1024px) {
  .daraz-sticky-header { height: 75px; }
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--badge-mall-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  min-width: 28px;
  height: 26px;
  padding: 0 5px;
  border-radius: 3px;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sticky-bar);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--border-card);
}

@media (min-width: 640px) {
  .mobile-bottom-nav {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* Hide Scrollbar for Category Pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Floating WhatsApp Button (Desktop/Tablet Only; Mobile uses Sticky Bottom Bar) */
.floating-whatsapp {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  background-color: var(--brand-whatsapp);
  color: #FFFFFF;
  height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.04);
}

@media (min-width: 640px) {
  .floating-whatsapp {
    display: inline-flex;
  }
}

/* ==========================================================================
   DARAZ SHOPPING CART SECTION (LIVE AUDITED FROM cart.daraz.com.bd/cart)
   Used in both Slide-Out Cart Drawer (#cartDrawer) and Checkout Page (checkout.html)
   ========================================================================== */

/* 1. Select-All Toolbar (.list-header) */
.daraz-cart-toolbar {
  background-color: #FFFFFF;
  height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #EFF0F5;
  border-radius: 2px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #757575;
}

@media (min-width: 640px) {
  .daraz-cart-toolbar {
    height: 40px;
    padding: 0 12px;
  }
}

.daraz-cart-select-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #757575;
  user-select: none;
  text-transform: uppercase;
}

.daraz-cart-delete-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #757575;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 2px;
  transition: color 0.15s ease;
}

.daraz-cart-delete-all-btn:hover {
  color: #F57224;
}

/* 2. Store Group Card (.checkout-shop-outer) */
.daraz-cart-shop-card {
  background-color: #FFFFFF;
  border: 1px solid #EFF0F5;
  border-radius: 2px;
  overflow: hidden;
}

.daraz-cart-shop-header {
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #EFF0F5;
  background-color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 500;
  color: #212121;
}

@media (min-width: 640px) {
  .daraz-cart-shop-header {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* 3. Cart Checkbox (16px x 16px exact) */
.daraz-cart-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #F57224;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 2px;
}

/* 4. Cart Product Row (.cart-item) */
.daraz-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  min-height: 108px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #EFF0F5;
  transition: background-color 0.15s ease;
}

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

.daraz-cart-item.is-unchecked {
  opacity: 0.6;
  background-color: #FAFAFA;
}

@media (min-width: 640px) {
  .daraz-cart-item {
    gap: 12px;
    padding: 14px 12px;
    min-height: 115.59px;
  }
}

/* 5. Product Thumbnail (68x68px Mobile, 80x80px Desktop) */
.daraz-cart-thumb {
  width: 68px;
  height: 68px;
  border-radius: 2px;
  overflow: hidden;
  background-color: #F9F9F9;
  border: 1px solid #EFF0F5;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 640px) {
  .daraz-cart-thumb {
    width: 80px;
    height: 80px;
  }
}

.daraz-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 6. Cart Item Main Content Wrapper */
.daraz-cart-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 768px) {
  .daraz-cart-main.is-wide-layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
}

.daraz-cart-info {
  flex: 1;
  min-width: 0;
}

.daraz-cart-title {
  font-size: 13px;
  line-height: 17px;
  max-height: 34px;
  font-weight: 400;
  color: #212121;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

@media (min-width: 640px) {
  .daraz-cart-title {
    font-size: 14px;
    line-height: 16px;
    max-height: 32px;
  }
}

.daraz-cart-title:hover {
  color: #F57224;
}

.daraz-cart-promoted-badge {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 5px;
  background: linear-gradient(90deg, #4A00E0 0%, #8E2DE2 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.daraz-cart-sku {
  font-size: 11.5px;
  line-height: 15px;
  color: #757575;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

@media (min-width: 640px) {
  .daraz-cart-sku {
    font-size: 12px;
    line-height: 16px;
    margin-top: 6px;
  }
}

.daraz-cart-weight-select {
  font-size: 11px;
  color: #212121;
  background-color: #FAFAFA;
  border: 1px solid #DADADA;
  border-radius: 2px;
  padding: 1px 6px;
  height: 22px;
  cursor: pointer;
  outline: none;
}

.daraz-cart-weight-select:focus {
  border-color: #F57224;
}

.daraz-cart-best-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  padding: 0 5px;
  background-color: #F57224;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  border-radius: 2px;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

/* 7. Price, Operations (Heart / Trash) & Quantity Stepper Row */
.daraz-cart-controls-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .daraz-cart-main.is-wide-layout .daraz-cart-controls-wrap {
    margin-top: 0;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
  }
}

.daraz-cart-price-ops {
  display: flex;
  flex-direction: column;
  min-width: 95px;
}

@media (min-width: 768px) {
  .daraz-cart-main.is-wide-layout .daraz-cart-price-ops {
    width: 132px;
  }
}

.daraz-cart-current-price {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: #F57224;
}

@media (min-width: 640px) {
  .daraz-cart-current-price {
    font-size: 18px;
    line-height: 26px;
  }
}

.daraz-cart-origin-price {
  font-size: 11px;
  line-height: 15px;
  color: #9E9E9E;
  text-decoration: line-through;
}

@media (min-width: 640px) {
  .daraz-cart-origin-price {
    font-size: 12px;
    line-height: 16px;
  }
}

.daraz-cart-ops {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.daraz-cart-op-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #9E9E9E;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.daraz-cart-op-btn:hover {
  color: #F57224;
}

.daraz-cart-op-btn.is-active {
  color: #D0011B;
}

/* 8. Daraz Exact Quantity Stepper (.cart-item-number-picker: 96x28 Mobile / 108x32 Desktop) */
.daraz-number-picker {
  display: inline-flex;
  align-items: center;
  width: 96px;
  height: 28px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .daraz-number-picker {
    width: 108px;
    height: 32px;
  }
}

.daraz-picker-btn {
  width: 28px;
  height: 28px;
  background-color: #EFF0F5;
  color: #757575;
  border: 1px solid #EFF0F5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

@media (min-width: 640px) {
  .daraz-picker-btn {
    width: 32px;
    height: 32px;
  }
}

.daraz-picker-btn:hover:not(:disabled) {
  background-color: #DADADA;
  color: #212121;
}

.daraz-picker-btn:disabled {
  background-color: #FAFAFA;
  color: #DADADA;
  cursor: not-allowed;
}

.daraz-picker-input {
  width: 40px;
  height: 28px;
  border: 1px solid #EFF0F5;
  background-color: #FFFFFF;
  color: #212121;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

@media (min-width: 640px) {
  .daraz-picker-input {
    width: 44px;
    height: 32px;
    font-size: 14px;
  }
}

.daraz-picker-input:focus {
  border-color: #F57224;
}

/* 9. Daraz Order Summary & Voucher Input (.summary-section) */
.daraz-summary-card {
  background-color: #FFFFFF;
  padding: 14px 12px;
  border: 1px solid #EFF0F5;
  border-radius: 2px;
}

@media (min-width: 640px) {
  .daraz-summary-card {
    padding: 16px 12px;
  }
}

.daraz-summary-title {
  font-size: 16px;
  font-weight: 500;
  color: #212121;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .daraz-summary-title {
    font-size: 18px;
  }
}

.daraz-voucher-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.daraz-voucher-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  font-size: 13.5px;
  color: #212121;
  background-color: #FFFFFF;
  border: 1px solid #DADADA;
  border-radius: 2px;
  outline: none;
}

@media (min-width: 640px) {
  .daraz-voucher-input {
    font-size: 14px;
  }
}

.daraz-voucher-input:focus {
  border-color: #1A9CB7;
}

.daraz-voucher-btn {
  width: 88px;
  height: 38px;
  background-color: #1A9CB7;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

@media (min-width: 640px) {
  .daraz-voucher-btn {
    width: 104px;
    height: 40px;
    font-size: 14px;
  }
}

.daraz-voucher-btn:hover {
  background-color: #148299;
}

.daraz-checkout-btn {
  width: 100%;
  height: 40px;
  background-color: #F57224;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}

.daraz-checkout-btn:hover {
  background-color: #D04602;
}

/* ==========================================================================
   DARAZ FULL-SCREEN 2-COLUMN LAYOUT (cart.html -> checkout.html -> payment.html)
   Exact Audited Desktop Dimensions: 788px Left + 12px Gap + 388px Right = 1188px
   ========================================================================== */

.daraz-fullpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

@media (min-width: 1024px) {
  .daraz-fullpage-grid {
    grid-template-columns: minmax(0, 788px) minmax(0, 388px);
    justify-content: space-between;
    gap: 12px;
  }
}

.daraz-fullpage-left,
.daraz-fullpage-right {
  width: 100%;
  min-width: 0;
}
