/* ============================================================
   قهوه خان — Qahvekhan Café  |  Landing theme
   Built on top of Bootstrap 5 (RTL)
   ============================================================ */

:root {
  --qk-bg:      #100B07;
  --qk-bg-2:    #0c0805;
  --qk-panel:   #17110A;
  --qk-panel-2: #1B140B;
  --qk-accent:  #C49A6C;
  --qk-rust:    #A8442A;
  --qk-cream:   #F1E7D6;
  --qk-muted:   rgba(241,231,214,.62);
  --qk-faint:   rgba(241,231,214,.45);
  --qk-line:    rgba(196,154,108,.15);
  --qk-line-2:  rgba(196,154,108,.28);
  --qk-radius:  18px;

  --qk-font:    'Vazirmatn', system-ui, sans-serif;
  --qk-display: 'Lalezar', cursive;
  --qk-mono:    'Space Grotesk', monospace;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--qk-bg);
  color: var(--qk-cream);
  font-family: var(--qk-font);
  overflow-x: hidden;
  position: relative;
}
::selection { background: var(--qk-rust); color: var(--qk-cream); }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* film-grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: .06; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- helpers ---------- */
.qk-container { max-width: 1320px; }
.qk-display   { font-family: var(--qk-display); font-weight: 400; letter-spacing: .5px; }
.qk-mono      { font-family: var(--qk-mono); }
.qk-accent    { color: var(--qk-accent); }
.qk-eyebrow   { font-family: var(--qk-mono); font-size: 13px; letter-spacing: 3px; color: var(--qk-accent); text-transform: uppercase; }
.qk-section   { padding: 84px 0; }
.qk-h2        { font-family: var(--qk-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; margin: 0; }
.qk-lead      { color: var(--qk-muted); }

.qk-logo-mark { color: var(--qk-accent); display: inline-flex; }

/* ---------- navbar ---------- */
.qk-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,11,7,.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--qk-line);
  transition: background .3s ease;
}
.qk-nav.scrolled { background: rgba(12,8,5,.94); }
.qk-brand { font-family: var(--qk-display); font-size: 24px; line-height: 1; text-decoration: none; color: var(--qk-cream); }
.qk-nav .nav-link { color: var(--qk-cream); opacity: .82; font-weight: 500; font-size: 15px; transition: color .2s, opacity .2s; }
.qk-nav .nav-link:hover, .qk-nav .nav-link:focus { opacity: 1; color: var(--qk-accent); }
.qk-navbar-toggler { border-color: var(--qk-line-2); }
.qk-navbar-toggler:focus { box-shadow: none; }

/* ---------- buttons ---------- */
.btn-qk {
  background: var(--qk-accent); color: #1a1206; border: none;
  font-weight: 700; border-radius: 99px; padding: 12px 24px;
  display: inline-flex; align-items: center; gap: 9px; transition: filter .2s, transform .2s;
}
.btn-qk:hover { filter: brightness(1.08); color: #1a1206; transform: translateY(-1px); }
.btn-qk-ghost {
  background: transparent; color: var(--qk-cream);
  border: 1px solid var(--qk-line-2); font-weight: 600; border-radius: 99px; padding: 12px 24px;
  display: inline-flex; align-items: center; gap: 9px; transition: .2s;
}
.btn-qk-ghost:hover { border-color: var(--qk-accent); background: rgba(196,154,108,.08); color: var(--qk-cream); }
.btn-qk-sm { padding: 9px 16px; font-size: 14px; }
.qk-arrow { transform: scaleX(-1); }

.qk-link-more { color: var(--qk-accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: gap .2s; }
.qk-link-more:hover { gap: 12px; color: var(--qk-accent); }

/* ---------- hero ---------- */
.qk-hero { padding: 76px 0 60px; }
.qk-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--qk-line-2); color: var(--qk-accent);
  padding: 7px 15px; border-radius: 99px; font-size: 13px; font-weight: 600;
}
.qk-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--qk-accent); }
.qk-hero h1 { font-family: var(--qk-display); font-weight: 400; font-size: clamp(44px, 5.6vw, 82px); line-height: 1.06; letter-spacing: .5px; margin: 0 0 22px; }
.qk-hero p.qk-sub { font-size: 18px; line-height: 2; color: var(--qk-muted); max-width: 520px; }
.qk-stats { border-top: 1px solid var(--qk-line); padding-top: 24px; }
.qk-stats .num { font-family: var(--qk-mono); font-size: 26px; font-weight: 700; color: var(--qk-accent); }
.qk-stats .lbl { font-size: 13px; color: var(--qk-faint); margin-top: 2px; }

