/* GORILLA 9.8.38 — scoped visual corrections. Loaded after either CSS build. */

/* Desktop: slightly longer catalog button; keep narrower breakpoints untouched. */
@media (min-width: 1001px) {
  html body.gs-site .gs-header .gs-header__inner > .gs-catalog-trigger {
    min-width: 123px !important;
    padding-inline: 23px !important;
    box-sizing: border-box !important;
  }
}
/* Room around branding without resizing or distorting the original artwork. */
html body.gs-site .gs-header .gs-header__inner > .gs-logo {
  box-sizing: border-box !important;
  padding-block: 7px !important;
}
html body.gs-site .gs-header .gs-header__inner > .gs-logo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
/* Give the banner breathing room below the header on every device. */
html body.gs-site .gs-home-hero {
  padding-top: clamp(18px, 2vw, 30px) !important;
}

/* One shared radius system throughout product listings and product detail. */
html body.gs-site :is(.gs-product-card, .gs-product-panel) {
  border-radius: 18px !important;
}
html body.gs-site .gs-product-card :is(.gs-card-media, .gs-card-media__frame, .gs-card-media .gs-product-image),
html body.gs-site :is(.gs-product-gallery__main, .gs-product-gallery__main img) {
  border-radius: 14px !important;
}
html body.gs-site .gs-product-card .gs-card-footer .gs-button {
  border-radius: 12px !important;
}

/* Checkbox/radio accent only. Favorite hearts intentionally remain red. */
html body.gs-site .gs-catalog-sidebar :is(input[type="checkbox"],input[type="radio"]),
html body.gs-site .gs-cart-page :is(input[type="checkbox"],input[type="radio"]),
html body.gs-site .gs-order-dialog :is(input[type="checkbox"],input[type="radio"]),
html body.gs-site input[type="checkbox"],
html body.gs-site input[type="radio"] {
  accent-color: #299ff0 !important;
}
/* Categories are now native radios: restore the small left-positioned control. */
html body.gs-site .gs-catalog-sidebar .gs-category-node__row > .gs-category-option {
  position: relative !important;
  cursor: pointer !important;
}
html body.gs-site .gs-catalog-sidebar .gs-category-option input[type="radio"][name="gs_cat"] {
  position: absolute !important;
  z-index: 2 !important;
  left: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  box-sizing: border-box !important;
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  appearance: auto !important;
  accent-color: #299ff0 !important;
  cursor: pointer !important;
}
html body.gs-site .gs-catalog-sidebar .gs-category-node__row > .gs-category-option > span {
  padding-left: 39px !important;
}
/* Reset is part of the scrollable filters, not an overlaid bottom button. */
html body.gs-site .gs-catalog-sidebar .gs-filter-form .gs-filter-actions {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: auto !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.gs-site .gs-catalog-sidebar .gs-filter-reset {
  border-radius: 10px !important;
  min-height: 42px !important;
}

/* Product detail copy/specs: consistent left-right alignment like cart rows. */
html body.gs-site .gs-product-panel,
html body.gs-site .gs-product-panel .gs-product-info {
  min-width: 0 !important;
  box-sizing: border-box !important;
}
html body.gs-site .gs-product-panel {
  width: 100% !important;
  max-width: 100% !important;
}
html body.gs-site .gs-product-info table.woocommerce-product-attributes {
  width: 100% !important;
  border-collapse: collapse !important;
}
html body.gs-site .gs-product-info table.woocommerce-product-attributes :is(th,td) {
  box-sizing: border-box !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--ui-stroke-soft, #ffffff20) !important;
  vertical-align: top !important;
}
html body.gs-site .gs-product-info table.woocommerce-product-attributes td {
  text-align: right !important;
  overflow-wrap: anywhere !important;
}
html body.gs-site .gs-product-info :is(.gs-product-copy, .gs-product-specs, .gs-product-delivery-note) {
  width: 100% !important;
  box-sizing: border-box !important;
}
html body.gs-site .gs-product-info .gs-product-specs > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: baseline !important;
  column-gap: 16px !important;
  padding-block: 13px !important;
  border-bottom: 1px solid var(--ui-stroke-soft, #ffffff20) !important;
}
html body.gs-site .gs-product-info .gs-product-specs dt {min-width: 0 !important;}
html body.gs-site .gs-product-info .gs-product-specs dd {
  min-width: 0 !important;
  margin: 0 !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}
/* Same glyph family as cart amounts; remove the legacy mobile symbol-mask. */
html body.gs-site .woocommerce-Price-currencySymbol,
html body.gs-site .woocommerce .woocommerce-Price-currencySymbol,
html body.gs-site .gs-card-price .woocommerce-Price-currencySymbol,
html body.gs-site .gs-product-price .woocommerce-Price-currencySymbol,
html body.gs-site .gs-cart-page .woocommerce-Price-currencySymbol {
  font-family: Arial, "Segoe UI", "Noto Sans", sans-serif !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-size: 1em !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  position: static !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  vertical-align: baseline !important;
  background: transparent !important;
  -webkit-mask: none !important;
  mask: none !important;
}

/* Only the true applied coupon gets the green confirmation appearance. */
html body.gs-site.woocommerce-cart .gs-cart-promo-applied {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
  padding: 9px 10px 9px 13px !important;
  box-sizing: border-box !important;
  border: 1px solid #3da86c !important;
  background: #dcf5e5 !important;
  color: #174e2e !important;
  border-radius: 11px !important;
  font: 500 13px/1.4 Arial,"Segoe UI",sans-serif !important;
}
html body.gs-site.woocommerce-cart .gs-cart-promo-applied__label {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}
html body.gs-site.woocommerce-cart .gs-cart-promo-applied button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  background: #23814b !important;
  color: #fff !important;
  border: 1px solid #23814b !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font: 600 12px/1.25 Arial,"Segoe UI",sans-serif !important;
}
html body.gs-site.woocommerce-cart .gs-cart-promo-applied button:focus-visible {
  outline: 2px solid #18673b !important;
  outline-offset: 2px !important;
}
html body.gs-site .gs-order-form input::placeholder {
  color: #9299a4 !important;
  opacity: 1 !important;
}

