/* ==========================================================================
   ROOT VARIABLES
========================================================================== */
:root {
  --card-radius: 6px;
  --card-gap: 12px;
  --card-bg: #ffffff;
  --text-dark: #111;
  --text-muted: #7a7a7a;
  --price-color: #000;
  --container-max: 1340px;
}

/* ==========================================================================
   GLOBAL RESET (SAFE – NO CLS)
========================================================================== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   SHOOPY ROOT FIX (DO NOT OVERSTRETCH)
========================================================================== */
.sh-shoopy-html-page,
.sh-shoopy-html-page > div {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   MAIN LAYOUT – CONTROLLED WIDTH
========================================================================== */
.page-container,
.main-container,
body > main {
  width: 100%;
  margin: 0 auto;
}

/* Mobile & Tablet Padding */
.page-container,
.main-container {
  padding-left: 16px;
  padding-right: 16px;
}

/* Desktop Constrained Layout */
@media (min-width: 1024px) {
  .page-container,
  .main-container {
    max-width: var(--container-max);
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==========================================================================
   PRODUCT GRID
========================================================================== */
.product-card-grid,
.product-listing-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  width: 100%;
}

/* Tablet */
@media (min-width: 640px) {
  .product-card-grid,
  .product-listing-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .product-card-grid,
  .product-listing-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   PRODUCT CARD
========================================================================== */
.product-card,
.sh-product-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   PRODUCT IMAGE
========================================================================== */
.product-card-image-container {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f6f6f6;
  position: relative;
  overflow: hidden;
}

.product-card-image,
.pr-long-card .pr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PRODUCT INFO & PRICE
========================================================================== */
.product-card-info,
.product-card-price,
.__className_337041 {
  color: var(--text-dark);
}

.product-card-info h2,
.product-card-info .product-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-info .price {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 900;
  color: #388e3c;
}

/* ==========================================================================
   WISHLIST ICON
========================================================================== */
.product-card .wishlist-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 30;
}

/* ==========================================================================
   PDP IMAGE WRAPPER (BALANCED)
========================================================================== */
.main-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: auto;
  background: #ffffff;
  overflow: hidden;
}

/* Mobile */
.main-image-wrapper {
  max-width: 100%;
}

/* Desktop */
@media (min-width: 1024px) {
  .main-image-wrapper {
    max-width: 520px;
  }
}

.main-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ==========================================================================
   PRODUCT DETAIL IMAGE FIX
========================================================================== */
.product-detail-grid .image-gallery-container,
.product-detail-grid .image-gallery-container * {
  background-color: #ffffff !important;
}

/* ==========================================================================
   FULL WIDTH BANNERS / HERO
========================================================================== */
.banner,
.banner img,
.banner-collection,
.banner-collection img {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   HEADER ICON COLORS (DESKTOP)
========================================================================== */
@media (min-width: 769px) {
  .icon-button svg,
  .icon-button svg path,
  .utility-icons svg,
  .search-icon svg {
    stroke: #000 !important;
    fill: none !important;
  }
}

/* ==========================================================================
   MOBILE HEADER FIX
========================================================================== */
@media (max-width: 767px) {
  .main-header {
    justify-content: space-between;
  }
}

/* ==========================================================================
   REMOVE UNWANTED WIDGETS / TEXT
========================================================================== */
.sh-shoopy-html-page .text-zinc-900,
.ref-widg.sh-referral-widget,
.woot-widget-powered-by {
  display: none !important;
}

/* ==========================================================================
   WOOT WIDGET POSITION FIX
========================================================================== */
.woot-widget-bubble {
  position: fixed !important;
  bottom: 64px !important;
  right: 16px !important;
  z-index: 999999 !important;
}
