/* Palmoraa — main stylesheet */
:root {
  --ink: #1C1B19;
  --ink-soft: #4A453F;
  --muted: #5F574E;
  --accent: #1F4D3F;
  --accent-2: #2C5E4F;
  --gold: #8A6A3B;
  --stone: #F3EEE8;
  --stone-2: #E4DBCF;
  --line: #E7E1D9;
  --field: #BFB6AA;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--accent); color: var(--white); text-align: center; font-size: 14px; padding: 10px 16px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.logo { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .14em; text-decoration: none; color: var(--ink); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-size: 15px; }
.main-nav a { text-decoration: none; }
.header-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn { position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--white); font-size: 11px; line-height: 18px; text-align: center; }
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 16px 32px; font-family: inherit; font-size: 15px; letter-spacing: .06em; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-2); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--stone); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); color: var(--white); }

/* Image placeholders — swap each .ph for an <img> once you have photos */
.ph { background: var(--stone); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }

/* ---------- Hero ---------- */
.hero { background: var(--stone); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px; }
.hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; }
.hero-kicker { margin: 0; font-size: 15px; color: var(--gold); }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 68px); line-height: 1.02; }
.hero .lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 420px; height: 520px; background: var(--stone-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 44px); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.category { display: flex; flex-direction: column; gap: 12px; text-decoration: none; text-align: center; }
.category .ph { aspect-ratio: 1 / 1; border-radius: 50%; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.product-card .ph { position: relative; aspect-ratio: 4 / 5; }
.product-card .tag { position: absolute; top: 12px; left: 12px; background: var(--white); padding: 4px 10px; font-size: 12px; color: var(--ink); }
.product-card .price { font-size: 15px; color: var(--ink-soft); }

.material-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.material { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 32px; text-decoration: none; color: var(--white); background: var(--stone-2); }
.material img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.material::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 27, 25, .82) 0%, rgba(28, 27, 25, .35) 45%, rgba(28, 27, 25, 0) 75%); }
.material-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.material strong { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; color: var(--white); }
.material span { font-size: 15px; color: #E6E1DA; }
.material-cta { align-self: flex-start; margin-top: 12px; padding-bottom: 2px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .7); }
.material:hover { color: var(--white); }
.material:hover img { transform: scale(1.05); }
.material:hover .material-cta { border-color: var(--white); }
@media (prefers-reduced-motion: reduce) { .material img { transition: none; } .material:hover img { transform: none; } }

.trust { border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-block: 40px; }
.trust-grid div { display: flex; flex-direction: column; gap: 4px; }
.trust-grid strong { font-weight: 500; }
.trust-grid span { font-size: 14px; color: var(--ink-soft); }

