/* ====================================================
   NAMASKARDS - BRAND TOKENS (same values as the Shopify theme)
   ==================================================== */
:root {
  --bg:       #FFF6EC;
  --text:     #3A3A3A;
  --primary:  #F28C28;
  --hover:    #D96C06;
  --accent:   #8B1E2D;
  --white:    #ffffff;
  --border:   #EAD9C8;
  --muted:    #8a7060;
  --dark:     #1C1008;
  --card-bg:  #ffffff;
  --input-border: #E7DECF;
  --radius:   14px;
  --page:     1400px;
  --serif:    'DM Serif Display', serif;
  --sans:     'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-width { max-width: var(--page); margin: 0 auto; padding: 0 40px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- Eyebrow + buttons (shared with homepage sections) ---- */
.nk-eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 12px;
}
.nk-btn {
  font-family: var(--sans); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px; cursor: pointer; border: none; padding: 13px 28px; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}
.nk-btn-primary { background: var(--primary); color: var(--white); }
.nk-btn-primary:hover { background: var(--hover); transform: translateY(-1px); }
.nk-btn-outline-dark { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.nk-btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }
.nk-btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.nk-btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ====================================================
   ANNOUNCEMENT + HEADER
   ==================================================== */
.announcement { text-align: center; padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.header-logo img { width: 118px; height: auto; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 8px 10px; color: rgba(58,58,58,0.75); transition: color 0.2s; }
.nav-link:hover, .nav-item:focus-within .nav-link, .nav-link[aria-current="page"] { color: var(--text); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding: 12px 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown a { display: block; padding: 8px 20px; color: rgba(58,58,58,0.8); }
.nav-dropdown a:hover { color: var(--primary); }
.header-icons { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; border-radius: 50%; position: relative;
}
.icon-btn:hover { background: rgba(0,0,0,0.04); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; }

/* Mobile menu drawer */
.mobile-menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.mobile-menu.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(28,16,8,0.4); opacity: 0; transition: opacity 0.25s; }
.open > .drawer-backdrop { opacity: 1; }
.mobile-menu-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: var(--bg);
  transform: translateX(-100%); transition: transform 0.25s ease; overflow-y: auto; padding: 20px 24px 40px;
}
.mobile-menu.open .mobile-menu-panel { transform: none; }
.mobile-menu-panel details { border-bottom: 1px solid var(--border); }
.mobile-menu-panel summary, .mobile-menu-panel > a {
  display: flex; justify-content: space-between; padding: 14px 0; font-size: 16px; cursor: pointer; list-style: none;
}
.mobile-menu-panel > a { border-bottom: 1px solid var(--border); }
.mobile-menu-panel summary::-webkit-details-marker { display: none; }
.mobile-menu-panel summary::after { content: '+'; color: var(--muted); }
.mobile-menu-panel details[open] summary::after { content: '\2212'; }
.mobile-menu-panel details a { display: block; padding: 8px 0 8px 14px; color: var(--muted); }
.mobile-menu-panel details div { padding-bottom: 10px; }

/* Search overlay */
.search-modal { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.search-modal.open { visibility: visible; }
.search-panel {
  position: absolute; top: 0; left: 0; right: 0; background: var(--bg); padding: 24px 0 32px;
  transform: translateY(-100%); transition: transform 0.25s ease; border-bottom: 1px solid var(--border);
  max-height: 85vh; overflow-y: auto;
}
.search-modal.open .search-panel { transform: none; }
.search-form { display: flex; gap: 12px; align-items: center; }
.search-form input {
  flex: 1; padding: 14px 18px; border: 1px solid var(--input-border); border-radius: var(--radius); background: #fff; font-size: 16px;
}
.search-results { margin-top: 20px; }
.search-results .product-grid { grid-template-columns: repeat(5, 1fr); }
.search-empty { color: var(--muted); padding: 12px 0; }

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer { border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px 0 32px; }
.footer-top h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
.footer-top p { color: var(--text); max-width: 420px; }
.newsletter { display: flex; align-items: center; border: 1px solid var(--input-border); border-radius: var(--radius); background: #fff; padding-right: 6px; }
.newsletter input { flex: 1; border: none; background: transparent; padding: 15px 18px; min-width: 0; }
.newsletter input:focus { outline: none; }
.newsletter button { background: none; border: none; cursor: pointer; padding: 8px 12px; font-size: 18px; }
.newsletter-msg { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 20px; }
.trustpilot { display: flex; justify-content: center; padding-bottom: 28px; }
.trustpilot a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #191919; border-radius: 4px;
  background: #fff; font-size: 13px;
}
.trustpilot svg { width: 18px; height: 18px; }
.charity-strip { background: var(--accent); color: #fff; text-align: center; padding: 12px 16px; font-size: 13px; }
.charity-strip strong { color: var(--primary); }
.charity-strip a { margin-left: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { padding: 24px 0 32px; font-size: 12px; color: var(--muted); display: grid; gap: 10px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--primary); }

/* ====================================================
   PRODUCT CARDS + COLLECTION PAGES
   ==================================================== */
.collection-header { padding: 48px 0 24px; }
.collection-header h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.collection-desc { color: var(--muted); max-width: 720px; margin-top: 12px; font-size: 15px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 20px; color: var(--muted); font-size: 13px; }
.collection-toolbar select { border: none; background: transparent; cursor: pointer; color: var(--text); }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 12px; padding-bottom: 64px; }
.product-card a { display: block; }
.product-card-media { aspect-ratio: 1; overflow: hidden; background: var(--border); position: relative; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s, transform 0.4s; }
.product-card-media img + img { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card-media img + img { opacity: 1; }
.product-card-title { color: var(--primary); font-size: 13px; margin-top: 10px; line-height: 1.4; }
.product-card-price { font-size: 13px; color: var(--muted); }
.product-card-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; z-index: 1; }

/* Collections index */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 16px; padding-bottom: 64px; }
.collection-tile-media { aspect-ratio: 1; overflow: hidden; background: var(--border); }
.collection-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.collection-tile:hover img { transform: scale(1.03); }
.collection-tile-title { margin-top: 10px; font-size: 14px; }

