/* =========================================================
   BALOCH MART - Dark & Green Luxury Theme
   ========================================================= */
:root {
  --bg: #0a0a0a;          /* midnight black */
  --card: #161616;        /* dark grey card */
  --card-2: #1e1e1e;
  --gold: #0aa37f;
  --gold-light: #3fd9b0;
  --text: #f2f2f2;
  --muted: #a1a1a1;
  --border: #2a2a2a;
  --radius: 16px;
  --glow: 0 0 20px rgba(10, 163, 127, .45);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.container { width: min(1200px, 92%); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; letter-spacing: .3px;
  transition: all .35s var(--ease);
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #000; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: var(--glow), 0 8px 25px rgba(10,163,127,.35); }
.btn-outline { border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #000; box-shadow: var(--glow); transform: translateY(-3px); }
.btn-block { width: 100%; text-align: center; }
.icon-btn { font-size: 1.3rem; color: var(--text); transition: color .3s; }
.icon-btn:hover { color: var(--gold); }

/* ---------- Header ---------- */
html { scroll-padding-top: 90px; }
.announce { background: linear-gradient(90deg, var(--gold), var(--gold-light)); color: #04120d; text-align: center;
  font-weight: 600; font-size: .88rem; padding: 8px 12px; }
.announce a { text-decoration: underline; font-weight: 700; }
/* announcement + search + menu fold away when the page is scrolled */
.collapsible { max-height: 240px; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.header.scrolled .collapsible { max-height: 0; opacity: 0; }
.header-lower .container { padding-bottom: 10px; }
.search-bar {
  display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); transition: border-color .3s, box-shadow .3s;
}
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(10,163,127,.2); }
.search-bar > i { color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font: inherit; font-size: 1rem; padding: 8px 0; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar button {
  width: 44px; height: 38px; border-radius: 10px; color: #04120d;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); transition: box-shadow .3s, transform .3s;
}
.search-bar button:hover { box-shadow: var(--glow); transform: scale(1.05); }
.main-nav { display: flex; justify-content: space-between; margin-top: 8px; }
.main-nav a { position: relative; padding: 8px 4px; font-weight: 500; transition: color .3s; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease); }
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }
.icon-action, .cart-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 1.35rem; transition: color .3s, transform .3s; }
.icon-action:hover, .cart-btn:hover { color: var(--gold); transform: scale(1.06); }
.icon-action.active { color: var(--gold); }
.icon-wrap { position: relative; display: inline-block; line-height: 1; }
.cart-label { font-size: .72rem; font-weight: 500; color: var(--muted); }
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10,10,10,.75); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: all .3s;
}
.header.scrolled { border-color: var(--border); background: rgba(10,10,10,.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 1.6rem; letter-spacing: 1px; color: var(--gold);
  transition: all .35s var(--ease); }
.brand span { display: inline-block; transition: inherit; }
.brand:hover { color: var(--gold-light); transform: translateY(-2px) scale(1.06);
  letter-spacing: 2px; text-shadow: 0 0 14px rgba(10,163,127,.7), 0 0 30px rgba(10,163,127,.4); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.cart-btn { position: relative; font-size: 1.4rem; transition: color .3s, transform .3s; }
.cart-btn:hover { color: var(--gold); transform: scale(1.1); }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--gold); color: #000; font-size: .72rem; font-weight: 700;
  border-radius: 50px; display: grid; place-items: center;
}
#cartCount.bump { display: inline-block; animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.5); } }

.logo { height: 56px; width: auto; }

/* Shine sweep that only runs over the logo letters (masked by the logo itself) */
.logo-shine { position: relative; display: inline-block; line-height: 0; }
.logo-shine img { display: block; }
.logo-shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-mask: url(logo-green.png) center / contain no-repeat;
          mask: url(logo-green.png) center / contain no-repeat;
  animation: logoShine 3.6s ease-in-out infinite;
}
@keyframes logoShine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }

