/* ekart.pk – storefront styles (layout inspired by the "Ecommerce Solution" theme look:
   black top bar, white header, yellow navigation, bold condensed headings) */
:root {
  --yellow: #ffc400;
  --yellow-dark: #e6ac00;
  --black: #111111;
  --ink: #222222;
  --muted: #666666;
  --line: #e7e7e7;
  --bg-alt: #f7f7f7;
  --blue: #0a4fb5;
  --red: #c62828;
  --green: #1b7f3b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --font-head: "Fjalla One", Impact, "Arial Narrow", sans-serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0; color: var(--black); }
p { margin: 0 0 1em; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: #000; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border: 2px solid transparent; border-radius: 30px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.3px;
  text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--black); color: var(--yellow); border-color: var(--yellow); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #fff; color: var(--black); }
.btn-lg { padding: 14px 34px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: #fff; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar-msg { margin: 0; }
.topbar-links { display: flex; }
.topbar-links li + li { border-left: 1px solid #444; }
.topbar-links a { display: block; padding: 2px 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.topbar-links a:hover { color: var(--yellow); }

/* ---------- Header ---------- */
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--black); }
.logo-text { font-family: var(--font-head); font-size: 34px; line-height: 1; color: var(--black); }
.logo-text span { color: var(--yellow-dark); }
.header-usp { display: flex; gap: 34px; }
.header-usp li { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.header-usp svg { color: var(--yellow-dark); flex: none; }
.header-usp strong { display: block; font-size: 14px; color: var(--black); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border: 2px solid var(--black); border-radius: 30px; font-weight: 600; }
.cart-btn:hover { background: var(--yellow); }
.cart-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--black); color: var(--yellow); font-size: 12px; }

/* ---------- Navigation ---------- */
.main-nav { background: var(--yellow); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.nav-menu { display: flex; flex-wrap: wrap; }
.nav-menu a { display: block; padding: 15px 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--black); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--black); color: var(--yellow); }
.nav-cta { background: var(--black); color: #fff; padding: 9px 20px; border-radius: 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.nav-cta:hover { color: var(--yellow); }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 12px 0; font-weight: 600; text-transform: uppercase; cursor: pointer; color: var(--black); }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--black); position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; background: var(--slide-bg); color: #fff; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; min-height: 480px; padding-top: 36px; padding-bottom: 56px; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 16px; border-radius: 20px; background: rgba(255,255,255,.18); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.slide h1, .slide h2 { font-size: clamp(32px, 5vw, 58px); color: #fff; margin-bottom: 16px; }
.slide em { font-style: normal; color: var(--yellow); }
.slide-sub { font-size: 17px; max-width: 520px; margin-bottom: 26px; }
.slide[data-dark-text] { color: var(--black); }
.slide[data-dark-text] h2 { color: var(--black); }
.slide[data-dark-text] em { color: var(--blue); }
.slide[data-dark-text] .eyebrow { background: rgba(0,0,0,.12); }
.slide-art { display: flex; justify-content: center; }
.slide-art img { height: 420px; width: auto; filter: drop-shadow(0 18px 26px rgba(0,0,0,.35)); }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--black); font-size: 18px; cursor: pointer; z-index: 2; }
.slide-arrow:hover { background: var(--yellow); }
.slide-arrow.prev { left: 14px; } .slide-arrow.next { right: 14px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.slide-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slide-dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); }
.slide-dots button[aria-selected="true"]::before { background: var(--yellow); border-color: var(--black); }

