:root {
	--display-font-family: Montserrat;
	--body-font-family: Open Sans;

	--font-size: 18px

	--logo-padding: 5px;
	--logo-height: 109px;

	--header-width: 100%;
	--header-border-position: bottom;
	--header-border-size: 0;
	--header-bg-color: transparent;
	--header-border-color: 238 238 238;

	--brand-color: 0 147 69;
	--brand-color-inverted: 255 255 255;

	--background-color: 255 255 255;
	--text-color: 61 61 61;
	--link-color: 0 147 69;

	--action-color: 243 40 18;
	--action-color-inverted: 255 255 255;

	--announcement-bar-bg-color: 187 213 19;
	--announcement-bar-text-color: 255 255 255;
	--announcement-bar-link-color: 255 255 255;

	--main-navigation-bg-color: 0 147 69;
	--main-navigation-link-color: 255 255 255;
	--main-navigation-link-color-hover: 255 255 255;
	--main-navigation-link-bg-color: 0 147 69;
	--main-navigation-link-font-size: 16px;
	--main-navigation-link-alignment: center;

	--auxiliary-bg-color: transparent;
	--auxiliary-border-color: transparent;
	--auxiliary-link-color: inherit;

	--order-status-bg-color: 248 248 248;
	--order-status-color: 100 100 100;

	--store-menu-bg_color: 248 248 248;
	--store-menu-color: 119 7 ;

	--footer-bg-color: 54 60 56;
	--footer-color: 255 255 255;
	--footer-link-color: 255 255 255;
}

/*Custom Styles*/
/****Style the custom logo widget: ****/

.badges-flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap:1rem;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: auto;
    padding: 24px 16px;
    text-align: center;
}

.img-wrapper {
    width: 107px;
    height: 107px;
}

/* Tablet break point */
@media screen and (min-width: 475px) {
   .img-wrapper {
    width: 140px;
    height: 140px;
   } 
   
   .badges-flex-container {
     padding: 45px 16px;
   }
}

/* Desktop Breakpoint */
@media screen and (min-width: 920px) {
    .img-wrapper {
    width: 150px;
    height: 150px;
    }
}

.img-wrapper img {
    height: 100%;
    width: auto;
    aspect-ratio: 1/1;
}

/**** End logo widget styles ****/ 

/*** Patch: fix changes to the product images 
for continued support of square photos ***/

/*Select the <div> wrapping the <img> and set
it's height to match it's width aspect-ratio:
HW- 10/03/2023 */

/* Product collection page */
div.tw-aspect-h-3.tw-aspect-w-4.tw-w-full.tw-group {
    --tw-aspect-h: 1;
    --tw-aspect-w: 1;
}

/* Product listing page */
div.tw-aspect-h-2.tw-aspect-w-3.tw-w-full {
    --tw-aspect-h: 1;
    --tw-aspect-w: 1;
}

/* ============================================================
   GRAZECART PRODUCT PAGE — CLEAN CONSOLIDATED PATCH (FINAL)
   ============================================================ */

/* -------- Main row: compact, predictable gaps (override lg:tw-gap-*) -------- */
.productPage__productDetailsRow {
  align-items: start !important;
  column-gap: 16px !important;
  row-gap: 8px !important;
  overflow: visible !important; /* avoid clipping in odd themes */
}

/* --------------------------- Left (photo) column --------------------------- */
.productPage__photo {
  max-width: 640px;
  width: 100%;
  justify-self: start;
  box-sizing: border-box;
  margin-bottom: 0 !important;   /* row-gap controls spacing */
  position: relative !important;
  z-index: 0 !important;
}

/* Gallery flows top → bottom; never clip thumbs */
.productPage__photo .product-gallery {
  display: flex;
  flex-direction: column;
  overflow: visible !important;
}

/* Kill Tailwind aspect-ratio shim on hero wrapper + use real spacing */
.product-gallery__main {
  position: relative !important;
  height: auto !important;
  aspect-ratio: auto !important;     /* ignore tw-aspect-h/w */
  margin-bottom: 8px !important;     /* small, consistent space before thumbs */
  z-index: 0 !important;
}
.product-gallery__main::before {
  content: none !important;          /* remove phantom padding block */
  padding-top: 0 !important;
}