.qk-hero-media { position: relative; }
.qk-hero-frame {
  border-radius: 220px 220px 22px 22px; overflow: hidden;
  border: 1px solid var(--qk-line-2); background: var(--qk-panel-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
}
.qk-hero-frame img { width: 100%; height: 560px; object-fit: cover; }
.qk-hero-corner { position: absolute; top: -14px; left: -14px; width: 120px; height: 120px; border: 1px solid var(--qk-line-2); border-radius: 0 0 100% 0; z-index: 2; }
.qk-hero-badge {
  position: absolute; bottom: 20px; right: -16px;
  background: var(--qk-bg); border: 1px solid var(--qk-line-2); border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
}
.qk-hero-badge .t { font-weight: 700; font-size: 14px; }
.qk-hero-badge .s { font-size: 12px; color: var(--qk-faint); }

/* ---------- marquee ---------- */
.qk-marquee { border-top: 1px solid var(--qk-line); border-bottom: 1px solid var(--qk-line); background: var(--qk-bg-2); padding: 16px 0; overflow: hidden; }
.qk-marquee .track { display: inline-block; white-space: nowrap; animation: qk-scroll 34s linear infinite; font-family: var(--qk-mono); font-size: 15px; letter-spacing: 2px; color: rgba(241,231,214,.5); }
@keyframes qk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- generic card ---------- */
.qk-card { background: var(--qk-panel); border: 1px solid var(--qk-line); border-radius: var(--qk-radius); transition: border-color .25s, transform .25s; height: 100%; }
.qk-card:hover { border-color: var(--qk-line-2); }

/* journey */
.qk-step { padding: 26px 24px; }
.qk-step .n { font-family: var(--qk-display); font-size: 40px; color: var(--qk-accent); line-height: 1; margin-bottom: 16px; }
.qk-step .t { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.qk-step .d { font-size: 14px; line-height: 1.9; color: var(--qk-muted); }

/* category */
.qk-cat { display: block; text-decoration: none; color: var(--qk-cream); background: linear-gradient(160deg, #1B140B, #120c06); border: 1px solid var(--qk-line); border-radius: var(--qk-radius); padding: 32px 28px; transition: border-color .25s, transform .25s; height: 100%; }
.qk-cat:hover { border-color: var(--qk-accent); transform: translateY(-3px); color: var(--qk-cream); }
.qk-cat .code { font-family: var(--qk-mono); font-size: 12px; letter-spacing: 2px; color: var(--qk-faint); margin-bottom: 18px; }
.qk-cat .name { font-family: var(--qk-display); font-size: 38px; line-height: 1; margin-bottom: 14px; color: var(--qk-accent); }
.qk-cat .desc { font-size: 15px; line-height: 1.9; color: var(--qk-muted); margin-bottom: 22px; }
.qk-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--qk-line-2); padding: 6px 13px; border-radius: 99px; }

/* products */
.qk-prod { overflow: hidden; display: flex; flex-direction: column; }
.qk-prod:hover { border-color: var(--qk-accent); }
.qk-prod .media { position: relative; background: var(--qk-panel-2); }
.qk-prod .media img { width: 100%; height: 230px; object-fit: cover; }
.qk-prod .badge-qk { position: absolute; top: 14px; right: 14px; background: var(--qk-rust); color: var(--qk-cream); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; }
.qk-prod .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.qk-prod .name { font-family: var(--qk-display); font-size: 28px; line-height: 1; }
.qk-prod .code { font-family: var(--qk-mono); font-size: 12px; letter-spacing: 2px; color: var(--qk-faint); direction: ltr; }
.qk-prod .ratio { font-size: 13px; color: var(--qk-muted); margin-bottom: 14px; }
.qk-bar { height: 6px; border-radius: 99px; background: #3a2a1a; overflow: hidden; margin-bottom: 18px; }
.qk-bar > i { display: block; height: 100%; background: var(--qk-accent); }
.qk-notes { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.qk-note { font-size: 12px; color: rgba(241,231,214,.72); border: 1px solid var(--qk-line-2); padding: 4px 11px; border-radius: 99px; }
.qk-prod .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--qk-line); }
.qk-price { font-family: var(--qk-mono); font-size: 22px; font-weight: 700; color: var(--qk-accent); }
.qk-price small { font-family: var(--qk-font); font-size: 12px; color: var(--qk-faint); margin-right: 5px; }

/* brew */
.qk-brew { padding: 24px; }
.qk-brew .head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.qk-brew .fa { font-size: 22px; font-weight: 800; }
.qk-brew .en { font-family: var(--qk-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--qk-faint); direction: ltr; }
.qk-brew .row-spec { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--qk-line); font-size: 14px; }
.qk-brew .row-spec .k { color: rgba(241,231,214,.55); }
.qk-brew .row-spec .v { font-weight: 600; }
.qk-brew .row-spec .v.hl { font-family: var(--qk-mono); color: var(--qk-accent); direction: ltr; }

/* journal */
.qk-art { overflow: hidden; text-decoration: none; color: var(--qk-cream); display: flex; flex-direction: column; }
.qk-art:hover { border-color: var(--qk-accent); transform: translateY(-3px); color: var(--qk-cream); }
.qk-art img { width: 100%; height: 180px; object-fit: cover; }
.qk-art .body { padding: 22px; }
.qk-art .meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--qk-faint); margin-bottom: 12px; }
.qk-art .meta .c { color: var(--qk-accent); font-weight: 600; }
.qk-art .title { font-size: 19px; font-weight: 700; line-height: 1.6; margin-bottom: 16px; }
.qk-art .date { font-size: 13px; color: var(--qk-faint); }

