/*
 * Store styles for Nirog Bhumi.
 *
 * styles.css covers only the theme's own page wrappers (.product-page,
 * .cart-layout, .checkout-layout, .account-grid) and has no rules for the
 * markup WooCommerce itself generates, or for the store-specific components
 * below. This file owns all of that, using the palette and type already
 * declared in styles.css so the store reads as part of the same site rather
 * than a bolted-on shop.
 *
 * Written as flat, single-purpose rules with one deliberate breakpoint per
 * component (mobile collapse) - no !important, no viewport-locked heights.
 * The previous hero (.kit-viewport-card) had accumulated dozens of !important
 * overrides fighting each other across breakpoints; every component here is
 * built to size itself from its content instead.
 */

/* ---------------------------------------------------------------------------
 * Shared shelf rhythm
 * ------------------------------------------------------------------------ */

.store-page-minimal {
  background: var(--paper);
}

.store-shelf {
  padding: clamp(34px, 5vw, 56px) clamp(20px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.store-shelf-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

.store-shelf-title h2 {
  max-width: 640px;
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 38px);
}

.store-shelf-title > a {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.store-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .store-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .store-shelf-title { display: block; }
  .store-shelf-title > a { display: inline-block; margin-top: 12px; }
  .store-shelf-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
 * Store hero carousel: one slide per product category
 * ------------------------------------------------------------------------ */

.store-hero-carousel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.store-hero-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.store-hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(34px, 5vw, 64px) clamp(56px, 7vw, 84px);
}

.store-hero-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3.1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  order: 2;
}

.store-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.store-hero-copy {
  order: 1;
}

.store-hero-copy h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  max-width: 15ch;
}

.store-hero-summary {
  max-width: 46ch;
  margin-top: 16px;
  color: #3c4a3e;
  line-height: 1.65;
}

.store-hero-price {
  margin: 20px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  color: var(--ink);
}

.store-hero-includes {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 40ch;
}

.store-hero-includes li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: #3c4a3e;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.store-hero-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--earth);
}

.store-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: border-color .15s ease, background .15s ease;
}

.store-hero-arrow:hover {
  border-color: var(--dark);
  background: var(--paper);
}

.store-hero-arrow.prev { left: clamp(14px, 2vw, 24px); }
.store-hero-arrow.next { right: clamp(14px, 2vw, 24px); }

.store-hero-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.store-hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}

.store-hero-dots button.is-active {
  background: var(--dark);
  width: 20px;
}

@media (max-width: 860px) {
  .store-hero-slide {
    grid-template-columns: 1fr;
    padding-left: clamp(20px, 5vw, 58px);
    padding-right: clamp(20px, 5vw, 58px);
  }
  .store-hero-media { order: 1; aspect-ratio: 4 / 2.6; }
  .store-hero-copy { order: 2; }
  .store-hero-copy h1 { max-width: none; }
  .store-hero-arrow { display: none; }
}

/* ---------------------------------------------------------------------------
 * Shop-by-category tiles: small icons, not large images
 * ------------------------------------------------------------------------ */

.store-category-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(26px, 4vw, 40px) clamp(20px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.store-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 104px;
}

.store-category-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--dark);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.store-category-tile-icon svg {
  width: 30px;
  height: 30px;
}

.store-category-tile:hover .store-category-tile-icon,
.store-category-tile:focus-visible .store-category-tile-icon {
  border-color: var(--dark);
  background: var(--soft);
  transform: translateY(-2px);
}

.store-category-tile-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* ---------------------------------------------------------------------------
 * Shelf filter nav (category archive pages)
 * ------------------------------------------------------------------------ */

.store-shelf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(20px, 5vw, 58px) 22px;
}