.gift { display: flex; flex-wrap: wrap; background: var(--accent); color: var(--white); }
.gift-copy { flex: 1 1 420px; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.gift-copy .section-title { color: var(--white); font-size: clamp(36px, 4.5vw, 52px); line-height: 1.05; }
.gift-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: #E6EEEA; }
.gift-copy .btn { align-self: flex-start; }
.gift-media { flex: 1 1 420px; min-height: 420px; background: var(--accent-2); color: #E6EEEA; }

.newsletter { background: var(--stone); }
.newsletter-inner { max-width: 720px; margin: 0 auto; padding: 72px 24px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.newsletter p { margin: 0; color: var(--ink-soft); }
.newsletter form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.newsletter input { flex: 1 1 260px; max-width: 420px; height: 52px; padding: 0 16px; border: 1px solid var(--field); font: inherit; font-size: 15px; }
.form-msg { min-height: 1.5em; font-size: 14px; color: var(--accent); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D4CC; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 64px 32px; }
.footer-grid h3 { margin: 0 0 12px; font-size: 15px; font-weight: 500; color: var(--white); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.site-footer a { color: #D9D4CC; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-logo { font-family: var(--serif); font-size: 28px; letter-spacing: .14em; color: var(--white); }
.footer-bottom { border-top: 1px solid #3A3833; padding-block: 20px 32px; font-size: 13px; }

/* ---------- Product page ---------- */
.breadcrumb { padding-top: 20px; font-size: 14px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.pdp { display: flex; flex-wrap: wrap; gap: 56px; padding-block: 28px 72px; }
.gallery { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery-main { aspect-ratio: 1 / 1; font-size: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { aspect-ratio: 1 / 1; border: 1px solid var(--line); background: var(--stone); font: inherit; font-size: 12px; color: var(--ink-soft); cursor: pointer; }
.thumb[aria-current="true"] { border: 2px solid var(--ink); }
.pdp-info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pdp-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 48px); line-height: 1.05; }
.pdp-cat { font-size: 14px; color: var(--gold); }
.rating { font-size: 14px; color: var(--ink-soft); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.price-now { font-size: 26px; }
.price-mrp { color: var(--ink-soft); text-decoration: line-through; }
.tax-note { font-size: 13px; color: var(--accent); font-weight: 500; }
.finish-options { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.finish-options legend { font-size: 15px; margin-bottom: 10px; padding: 0; }
.finish-btn { min-height: 44px; padding: 0 18px; border: 1px solid var(--field); background: var(--white); font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.finish-btn[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--ink); color: var(--white); }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; }
.qty { display: flex; align-items: center; border: 1px solid var(--field); }
.qty button { width: 48px; height: 52px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 32px; text-align: center; }
.add-btn { flex: 1 1 220px; height: 54px; padding: 0 16px; text-transform: uppercase; letter-spacing: .08em; }
.wish-btn { width: 54px; height: 54px; border: 1px solid var(--field); }
.wish-btn[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.pincode { background: var(--stone); padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pincode label { font-weight: 500; }
.pincode-row { display: flex; gap: 8px; }
.pincode input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--field); font: inherit; }
.pincode button { height: 44px; padding: 0 18px; border: 1px solid var(--ink); background: var(--white); font: inherit; cursor: pointer; color: var(--ink); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { min-height: 56px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; }
.accordion details[open] summary::after { content: "−"; }
.accordion ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; order: 3; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding-block: 8px; }
  .main-nav a { display: block; padding: 12px 0; }
  .hero-inner { padding-block: 48px; }
  .hero-media { height: 360px; }
  .section { padding-block: 56px; }
}

/* ---------- Product photos and catalogue (added with the demo data) ---------- */
[hidden] { display: none !important; }
.card-media, .cat-media, .gallery-main, .thumb-media, .gift-media, .hero-media { overflow: hidden; }
.card-media img, .cat-media img, .gallery-main img, .thumb-media img, .gift-media img { width: 100%; height: 100%; object-fit: cover; }
.ph img { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--stone); }
.card-media img { transition: transform .4s ease; }
.product-card:hover .card-media img { transform: scale(1.03); }
.card-media .tag { position: absolute; top: 12px; left: 12px; background: var(--white); padding: 4px 10px; font-size: 12px; color: var(--ink); }
.card-media .tag-out { left: auto; right: 12px; background: var(--ink); color: var(--white); }
.card-title { font-size: 15px; }
.price-was { color: var(--muted); font-size: 14px; }
.cat-media { aspect-ratio: 1 / 1; border-radius: 50%; background: var(--stone); }
.cat-media img { transition: transform .4s ease; }
.category:hover .cat-media img { transform: scale(1.05); }
.gift-media { position: relative; }
.gift-media img { position: absolute; inset: 0; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--field); background: var(--white); font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.filter-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.shop-count { font-size: 14px; color: var(--ink-soft); }
.gallery-main { background: var(--stone); }
.thumb { padding: 0; overflow: hidden; }
.thumb-media { width: 100%; height: 100%; background: var(--stone); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 12px; background: var(--stone); padding: 4px 10px; }
.pdp-desc { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.empty-state { grid-column: 1 / -1; padding: 32px; background: var(--stone); color: var(--ink-soft); font-size: 15px; text-align: center; }
.empty-state .pdp-title { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) {
  .card-media img, .cat-media img { transition: none; }
  .product-card:hover .card-media img, .category:hover .cat-media img { transform: none; }
}
