/* ============================================================
   jamdania.com — sample store stylesheet
   Brand: yellow weaver on maroon — translate to cream / maroon / yellow
   ============================================================ */

:root {
  --maroon:        #7a1f2e;
  --maroon-deep:   #5a1721;
  --maroon-soft:   #a4434f;
  --yellow:        #e8b33c;
  --yellow-soft:   #f4d68a;
  --yellow-deep:   #c89426;
  --cream:         #faf6ee;
  --cream-deep:    #f0e9d8;
  --charcoal:      #1f1f1f;
  --ink:           #2c2c2c;
  --muted:         #6b6b6b;
  --line:          #e5dccb;
  --white:         #ffffff;
  --shadow-sm:     0 1px 2px rgba(31,31,31,0.06);
  --shadow-md:     0 6px 24px rgba(31,31,31,0.08);
  --shadow-lg:     0 20px 60px rgba(31,31,31,0.16);
  --radius:        4px;
  --radius-lg:     10px;
  --max:           1200px;
  --serif:         "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bn:            "Hind Siliguri", "Noto Sans Bengali", var(--sans);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--maroon-deep); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--charcoal); font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.muted { color: var(--muted); }
.bn { font-family: var(--bn); }

/* ---------- top bar (info strip) ---------- */
.topbar {
  background: var(--maroon-deep);
  color: var(--yellow-soft);
  font-size: .82rem;
  padding: .5rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--yellow-soft); }
.topbar a:hover { color: var(--yellow); }
.topbar .badges { display: flex; gap: 1.25rem; }
.topbar .badges span::before { content: "✦"; margin-right: .4rem; color: var(--yellow); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand .wordmark {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: .02em;
  line-height: 1;
}
.brand .tag {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: .15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .65rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--maroon);
}

nav.primary {
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav.primary a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
  position: relative;
  padding: .25rem 0;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
nav.primary a:hover::after,
nav.primary a.active::after { transform: scaleX(1); }
nav.primary a.active { color: var(--maroon); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 60%, var(--maroon-soft) 100%);
  color: var(--cream);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1597371140946-cfd3dd5a76b9?w=1800&q=80');
  background-size: cover;
  background-position: center;
  opacity: .35;
  filter: saturate(.9) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(90,23,33,.25) 0%, rgba(90,23,33,.55) 100%);
}
.hero .container { position: relative; z-index: 2; max-width: 800px; padding-top: 4rem; padding-bottom: 4rem; }
.hero .eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .25em;
  color: var(--yellow);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: .35rem .8rem;
  border: 1px solid var(--yellow);
  border-radius: 100px;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero h1 em {
  font-style: italic;
  color: var(--yellow);
  font-weight: 400;
}
.hero p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 580px;
  color: rgba(250, 246, 238, .92);
  margin-bottom: 2rem;
}
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
  line-height: 1.2;
}
.btn-primary { background: var(--yellow); color: var(--maroon-deep); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--maroon-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--maroon-deep); }
.btn-dark { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.btn-dark:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); color: var(--yellow-soft); }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: var(--cream); }
.btn-block { display: block; width: 100%; }

/* ---------- section ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .25em;
  color: var(--maroon);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .8rem;
}
.section-head h2 { margin-bottom: .5rem; }
.section-head .lead { color: var(--muted); max-width: 600px; margin: 0 auto; }
.section-head .rule {
  width: 50px; height: 2px;
  background: var(--yellow);
  margin: 1rem auto 0;
}

/* ---------- product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--maroon-soft);
}
.product-card .imgwrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream-deep);
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover img { transform: scale(1.05); }
.product-card .badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--maroon);
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 100px;
}
.product-card .badge.premium { background: var(--charcoal); color: var(--yellow); }
.product-card .badge.bestseller { background: var(--yellow); color: var(--maroon-deep); }
.product-card .body {
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card .names {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .25rem;
}
.product-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0;
  color: var(--charcoal);
}
.product-card .bn-name {
  font-family: var(--bn);
  font-size: .9rem;
  color: var(--muted);
}
.product-card .color {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 .9rem;
  min-height: 2.4em;
}
.product-card .price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 1rem;
}
.product-card .price small { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .08em; margin-right: .25rem; }
.product-card .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: auto;
}
.product-card .actions .btn { padding: .65rem .5rem; font-size: .82rem; }

/* ---------- view-all link ---------- */
.viewall { text-align: center; margin-top: 2.5rem; }
.viewall a {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--maroon); letter-spacing: .05em;
  border-bottom: 1.5px solid var(--maroon);
  padding-bottom: 2px;
}
.viewall a:hover { color: var(--maroon-deep); }
.viewall a::after { content: " →"; transition: transform .15s ease; }
.viewall a:hover::after { transform: translateX(4px); }

