/* ============================================================
   HaatBari - MAIN STYLESHEET
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --pink: #7c3aed;
  --pink-dark: #5b21b6;
  --pink-light: #ede9fe;
  --green: #10b981;
  --purple: #7c3aed;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --yellow: #fbbf24;
  --text: #1e1b4b;
  --gray: #6b7280;
  --light: #f5f3ff;
  --border: #e5e7eb;
  --accent: #ec4899;
}
body { font-family: 'Poppins', 'Hind Siliguri', sans-serif; color: var(--text); background: #fff; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: linear-gradient(90deg, #5b21b6, #7c3aed); color: #fff; font-size: 12.5px;
  padding: 7px 20px; display: flex; align-items: center; justify-content: space-between;
}
.top-bar-left { display: flex; align-items: center; gap: 18px; }
.top-bar-left a { color: #fff; display: flex; align-items: center; gap: 5px; }
.top-bar-left a:hover { opacity: 0.85; }
.top-bar-right { display: flex; align-items: center; gap: 18px; }
.top-bar-right a { color: #fff; display: flex; align-items: center; gap: 5px; font-size: 12.5px; }
.social-icons { display: flex; align-items: center; gap: 8px; }
.social-icons a { color: #fff; font-size: 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff; padding: 12px 30px;
  display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.logo { font-size: 32px; font-weight: 800; color: var(--pink); font-family: 'Poppins', sans-serif; letter-spacing: -1px; white-space: nowrap; flex-shrink: 0; }
.search-bar { flex: 1; display: flex; border: 2px solid #eee; border-radius: 25px; overflow: hidden; max-width: 560px; margin: 0 auto; }
.search-bar input { flex: 1; padding: 10px 18px; font-size: 14px; border: none; outline: none; color: #555; }
.search-bar button { background: var(--pink); color: #fff; border: none; padding: 10px 20px; cursor: pointer; font-size: 16px; }
.header-right{
  display:flex;
  align-items:center;
  gap:25px;
}

.header-offer{
  width:120px;
  height:auto;
  border-radius:10px;
  display:block;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 40px;
  background:#fff;
}

.search-bar{
  flex:1;
  max-width:580px;
  margin:0 40px;
}

.search-bar input{
  width:100%;
  height:48px;
  border:1px solid #ddd;
  border-radius:30px;
  padding:0 20px;
  font-size:15px;
}

.search-bar button{
  right:16px;
}
.deals-btn { color: var(--pink); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.deals-btn i { color: var(--orange); }
.icon-btn { position: relative; display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; color: #333; }
.icon-btn i { font-size: 22px; color: #555; }
.badge { position: absolute; top: -6px; right: -8px; background: var(--pink); color: #fff; border-radius: 50%; width: 17px; height: 17px; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: #fff; border-bottom: 2px solid #f0f0f0;
  padding: 0 30px; display: flex; align-items: center; overflow-x: auto;
}
.navbar::-webkit-scrollbar { display: none; }
.nav-item { padding: 12px 14px; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; color: #333; border-bottom: 3px solid transparent; transition: all 0.2s; }
.nav-item:hover, .nav-item.active { color: var(--pink); border-bottom-color: var(--pink); }
.nav-badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; margin-left: 3px; }
.nav-badge.green { background: var(--green); color: #fff; }
.nav-badge.purple { background: var(--purple); color: #fff; }
.nav-badge.blue { background: var(--blue); color: #fff; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero{
  position: relative;
  overflow: hidden;
  background: #fce4ef;
  min-height: 539px;
  width: 100%;
}

.hero-slide{
  display: none;
  width: 100%;
  height: 539px;
}

.hero-slide.active{
  display: block;
}

.hero-slide img{
  width: 100%;
  height: 539px;
  object-fit: cover;
  display: block;
}

.slide-placeholder{
  width: 100%;
  height: 539px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 18px; cursor: pointer;
  z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; border: 2px solid rgba(233,30,140,0.5); }
.slider-dot.active { background: var(--pink); border-color: var(--pink); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 28px 30px; }
.section > *:not(.section-title) { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 22px; color: #222; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-header .section-title { margin-bottom: 0; }
.see-all { color: var(--pink); font-weight: 600; font-size: 13px; cursor: pointer; }
.see-all:hover { text-decoration: underline; }

/* ============================================================
   MEGA DEALS GRID
   ============================================================ */
.mega-deals-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 280px)); gap: 14px; justify-content: center; max-width: 1280px; margin: 0 auto; }

.deal-card-img{
  width: 283px;
  height: 283px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #f5f5f5;
  flex-shrink: 0;
}