/* ---------- FAQ (Bootstrap accordion override) ---------- */
.qk-accordion .accordion-item { background: var(--qk-panel); border: 1px solid var(--qk-line); border-radius: 14px !important; overflow: hidden; margin-bottom: 12px; }
.qk-accordion .accordion-button { background: transparent; color: var(--qk-cream); font-family: var(--qk-font); font-size: 17px; font-weight: 600; padding: 20px 22px; box-shadow: none; }
.qk-accordion .accordion-button:not(.collapsed) { background: transparent; color: var(--qk-cream); }
.qk-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.qk-accordion .accordion-button::after {
  background-image: none; content: "+"; color: var(--qk-accent);
  font-size: 26px; font-weight: 300; line-height: .7; width: auto; height: auto;
  margin-right: auto; margin-left: 0; transition: transform .2s;
}
.qk-accordion .accordion-button:not(.collapsed)::after { content: "–"; transform: none; }
.qk-accordion .accordion-body { padding: 0 22px 22px; font-size: 15px; line-height: 2; color: var(--qk-muted); }

/* ---------- final CTA ---------- */
.qk-cta { padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.qk-cta .glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(680px,80vw); height: min(680px,80vw); background: radial-gradient(circle, rgba(168,68,42,.22), transparent 62%); pointer-events: none; }
.qk-cta h2 { font-family: var(--qk-display); font-weight: 400; font-size: clamp(34px,4.4vw,60px); line-height: 1.12; margin: 0 0 18px; }
.qk-cta p { font-size: 18px; color: var(--qk-muted); line-height: 1.9; margin: 0 0 34px; }

/* ---------- footer ---------- */
.qk-footer { border-top: 1px solid var(--qk-line); background: var(--qk-bg-2); padding: 56px 0 34px; }
.qk-footer h5 { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.qk-footer a { color: var(--qk-muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.qk-footer a:hover { color: var(--qk-accent); }
.qk-footer .desc { font-size: 14px; line-height: 2; color: var(--qk-muted); max-width: 300px; }
.qk-footer .bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--qk-line); font-size: 13px; color: var(--qk-faint); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .qk-hero { padding: 48px 0 40px; }
  .qk-hero-frame img { height: 420px; }
  .qk-hero-media { margin-top: 40px; }
  .qk-nav .navbar-nav { padding: 12px 0; gap: 4px; }
}
@media (max-width: 575px) {
  .qk-section { padding: 60px 0; }
  .qk-hero-frame { border-radius: 140px 140px 18px 18px; }
}

/* ============================================================
   PRODUCT PAGE (PDP)
   ============================================================ */
.qk-breadcrumb { padding: 22px 0 6px; font-size: 14px; color: var(--qk-faint); }
.qk-breadcrumb a { color: var(--qk-muted); text-decoration: none; }
.qk-breadcrumb a:hover { color: var(--qk-accent); }
.qk-breadcrumb .sep { margin: 0 8px; opacity: .5; }
.qk-breadcrumb .cur { color: var(--qk-cream); }

.pdp { padding: 24px 0 40px; }
.pdp-media {
  position: sticky; top: 96px;
  border-radius: 240px 240px 22px 22px; overflow: hidden;
  border: 1px solid var(--qk-line-2); background: var(--qk-panel-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
}
.pdp-media img { width: 100%; height: 620px; object-fit: cover; }

.pdp-code { font-family: var(--qk-mono); font-size: 13px; letter-spacing: 3px; color: var(--qk-faint); direction: ltr; }
.pdp-title { font-family: var(--qk-display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin: 8px 0 16px; }
.qk-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--qk-accent); border: 1px solid var(--qk-line-2); padding: 5px 13px; border-radius: 99px; }
.qk-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--qk-accent); }