/* ---------- Features / Why Us ---------- */
.features { padding: 60px 0; border-block: 1px solid var(--border); background: #0e0e0e; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 10px; }
.feature i { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; font-weight: 600; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ---------- Products ---------- */
.products { padding: 260px 0 100px; }
.section-title { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--gold); }
.section-sub { text-align: center; color: var(--muted); margin: 8px 0 56px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; perspective: 1200px; }
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transform-style: preserve-3d;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.product-card:hover {
  transform: translateY(-12px) rotateX(3deg);
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(10,163,127,.35), 0 20px 40px rgba(0,0,0,.6);
}
.product-img { position: relative; height: 260px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.12); }
.product-info { padding: 22px; }
.product-info h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.product-info .desc { color: var(--muted); font-size: .9rem; min-height: 44px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.add-btn {
  padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: .9rem;
  border: 1.5px solid var(--gold); color: var(--gold); transition: all .3s var(--ease);
}
.add-btn:hover { background: var(--gold); color: #000; box-shadow: var(--glow); }

/* ---------- Category chips + wishlist heart ---------- */
.products .section-sub { margin-bottom: 24px; }
.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: 8px 18px; border-radius: 50px; font-size: .9rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); transition: all .3s var(--ease);
}
.chip:hover, .chip.active { border-color: var(--gold); color: var(--gold); }
.chip.active { background: rgba(10,163,127,.14); }
.no-results { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px 0; }
.wish-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(10,10,10,.65); backdrop-filter: blur(4px);
  transition: all .3s var(--ease);
}
.wish-btn:hover { transform: scale(1.12); color: var(--gold-light); }
.wish-btn.on { color: var(--gold-light); }

/* ---------- Cart sidebar ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: all .4s; z-index: 200;
}
.overlay.show { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--card); border-left: 1px solid var(--gold); z-index: 300;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.cart-sidebar.open { transform: translateX(0); box-shadow: -10px 0 40px rgba(10,163,127,.15); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.cart-head h3 { color: var(--gold); font-size: 1.4rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: var(--muted); margin-top: 80px; }
.cart-empty i { font-size: 3rem; color: var(--border); margin-bottom: 14px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.ci-info { flex: 1; }
.ci-info h4 { font-size: .98rem; font-weight: 500; }
.ci-info .ci-price { color: var(--gold); font-weight: 600; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border);
  transition: all .25s;
}
.qty button:hover { border-color: var(--gold); color: var(--gold); }
.remove-btn { color: var(--muted); align-self: flex-start; transition: color .3s; }
.remove-btn:hover { color: #ff5d5d; }
.cart-foot { padding: 22px 24px; border-top: 1px solid var(--border); background: var(--card-2); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 16px; }
.cart-total strong { color: var(--gold); font-size: 1.4rem; }

/* ---------- Checkout modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 400; display: flex; padding: 16px;
  overflow-y: auto; background: rgba(0,0,0,.8); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: all .35s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-box {
  position: relative; width: min(480px, 100%); margin: auto; background: var(--card);
  border: 1px solid var(--gold); border-radius: 20px; padding: 36px 30px;
  box-shadow: 0 0 40px rgba(10,163,127,.2);
  transform: translateY(40px) scale(.95); transition: transform .4s var(--ease);
}
.modal.show .modal-box { transform: none; }
.modal-box h3 { color: var(--gold); font-size: 1.6rem; }
.modal-close { position: absolute; top: 16px; right: 18px; }
.modal-total { color: var(--muted); margin: 4px 0 20px; }
.modal-total strong { color: var(--text); }
.modal-box label { display: block; font-size: .9rem; margin: 14px 0 6px; color: var(--muted); }
.modal-box input, .modal-box textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); transition: all .3s; resize: vertical;
}
.modal-box input:focus, .modal-box textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(10,163,127,.2); }
.modal-box .btn { margin-top: 24px; }
.btn:disabled { opacity: .6; pointer-events: none; }

/* ---------- Payment method ---------- */
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.modal-box label.pay-option { position: relative; display: block; margin: 0; cursor: pointer; color: var(--text); }
.pay-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-option span {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border); font-size: .95rem;
  transition: all .3s var(--ease);
}
.pay-option span i { color: var(--gold); width: 20px; text-align: center; }
.pay-option span:hover { border-color: var(--gold); }
.pay-option input:checked + span { border-color: var(--gold); background: rgba(10,163,127,.14); box-shadow: 0 0 0 3px rgba(10,163,127,.2); }
.pay-option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pay-info {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: .88rem; line-height: 1.7; color: var(--muted);
  border: 1px dashed var(--gold); background: rgba(10,163,127,.06); animation: slideIn .35s var(--ease);
}
.pay-info strong { color: var(--text); }

/* ---------- Order success panel ---------- */
.order-success { display: none; text-align: center; }
.modal-box.done form, .modal-box.done .modal-title, .modal-box.done .modal-total { display: none; }
.modal-box.done .order-success { display: block; animation: slideIn .5s var(--ease); }
.success-icon { font-size: 4rem; color: var(--gold); animation: bump .6s; }
.order-success h3 { margin: 6px 0; }
.order-success p { color: var(--muted); margin-bottom: 6px; }
.order-success .btn { margin-top: 14px; }