.deal-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* QUICK NAV */
.quick-nav{
    display:flex;
    gap:20px; /* spacing between 4 items */
    margin:25px 0;
    flex-wrap:wrap;
}

.qnav-card{
    flex:1;
    display:block;
    border-radius:14px;
    overflow:hidden;
}

.qnav-card img{
    width:100%;
    display:block;
    border-radius:14px;
}
.qnav-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.qnav-1 { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.qnav-2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.qnav-3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.qnav-4 { background: linear-gradient(135deg, #ec4899, #db2777); }

/* ============================================================
   APP BANNER
   ============================================================ */
.app-banner-wrap{
  margin: 0 auto 20px;
  border-radius: 14px;
  overflow: hidden;
  width: 1200px;
  height: 150px;
  background: linear-gradient(135deg,#4c1d95,#7c3aed);
  cursor: pointer;
  max-width: 100%;
}

.app-banner-wrap img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.app-banner-fallback{
    width:100%;
    max-width:1200px;
    height:150px;
    margin:25px auto;
    border-radius:16px;
    overflow:hidden;
}

.app-banner-fallback img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.app-banner-fallback .abl h2 { font-size: 20px; font-weight: 800; line-height: 1.3; color: #fff; }
.app-banner-fallback .abr { text-align: right; color: #fff; }
.app-banner-fallback .abr h2 { font-size: 20px; font-weight: 800; }
.store-btns { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.store-btn { background: #fff; color: #222; padding: 6px 12px; border-radius: 7px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; cursor: pointer; }

/* ============================================================
   COMBO BANNER
   ============================================================ */
.combo-banner{
    width:100%;
    max-width:1200px;
    height:303px;
    margin:30px auto;
    border-radius:18px;
    overflow:hidden;
}

.combo-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.combo-text{
  font-size: 72px;
  font-weight: 900;
  color: #1565c0;
  line-height: 1;
}

.combo-products{
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.combo-img-wrap { overflow: hidden; border-radius: 12px; }
.combo-img-wrap img { height: 160px; object-fit: contain; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; max-width: 1280px; margin: 0 auto; }
.products-scroll::-webkit-scrollbar { height: 4px; }
.products-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* INFINITE RANKING SLIDER */
.ranking-slider-wrap {
  overflow: hidden; max-width: 1280px; margin: 0 auto;
  -webkit-mask: linear-gradient(90deg, transparent, #fff 5%, #fff 95%, transparent);
  mask: linear-gradient(90deg, transparent, #fff 5%, #fff 95%, transparent);
}
.ranking-track {
  display: flex; gap: 14px;
  animation: rankingScroll 35s linear infinite;
  width: max-content;
}
.ranking-track:hover { animation-play-state: paused; }
@keyframes rankingScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* DUAL BANNERS */
.dual-banners-wrap{
    display:flex;
    gap:20px;
    max-width:1220px;
    margin:30px auto;
}

.dual-banner{
    width:600px;
    height:260px;
    border-radius:18px;
    overflow:hidden;
    flex-shrink:0;
    display:block;
}

.dual-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.dual-banner-fallback {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 36px; min-height: 200px; position: relative;
}
.dual-banner-tag { font-size: 13px; font-weight: 600; color: #a5d6a7; margin-bottom: 8px; }
.dual-banner-title { font-size: 28px; font-weight: 900; color: #1b5e20; line-height: 1.2; margin-bottom: 20px; font-family: 'Hind Siliguri', sans-serif; }
.dual-banner-btn {
  display: inline-block; background: #43a047; color: #fff;
  padding: 8px 22px; border-radius: 20px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.dual-banner-btn:hover { background: #2e7d32; }
.dual-banner-icon { flex-shrink: 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 230px);
  gap: 14px;
  justify-content: center;
  align-items: start;
}

.product-card {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 12px 12px 42px; position: relative; cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden; text-decoration: none; color: inherit;
  width: 230px; box-sizing: border-box;
}
.products-scroll .product-card { min-width: 230px; max-width: 230px; width: 230px; flex-shrink: 0; }
.product-card:hover { box-shadow: 0 8px 24px rgba(124,58,237,0.15); transform: translateY(-3px); border-color: #c4b5fd; }
.product-rank { position: absolute; top: 8px; right: 8px; background: var(--pink); color: #fff; border-radius: 50%; width: 26px; height: 26px; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.product-off { position: absolute; top: 8px; left: 8px; background: var(--green); color: #fff; border-radius: 6px; font-size: 10px; font-weight: 700; padding: 2px 5px; }
.product-wish { position: absolute; top: 8px; right: 8px; color: var(--pink); font-size: 16px; cursor: pointer; }
.product-img { width: 100%; height: 185px; object-fit: contain; border-radius: 6px; background: #f9f9f9; }
.product-img-placeholder { width: 100%; height: 185px; border-radius: 8px; background: linear-gradient(135deg, #f0f0f0, #e0e0e0); display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 30px; }
.product-name { font-size: 12px; margin-top: 8px; color: #333; line-height: 1.4; min-height: 34px; text-align: center; width: 100%; }
.product-price { margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.price-old { font-size: 11px; color: #999; text-decoration: line-through; }
.price-new { font-size: 15px; font-weight: 700; color: var(--pink); }
.price-currency { font-size: 11px; }
.product-rating { display: flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 11px; color: #fbbf24; justify-content: center; }
.product-rating span { color: #999; margin-left: 2px; font-size: 11px; }
.product-meta { display: flex; gap: 5px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; justify-content: center; }
.stock-badge { background: #ede9fe; color: #5b21b6; font-size: 9.5px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.stock-badge.out-of-stock { background: #fef2f2; color: #b91c1c; }
.earn-badge { background: #d1fae5; color: #065f46; font-size: 9.5px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.out-badge { background: #f5f5f5; color: #999; font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 600; display: block; margin-top: 6px; text-align: center; }

/* ADD TO CART HOVER BUTTON */
.add-cart-hover {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff; border: none; padding: 9px 0; font-size: 12px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transform: translateY(100%); transition: transform 0.25s ease;
  letter-spacing: 0.3px;
}
.add-cart-hover i { font-size: 13px; }
.product-card:hover .add-cart-hover { transform: translateY(0); }
.add-cart-hover:hover { background: linear-gradient(135deg, #6d28d9, #4c1d95); }
.buy-now-btn { display: none; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { padding: 12px 30px; font-size: 13px; color: #999; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--pink); }
.breadcrumb span { color: #bbb; }

/* ============================================================
   SHOP / CATEGORY PAGE
   ============================================================ */
.shop-layout { display: flex; gap: 24px; padding: 20px 30px 40px; }
.shop-sidebar { width: 230px; flex-shrink: 0; }
.sidebar-widget { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.sidebar-widget h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: #222; border-bottom: 2px solid var(--pink); padding-bottom: 8px; }
.filter-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; cursor: pointer; }
.filter-item input[type="checkbox"] { accent-color: var(--pink); width: 14px; height: 14px; }
.filter-item:hover { color: var(--pink); }
.price-range { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.price-range input { width: 70px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.price-range-btn { background: var(--pink); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.shop-main { flex: 1; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 10px 14px; background: var(--light); border-radius: 8px; }
.shop-toolbar-left { font-size: 13px; color: #666; }
.shop-toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; outline: none; cursor: pointer; }
.grid-toggle { display: flex; gap: 6px; }
.grid-btn { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; color: #666; }
.grid-btn.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.shop-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.page-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; font-weight: 600; }
.page-btn.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.page-btn:hover:not(.active) { border-color: var(--pink); color: var(--pink); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { padding: 20px 30px 40px; display: flex; gap: 30px; }
.product-gallery { width: 400px; flex-shrink: 0; }
.gallery-main { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; height: 360px; display: flex; align-items: center; justify-content: center; background: #fafafa; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumb { width: 68px; height: 68px; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #fafafa; }
.gallery-thumb.active { border-color: var(--pink); }
.gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info { flex: 1; }
.product-info h1 { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 10px; line-height: 1.4; }
.product-info .rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.rating-stars { color: #ffc107; }
.rating-count { color: #999; }
.product-info .price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.price-row .price-new { font-size: 28px; }
.price-row .price-old { font-size: 16px; }
.off-badge { background: var(--green); color: #fff; border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.earn-info { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; background: var(--light); padding: 8px 14px; border-radius: 8px; margin-bottom: 14px; }
.earn-info i { color: var(--orange); }
.app-discount-note { background: var(--pink-light); border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--pink); margin-bottom: 18px; }
.product-meta-table { margin-bottom: 20px; }
.product-meta-table tr td { padding: 5px 0; font-size: 13px; color: #555; }
.product-meta-table tr td:first-child { color: #999; font-weight: 600; width: 100px; }
.product-meta-table a { color: var(--pink); }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-ctrl button { background: #fff; border: none; width: 34px; height: 34px; font-size: 16px; cursor: pointer; color: var(--pink); font-weight: 700; }
.qty-ctrl span { padding: 0 14px; font-size: 15px; font-weight: 600; }
.add-to-cart-btn { background: var(--pink); color: #fff; border: none; padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.add-to-cart-btn:hover { background: var(--pink-dark); }
.wishlist-btn { background: #fff; border: 1px solid var(--pink); color: var(--pink); padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.share-row span { font-size: 13px; color: #666; }
.share-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; cursor: pointer; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-msg { background: #0084ff; }
.share-ig { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.share-tw { background: #1da1f2; }
.product-tabs { margin: 0 30px 30px; }
.tab-btns { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 10px 20px; font-size: 13px; font-weight: 600; cursor: pointer; color: #666; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--pink); border-bottom-color: var(--pink); }
.tab-content { display: none; font-size: 14px; color: #555; line-height: 1.7; }
.tab-content.active { display: block; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout { display: flex; gap: 24px; padding: 20px 30px 50px; }
.cart-main { flex: 1; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px 10px; font-size: 13px; color: #777; font-weight: 600; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img, .cart-product .cart-img-ph { width: 65px; height: 65px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: #fafafa; font-size: 22px; color: #ccc; }
.cart-product-name { font-size: 13px; font-weight: 600; color: #333; max-width: 260px; }
.cart-remove { color: #ccc; cursor: pointer; font-size: 18px; }
.cart-remove:hover { color: var(--pink); }
.qty-ctrl-sm { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-ctrl-sm button { background: #fff; border: none; width: 28px; height: 28px; font-size: 14px; cursor: pointer; color: var(--pink); font-weight: 700; }
.qty-ctrl-sm span { padding: 0 10px; font-size: 14px; font-weight: 600; }
.cart-price { font-size: 15px; font-weight: 700; color: var(--pink); }
.cart-sidebar { width: 280px; flex-shrink: 0; }
.order-summary { border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.order-summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.summary-row.total { font-weight: 700; font-size: 15px; color: var(--pink); border-bottom: none; margin-top: 4px; }
.checkout-btn { display: block; width: 100%; background: var(--pink); color: #fff; border: none; padding: 13px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 16px; text-align: center; }
.checkout-btn:hover { background: var(--pink-dark); }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-layout { display: flex; gap: 24px; padding: 20px 30px 50px; }
.checkout-form { flex: 1; }
.form-section { border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.form-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: #222; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12px; font-weight: 600; color: #555; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 13px; outline: none; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--pink); }
.form-group textarea { resize: vertical; min-height: 80px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.payment-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 0.2s; }
.payment-option.selected { border-color: var(--pink); background: var(--pink-light); }
.payment-option input[type="radio"] { accent-color: var(--pink); }
.payment-option label { font-size: 13px; font-weight: 600; cursor: pointer; }
.place-order-btn { display: block; width: 100%; background: var(--pink); color: #fff; border: none; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.place-order-btn:hover { background: var(--pink-dark); }
.checkout-sidebar { width: 300px; flex-shrink: 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout { display: flex; gap: 30px; padding: 30px 30px 50px; }
.contact-info { width: 300px; flex-shrink: 0; }
.contact-card { border-radius: 12px; padding: 22px; margin-bottom: 16px; display: flex; gap: 14px; align-items: flex-start; }
.contact-card.pink-bg { background: var(--pink-light); }
.contact-card.blue-bg { background: #e3f2fd; }
.contact-card.green-bg { background: #e8f5e9; }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.contact-icon.pink { background: var(--pink); }
.contact-icon.blue { background: var(--blue); }
.contact-icon.green { background: var(--green); }
.contact-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.contact-card p { font-size: 13px; color: #666; line-height: 1.6; }
.contact-form-wrap { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.contact-form-wrap h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #222; }
.contact-map { border-radius: 12px; overflow: hidden; margin-top: 16px; border: 1px solid var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #f3f4f6; border-top: 1px solid #e5e7eb;
  padding: 40px 30px 0; margin-top: 30px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.6fr 1fr 1.4fr; gap: 36px; margin-bottom: 30px; }
.footer-logo { font-size: 30px; font-weight: 800; color: var(--pink); margin-bottom: 14px; font-family: 'Poppins', sans-serif; }
.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.fb { background: #1877f2; }
.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.yt { background: #ff0000; }
.footer h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; color: #111; text-transform: uppercase; letter-spacing: 0.5px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; font-size: 13px; color: #555; cursor: pointer; }
.footer ul li:hover { color: var(--pink); }
.footer-contact p { font-size: 13px; color: #555; display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.footer-contact i { color: var(--pink); margin-top: 2px; min-width: 14px; flex-shrink: 0; }
.ecab-wrap { margin-top: 4px; }
.ecab-logo { font-size: 38px; font-weight: 900; color: var(--pink); font-style: italic; line-height: 1; }
.app-dl-btns { display: flex; gap: 8px; margin-top: 4px; flex-direction: column; }
.app-dl-btn { background: var(--pink); color: #fff; border-radius: 8px; padding: 7px 14px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; width: fit-content; }
.app-dl-btn:hover { background: var(--pink-dark); }
.footer-bottom { border-top: 1px solid #e5e7eb; padding: 16px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.payment-icons { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pay-icon { border-radius: 5px; padding: 4px 8px; font-size: 10px; font-weight: 700; }
.pay-label { font-size: 12px; font-weight: 700; color: #444; white-space: nowrap; }
.footer-copy { font-size: 12px; color: #777; text-align: center; padding: 14px 0; border-top: 1px solid #e5e7eb; }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.cart-fab {
  position: fixed; right: 20px; bottom: 140px; background: var(--pink);
  color: #fff; border-radius: 14px; width: 52px; height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; box-shadow: 0 4px 16px rgba(233,30,140,0.4); z-index: 999;
}
.cart-fab .fab-count { font-size: 10px; font-weight: 700; margin-top: 1px; }
.chat-fab {
  position: fixed; bottom: 80px; right: 20px; background: var(--pink);
  color: #fff; border-radius: 50%; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(233,30,140,0.4); z-index: 999;
}
.we-are-here {
  position: fixed; right: -38px; bottom: 210px; background: var(--green);
  color: #fff; font-size: 12px; font-weight: 700; padding: 8px 12px;
  border-radius: 8px; transform: rotate(-90deg); z-index: 998; letter-spacing: 0.5px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-pink { color: var(--pink); }
.text-green { color: var(--green); }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: #bbb; }
.empty-state i { font-size: 52px; margin-bottom: 14px; display: block; }
.empty-state p { font-size: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1380px) {
  .products-grid { grid-template-columns: repeat(5, 230px); }
  .shop-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(4, 230px); }
}
@media (max-width: 900px) {
  .mega-deals-grid { grid-template-columns: repeat(2, minmax(0, 280px)); }
  .quick-nav { grid-template-columns: repeat(2, minmax(0, 280px)); }
  .products-grid { grid-template-columns: repeat(3, 230px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header { padding: 10px 14px; }
  .product-detail { flex-direction: column; }
  .product-gallery { width: 100%; }
  .cart-layout, .checkout-layout, .contact-layout { flex-direction: column; }
  .cart-sidebar, .checkout-sidebar, .contact-info { width: 100%; }
  .shop-layout { flex-direction: column; }
  .shop-sidebar { width: 100%; }
  .shop-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .top-bar { flex-direction: column; gap: 6px; text-align: center; }
  .header { flex-wrap: wrap; }
  .search-bar { order: 3; flex-basis: 100%; }
  .mega-deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .combo-text { font-size: 36px; }
  .section { padding: 20px 14px; }
  .shop-layout { padding: 10px 14px; }
  .product-detail { padding: 10px 14px 30px; }
  .cart-layout, .checkout-layout { padding: 10px 14px 30px; }
  .contact-layout { padding: 10px 14px 30px; }
  /* .app-banner-wrap, .combo-banner { width: calc(100% - 28px); } */
}
@media (max-width: 1220px){
  .app-banner-wrap,
  .combo-banner{
    width: calc(100% - 28px);
  }
}

@media (max-width: 768px){

  .hero{
    min-height: auto;
  }

  .hero-slide,
  .hero-slide img,
  .slide-placeholder{
    height: auto;
  }

}

/* ── PRODUCT CARD EXTRAS (products.js) ────────────────────── */
.product-img-wrap { position: relative; overflow: hidden; border-radius: 8px; background: #f9f9f9; }
.product-img-wrap img { width: 100%; height: 185px; object-fit: contain; display: block; }
.product-img-fallback { width: 100%; height: 185px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; background: linear-gradient(135deg,#f0f0f0,#e0e0e0); color: #bbb; font-size: 28px; border-radius: 8px; }
.product-brand { font-size: 10px; font-weight: 700; color: var(--pink, #e91e8c); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 8px; text-align: center; }
.product-actions { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.product-card:hover .product-actions { opacity: 1; }
.action-btn { background: #fff; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #555; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.action-btn:hover { color: var(--pink, #e91e8c); }
.stock-badge { font-size: 10px; color: #888; margin-top: 4px; text-align: center; }
.price-new { font-size: 15px; font-weight: 700; color: var(--pink, #e91e8c); }
.price-old { font-size: 12px; color: #aaa; text-decoration: line-through; }