/**
 * Season Haat storefront contract — v1.4.1.
 *
 * This file intentionally loads after app.css.  Keep product/archive/checkout
 * layout changes here so a future release has one authoritative cascade.
 */

:root {
  --shc-green: #006b3c;
  --shc-green-dark: #004d2c;
  --shc-green-soft: #e9f8f0;
  --shc-orange: #ff6b00;
  --shc-orange-dark: #e95f00;
  --shc-gold: #ffb515;
  --shc-ink: #17241d;
  --shc-muted: #66766d;
  --shc-border: #dce8e1;
  --shc-surface: #ffffff;
  --shc-radius: 18px;
  --shc-shadow: 0 14px 42px rgba(0, 77, 44, 0.09);
}

/* Crisp header text: avoid a composited blur layer on Windows/Chrome. */
.season-haat-v140 .sh-announcement,
.season-haat-v140 .sh-site-header,
.season-haat-v140 .sh-site-header * {
  filter: none !important;
  text-shadow: none !important;
}

.season-haat-v140 .sh-announcement {
  background: var(--shc-green-dark) !important;
}

.season-haat-v140 .sh-announcement p {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.45;
}

.season-haat-v140 .sh-site-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: #fff !important;
}

.season-haat-v140 .sh-site-header .wp-block-search {
  position: relative;
  z-index: 4;
}

.season-haat-v140 .sh-site-header .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--shc-green) !important;
  outline: 3px solid rgba(0, 107, 60, 0.13);
}

.shcc-search-results {
  position: absolute;
  z-index: 1002;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  overflow: hidden;
  min-width: min(430px, calc(100vw - 24px));
  max-height: min(520px, 70vh);
  padding: 7px;
  border: 1px solid var(--shc-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 36, 25, 0.18);
  overflow-y: auto;
}

.shcc-search-results[hidden] { display: none !important; }

.shcc-search-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 7px;
  border-radius: 11px;
  color: var(--shc-ink) !important;
  text-decoration: none !important;
}

.shcc-search-result:hover,
.shcc-search-result:focus-visible {
  background: #f1f8f4;
  outline: none;
}

.shcc-search-result img {
  width: 58px;
  height: 58px;
  border: 1px solid #edf2ef;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.shcc-search-result strong,
.shcc-search-result span { display: block; }
.shcc-search-result strong { line-height: 1.35; }
.shcc-search-result .shcc-search-price { margin-top: 3px; color: var(--shc-green); font-size: 0.88rem; font-weight: 800; }
.shcc-search-state { margin: 0; padding: 14px 12px; color: var(--shc-muted); text-align: center; }

/* Accessible controls and visible keyboard focus. */
.season-haat-v140 :where(button:not(.shcc-slider-dot), .button, .wp-element-button, input[type="submit"]) {
  min-height: 48px;
}

.season-haat-v140 :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(255, 181, 21, 0.48);
  outline-offset: 2px;
}

/* Shop and product archives: 4 desktop / 2 mobile. */
.season-haat-v140.post-type-archive-product main.wp-block-group.alignwide,
.season-haat-v140.tax-product_cat main.wp-block-group.alignwide,
.season-haat-v140.tax-product_tag main.wp-block-group.alignwide {
  width: min(1320px, calc(100% - 32px)) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
}

.season-haat-v140 .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.8vw, 22px) !important;
}

.season-haat-v140 .woocommerce ul.products::before,
.season-haat-v140 .woocommerce ul.products::after { display: none !important; }

.season-haat-v140 .woocommerce ul.products li.product,
.season-haat-v140.woocommerce-page ul.products li.product {
  position: relative;
  display: flex !important;
  overflow: hidden;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 10px 10px 12px !important;
  border: 1px solid var(--shc-border);
  border-radius: var(--shc-radius);
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 77, 44, 0.06);
  box-sizing: border-box;
}

.season-haat-v140 .woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.season-haat-v140 .woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: visible;
  border-radius: 13px 13px 0 0;
}

.shcc-card-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 11px;
  border-radius: 13px;
  background: linear-gradient(145deg, #f7faf8, #fff9ec);
}

.season-haat-v140 .woocommerce ul.products li.product .shcc-card-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .season-haat-v140 .woocommerce ul.products li.product:hover .shcc-card-media img { transform: scale(1.045); }
}

