/* ===========================================================
   Shagun By Sevanugraha — Gifts & Hamper Solutions
   Global stylesheet (plain CSS, no framework)
   =========================================================== */

:root {
  --burgundy: #6e1d2b;
  --burgundy-dark: #4d141c;
  --gold: #c8a45c;
  --gold-dark: #a9863f;
  --ruby: #9e2b2b;
  --cream: #f9f2e5;
  --cream-dark: #efe1c7;
  --ink: #2b2323;
  --muted: #7a6f6a;
  --white: #ffffff;
  --success: #2e7d4f;
  --danger: #b3261e;
  --shadow: 0 6px 20px rgba(43, 35, 35, 0.08);
  --shadow-lg: 0 12px 34px rgba(43, 35, 35, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.08s ease, background 0.2s ease, color 0.2s ease;
  background: var(--burgundy);
  color: var(--white);
}
.btn:hover { background: var(--burgundy-dark); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--white); }
.btn-whatsapp { background: #128c4a; color: var(--white); margin: 0.85rem 0; gap: 0.55rem; }
.btn-whatsapp:hover { background: #0d6f3a; color: var(--white); }
.whatsapp-icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: currentColor; }
.site-footer .btn-instagram { display: inline-flex; align-items: center; width: auto; gap: 0.5rem; margin-top: 0.8rem; background: #a32971; color: var(--white); }
.btn-instagram:hover { background: #84205c; color: var(--white); }
.instagram-icon { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; fill: currentColor; }
.contact-address { display: inline-block; margin-top: 0.75rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--burgundy);
  color: var(--white);
  box-shadow: var(--shadow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand .brand-mark { color: var(--gold); font-size: 1.7rem; }
.brand-logo { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; object-position: center 32%; background: var(--cream); border: 2px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--cream); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; color: var(--cream); font-weight: 600; }
.cart-link:hover { color: var(--gold); text-decoration: none; }
.cart-badge {
  position: absolute; top: -8px; right: -12px;
  background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--cream); text-align: center; padding: 4.5rem 1.25rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white); }
.hero p { font-size: 1.15rem; max-width: 620px; margin: 0 auto 1.75rem; color: var(--cream-dark); }
.hero .btn + .btn { margin-left: 0.75rem; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 4 / 3; background: var(--cream-dark); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-title { font-size: 1.05rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--burgundy); text-decoration: none; }
.card-desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--burgundy); }
.price .was { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: 0.9rem; margin-right: 0.4rem; }
.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.55rem; border-radius: 999px; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-hamper { background: var(--gold); color: var(--ink); }
.badge-featured { background: var(--burgundy); color: #fff; }
.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rating { color: var(--gold-dark); font-size: 0.85rem; font-weight: 600; }

/* ---------- Category tiles ---------- */
.cat-tile {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem 1rem;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--cream-dark);
  transition: transform 0.12s ease, border-color 0.2s ease;
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; }
.cat-tile .cat-icon { font-size: 2rem; }
.cat-tile h3 { margin: 0.4rem 0 0.2rem; font-size: 1.1rem; color: var(--burgundy); }
.cat-tile p { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Toolbar (shop filters) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.toolbar .field { display: flex; align-items: center; gap: 0.4rem; }
.toolbar label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
input, select, textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.55rem 0.7rem; border: 1px solid var(--cream-dark); border-radius: var(--radius-sm);
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.search-input { min-width: 240px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.product-detail .media { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.product-detail .media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-detail h1 { font-size: 2rem; }
.product-detail .price { font-size: 1.6rem; }
.qty-row { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; }
.qty-input { width: 72px; }
.contents-list { margin: 1rem 0; padding-left: 1.2rem; }
.contents-list li { margin-bottom: 0.3rem; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; align-items: center; background: var(--white); border-radius: var(--radius); padding: 0.85rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.cart-item img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item .name { font-weight: 600; }
.cart-item .remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; padding: 0; }
.hamper-details { margin-top: 0.65rem; padding: 0.65rem 0.75rem; background: var(--cream); border-left: 3px solid var(--gold); font-size: 0.82rem; }
.hamper-details-title { color: var(--burgundy); font-weight: 700; margin-bottom: 0.4rem; }
.hamper-basket, .hamper-details li { display: flex; justify-content: space-between; gap: 1rem; }
.hamper-details ul { list-style: none; margin: 0.35rem 0 0; padding: 0.35rem 0 0; border-top: 1px solid var(--cream-dark); }
.hamper-details li + li { margin-top: 0.3rem; }
.hamper-details strong { white-space: nowrap; }
.hamper-builder-item { grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 0.75rem; }
.hamper-builder-item img { width: 64px; height: 64px; }
.summary { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.6rem; }
.summary-row.total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--cream-dark); padding-top: 0.8rem; margin-top: 0.8rem; color: var(--burgundy); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field .error-text { color: var(--danger); font-size: 0.78rem; min-height: 1em; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }

/* ---------- Alerts / states ---------- */
.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-success { background: #e6f4ec; color: var(--success); border: 1px solid #b8e0c9; }
.alert-info { background: #fef7e8; color: var(--gold-dark); border: 1px solid #f0dcae; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .emoji { font-size: 3rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: 2.25rem; }
.section-head h2 { font-size: 2rem; color: var(--burgundy); }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--gold-dark); }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.feature { text-align: center; }
.feature .fi { font-size: 1.8rem; }
.feature h4 { margin: 0.4rem 0 0.2rem; color: var(--burgundy); }
.feature p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- Product gallery ---------- */
.gallery-section { background: var(--cream); }
.product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; min-width: 0; background: var(--burgundy-dark); }
.gallery-item-featured { grid-column: span 2; grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(to bottom, transparent, rgba(43, 15, 20, 0.88)); }
.gallery-item span { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 0.9rem; color: var(--white); }
.gallery-item strong, .gallery-item small { display: block; }
.gallery-item strong { font-family: var(--font-head); font-size: 1.15rem; }
.gallery-item small { margin-top: 0.15rem; color: var(--cream-dark); }
.gallery-item:hover { text-decoration: none; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- About brand showcase ---------- */
.brand-section { background: var(--white); }
.brand-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.brand-showcase figure { margin: 0; text-align: center; }
.brand-image-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); border: 1px solid var(--cream-dark); }
.brand-image-frame img { width: 100%; height: 100%; object-fit: contain; }
.brand-showcase figcaption { margin-top: 0.7rem; color: var(--burgundy); font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-dark); color: var(--cream-dark); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; }
.site-footer a { color: var(--cream-dark); display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-brand .brand { display: flex; align-items: center; width: fit-content; color: var(--white); margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.1rem 0; text-align: center; font-size: 0.82rem; }
.newsletter { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.newsletter input { flex: 1; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 1rem; }
.pill-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--burgundy-dark); padding: 0.5rem 1.25rem 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero .btn { display: block; margin: 0.5rem auto 0; max-width: 260px; }
  .hero .btn + .btn { margin-left: auto; }
  .product-gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery-item-featured, .gallery-item-wide { grid-column: auto; grid-row: auto; }
  .brand-showcase { grid-template-columns: 1fr; }
  .hamper-builder-item { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .hamper-builder-item img { width: 52px; height: 52px; }
  .hamper-builder-item .price { grid-column: 2 / -1; }
}