/* Hero image: show entire photo; keep stacking sane; cap height */
#main-product-image {
  display: block;
  width: 100%;
  height: auto !important;           /* beats .tw-h-full */
  object-fit: contain !important;    /* beats .tw-object-cover */
  object-position: center;
  border-radius: 8px;
  position: relative !important;
  z-index: 0 !important;
}
#main-product-image.tw-object-cover { object-fit: contain !important; }
.productPage__photo .product-gallery .tw-h-full { height: auto !important; }

/* Thumbnails: always below hero and above it in z-order */
.productPage__photo .product-gallery__thumbnails,
.productPage__photo .product-thumbnails,
.productPage__photo .thumbnails,
.productPage__photo .product-gallery__thumbs,
.productPage__photo .product__thumbnails {
  position: relative !important;     /* establish stacking context */
  z-index: 3 !important;             /* higher than hero wrapper + img */
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 8px !important;
  clear: both;
}

/* -------------------------- Right (details) column ------------------------- */
.productPage__details {
  min-width: 320px;
  position: relative !important;
  z-index: 2 !important;             /* sits above photo if edges meet */
  margin-top: 0 !important;
}

/* Nuke hidden vertical spacing utilities from Tailwind in details column */
.productPage__details[class*="tw-space-y-"] > * + *,
.productPage__details [class*="tw-space-y-"] > * + * { margin-top: 0 !important; }
.productPage__details[class*="tw-mt-"],
.productPage__details [class*="tw-mt-"],
.productPage__details > *:first-child { margin-top: 0 !important; }

/* Pages without trust badges: ensure next section doesn’t tuck under */
.productPage__productDetailsRow + * {
  clear: both;
  margin-top: 12px;
}

/* Trust badges (when present): clean full-width row start */
.badges-flex-container {
  grid-column: 1 / -1;
  margin-top: 12px;
  clear: both;
}

/* ------------------------------ Responsive ------------------------------- */

/* Tablet: allow wider photo; keep hero controlled */
@media (min-width: 641px) and (max-width: 1024px) {
  .productPage__photo { max-width: 100% !important; }
  #main-product-image { max-height: 60vh; }
}

/* Phone (≤640px): stack reliably; tight but safe spacing; no overlaps */
@media (max-width: 640px) {
  .productPage__productDetailsRow {
    display: block !important;
    column-gap: 0 !important;
    row-gap: 8px !important;
  }

  .product-gallery__main { margin-bottom: 8px !important; }

  #main-product-image {
    max-height: 60vh;               /* prevent “tower” images */
    border-radius: 12px;
  }

  .productPage__details {
    clear: both !important;
    margin-top: 8px !important;
    z-index: 2 !important;
  }

  .productPage__photo .product-gallery__thumbnails,
  .productPage__photo .product-thumbnails,
  .productPage__photo .thumbnails,
  .productPage__photo .product-gallery__thumbs,
  .productPage__photo .product__thumbnails {
    margin-top: 8px !important;
    z-index: 3 !important;
  }
}

/* ---------------- Listing/Collection (leave detail page unaffected) ------- */
div.tw-aspect-h-3.tw-aspect-w-4.tw-w-full.tw-group { --tw-aspect-h: 1; --tw-aspect-w: 1; }
div.tw-aspect-h-2.tw-aspect-w-3.tw-w-full         { --tw-aspect-h: 1; --tw-aspect-w: 1; }

/* --- Kill the remaining Tailwind aspect shim that creates the huge gap --- */
.product-gallery__main {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  /* also neutralize the custom-prop based ratio just in case */
  --tw-aspect-h: initial !important;
  --tw-aspect-w: initial !important;
}

/* Tailwind's aspect plugin uses BOTH ::before and ::after — remove both */
.product-gallery__main::before,
.product-gallery__main::after {
  content: none !important;
  display: none !important;
  padding-top: 0 !important;
  clear: none !important;
  float: none !important;
}