.shcc-loop-badges {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 32px);
  pointer-events: none;
}

.shcc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--shc-green);
  color: #fff;
  font-size: 0.69rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.13);
}

.shcc-badge-hot { background: #e11919; }
.shcc-badge-new { background: #008348; }
.shcc-badge-free { background: #087b49; }
.shcc-badge-save { background: var(--shc-orange); }

.season-haat-v140 .woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.72em !important;
  max-height: 2.72em;
  padding: 0 !important;
  color: var(--shc-ink);
  font-size: 0.98rem !important;
  font-weight: 750;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.season-haat-v140 .woocommerce ul.products li.product .shcc-loop-rating {
  min-height: 22px;
  margin: 6px 0 5px;
}

.shcc-price-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: var(--shc-ink);
}

.shcc-price-current,
.shcc-price-current .amount {
  color: var(--shc-green-dark);
  font-weight: 900;
}

.shcc-price-regular,
.shcc-price-regular .amount {
  color: #89958f;
  font-size: 0.82em;
  font-weight: 650;
}

.shcc-price-save {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #ffd9bf;
  border-radius: 7px;
  background: #fff6ef;
  color: var(--shc-orange-dark);
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.season-haat-v140 .woocommerce ul.products li.product .price {
  min-height: 34px;
  margin: 3px 0 9px !important;
  font-size: 1.06rem !important;
}

.season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  margin-top: auto;
}

.season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions .button,
.season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions .added_to_cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 7px 5px !important;
  border: 1px solid #f1c98e;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 0.78rem !important;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions .add_to_cart_button {
  background: #fff4dc !important;
  color: var(--shc-ink) !important;
  box-shadow: none !important;
}

.season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions .shcc-loop-buy-now {
  border-color: var(--shc-orange);
  background: var(--shc-orange) !important;
  color: #fff !important;
}

.season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions .added_to_cart {
  grid-column: 1 / -1;
  min-height: 38px !important;
  border-color: #b9dfca;
  background: var(--shc-green-soft);
  color: var(--shc-green-dark);
}

/* Circular category cards on the homepage. */
.season-haat-v140 .product-category.product {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

.season-haat-v140 .product-category.product .shcc-card-media,
.season-haat-v140 .product-category.product > a > img {
  border: 5px solid #fff;
  border-radius: 50% !important;
  box-shadow: 0 10px 30px rgba(0, 77, 44, 0.12);
}

.season-haat-v140 .product-category.product mark { background: transparent; color: var(--shc-muted); }

/* Single product: server-rendered gallery/summary wrapper. */
body.single-product.season-haat-v140 main.wp-block-group.alignwide {
  width: min(1320px, calc(100% - 32px)) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  padding-top: clamp(20px, 3vw, 42px) !important;
}

body.single-product.season-haat-v140 .woocommerce div.product {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

body.single-product.season-haat-v140 .woocommerce div.product > .shcc-product-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr) !important;
  align-items: start !important;
  gap: clamp(24px, 3.5vw, 52px) !important;
  width: 100%;
  margin: 0 0 clamp(34px, 5vw, 64px) !important;
}

body.single-product.season-haat-v140 .shcc-product-hero > .woocommerce-product-gallery,
body.single-product.season-haat-v140 .shcc-product-hero > .summary {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

body.single-product.season-haat-v140 .shcc-product-hero > .woocommerce-product-gallery {
  padding: clamp(10px, 1.4vw, 16px) !important;
  border: 1px solid var(--shc-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shc-shadow);
}

body.single-product.season-haat-v140 .woocommerce-product-gallery__wrapper { margin: 0 !important; }

body.single-product.season-haat-v140 .shcc-product-hero .woocommerce-product-gallery__image,
body.single-product.season-haat-v140 .shcc-product-hero .woocommerce-product-gallery__image > a {
  display: grid !important;
  place-items: center;
  overflow: hidden;
  width: 100%;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #fff;
  cursor: zoom-in;
}

body.single-product.season-haat-v140 .shcc-product-hero .woocommerce-product-gallery__image > a {
  height: 100% !important;
}

body.single-product.season-haat-v140 .shcc-product-hero .woocommerce-product-gallery__image img:not(.zoomImg) {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 !important;
  object-fit: contain;
}

body.single-product.season-haat-v140 .woocommerce div.product div.images .flex-control-thumbs {
  display: flex !important;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 10px 0 0 !important;
  padding: 2px 1px 5px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

body.single-product.season-haat-v140 .woocommerce div.product div.images .flex-control-thumbs li {
  float: none !important;
  flex: 0 0 72px;
  width: 72px !important;
  padding: 3px;
  border: 1px solid var(--shc-border);
  border-radius: 10px;
  background: #fff;
  scroll-snap-align: start;
  box-sizing: border-box;
}

body.single-product.season-haat-v140 .woocommerce div.product div.images .flex-control-thumbs img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 7px !important;
  object-fit: contain;
}

body.single-product.season-haat-v140 .shcc-product-hero > .summary {
  padding: clamp(22px, 2.7vw, 36px) !important;
  border: 1px solid var(--shc-border);
  border-radius: 22px !important;
  background: #fff;
  box-shadow: var(--shc-shadow);
}

.shcc-product-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.shcc-taxonomy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff3d6;
  color: #815400;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body.single-product.season-haat-v140 .shcc-product-hero .product_title {
  margin: 0 0 9px !important;
  color: var(--shc-ink);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem) !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.single-product.season-haat-v140 .shcc-product-hero p.price {
  margin: 12px 0 !important;
  font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
}

body.single-product.season-haat-v140 .shcc-product-hero p.price .shcc-price-save { font-size: 0.72rem; }

.shcc-product-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 15px;
}