/* ---------- about / story strip ---------- */
.story {
  background: var(--cream-deep);
  position: relative;
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 24px solid var(--yellow-soft);
  border-radius: 50%;
  opacity: .4;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.story-grid .imgwrap {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-grid img { width: 100%; height: 100%; object-fit: cover; }
.story h2 em { font-style: italic; color: var(--maroon); }
.story p { color: var(--ink); }
.story .signature {
  font-family: var(--serif);
  font-style: italic;
  color: var(--maroon);
  margin-top: 1.5rem;
}

/* ---------- features strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}
.feature {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.feature .icon {
  font-size: 1.75rem;
  margin-bottom: .5rem;
  color: var(--maroon);
}
.feature h4 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 .25rem;
  color: var(--charcoal);
}
.feature p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- about page ---------- */
.about-hero {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  color: var(--cream);
  padding: 4rem 0 3rem;
  text-align: center;
}
.about-hero h1 { color: var(--cream); }
.about-hero p { max-width: 680px; margin: .5rem auto 0; color: rgba(250,246,238,.88); font-size: 1.1rem; }

.about-body { padding: 4rem 0; }
.about-body .container { max-width: 780px; }
.about-body p { font-size: 1.05rem; margin-bottom: 1.25rem; color: var(--ink); }
.about-body h2 { margin-top: 2.5rem; color: var(--maroon); }
.about-body .pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--maroon);
  border-left: 3px solid var(--yellow);
  padding: .5rem 0 .5rem 1.5rem;
  margin: 2rem 0;
}

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { color: var(--maroon); margin-bottom: 1.25rem; }
.contact-card .row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row .label {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  margin-top: 2px;
}
.contact-card .row .value { font-size: .95rem; color: var(--ink); }
.contact-card .row .value strong { display: block; color: var(--charcoal); margin-bottom: .15rem; font-weight: 600; }
.contact-card .row .value a { color: var(--maroon); font-weight: 500; }

.map-wrap {
  background: var(--white);
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-wrap iframe { width: 100%; min-height: 420px; border: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--maroon-deep);
  color: var(--cream);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.site-footer p, .site-footer li, .site-footer a { color: rgba(250,246,238,.78); font-size: .9rem; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .brand-block .wordmark { color: var(--yellow); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: .25rem 0; }
.site-footer .pay-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.site-footer .pay-row span {
  background: rgba(250,246,238,.08);
  border: 1px solid rgba(250,246,238,.12);
  padding: .25rem .55rem;
  border-radius: var(--radius);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--yellow-soft);
}
.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,246,238,.12);
  text-align: center;
  font-size: .82rem;
  color: rgba(250,246,238,.6);
}

/* ---------- product modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(31,31,31,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal .close {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(250,246,238,.95);
  color: var(--maroon-deep);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.modal .close:hover { background: var(--yellow); }
.modal .imgwrap { aspect-ratio: 3/4; background: var(--cream-deep); overflow: hidden; }
.modal .imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.modal .details {
  padding: 2rem 1.75rem;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.modal .details h2 { margin-bottom: .15rem; }
.modal .details .bn-name { font-family: var(--bn); color: var(--muted); margin-bottom: 1rem; }
.modal .details .price {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--maroon);
  margin: .25rem 0 1.25rem;
}
.modal .details .price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.modal .details .blurb { font-size: .98rem; line-height: 1.6; color: var(--ink); margin: 0 0 1.25rem; }
.modal .specs { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.modal .specs li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.modal .specs li .k { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; padding-top: 2px; }
.modal .specs li .v { color: var(--ink); }
.modal .cta-row { display: flex; gap: .75rem; margin-top: auto; flex-wrap: wrap; }
.modal .cta-row .btn { flex: 1; min-width: 140px; }

/* ---------- checkout page (SSLCommerz placeholder) ---------- */
.checkout-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.checkout-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.checkout-card .ssl-mark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cream-deep);
  border: 1px solid var(--yellow);
  color: var(--maroon-deep);
  font-weight: 700;
  letter-spacing: .08em;
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  margin-bottom: 1.5rem;
}
.checkout-card h1 { margin-bottom: .5rem; }
.checkout-card .summary {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  text-align: left;
}
.checkout-card .summary .row {
  display: flex; justify-content: space-between; padding: .35rem 0;
}
.checkout-card .summary .row.total {
  border-top: 1px dashed var(--line);
  margin-top: .5rem;
  padding-top: .8rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--maroon-deep);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .story-grid, .contact-grid, .modal { grid-template-columns: 1fr; }
  .modal { max-height: 95vh; overflow-y: auto; }
  .modal .imgwrap { aspect-ratio: 1/1; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.25rem 1rem;
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: .75rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  nav.primary a:last-child { border-bottom: 0; }
  .site-header .container { position: relative; }
  .topbar .badges { display: none; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 480px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
}