/* ---------- Info modal ---------- */
.info-body { margin-top: 14px; max-height: 60vh; overflow-y: auto; color: var(--muted); line-height: 1.7; }
.info-body p { margin-bottom: 12px; }
.info-body strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer { background: #070707; border-top: 1px solid var(--border); padding-top: 70px; }
/* 2 x 2 layout: brand | quick links  /  support | contact */
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; padding-bottom: 50px; }
.f-brand { font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 4px !important; }
.f-tag { font-weight: 600; margin-bottom: 8px; }
.footer-about { color: var(--muted); margin: 14px 0 20px; max-width: 300px; }
.footer h4 { color: var(--gold); margin-bottom: 18px; font-size: 1.1rem; }
.footer li { margin-bottom: 10px; color: var(--muted); }
.footer li a { transition: color .3s, padding .3s; }
.footer li a:hover { color: var(--gold); padding-left: 6px; }
.contact-list i { color: var(--gold); width: 24px; }
.contact-list li, .footer li { overflow-wrap: anywhere; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); transition: all .3s;
}
.socials a:hover { background: var(--gold); color: #000; box-shadow: var(--glow); transform: translateY(-4px); }
.copyright { text-align: center; padding: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.5); animation: ring 2.5s infinite;
  transition: transform .3s;
}
.whatsapp-float:hover { transform: scale(1.12); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70%,100% { box-shadow: 0 0 0 20px rgba(37,211,102,0); } }
.whatsapp-float .tooltip {
  position: absolute; right: 74px; white-space: nowrap; background: var(--card); color: var(--text);
  border: 1px solid var(--gold); padding: 8px 14px; border-radius: 8px; font-size: .85rem;
  opacity: 0; visibility: hidden; transform: translateX(10px); transition: all .3s;
}
.whatsapp-float:hover .tooltip { opacity: 1; visibility: visible; transform: none; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 90px; right: 20px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; max-width: 340px; padding: 14px 20px;
  background: var(--card); border: 1px solid var(--gold); border-left: 5px solid var(--gold);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  animation: toastIn .45s var(--ease), toastOut .4s 3.6s forwards;
}
.toast i { color: var(--gold); font-size: 1.2rem; }
.toast.error { border-color: #ff5d5d; } .toast.error i { color: #ff5d5d; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .brand { font-size: 1.2rem; }
  .header-inner { height: 62px; }
  .header-actions { gap: 16px; }
  .announce { font-size: .78rem; padding: 7px 8px; }
  .main-nav a { font-size: .88rem; }
  .wish-btn { width: 32px; height: 32px; top: 8px; right: 8px; font-size: .85rem; }
  .whatsapp-float .tooltip { display: none; }
}
@media (max-width: 480px) {
  .logo { height: 44px; }
}
/* ---------- Mobile: compact 2-column product grid ---------- */
@media (max-width: 600px) {
  .products { padding: 235px 0 70px; }
  .features { padding: 44px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .feature h3 { font-size: 1rem; }
  .feature p { font-size: .85rem; }
  .section-sub { margin-bottom: 36px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img { height: 150px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: .95rem; line-height: 1.3; }
  .product-info .desc {
    font-size: .78rem; min-height: 0; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .product-bottom { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
  .price { font-size: 1.05rem; }
  .add-btn { width: 100%; padding: 9px 0; text-align: center; font-size: .85rem; }
}
/* Touch screens: no sticky hover tilt/zoom after tapping */
@media (hover: none) {
  .product-card:hover { transform: none; }
  .product-card:hover .product-img img { transform: none; }
}

@media (max-width: 600px) {
  .footer { padding-top: 50px; }
  .footer-grid { gap: 32px 18px; }
  .footer h4 { font-size: .95rem; margin-bottom: 12px; }
  .f-brand { font-size: 1.15rem; letter-spacing: 1px; }
  .footer li { font-size: .85rem; margin-bottom: 8px; }
  .footer-about { font-size: .85rem; }
  .socials a { width: 36px; height: 36px; }
  .contact-list i { width: 18px; }
  .contact-list li { display: flex; align-items: flex-start; gap: 6px; font-size: .76rem; overflow-wrap: break-word; min-width: 0; }
  .contact-list li a { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