.shcc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--shc-green-soft);
  color: #00643a;
  font-size: 0.78rem;
  font-weight: 800;
}

.shcc-status-pill::before { width: 7px; height: 7px; border-radius: 50%; background: #10a65b; content: ""; }

body.single-product.season-haat-v140 .shcc-product-hero form.cart {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
  margin: 18px 0 0 !important;
}

.shcc-quantity-label {
  grid-column: 1 / -1;
  margin: 0;
  color: #34483d;
  font-size: 0.84rem;
  font-weight: 800;
}

body.single-product.season-haat-v140 .shcc-product-hero form.cart .quantity {
  display: grid !important;
  grid-column: 1 / -1;
  grid-template-columns: 48px 58px 48px;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 0 2px !important;
  border: 1px solid #cbdcd3;
  border-radius: 13px;
  background: #fff;
}

.shcc-qty-button {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--shc-ink);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none !important;
}

body.single-product.season-haat-v140 .shcc-product-hero form.cart .quantity .qty {
  width: 58px !important;
  min-width: 0;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 4px;
  border: 0 !important;
  border-right: 1px solid #e2ebe6 !important;
  border-left: 1px solid #e2ebe6 !important;
  border-radius: 0 !important;
  background: #fff;
  color: var(--shc-ink);
  font-weight: 900;
  text-align: center;
  box-shadow: none !important;
  -moz-appearance: textfield;
}

body.single-product.season-haat-v140 .quantity .qty::-webkit-outer-spin-button,
body.single-product.season-haat-v140 .quantity .qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

body.single-product.season-haat-v140 .shcc-product-hero form.cart .single_add_to_cart_button,
body.single-product.season-haat-v140 .shcc-product-hero form.cart .shcc-buy-now {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  line-height: 1.2;
}

body.single-product.season-haat-v140 .shcc-product-hero form.cart .single_add_to_cart_button {
  border: 2px solid var(--shc-orange) !important;
  background: #fff !important;
  color: var(--shc-orange-dark) !important;
  box-shadow: none !important;
}

body.single-product.season-haat-v140 .shcc-product-hero form.cart .shcc-buy-now {
  border: 2px solid var(--shc-orange) !important;
  background: var(--shc-orange) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(255, 107, 0, 0.23) !important;
}

body.single-product.season-haat-v140 .shcc-product-hero .shcc-product-contact {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
  margin: 10px 0 0;
}

body.single-product.season-haat-v140 .shcc-product-hero .shcc-product-contact a {
  min-height: 48px !important;
  border-radius: 13px;
  font-size: 0.88rem;
}

body.single-product.season-haat-v140 .woocommerce div.product > :is(.woocommerce-tabs, .upsells, .related) {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
}

