/*
Theme Name: Ghorkotha
Theme URI: https://ghorkothabd.com
Description: Single-product landing page theme with Cash on Delivery order form (WooCommerce). Bangla + English.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ghorkotha
*/

:root {
  --gk-primary: #0b6e4f;
  --gk-primary-dark: #08523b;
  --gk-accent: #f26b1d;
  --gk-accent-dark: #d9560c;
  --gk-bg: #fffaf3;
  --gk-surface: #ffffff;
  --gk-text: #1f2a24;
  --gk-muted: #5f6b64;
  --gk-border: #ece3d6;
  --gk-soft: #f3ede3;
  --gk-danger: #c62828;
  --gk-radius: 14px;
  --gk-shadow: 0 6px 24px rgba(31, 42, 36, .08);
  --gk-font: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gk-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gk-text);
  background: var(--gk-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gk-primary); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
.gk-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top notice + header ---------- */
.gk-notice {
  background: var(--gk-primary-dark);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 7px 12px;
}
.gk-header {
  background: var(--gk-surface);
  border-bottom: 1px solid var(--gk-border);
  position: sticky; top: 0; z-index: 50;
}
.gk-header .gk-container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.gk-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gk-text); font-weight: 700; font-size: 22px; }
.gk-logo img { max-height: 44px; width: auto; }
.gk-header-call {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; color: var(--gk-primary);
  border: 1.5px solid var(--gk-primary); border-radius: 999px; padding: 6px 14px; font-size: 15px;
}
.gk-header-call:hover { background: var(--gk-primary); color: #fff; }
.gk-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.gk-nav a { text-decoration: none; color: var(--gk-text); font-weight: 500; }

/* ---------- Buttons ---------- */
.gk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: inherit; font-weight: 700; font-size: 19px;
  padding: 14px 28px; border-radius: 12px;
  background: var(--gk-accent); color: #fff;
  box-shadow: 0 6px 16px rgba(242, 107, 29, .35);
  transition: transform .15s, background .15s;
}
.gk-btn:hover { background: var(--gk-accent-dark); transform: translateY(-1px); }
.gk-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.gk-btn--block { width: 100%; }
.gk-btn--outline { background: transparent; color: var(--gk-primary); border: 2px solid var(--gk-primary); box-shadow: none; }
.gk-btn--outline:hover { background: var(--gk-primary); color: #fff; }
.gk-btn--wa { background: #25d366; box-shadow: 0 6px 16px rgba(37, 211, 102, .3); }
.gk-btn--wa:hover { background: #1fb457; }

/* ---------- Hero ---------- */
.gk-hero { padding: 24px 0 32px; }
.gk-hero-grid { display: grid; gap: 28px; }
.gk-gallery-main {
  position: relative; background: var(--gk-surface); border-radius: var(--gk-radius);
  overflow: hidden; box-shadow: var(--gk-shadow); aspect-ratio: 1 / 1;
}
.gk-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gk-badge-off {
  position: absolute; top: 14px; left: 14px;
  background: var(--gk-danger); color: #fff; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; font-size: 15px;
}
.gk-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gk-thumbs button {
  flex: 0 0 68px; height: 68px; padding: 0; border: 2px solid transparent;
  border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--gk-surface);
}
.gk-thumbs button.is-active { border-color: var(--gk-primary); }
.gk-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.gk-hero-tag {
  display: inline-block; background: #e3f2ec; color: var(--gk-primary-dark);
  font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.gk-hero h1 { font-size: 28px; }
.gk-hero-short { color: var(--gk-muted); margin-bottom: 18px; }
.gk-hero-short ul { padding-left: 0; list-style: none; margin: 0; }
.gk-hero-short li { padding-left: 28px; position: relative; margin-bottom: 6px; color: var(--gk-text); }
.gk-hero-short li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gk-primary); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.gk-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.gk-price-now { font-size: 36px; font-weight: 700; color: var(--gk-accent); }
.gk-price-old { font-size: 20px; color: var(--gk-muted); text-decoration: line-through; }
.gk-price-save { background: #fdeee4; color: var(--gk-accent-dark); font-weight: 600; font-size: 14px; padding: 3px 10px; border-radius: 8px; }
.gk-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.gk-hero-actions .gk-btn { flex: 1 1 220px; }
.gk-stock { font-size: 15px; color: var(--gk-primary); font-weight: 600; margin-bottom: 12px; }
.gk-stock.is-out { color: var(--gk-danger); }

.gk-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gk-trust-item {
  background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: 12px;
  padding: 12px 8px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.35;
}
.gk-trust-item span { display: block; font-size: 24px; margin-bottom: 4px; }

/* ---------- Sections ---------- */
.gk-section { padding: 40px 0; }
.gk-section--alt { background: var(--gk-surface); border-top: 1px solid var(--gk-border); border-bottom: 1px solid var(--gk-border); }
.gk-section-title { text-align: center; font-size: 26px; margin-bottom: 6px; }
.gk-section-sub { text-align: center; color: var(--gk-muted); margin: 0 auto 28px; max-width: 620px; }

.gk-features { display: grid; gap: 14px; grid-template-columns: 1fr; }
.gk-feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--gk-bg); border: 1px solid var(--gk-border); border-radius: var(--gk-radius); padding: 16px;
}
.gk-feature-icon {
  flex: 0 0 40px; height: 40px; border-radius: 10px;
  background: var(--gk-primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gk-feature p { margin: 0; font-weight: 500; }

.gk-content { background: var(--gk-surface); border-radius: var(--gk-radius); padding: 24px; box-shadow: var(--gk-shadow); }
.gk-content img { border-radius: 10px; margin: 12px auto; }
.gk-content iframe { max-width: 100%; }
.gk-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--gk-radius); overflow: hidden; box-shadow: var(--gk-shadow); background: #000; max-width: 820px; margin: 0 auto; }
.gk-video iframe, .gk-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gk-reviews { display: grid; gap: 14px; }
.gk-review { background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: var(--gk-radius); padding: 18px; }
.gk-review-stars { color: #f5a623; letter-spacing: 2px; }
.gk-review-name { font-weight: 700; margin-top: 8px; }
.gk-review p { margin: 6px 0 0; }

.gk-faq { max-width: 780px; margin: 0 auto; }
.gk-faq details {
  background: var(--gk-surface); border: 1px solid var(--gk-border); border-radius: 12px;
  margin-bottom: 10px; padding: 0 18px;
}
.gk-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.gk-faq summary::-webkit-details-marker { display: none; }
.gk-faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 24px; color: var(--gk-primary); }
.gk-faq details[open] summary::after { content: "–"; }
.gk-faq details p { margin: 0 0 14px; color: var(--gk-muted); }

/* ---------- Order form ---------- */
.gk-order { padding: 44px 0 60px; background: linear-gradient(180deg, var(--gk-bg) 0%, #f6efe3 100%); }
.gk-order-card {
  background: var(--gk-surface); border-radius: 18px; box-shadow: var(--gk-shadow);
  border: 2px solid var(--gk-primary); overflow: hidden;
}
.gk-order-head { background: var(--gk-primary); color: #fff; text-align: center; padding: 16px; }
.gk-order-head h2 { margin: 0; font-size: 24px; }
.gk-order-head p { margin: 2px 0 0; opacity: .9; font-size: 15px; }
.gk-order-grid { display: grid; gap: 24px; padding: 22px 18px; }
.gk-field { margin-bottom: 16px; }
.gk-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.gk-field label .req { color: var(--gk-danger); }
.gk-field input[type=text], .gk-field input[type=tel], .gk-field textarea {
  width: 100%; font-family: inherit; font-size: 17px;
  padding: 12px 14px; border: 1.5px solid var(--gk-border); border-radius: 10px; background: #fff;
}
.gk-field input:focus, .gk-field textarea:focus { outline: none; border-color: var(--gk-primary); box-shadow: 0 0 0 3px rgba(11, 110, 79, .15); }
.gk-field textarea { min-height: 84px; resize: vertical; }
.gk-field.has-error input, .gk-field.has-error textarea { border-color: var(--gk-danger); }
.gk-field-error { color: var(--gk-danger); font-size: 14px; margin-top: 4px; display: none; }
.gk-field.has-error .gk-field-error { display: block; }
.gk-hp { position: absolute; left: -9999px; }

.gk-zones { display: grid; gap: 10px; }
.gk-zone {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid var(--gk-border); border-radius: 10px; padding: 12px 14px; cursor: pointer;
}
.gk-zone input { accent-color: var(--gk-primary); width: 18px; height: 18px; margin: 0 8px 0 0; }
.gk-zone-label { display: flex; align-items: center; font-weight: 500; }
.gk-zone-price { font-weight: 700; }
.gk-zone:has(input:checked) { border-color: var(--gk-primary); background: #eef7f3; }

.gk-summary { background: var(--gk-bg); border: 1px solid var(--gk-border); border-radius: 14px; padding: 18px; align-self: start; }
.gk-summary h3 { font-size: 19px; }
.gk-summary-product { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--gk-border); }
.gk-summary-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.gk-summary-product .name { font-weight: 600; line-height: 1.35; }
.gk-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--gk-border); border-radius: 10px; overflow: hidden; margin-top: 6px; background: #fff; }
.gk-qty button { width: 36px; height: 36px; border: 0; background: var(--gk-soft); font-size: 20px; cursor: pointer; font-family: inherit; }
.gk-qty input { width: 44px; height: 36px; border: 0; text-align: center; font-size: 17px; font-family: inherit; -moz-appearance: textfield; }
.gk-qty input::-webkit-outer-spin-button, .gk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gk-summary-rows { margin: 12px 0; }
.gk-summary-row { display: flex; justify-content: space-between; padding: 5px 0; }
.gk-summary-row.total { border-top: 1px solid var(--gk-border); margin-top: 6px; padding-top: 10px; font-size: 21px; font-weight: 700; }
.gk-summary-row.total span:last-child { color: var(--gk-accent); }
.gk-cod-note { display: flex; gap: 8px; align-items: center; background: #eef7f3; border-radius: 10px; padding: 10px 12px; font-size: 15px; margin-bottom: 14px; color: var(--gk-primary-dark); font-weight: 500; }
.gk-form-msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; display: none; }
.gk-form-msg.is-error { display: block; background: #fdecea; color: var(--gk-danger); }
.gk-secure { text-align: center; font-size: 13px; color: var(--gk-muted); margin-top: 10px; }

/* ---------- Thank you ---------- */
.gk-thanks { padding: 40px 0 60px; }
.gk-thanks-card { max-width: 640px; margin: 0 auto; background: var(--gk-surface); border-radius: 18px; box-shadow: var(--gk-shadow); padding: 28px 22px; text-align: center; }
.gk-thanks-icon { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--gk-primary); color: #fff; font-size: 38px; display: flex; align-items: center; justify-content: center; }
.gk-thanks-table { width: 100%; border-collapse: collapse; margin: 18px 0; text-align: left; }
.gk-thanks-table th, .gk-thanks-table td { padding: 9px 4px; border-bottom: 1px solid var(--gk-border); }
.gk-thanks-table td:last-child { text-align: right; font-weight: 600; }

/* ---------- Footer + sticky bar ---------- */
.gk-footer { background: #13231c; color: #cfd8d3; padding: 32px 0 90px; font-size: 15px; }
.gk-footer a { color: #fff; }
.gk-footer-grid { display: grid; gap: 18px; }
.gk-footer h4 { color: #fff; margin: 0 0 8px; font-size: 17px; }
.gk-footer p { margin: 0 0 6px; }
.gk-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 22px; padding-top: 14px; text-align: center; font-size: 13px; opacity: .8; }

.gk-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--gk-surface); border-top: 1px solid var(--gk-border);
  box-shadow: 0 -4px 18px rgba(0,0,0,.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center;
  transition: transform .25s;
}
.gk-sticky.is-hidden { transform: translateY(110%); }
.gk-sticky-price { line-height: 1.2; }
.gk-sticky-price strong { display: block; font-size: 20px; color: var(--gk-accent); }
.gk-sticky-price small { color: var(--gk-muted); text-decoration: line-through; }
.gk-sticky .gk-btn { flex: 1; padding: 12px 16px; font-size: 18px; }
.gk-sticky-call { flex: 0 0 48px; height: 48px; border-radius: 12px; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 22px; }

/* Generic pages (policy pages, future shop) */
.gk-page { padding: 36px 0 60px; }
.gk-page .gk-content { max-width: 860px; margin: 0 auto; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .gk-hero { padding: 40px 0 48px; }
  .gk-hero-grid { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
  .gk-hero h1 { font-size: 36px; }
  .gk-features { grid-template-columns: repeat(2, 1fr); }
  .gk-reviews { grid-template-columns: repeat(3, 1fr); }
  .gk-order-grid { grid-template-columns: 1.3fr 1fr; padding: 30px; }
  .gk-zones { grid-template-columns: 1fr 1fr; }
  .gk-section { padding: 56px 0; }
  .gk-section-title { font-size: 30px; }
  .gk-footer { padding-bottom: 32px; }
  .gk-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .gk-sticky { display: none; }
}
@media (min-width: 1024px) {
  .gk-features { grid-template-columns: repeat(3, 1fr); }
}