/* ====================================================
   PRODUCT PAGE
   ==================================================== */
.product { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 24px; padding: 0 0 64px; }
.product-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; }
.product-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--border); cursor: zoom-in; }
.product-info { position: sticky; top: 108px; align-self: start; padding: 24px 0 0 24px; }
.product-info h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin-bottom: 10px; }
.product-price { font-size: 14px; margin-bottom: 24px; }
.option-label { display: block; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.option-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.option-pills input { position: absolute; opacity: 0; pointer-events: none; }
.option-pills label {
  text-align: center; padding: 11px 12px; border: 1px solid var(--input-border); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.option-pills label:hover { border-color: var(--primary); }
.option-pills input:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
.option-pills input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.buy-row { display: flex; gap: 8px; margin-bottom: 16px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--input-border); border-radius: var(--radius); background: #fff; height: 52px;
}
.qty button { width: 40px; height: 100%; border: none; background: none; cursor: pointer; font-size: 16px; }
.qty input { width: 40px; text-align: center; border: none; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add-to-cart {
  flex: 1; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-size: 14px;
  transition: background 0.2s;
}
.add-to-cart:hover { background: var(--hover); }
.add-to-cart:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.offer-note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.offer-note strong { color: var(--primary); font-weight: 600; }
.rte { font-size: 14px; line-height: 1.7; }
.rte p { margin-bottom: 14px; }
.rte ul { padding-left: 20px; margin-bottom: 14px; }
.rte li { margin-bottom: 4px; }
.rte h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 28px 0 10px; }
.rte a { color: var(--primary); text-decoration: underline; }
.related { padding: 48px 0 0; border-top: 1px solid var(--border); }
.related h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(28,16,8,0.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ====================================================
   CART DRAWER + CART PAGE
   ==================================================== */
.cart-drawer { position: fixed; inset: 0; z-index: 105; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease;
}
.cart-drawer.open .cart-panel { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-head h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-foot { border-top: 1px solid var(--border); padding: 18px 24px 24px; display: grid; gap: 12px; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--muted); display: grid; gap: 20px; justify-items: center; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; background: var(--border); }
.cart-line-title { font-size: 14px; line-height: 1.35; }
.cart-line-variant { font-size: 12px; color: var(--muted); }
.cart-line-free { font-size: 12px; color: var(--primary); font-weight: 600; }
.cart-line .qty { height: 36px; margin-top: 8px; }
.cart-line .qty button { width: 32px; }
.cart-line .qty input { width: 30px; }
.cart-line-price { text-align: right; font-size: 14px; }
.cart-line-price s { color: var(--muted); display: block; font-size: 12px; }
.cart-remove { background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; margin-top: 8px; }
.cart-nudge { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.cart-nudge strong { color: var(--primary); }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; }
.cart-row.total { font-size: 16px; font-weight: 600; }
.cart-row .discount { color: var(--primary); }
.cart-country { display: grid; gap: 6px; font-size: 13px; }
.cart-country select { padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 10px; background: #fff; }
.cart-small { font-size: 12px; color: var(--muted); }
.cart-error { color: var(--accent); font-size: 13px; }
.checkout-btn { width: 100%; height: 52px; }
.checkout-btn[disabled] { opacity: 0.6; cursor: wait; }
.cart-page { max-width: 640px; margin: 0 auto; padding: 48px 0 80px; }
.cart-page .cart-panel { position: static; transform: none; width: auto; background: transparent; }
.cart-page h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin-bottom: 12px; }

/* ====================================================
   CONTENT PAGES + FORMS
   ==================================================== */
.content-page { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.content-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 16px; }
.content-page .lead { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 8px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.check input { margin-top: 4px; accent-color: var(--primary); }
.form-card .nk-btn { margin-top: 8px; }
.success-page { text-align: center; padding: 96px 0; display: grid; gap: 18px; justify-items: center; }
.success-page h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; }
.success-page p { color: var(--muted); max-width: 520px; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .product-grid, .search-results .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; }
  .product-info { position: static; padding: 8px 0 0; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-row { gap: 8px; min-height: 72px; }
  .header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-width { padding: 0 16px; }
  .product-grid, .search-results .product-grid, .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .product-gallery { grid-template-columns: 1fr; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: 0 -16px; }
  .product-gallery img { flex: 0 0 100%; scroll-snap-align: start; cursor: default; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .content-page { padding: 40px 0 64px; }
}
