/* Zayn Shop BD — Pre-Order E-Commerce Styling */
:root {
  --pri: #e11d48;
  --pri-dark: #be123c;
  --pri-light: #ffe4e6;
  --sec: #0f172a;
  --accent: #2563eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --text: #0f172a;
  --text-mut: #64748b;
  --wa: #25d366;
  --wa-dark: #1da851;
}

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

body {
  font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Announcement Top Bar */
.top-bar {
  background: var(--sec);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Header */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .site-logo {
    height: 30px;
    max-width: 140px;
  }
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--pri);
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mut);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Bar */
.search-wrap {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 9px 18px 9px 40px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.search-wrap input:focus {
  outline: none;
  background: #fff;
  border-color: var(--pri);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-cart {
  position: relative;
  background: var(--pri-light);
  color: var(--pri);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-header-cart:hover {
  background: #fecdd3;
}

.cart-badge-count {
  background: var(--pri);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #f1f5f9 100%);
  border-bottom: 1px solid var(--line);
  padding: 30px 16px 24px;
  text-align: center;
}

.hero-banner h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--sec);
  margin-bottom: 6px;
}

.hero-banner p {
  color: var(--text-mut);
  font-size: 14px;
  max-width: 650px;
  margin: 0 auto;
}

.trust-pills {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trust-item {
  background: #fff;
  border: 1px solid #fecdd3;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pri-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Main Container */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* Category Filter Pills */
.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.cat-pill {
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mut);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill.active {
  background: var(--sec);
  color: #fff;
  border-color: var(--sec);
}

/* Product Grid - Exactly 3 products per row on desktop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}
@media (max-width: 580px) {
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* Product Card */
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
}

.prod-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #f1f5f9;
  overflow: hidden;
}

.prod-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .prod-img {
  transform: scale(1.05);
}

.badge-preorder {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.badge-discount {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--pri);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}

.prod-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mut);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.prod-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sec);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
}

.prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.price-current {
  font-size: 18px;
  font-weight: 900;
  color: var(--pri);
}

.price-old {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.prod-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-card-cart {
  background: #f1f5f9;
  color: var(--sec);
  border: 1px solid var(--line);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box;
}
.btn-card-cart:hover { background: #e2e8f0; }

.btn-card-buy {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box;
}
.btn-card-buy:hover { background: #1d4ed8; }

/* Quick View Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: #f1f5f9;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

@media (max-width: 640px) {
  .modal-body-grid { grid-template-columns: 1fr; padding: 18px; }
}

.modal-img-wrap img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.modal-info h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--sec);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-mut);
  margin: 14px 0;
  line-height: 1.6;
}

.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  background: #f1f5f9;
  border: none;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.qty-control span, .qty-control input {
  width: 40px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  border: none;
  background: #fff;
}

/* Slide-Out Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 150;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  z-index: 160;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transition: right 0.3s ease-in-out;
}
.cart-drawer.open { right: 0; }

.cart-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.cart-item-img {
  width: 65px; height: 65px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info { flex: 1; }
.cart-item-title { font-size: 13px; font-weight: 700; color: var(--sec); line-height: 1.3; }
.cart-item-price { font-size: 13px; font-weight: 800; color: var(--pri); margin: 4px 0 6px; }
.cart-item-del {
  background: none; border: none;
  color: #94a3b8; cursor: pointer;
  font-size: 14px; padding: 4px;
}
.cart-item-del:hover { color: var(--pri); }

.cart-footer {
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.delivery-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.delivery-option {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delivery-option input { cursor: pointer; }

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-mut);
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 900;
  color: var(--sec);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  margin-bottom: 14px;
}

.btn-checkout {
  width: 100%;
  background: var(--pri);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-checkout:hover { background: var(--pri-dark); }

/* Form Modal */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--sec);
  margin-bottom: 5px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--pri);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  z-index: 200;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
footer.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 16px 30px;
  font-size: 13px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; }
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 800;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}