@media (max-width: 1000px) {
  html body.gs-site .gs-home-hero {padding-top: 20px !important;}
  html body.gs-site .gs-catalog-sidebar .gs-filter-actions {margin-top: 20px !important;}
}
@media (max-width: 760px) {
  :root {--gs-header-h: 70px;}
  html body.gs-site .gs-header .gs-header__inner {
    height: 70px !important;
    min-height: 70px !important;
    padding-block: 13px !important;
  }
  html body.gs-site .gs-header .gs-header__inner > .gs-logo {
    padding-block: 5px !important;
  }
  html body.gs-site .gs-header .gs-header__inner > .gs-catalog-trigger {
    min-width: 0 !important;
    padding-inline: 7px !important;
  }
  html body.gs-site .gs-home-hero {padding-top: 17px !important;}
  html body.gs-site .gs-product-card,
  html body.gs-site .gs-product-panel {border-radius: 16px !important;}
  html body.gs-site .gs-product-card :is(.gs-card-media, .gs-card-media__frame, .gs-card-media .gs-product-image),
  html body.gs-site :is(.gs-product-gallery__main, .gs-product-gallery__main img) {
    border-radius: 12px !important;
  }
  html body.gs-site .gs-product-info .gs-product-specs > div {column-gap: 10px !important;}
  html body.gs-site.woocommerce-cart .gs-cart-promo-applied {padding: 10px !important;}
}
@media (max-width: 359px) {
  html body.gs-site .gs-header .gs-header__inner > .gs-logo {padding-block: 3px !important;}
}