.store-shelf-nav a {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #3b4a3d;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.store-shelf-nav a:hover,
.store-shelf-nav a:focus-visible {
  border-color: var(--dark);
}

.store-shelf-nav a.is-current {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* ---------------------------------------------------------------------------
 * Status banners and notes
 * ------------------------------------------------------------------------ */

.store-status-banner {
  margin: 0;
  padding: 14px clamp(20px, 5vw, 58px);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: #4a4028;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}

.store-status-banner.inline {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--soft);
}

.store-dispatch-note {
  margin: 0;
  color: #4c5a4e;
  font-size: 12px;
}

.store-dispatch-strip {
  padding: 14px clamp(20px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.store-archive-intro {
  max-width: 640px;
  margin-top: 14px;
}

.store-coming-soon-note {
  margin: 18px auto 0;
  max-width: 520px;
  color: #47543f;
}

.store-coming-soon .hero-buttons {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-legal-note {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 5vw, 58px);
}

.store-legal-note p {
  max-width: 780px;
  font-size: 12px;
  color: #55624f;
}

.store-empty-shelf {
  padding: clamp(40px, 6vw, 72px) 0;
  text-align: center;
}

.store-empty-shelf .pill {
  margin-top: 22px;
}

/* ---------------------------------------------------------------------------
 * Consultation / programmes promo card
 *
 * Deliberately styled unlike a product card - it must never be mistaken for
 * a catalogue item, since consultations and programmes are not sold here.
 * ------------------------------------------------------------------------ */

/*
 * A small, self-contained card rather than a full-width band: the figure is
 * a circular cutout that sits half inside, half overlapping the top edge of
 * the card (the "premium overflow" treatment), so a plain rectangular photo
 * reads like a floating product/portrait shot instead of a banner image.
 * Swap the <img> for a transparent PNG later and the same layout still
 * works, only without the circular mask underneath it.
 */
.store-promo-card {
  position: relative;
  max-width: 380px;
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding: 56px 28px 30px;
  border-radius: 20px;
  background: var(--dark);
  text-align: center;
}

.store-promo-card + .store-shelf {
  margin-top: clamp(34px, 5vw, 56px);
}

.store-promo-media {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid var(--paper);
  background: var(--soft);
}

.store-promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-promo-body-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.store-promo-card .eyebrow {
  color: #b9d0b2;
  margin-bottom: 8px;
}

.store-promo-card h2 {
  color: #fff;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.25;
  max-width: 26ch;
}

.store-promo-body {
  max-width: 40ch;
  margin-top: 10px;
  color: #d7e2d2;
  font-size: 12.5px;
  line-height: 1.6;
}

.store-promo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.store-promo-actions .pill {
  padding: 9px 16px;
  font-size: 12px;
}

.store-promo-actions .pill.primary {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.store-promo-actions .pill.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

/* ---------------------------------------------------------------------------
 * Product cards
 * ------------------------------------------------------------------------ */

.store-tile {
  transition: box-shadow .18s ease, transform .18s ease;
}

.store-tile:hover,
.store-tile:focus-within {
  box-shadow: 0 14px 30px rgba(49, 73, 54, .1);
  transform: translateY(-3px);
}

.store-tile figure {
  position: relative;
}

.store-tile figure a {
  display: block;
  width: 100%;
  height: 100%;
}

.store-tile h3 a {
  display: inline-block;
}

.store-tile-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--earth);
  color: #1c2b1e;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.store-tile-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  width: max-content;
}

/* ---------------------------------------------------------------------------
 * Launch state: coming soon, enquiry, waitlist
 * ------------------------------------------------------------------------ */

.nb-launch-label {
  color: #6c5f3c;
  font-weight: 700;
}

.store-tile .price-row .nb-launch-action {
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  width: max-content;
}

.product-launch-action {
  margin-top: 24px;
}

.nb-waitlist {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.nb-waitlist strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
}

.nb-waitlist p {
  margin-top: 6px;
  font-size: 13px;
}

.nb-waitlist-fields {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.nb-waitlist input {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #263126;
}

.nb-waitlist input:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 1px;
}

.nb-waitlist-status {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 650;
}

.nb-waitlist-status.is-good { color: #2f6b33; }
.nb-waitlist-status.is-bad  { color: #99351f; }

@media (max-width: 720px) {
  .nb-waitlist-fields { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
 * Header cart link
 * ------------------------------------------------------------------------ */

.nb-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}

.nb-cart-link b {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
}

/* ---------------------------------------------------------------------------
 * Single product page
 * ------------------------------------------------------------------------ */

.store-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px clamp(24px, 6vw, 58px) 0;
  font-size: 11.5px;
  color: #6b7568;
}

.store-breadcrumb a {
  color: #6b7568;
  border-bottom: 1px solid transparent;
}

.store-breadcrumb a:hover {
  color: var(--dark);
  border-color: currentColor;
}

.store-breadcrumb span[aria-current] {
  color: var(--ink);
  font-weight: 650;
}

.product-detail .product-summary p {
  margin-top: 0;
  color: #47543f;
}

.product-detail .price {
  display: block;
  margin: 4px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
}

.product-detail .price del {
  opacity: .5;
  margin-right: 8px;
}

.product-buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.product-view-cart-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.product-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b7568;
  font-weight: 700;
}

.product-accordion {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.product-accordion details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}

.product-accordion details[open] {
  background: var(--paper);
}

.product-accordion details.is-caution {
  border-color: #d9c48f;
  background: #fdf8ea;
}

.product-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink);
  list-style: none;
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: #6b7568;
}

.product-accordion details[open] summary::after {
  content: "\2212";
}

.product-accordion details p,
.product-accordion .product-longform {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #3c4a3e;
}

.product-accordion .product-longform ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.product-accordion .product-longform li {
  margin-top: 6px;
}

.related-shelf {
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------------------
 * Add to cart form and quantity input
 * ------------------------------------------------------------------------ */

form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.quantity {
  display: inline-flex;
  align-items: center;
}

.quantity input.qty {
  width: 76px;
  min-height: 46px;
  padding: 0 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #263126;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  opacity: 1;
}

button.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
a.added_to_cart {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark);
  border-radius: 999px;
  padding: 0 21px;
  background: var(--dark);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
button.single_add_to_cart_button:hover {
  background: #263a2b;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--dark);
  color: #fff;
}

button.single_add_to_cart_button[disabled],
.woocommerce button.button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.stock.out-of-stock {
  margin-top: 12px;
  color: #99351f;
  font-weight: 650;
}

/* ---------------------------------------------------------------------------
 * Notices
 * ------------------------------------------------------------------------ */

.woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  list-style: none;
  font-size: 13px;
  color: #2f3b32;
}

.woocommerce-message { border-color: #b6cf9d; background: #f3f8ec; }
.woocommerce-info    { border-color: #a9cfd1; background: #eef7f7; }
.woocommerce-error   { border-color: #dcae9f; background: #fbf0ec; }

.woocommerce-error li + li,
.woocommerce-message li + li {
  margin-top: 6px;
}

.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: 12px;
}

/* ---------------------------------------------------------------------------
 * Cart totals, checkout review and account tables
 * ------------------------------------------------------------------------ */

table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.shop_table th,
table.shop_table td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: #2f3b32;
}

table.shop_table th {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #47543f;
}

table.shop_table td:last-child,
table.shop_table th:last-child {
  text-align: right;
}

table.shop_table tfoot th,
table.shop_table tfoot td {
  font-weight: 700;
}

table.shop_table .order-total th,
table.shop_table .order-total td {
  border-bottom: 0;
  padding-top: 16px;
  font-size: 16px;
}

.cart_totals h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.wc-proceed-to-checkout {
  margin-top: 18px;
}

.wc-proceed-to-checkout .checkout-button {
  width: 100%;
}

.woocommerce-checkout-review-order-table .product-name {
  padding-right: 16px;
}

.woocommerce-orders-table td,
.woocommerce-orders-table th {
  font-size: 12px;
}

/* ---------------------------------------------------------------------------
 * Payment methods
 * ------------------------------------------------------------------------ */

#payment {
  margin-top: 20px;
}

#payment ul.wc_payment_methods {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

#payment ul.wc_payment_methods li {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}

#payment ul.wc_payment_methods label {
  font-weight: 650;
  cursor: pointer;
}

#payment .payment_box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 12px;
}

#payment .payment_box p:last-child {
  margin-bottom: 0;
}

#payment .woocommerce-privacy-policy-text {
  margin-top: 16px;
  font-size: 12px;
  color: #55624f;
}

#payment .form-row.place-order {
  margin-top: 18px;
}

#place_order {
  width: 100%;
}

/* ---------------------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------------------ */

.woocommerce-pagination ul.page-numbers {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.woocommerce-pagination span.current {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* ---------------------------------------------------------------------------
 * Accessibility helper used by the waitlist labels
 * ------------------------------------------------------------------------ */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