/* ---------- Services strip ---------- */
.services { border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service { display: flex; align-items: center; gap: 14px; padding: 24px 16px; }
.service + .service { border-left: 1px solid var(--line); }
.service svg { color: var(--yellow-dark); flex: none; }
.service h3 { font-size: 18px; }
.service p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); position: relative; padding-bottom: 14px; }
.section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70px; height: 4px; margin-left: -35px; border-radius: 2px; background: var(--yellow); }
.section-head p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Product ---------- */
.product-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 28px; border: 1px solid var(--line); border-bottom: 4px solid var(--yellow); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.gallery-main { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #fff 0%, #eef5ff 70%, #dcebff 100%); overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-main img.is-bottle { padding: 18px; }
.badge-sale { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 14px; border-radius: 20px; background: var(--black); color: var(--yellow); font-family: var(--font-head); font-size: 18px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1 / 1; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: #f4f8ff; overflow: hidden; cursor: pointer; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--yellow-dark); }
.thumb.is-active { border-color: var(--black); box-shadow: 0 0 0 2px var(--yellow); }
.product-cat { margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.product-title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.price { font-family: var(--font-head); font-size: 40px; color: var(--black); background: var(--yellow); padding: 0 14px; border-radius: 8px; }
.price-note { color: var(--muted); font-size: 13px; }
.product-points { margin: 0 0 24px; }
.product-points li { position: relative; padding: 5px 0 5px 28px; }
.product-points li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); color: var(--black); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.product-total { margin: 0; color: var(--muted); }
.product-total strong { color: var(--black); font-size: 18px; }

.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--black); border-radius: 30px; overflow: hidden; background: #fff; }
.qty-btn { width: 42px; border: 0; background: #fff; color: var(--black); font-size: 20px; font-weight: 600; cursor: pointer; }
.qty-btn:hover { background: var(--yellow); }
.qty-btn:focus-visible, .qty .qty-input:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; box-shadow: none; }
.qty-input { width: 54px; border: 0; text-align: center; font-weight: 600; font-size: 16px; padding: 10px 0; color: var(--black); background: #fff; -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--yellow); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-num { display: block; font-family: var(--font-head); font-size: 38px; color: var(--yellow-dark); line-height: 1; margin-bottom: 10px; }
.why-card h3 { font-size: 21px; margin-bottom: 8px; }
.why-card p { margin: 0; color: var(--muted); font-size: 14px; }
.promo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.promo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { text-align: center; padding: 30px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--yellow); font-family: var(--font-head); font-size: 26px; color: var(--black); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.steps-note { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Order ---------- */
.section-dark { background: var(--black); color: #e9e9e9; }
.order-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.order-summary h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.order-summary h2::after { content: ""; display: block; width: 70px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--yellow); }
.summary-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin-top: 22px; padding: 18px; border: 1px solid #333; border-radius: var(--radius); background: #1b1b1b; }
.summary-card img { width: 96px; height: 150px; object-fit: contain; }
.summary-card h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.summary-card dl { margin: 0; }
.summary-card dl div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.summary-card dt { color: #aaa; }
.summary-card dd { margin: 0; font-weight: 600; }
.summary-card .grand { margin-top: 6px; padding-top: 10px; border-top: 1px dashed #444; font-size: 17px; color: var(--yellow); }
.summary-card .grand dt { color: var(--yellow); }
.contact-line { margin-top: 18px; }
.contact-line a { color: var(--yellow); font-weight: 600; }

.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 28px; border-radius: var(--radius); background: #fff; color: var(--ink); border-bottom: 4px solid var(--yellow); }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--black); }
.field label span { color: var(--red); }
.field input:not(.qty-input), .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cfcfcf; border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(255,196,0,.45); }
.field.has-error input:not(.qty-input), .field.has-error textarea, .field.has-error .qty { border-color: var(--red); }
.error { min-height: 0; margin: 4px 0 0; font-size: 12.5px; color: var(--red); }
.error:empty { display: none; }
.qty-light { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; }
.form-total { margin: 0; font-size: 16px; }
.form-total strong { font-family: var(--font-head); font-size: 26px; font-weight: 400; }
.form-total small { color: var(--muted); }
.delivery-hint { display: block; font-size: 12.5px; }
.delivery-hint:empty { display: none; }
.form-status { margin: 0; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 10px 14px; border-radius: 8px; background: #fdecec; color: var(--red); }
.form-status.is-info { color: var(--muted); }

.order-success { padding: 40px 28px; border-radius: var(--radius); background: #fff; color: var(--ink); text-align: center; border-bottom: 4px solid var(--green); }
.order-success .tick { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; }
.order-success h3 { font-size: 28px; margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; color: var(--black); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 700; }
.faq[open] summary::after { content: "–"; }
.faq[open] { border-bottom: 3px solid var(--yellow); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #1a1a1a; color: #bdbdbd; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
.site-footer h3 { color: #fff; font-size: 20px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--yellow); display: inline-block; }
.site-footer li { padding: 4px 0; }
.site-footer a:hover { color: var(--yellow); }
.logo-footer .logo-text { color: #fff; }
.logo-footer .logo-text span { color: var(--yellow); }
.logo-footer + p { margin-top: 12px; max-width: 340px; }
.copyright { background: var(--yellow); color: var(--black); text-align: center; padding: 12px 0; font-size: 13px; font-weight: 500; }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .header-usp { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3) { border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { grid-template-columns: 1fr; gap: 26px; }
  .gallery { width: 100%; max-width: 520px; margin: 0 auto; }
  .order-grid { grid-template-columns: 1fr; }
  .nav-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; flex-wrap: nowrap; background: var(--yellow); border-top: 1px solid rgba(0,0,0,.15); box-shadow: 0 10px 18px rgba(0,0,0,.15); }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 13px 16px; border-bottom: 1px solid rgba(0,0,0,.08); }
}
@media (min-width: 768px) {
  .slide-inner { padding-left: 72px; padding-right: 72px; }
}
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  html { scroll-padding-top: 60px; }
  .topbar-inner { justify-content: center; }
  .topbar-links { display: none; }
  .topbar-msg { text-align: center; padding: 8px 0; }
  .logo-text { font-size: 28px; }
  .logo-mark { width: 40px; height: 40px; }
  .cart-total { display: none; }
  .cart-btn { padding: 8px 12px; }
  .slide-inner { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 30px; padding-bottom: 60px; gap: 10px; }
  .slide-sub { margin-left: auto; margin-right: auto; font-size: 15px; }
  .slide-art img { height: 250px; }
  .slide-arrow { display: none; }
  .section { padding: 44px 0; }
  .steps, .promo { grid-template-columns: 1fr; }
  .promo { max-width: 420px; margin-left: auto; margin-right: auto; }
  .order-form { grid-template-columns: 1fr; padding: 20px 16px; }
  .product-card { padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .form-foot .btn { width: 100%; }
  .sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--black); color: #fff; box-shadow: 0 -4px 14px rgba(0,0,0,.25); transition: transform .25s; }
  .sticky-bar strong { color: var(--yellow); }
  .sticky-bar .btn { padding: 9px 20px; }
  .sticky-bar.is-hidden { transform: translateY(110%); }
}
@media (max-width: 479px) {
  .why-grid, .services-grid { grid-template-columns: 1fr; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .service { padding: 16px 8px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .summary-card { grid-template-columns: 70px 1fr; }
  .summary-card img { width: 70px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