.pdp-ratio { display: flex; align-items: center; gap: 16px; margin: 22px 0; }
.pdp-ratio .lbl { font-size: 14px; color: var(--qk-muted); white-space: nowrap; }
.pdp-ratio .qk-bar { flex: 1; margin: 0; }

.pdp-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0; }
.pdp-price .p { font-family: var(--qk-mono); font-size: 32px; font-weight: 700; color: var(--qk-accent); }
.pdp-price .u { font-size: 14px; color: var(--qk-faint); }

.pdp-desc { font-size: 16px; line-height: 2; color: var(--qk-muted); margin-bottom: 28px; }

.pdp-label { font-size: 14px; font-weight: 600; color: var(--qk-cream); margin-bottom: 12px; }
.qk-weights { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.qk-weight {
  flex: 1; min-width: 120px; text-align: right; cursor: pointer;
  background: var(--qk-panel); border: 1px solid var(--qk-line); border-radius: 14px;
  padding: 14px 16px; transition: border-color .2s, background .2s;
}
.qk-weight:hover { border-color: var(--qk-line-2); }
.qk-weight.active { border-color: var(--qk-accent); background: rgba(196,154,108,.08); }
.qk-weight .w { font-size: 15px; font-weight: 700; }
.qk-weight .pr { font-family: var(--qk-mono); font-size: 14px; color: var(--qk-muted); margin-top: 4px; direction: ltr; text-align: right; }

.pdp-buy { display: flex; gap: 12px; align-items: stretch; }
.qk-stepper { display: flex; align-items: center; border: 1px solid var(--qk-line-2); border-radius: 99px; overflow: hidden; }
.qk-stepper button { background: transparent; border: none; color: var(--qk-cream); width: 44px; height: 100%; font-size: 20px; cursor: pointer; transition: background .2s; }
.qk-stepper button:hover { background: rgba(196,154,108,.12); color: var(--qk-accent); }
.qk-stepper .qty { min-width: 40px; text-align: center; font-family: var(--qk-mono); font-weight: 600; font-size: 16px; }
.pdp-buy .btn-qk { flex: 1; justify-content: center; font-size: 16px; }

.pdp-meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--qk-line); }
.pdp-meta-row .m .k { font-size: 12px; color: var(--qk-faint); margin-bottom: 4px; }
.pdp-meta-row .m .v { font-size: 15px; font-weight: 600; }

/* flavor profile */
.pdp-flavor { background: var(--qk-bg-2); border-top: 1px solid var(--qk-line); border-bottom: 1px solid var(--qk-line); }
.qk-flavor { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qk-flavor .name { width: 74px; font-size: 15px; color: var(--qk-cream); flex: none; }
.qk-flavor .track { flex: 1; height: 8px; border-radius: 99px; background: #2a1f13; overflow: hidden; }
.qk-flavor .track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--qk-rust), var(--qk-accent)); border-radius: 99px; }
.qk-flavor .val { font-family: var(--qk-mono); font-size: 13px; color: var(--qk-muted); width: 34px; text-align: left; direction: ltr; }

.qk-brewsug { display: flex; flex-wrap: wrap; gap: 10px; }
.qk-brewsug .s { font-size: 14px; font-weight: 600; color: var(--qk-accent); border: 1px solid var(--qk-line-2); padding: 8px 16px; border-radius: 99px; }

@media (max-width: 991px) {
  .pdp-media { position: static; }
  .pdp-media img { height: 460px; }
  .pdp-info { margin-top: 36px; }
}