/* GORILLA 9.8.39 — mobile product detail and photo containment. */
@media (max-width: 760px) {
  /* Make the return-to-catalog cross visible on the actual product page. */
  html body.gs-site .gs-product-page .gs-product-panel {
    position: relative !important;
    padding-top: 64px !important;
  }
  html body.gs-site .gs-product-page .gs-product-panel > .gs-product-panel__close {
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 15 !important;
    border: 1px solid var(--ui-stroke-soft, #ffffff35) !important;
    border-radius: 11px !important;
    background: #282b31 !important;
    color: #fff !important;
    font: 400 30px/1 Arial, sans-serif !important;
    text-decoration: none !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }
  html body.gs-site .gs-product-page .gs-product-panel > .gs-product-panel__close:focus-visible {
    outline: 2px solid #299ff0 !important;
    outline-offset: 2px !important;
  }

  /* Mobile card photos: undo legacy custom scale/crop only on product cards. */
  html body.gs-site .gs-product-card .gs-card-media__frame {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 5px !important;
    overflow: hidden !important;
  }
  html body.gs-site .gs-product-card .gs-card-media .gs-product-image,
  html body.gs-site .gs-product-card:hover .gs-card-media .gs-product-image,
  html body.gs-site .gs-product-card:focus-within .gs-card-media .gs-product-image,
  html body.gs-site .gs-cart-novelties__grid .gs-card-media .gs-product-image {
    display: block !important;
    flex: 0 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    scale: 1 !important;
    filter: none !important;
    transition: none !important;
  }
  html body.gs-site .gs-product-page .gs-product-gallery__main img {
    object-fit: contain !important;
    object-position: center center !important;
    max-width: 100% !important;
    max-height: 100% !important;
    transform: none !important;
  }
}

/* RUB sign: one real Unicode ₽ in a stable font. The old mobile SVG mask
   and its offscreen text-indent must NEVER leak into product cards. */
html body.gs-site .woocommerce-Price-currencySymbol,
html body.gs-site .gs-card-price .woocommerce-Price-currencySymbol,
html body.gs-site .gs-product-price .woocommerce-Price-currencySymbol,
html body.gs-site .gs-cart-row__total .woocommerce-Price-currencySymbol,
html body.gs-site .gs-cart-summary .woocommerce-Price-currencySymbol,
html body.gs-site.woocommerce-cart .gs-cart-page .gs-cart-summary .cart_totals .woocommerce-Price-currencySymbol {
  font-family: Arial, "Noto Sans", "DejaVu Sans", sans-serif !important;
  font-style: normal !important;
  font-size: 1em !important;
  font-weight: inherit !important;
  font-variant: normal !important;
  line-height: inherit !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  text-transform: none !important;
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
  color: inherit !important;
  background: none !important;
  background-image: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  transform: none !important;
  clip-path: none !important;
  padding: 0 !important;
  margin: 0 0 0 .06em !important;
}
html body.gs-site .woocommerce-Price-currencySymbol::before,
html body.gs-site .woocommerce-Price-currencySymbol::after {
  content: none !important;
  display: none !important;
}
html body.gs-site :is(.gs-card-price,.gs-product-price,.gs-cart-row__total,.gs-cart-row__unit,.gs-min-order-notice,.gs-order-dialog__delivery-cost,.gs-payment-option__icon--rub) {
  font-family: Arial, "Noto Sans", "DejaVu Sans", sans-serif !important;
  font-variant-numeric: tabular-nums !important;
}

/* Inline WooCommerce coupon validation (no false "success" on failed codes). */
html body.gs-site.woocommerce-cart .gs-cart-coupon__feedback:not([hidden]) {
  display: block !important;
  margin: 10px 0 0 !important;
  padding: 10px 12px !important;
  color: #ffd7d7 !important;
  background: #4c2029 !important;
  border: 1px solid #a45a64 !important;
  border-radius: 10px !important;
  line-height: 1.45 !important;
  font-size: 13px !important;
  overflow-wrap: anywhere !important;
}
html body.gs-site.woocommerce-cart .gs-cart-coupon__feedback[hidden] {display: none !important;}