body.single-product.season-haat-v140 .woocommerce div.product > .woocommerce-tabs {
  margin-bottom: clamp(32px, 4vw, 52px) !important;
  padding: clamp(16px, 2.5vw, 28px) !important;
  border: 1px solid var(--shc-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(0, 77, 44, 0.06);
}

body.single-product.season-haat-v140 .woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

body.single-product.season-haat-v140 .woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.single-product.season-haat-v140 .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.single-product.season-haat-v140 .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }

body.single-product.season-haat-v140 .woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 1px solid var(--shc-border);
  border-radius: 999px;
  background: #f6faf8;
}

body.single-product.season-haat-v140 .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-color: var(--shc-green);
  background: var(--shc-green);
}

body.single-product.season-haat-v140 .woocommerce div.product .woocommerce-tabs ul.tabs li a {
  min-height: 44px;
  padding: 11px 16px;
  color: var(--shc-ink);
}

body.single-product.season-haat-v140 .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
body.single-product.season-haat-v140 .woocommerce-Tabs-panel { color: #34483d; line-height: 1.75; }
body.single-product.season-haat-v140 .related > h2,
body.single-product.season-haat-v140 .upsells > h2 { margin-bottom: 22px; color: var(--shc-green-dark); }

/* Optional customer product photo, safely attached to a WooCommerce review. */
.shcc-review-upload { margin: 12px 0 !important; }
.shcc-review-upload label { display: block; margin-bottom: 6px; font-weight: 750; }
.shcc-review-upload input[type="file"] { display: block; width: 100%; padding: 10px; border: 1px solid var(--shc-border); border-radius: 10px; background: #f8fbf9; box-sizing: border-box; }
.shcc-review-upload small { display: block; margin-top: 5px; color: var(--shc-muted); }
.shcc-review-photo { display: inline-block; overflow: hidden; margin-top: 12px; border: 1px solid var(--shc-border); border-radius: 12px; background: #fff; }
.shcc-review-photo img { display: block; width: min(220px, 100%); height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* Mobile sticky conversion bar (rendered once on purchasable products). */
.shcc-mobile-sticky { display: none; }

/* Minimal one-page checkout. */
body.woocommerce-checkout.season-haat-v140 .woocommerce form.checkout.checkout {
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  gap: clamp(20px, 3vw, 34px);
}

body.woocommerce-checkout.season-haat-v140 .woocommerce-billing-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.woocommerce-checkout.season-haat-v140 #billing_first_name_field,
body.woocommerce-checkout.season-haat-v140 #billing_phone_field,
body.woocommerce-checkout.season-haat-v140 #billing_delivery_zone_field,
body.woocommerce-checkout.season-haat-v140 #billing_address_1_field { grid-column: 1 / -1 !important; }

body.woocommerce-checkout.season-haat-v140 .optional { color: var(--shc-muted); }

/* Fallback when a cache serves markup before the core wrapper was activated. */
@supports selector(.woocommerce div.product:has(> .shcc-product-hero)) {
  body.single-product.season-haat-v140 .woocommerce div.product:not(:has(> .shcc-product-hero)) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr) !important;
    align-items: start;
    gap: clamp(24px, 3.5vw, 52px);
  }

  body.single-product.season-haat-v140 .woocommerce div.product:not(:has(> .shcc-product-hero)) > .woocommerce-product-gallery,
  body.single-product.season-haat-v140 .woocommerce div.product:not(:has(> .shcc-product-hero)) > .summary {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.single-product.season-haat-v140 .woocommerce div.product:not(:has(> .shcc-product-hero)) > :is(.woocommerce-tabs, .upsells, .related) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .season-haat-v140 .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 900px) {
  body.single-product.season-haat-v140 .woocommerce div.product > .shcc-product-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  @supports selector(.woocommerce div.product:has(> .shcc-product-hero)) {
    body.single-product.season-haat-v140 .woocommerce div.product:not(:has(> .shcc-product-hero)) { grid-template-columns: minmax(0, 1fr) !important; }
    body.single-product.season-haat-v140 .woocommerce div.product:not(:has(> .shcc-product-hero)) > :is(.woocommerce-tabs, .upsells, .related) { grid-column: 1; }
  }

  body.woocommerce-checkout.season-haat-v140 .woocommerce form.checkout.checkout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .season-haat-v140 .sh-announcement { padding: 7px 9px !important; }
  .season-haat-v140 .sh-announcement p { font-size: 0.73rem !important; }
  .shcc-search-results { position: fixed; top: 124px; right: 10px; left: 10px; min-width: 0; max-height: calc(100dvh - 145px); }

  .season-haat-v140 .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .season-haat-v140 .woocommerce ul.products li.product,
  .season-haat-v140.woocommerce-page ul.products li.product {
    padding: 7px 7px 9px !important;
    border-radius: 14px;
  }

  .shcc-card-media { margin-bottom: 8px; border-radius: 11px; }
  .shcc-loop-badges { top: 11px; left: 11px; gap: 3px; max-width: calc(100% - 22px); }
  .shcc-badge { min-height: 21px; padding: 3px 6px; font-size: 0.58rem; }

  .season-haat-v140 .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.66em !important;
    max-height: 2.66em;
    font-size: 0.82rem !important;
    line-height: 1.33;
  }

  .season-haat-v140 .woocommerce ul.products li.product .shcc-loop-rating { margin: 4px 0; font-size: 0.68rem; }
  .season-haat-v140 .woocommerce ul.products li.product .price { min-height: 31px; font-size: 0.91rem !important; }
  .season-haat-v140 .woocommerce ul.products li.product .shcc-price-save { padding-inline: 5px; font-size: 0.56rem; }

  .season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions .button,
  .season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions .added_to_cart {
    min-height: 48px !important;
    padding: 5px 3px !important;
    border-radius: 10px;
    font-size: 0.68rem !important;
  }

  body.single-product.season-haat-v140 main.wp-block-group.alignwide { width: calc(100% - 18px) !important; }
  body.single-product.season-haat-v140 .shcc-product-hero > .woocommerce-product-gallery { padding: 8px !important; border-radius: 17px; }
  body.single-product.season-haat-v140 .shcc-product-hero > .summary { padding: 18px 14px !important; border-radius: 17px !important; }
  body.single-product.season-haat-v140 .woocommerce div.product div.images .flex-control-thumbs li { flex-basis: 62px; width: 62px !important; }

  body.single-product.season-haat-v140 .shcc-product-hero .shcc-product-contact { grid-template-columns: minmax(0, 1fr) !important; }
  body.single-product.season-haat-v140 .shcc-product-hero .product_title { font-size: clamp(1.38rem, 6vw, 1.75rem) !important; }

  body.single-product.season-haat-v140 { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.single-product.season-haat-v140 .shcc-whatsapp { display: none !important; }

  .shcc-mobile-sticky {
    position: fixed;
    z-index: 1001;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(95px, 0.72fr) minmax(160px, 1.28fr);
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid #d9e4de;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 32px rgba(20, 42, 30, 0.14);
    box-sizing: content-box;
  }

  .shcc-mobile-sticky-price {
    overflow: hidden;
    color: var(--shc-green-dark);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .shcc-mobile-sticky-price del { display: none; }
  .shcc-mobile-sticky-price .shcc-price-save { display: none; }

  .shcc-mobile-sticky-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 9px 14px;
    border: 0;
    border-radius: 13px;
    background: var(--shc-orange);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 9px 22px rgba(255, 107, 0, 0.25);
  }

  body.woocommerce-checkout.season-haat-v140 .woocommerce-billing-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .season-haat-v140 .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .season-haat-v140 .woocommerce ul.products li.product .shcc-loop-actions .button { font-size: 0.63rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .season-haat-v140 *,
  .season-haat-v140 *::before,
  .season-haat-v140 *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* ========================================================================== */
/* v1.4.1 conflict-safe product, Elementor and hero overrides                 */
/* ========================================================================== */

/* The visible dot stays tiny while the button retains a forgiving hit area. */
.season-haat-storefront .shcc-slider-dots,
.season-haat-v140 .shcc-slider-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
}

.season-haat-storefront .shcc-slider-dots > button,
.season-haat-v140 .shcc-slider-dots > button {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
  appearance: none !important;
}

.season-haat-storefront .shcc-slider-dots > button::before,
.season-haat-v140 .shcc-slider-dots > button::before {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
  content: "" !important;
}

.season-haat-storefront .shcc-slider-dots > button[aria-current="true"]::before,
.season-haat-v140 .shcc-slider-dots > button[aria-current="true"]::before {
  background: #ffb515 !important;
  transform: scale(1.35);
}

/* Woo native jquery.zoom owns this generated layer; never square-crop it. */
body.single-product .woocommerce-product-gallery__image img.zoomImg {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 !important;
  object-fit: initial !important;
  cursor: zoom-in;
}

/* Stable Elementor utility classes: set these in Advanced > CSS Classes. */
.shcc-elementor-product-grid,
.shcc-elementor-product-grid > .e-con-inner,
.shcc-elementor-product-grid > .elementor-container {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Elementor Theme Builder owns its canvas; remove the FSE content constraint. */
body.single-product main.wp-block-group:has(> [data-elementor-type="product"]),
body.post-type-archive-product main.wp-block-group:has(> [data-elementor-type="archive"]),
body.tax-product_cat main.wp-block-group:has(> [data-elementor-type="archive"]),
body.tax-product_tag main.wp-block-group:has(> [data-elementor-type="archive"]) {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

main.wp-block-group > :is([data-elementor-type="product"], [data-elementor-type="archive"]) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (min-width: 901px) {
  /* Last-in-file hard contract: equal desktop columns regardless of old floats. */
  body.single-product .woocommerce div.product > section.shcc-product-hero,
  body.single-product .woocommerce div.product > .shcc-product-hero {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    gap: clamp(24px, 3vw, 48px) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 clamp(34px, 5vw, 64px) !important;
  }

  body.single-product .woocommerce div.product > .shcc-product-hero > .woocommerce-product-gallery,
  body.single-product .woocommerce div.product > .shcc-product-hero > .summary {
    float: none !important;
    clear: none !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.single-product .woocommerce div.product > .shcc-product-hero > .woocommerce-product-gallery { grid-column: 1 !important; }
  body.single-product .woocommerce div.product > .shcc-product-hero > .summary { grid-column: 2 !important; }

  /* Native Woo fallback if the core plugin is temporarily inactive/cached. */
  @supports selector(body:not(:has(.shcc-product-hero))) {
    body.single-product.season-haat-storefront:not(.elementor-page) .woocommerce div.product:not(:has(.shcc-product-hero)) {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      align-items: start !important;
      gap: clamp(24px, 3vw, 48px) !important;
    }

    body.single-product.season-haat-storefront:not(.elementor-page) .woocommerce div.product:not(:has(.shcc-product-hero)) > .woocommerce-product-gallery,
    body.single-product.season-haat-storefront:not(.elementor-page) .woocommerce div.product:not(:has(.shcc-product-hero)) > .summary {
      float: none !important;
      clear: none !important;
      width: 100% !important;
      min-width: 0 !important;
      margin: 0 !important;
    }

    body.single-product.season-haat-storefront:not(.elementor-page) .woocommerce div.product:not(:has(.shcc-product-hero)) > :is(.woocommerce-tabs, .upsells, .related) {
      grid-column: 1 / -1 !important;
    }
  }

  .shcc-elementor-product-grid,
  .shcc-elementor-product-grid > .e-con-inner,
  .shcc-elementor-product-grid > .elementor-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: clamp(24px, 3vw, 48px) !important;
  }

  .shcc-elementor-product-gallery { grid-column: 1 !important; min-width: 0 !important; }
  .shcc-elementor-product-summary { grid-column: 2 !important; min-width: 0 !important; }
  .shcc-elementor-product-below { grid-column: 1 / -1 !important; min-width: 0 !important; }
}

@media (max-width: 900px) {
  body.single-product .woocommerce div.product > section.shcc-product-hero,
  body.single-product .woocommerce div.product > .shcc-product-hero,
  .shcc-elementor-product-grid,
  .shcc-elementor-product-grid > .e-con-inner,
  .shcc-elementor-product-grid > .elementor-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .shcc-elementor-product-gallery,
  .shcc-elementor-product-summary,
  .shcc-elementor-product-below {
    grid-column: 1 !important;
    min-width: 0 !important;
  }
}
