/* ZSG production single product. */
.zsg-single-product {
  --zsg-product-red: #e30014;
  --zsg-product-red-dark: #b90010;
  --zsg-product-ink: #15191d;
  --zsg-product-muted: #6d7680;
  --zsg-product-line: #dde2e6;
  --zsg-product-soft: #f3f5f6;
  --zsg-product-panel: #fff;
  background: #f7f8f9;
  color: var(--zsg-product-ink);
  padding: 24px 0 72px;
}

.zsg-single-product *,
.zsg-single-product *::before,
.zsg-single-product *::after { box-sizing: border-box; }

.zsg-single-product__container { width: min(100% - 32px, 1320px); margin-inline: auto; }
.zsg-single-product img { max-width: 100%; }

/* Breadcrumbs */
.zsg-single-product__breadcrumbs { margin-bottom: 20px; color: #747d86; font-size: 13px; }
.zsg-single-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.zsg-single-breadcrumbs__item { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.zsg-single-breadcrumbs a { color: #525b64; text-decoration: none; font-weight: 650; }
.zsg-single-breadcrumbs a:hover { color: var(--zsg-product-red); }
.zsg-single-breadcrumbs [aria-current="page"] { max-width: min(520px, 72vw); overflow: hidden; color: #858e96; text-overflow: ellipsis; white-space: nowrap; }
.zsg-single-breadcrumbs__separator { color: #a6adb4; font-size: 15px; line-height: 1; }

/* Main product */
.zsg-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr);
  gap: 34px;
  align-items: start;
}

.zsg-product-gallery,
.zsg-product-summary {
  min-width: 0;
}

.zsg-product-gallery__stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--zsg-product-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17,20,23,.045);
}

.zsg-product-gallery__main-button {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.zsg-product-gallery__main-image,
.zsg-product-gallery__placeholder img {
  width: 100%;
  height: 510px;
  object-fit: contain;
  object-position: center;
}

.zsg-product-gallery__placeholder { width: 100%; padding: 22px; }

.zsg-product-gallery__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e5e8;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #32383e;
  box-shadow: 0 8px 20px rgba(17,20,23,.08);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.zsg-product-gallery__zoom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.zsg-product-gallery__main-button:hover .zsg-product-gallery__zoom,
.zsg-product-gallery__main-button:focus-visible .zsg-product-gallery__zoom { color: var(--zsg-product-red); border-color: rgba(227,0,20,.3); background: #fff7f8; transform: scale(1.04); }

.zsg-product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.zsg-product-gallery__thumb {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--zsg-product-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.zsg-product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.zsg-product-gallery__thumb:hover,
.zsg-product-gallery__thumb:focus-visible,
.zsg-product-gallery__thumb.is-active { border-color: var(--zsg-product-red); background: #fffafb; box-shadow: 0 0 0 1px rgba(227,0,20,.08); }
.zsg-product-gallery__fancybox-sources { display: none; }

/* Summary */
.zsg-product-summary {
  position: sticky;
  top: 20px;
  padding: 26px;
  border: 1px solid var(--zsg-product-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17,20,23,.045);
}
.admin-bar .zsg-product-summary { top: 52px; }

.zsg-product-summary__topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.zsg-product-stock { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; color: #4c555d; font-size: 13px; line-height: 1.3; font-weight: 760; }
.zsg-product-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: #858e96; box-shadow: 0 0 0 4px rgba(133,142,150,.11); }
.zsg-product-stock.is-in-stock { color: #1f7a45; }
.zsg-product-stock.is-in-stock .zsg-product-stock__dot { background: #2ca061; box-shadow: 0 0 0 4px rgba(44,160,97,.12); }
.zsg-product-stock.is-on-backorder { color: #a26404; }
.zsg-product-stock.is-on-backorder .zsg-product-stock__dot { background: #d58b16; box-shadow: 0 0 0 4px rgba(213,139,22,.12); }
.zsg-product-stock.is-out-of-stock { color: #a22a35; }
.zsg-product-stock.is-out-of-stock .zsg-product-stock__dot { background: #c43a49; box-shadow: 0 0 0 4px rgba(196,58,73,.12); }

.zsg-product-wishlist { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #e1e5e8; border-radius: 50%; background: #fff; color: #34393f; cursor: pointer; }
.zsg-product-wishlist svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.zsg-product-wishlist:hover,
.zsg-product-wishlist:focus-visible,
.zsg-product-wishlist.active,
.zsg-product-wishlist.is-active,
.zsg-product-wishlist[aria-pressed="true"] { color: var(--zsg-product-red); border-color: rgba(227,0,20,.34); background: #fff6f7; }
.zsg-product-wishlist.active svg path,
.zsg-product-wishlist.is-active svg path,
.zsg-product-wishlist[aria-pressed="true"] svg path { fill: currentColor; }

.zsg-product-summary__sku { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 6px 9px; border: 1px solid #e2e6e9; border-radius: 8px; background: #f7f8f9; color: var(--zsg-product-muted); font-size: 12px; line-height: 1.3; font-weight: 700; }
.zsg-product-summary__sku strong { color: #2f353b; font-size: 13px; font-weight: 820; letter-spacing: .01em; }
.zsg-product-summary__title { margin: 0; color: var(--zsg-product-ink); font-size: clamp(26px, 2.15vw, 36px); line-height: 1.12; font-weight: 850; letter-spacing: -.025em; overflow-wrap: anywhere; }

.zsg-product-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-bottom: 18px; border-bottom: 1px solid #eceff1; }
.zsg-product-meta__item { display: inline-flex; align-items: baseline; gap: 5px; color: var(--zsg-product-muted); font-size: 12px; line-height: 1.45; }
.zsg-product-meta__item strong,
.zsg-product-meta__item a { color: #31373d; font-weight: 780; text-decoration: none; }
.zsg-product-meta__item a:hover { color: var(--zsg-product-red); }

.zsg-product-summary__short-description { margin-top: 18px; color: #4f5860; font-size: 14px; line-height: 1.7; }
.zsg-product-summary__short-description > :first-child { margin-top: 0; }
.zsg-product-summary__short-description > :last-child { margin-bottom: 0; }

.zsg-product-purchase { margin-top: 20px; padding: 18px; border: 1px solid #e8ebed; border-radius: 16px; background: var(--zsg-product-soft); }
.zsg-product-purchase__price { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.zsg-product-purchase__price span { color: var(--zsg-product-muted); font-size: 12px; font-weight: 700; }
.zsg-product-purchase__price strong { color: var(--zsg-product-ink); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.2; font-weight: 820; }

/* Native WooCommerce add-to-cart forms, visually owned by ZSG. */
.zsg-product-purchase__form form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0; }
.zsg-product-purchase__form .quantity { display: grid; grid-template-columns: 44px minmax(56px, 72px) 44px; min-height: 50px; border: 1px solid #d8dde1; border-radius: 12px; background: #fff; overflow: hidden; }
.zsg-product-purchase__form .quantity .qty { width: 100%; min-width: 0; height: 48px; padding: 0 5px; border: 0; border-inline: 1px solid #e5e8ea; border-radius: 0; background: #fff; color: #242a30; text-align: center; font-size: 15px; font-weight: 800; appearance: textfield; }
.zsg-product-purchase__form .quantity .qty::-webkit-outer-spin-button,
.zsg-product-purchase__form .quantity .qty::-webkit-inner-spin-button { margin: 0; appearance: none; }
.zsg-product-purchase__form .quantity > button.minus,
.zsg-product-purchase__form .quantity > button.plus {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #343b41;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
}
.zsg-product-purchase__form .quantity > button.minus:hover,
.zsg-product-purchase__form .quantity > button.plus:hover,
.zsg-product-purchase__form .quantity > button.minus:focus-visible,
.zsg-product-purchase__form .quantity > button.plus:focus-visible {
  color: var(--zsg-product-red);
  background: #fff7f8;
}
.zsg-product-purchase__form .quantity > button.minus:focus-visible,
.zsg-product-purchase__form .quantity > button.plus:focus-visible {
  outline: 2px solid var(--zsg-product-red);
  outline-offset: -2px;
}
.zsg-product-purchase__form .quantity > button.minus svg,
.zsg-product-purchase__form .quantity > button.plus svg { display: block; pointer-events: none; }
.zsg-product-purchase__form .quantity > button.minus svg path,
.zsg-product-purchase__form .quantity > button.plus svg path { fill: currentColor; }
.zsg-product-purchase__form .single_add_to_cart_button,
.zsg-product-purchase__form button.single_add_to_cart_button,
.zsg-product-purchase__form .button.single_add_to_cart_button {
  min-height: 50px;
  flex: 1 1 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0 22px;
  border: 1px solid var(--zsg-product-red);
  border-radius: 12px;
  background: var(--zsg-product-red);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 820;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.zsg-product-purchase__form .single_add_to_cart_button::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l1.7 9.1a2 2 0 0 0 2 1.7h7.8a2 2 0 0 0 2-1.6L20 7H6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='19' r='1.5' fill='black'/%3E%3Ccircle cx='17' cy='19' r='1.5' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l1.7 9.1a2 2 0 0 0 2 1.7h7.8a2 2 0 0 0 2-1.6L20 7H6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='19' r='1.5' fill='black'/%3E%3Ccircle cx='17' cy='19' r='1.5' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.zsg-product-purchase__form .single_add_to_cart_button:hover { border-color: var(--zsg-product-red-dark); background: var(--zsg-product-red-dark); box-shadow: 0 10px 24px rgba(227,0,20,.16); }
.zsg-product-purchase__form .single_add_to_cart_button:disabled,
.zsg-product-purchase__form .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Variable/grouped/external native forms. */
.zsg-product-purchase__form .variations { width: 100%; margin: 0 0 14px; border-collapse: collapse; }
.zsg-product-purchase__form .variations tr { display: grid; grid-template-columns: minmax(90px, .38fr) minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 9px; }
.zsg-product-purchase__form .variations th,
.zsg-product-purchase__form .variations td { padding: 0; border: 0; text-align: left; }
.zsg-product-purchase__form .variations label { color: #454d55; font-size: 13px; font-weight: 760; }
.zsg-product-purchase__form .variations select { width: 100%; min-height: 46px; padding: 0 38px 0 12px; border: 1px solid #d8dde1; border-radius: 10px; background: #fff; color: #252b31; }
.zsg-product-purchase__form .reset_variations { display: inline-flex; margin-top: 6px; color: var(--zsg-product-red); font-size: 12px; font-weight: 750; text-decoration: none; }
.zsg-product-purchase__form .woocommerce-variation-price { display: none !important; }
.zsg-product-purchase__form .woocommerce-variation-description { margin: 8px 0; color: #5c656d; font-size: 13px; line-height: 1.6; }
.zsg-product-purchase__form .woocommerce-grouped-product-list { width: 100%; margin: 0 0 14px; border-collapse: collapse; }
.zsg-product-purchase__form .woocommerce-grouped-product-list td { padding: 10px 6px; border-bottom: 1px solid #e4e8ea; vertical-align: middle; }
.zsg-product-purchase__form .woocommerce-grouped-product-list-item__price { display: none; }
.zsg-product-purchase__form .woocommerce-grouped-product-list-item__label a { color: #272d33; font-weight: 740; text-decoration: none; }
.zsg-product-purchase__form .woocommerce-grouped-product-list-item__label a:hover { color: var(--zsg-product-red); }
.zsg-product-purchase__form p.stock { width: 100%; margin: 8px 0 0; color: var(--zsg-product-muted); font-size: 12px; }

/* Sections */
.zsg-product-details,
.zsg-product-section { margin-top: 58px; }
.zsg-product-details { padding: 52px 0; background: #fff; border-block: 1px solid #e7eaec; }
.zsg-product-section-head { margin-bottom: 22px; }
.zsg-product-section-head--with-controls { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.zsg-product-section-head__eyebrow { margin: 0 0 8px; color: var(--zsg-product-red); font-size: 11px; line-height: 1.2; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.zsg-product-section-head h2 { margin: 0; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1; font-weight: 840; letter-spacing: -.03em; }

.zsg-product-details__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 30px; align-items: start; }
.zsg-product-details__grid.is-single { grid-template-columns: minmax(0, 1fr); }
.zsg-product-description,
.zsg-product-attributes { min-width: 0; padding: 26px; border: 1px solid var(--zsg-product-line); border-radius: 18px; background: #fff; }
.zsg-product-description h3,
.zsg-product-attributes h3 { margin: 0 0 18px; font-size: 20px; line-height: 1.2; font-weight: 820; }
.zsg-product-rich-content { color: #4b535b; font-size: 15px; line-height: 1.78; }
.zsg-product-rich-content > :first-child { margin-top: 0; }
.zsg-product-rich-content > :last-child { margin-bottom: 0; }
.zsg-product-rich-content img { height: auto; border-radius: 10px; }
/* Wide product-content tables stay inside the description column and scroll on their own. */
.zsg-product-rich-content .zsg-product-table-scroll,
.zsg-product-rich-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.zsg-product-rich-content .zsg-product-table-scroll:focus-visible,
.zsg-product-rich-content .wp-block-table:focus-visible {
  outline: 2px solid var(--zsg-product-red);
  outline-offset: 3px;
  border-radius: 6px;
}
.zsg-product-rich-content table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  border-collapse: collapse;
}
.zsg-product-rich-content th,
.zsg-product-rich-content td { padding: 10px 12px; border: 1px solid #e0e4e7; text-align: left; vertical-align: top; }

.zsg-product-attributes__list { margin: 0; }
.zsg-product-attributes__row { display: grid; grid-template-columns: minmax(120px, .85fr) minmax(0, 1.15fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #e9ecee; }
.zsg-product-attributes__row:first-child { padding-top: 0; }
.zsg-product-attributes__row:last-child { padding-bottom: 0; border-bottom: 0; }
.zsg-product-attributes dt { color: #7b838b; font-size: 12px; line-height: 1.5; }
.zsg-product-attributes dd { margin: 0; color: #30363c; font-size: 13px; line-height: 1.5; font-weight: 730; overflow-wrap: anywhere; }

/* Related/recent product strips reuse item-single-product.php. */
.zsg-product-strip { min-width: 0; }
.zsg-product-strip__viewport { overflow-x: auto; padding: 2px 2px 10px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-inline: contain; }
.zsg-product-strip__track { display: flex; gap: 14px; }
.zsg-product-strip__item { flex: 0 0 calc((100% - 42px) / 4); min-width: 0; scroll-snap-align: start; }
.zsg-product-strip__item .zsg-product-card { min-height: 410px; }
.zsg-product-strip__item .zsg-product-card__media { height: 195px; }
.zsg-product-strip__controls { display: flex; gap: 8px; }
.zsg-product-strip__controls button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #dce1e4; border-radius: 11px; background: #fff; color: #30373d; cursor: pointer; }
.zsg-product-strip__controls button:hover:not(:disabled) { color: var(--zsg-product-red); border-color: rgba(227,0,20,.32); background: #fffafb; }
.zsg-product-strip__controls button:disabled { opacity: .35; cursor: default; }
.zsg-product-strip__controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Related categories */
.zsg-product-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.zsg-product-categories__item { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--zsg-product-line); border-radius: 12px; background: #fff; color: #252a2f; text-decoration: none; font-size: 14px; line-height: 1.3; font-weight: 720; transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.zsg-product-categories__item svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.zsg-product-categories__item:hover,
.zsg-product-categories__item:focus-visible { border-color: rgba(227,0,20,.35); color: var(--zsg-product-red); background: #fffafb; box-shadow: 0 8px 22px rgba(17,20,23,.05); }
.zsg-product-categories__item:hover svg,
.zsg-product-categories__item:focus-visible svg { transform: translateX(3px); }

/* Fancybox fallback dialog. Existing Fancybox is preferred when available. */
.zsg-product-lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9,11,13,.96); color: #fff; }
.zsg-product-lightbox::backdrop { background: rgba(9,11,13,.96); }
.zsg-product-lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.zsg-product-lightbox__image { width: 100%; height: min(88vh, 900px); object-fit: contain; }
.zsg-product-lightbox__close,
.zsg-product-lightbox__nav { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.zsg-product-lightbox__close { position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); z-index: 2; font-size: 30px; line-height: 1; }
.zsg-product-lightbox__nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.zsg-single-product a:focus-visible,
.zsg-single-product button:focus-visible,
.zsg-single-product input:focus-visible,
.zsg-single-product select:focus-visible,
.zsg-product-lightbox button:focus-visible { outline: 3px solid rgba(227,0,20,.28); outline-offset: 3px; }

@media (max-width: 1120px) {
  .zsg-product-hero { grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); gap: 22px; }
  .zsg-product-gallery__stage,
  .zsg-product-gallery__main-button { min-height: 500px; }
  .zsg-product-gallery__main-image,
  .zsg-product-gallery__placeholder img { height: 450px; }
  .zsg-product-details__grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; }
  .zsg-product-strip__item { flex-basis: calc((100% - 28px) / 3); }
  .zsg-product-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .zsg-single-product { padding-top: 18px; }
  .zsg-product-hero { grid-template-columns: 1fr; }
  .zsg-product-summary { position: static; }
  .zsg-product-gallery__stage,
  .zsg-product-gallery__main-button { min-height: 460px; }
  .zsg-product-gallery__main-image,
  .zsg-product-gallery__placeholder img { height: 410px; }
  .zsg-product-details__grid { grid-template-columns: 1fr; }
  .zsg-product-strip__item { flex-basis: calc((100% - 14px) / 2); }
  .zsg-product-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .zsg-single-product { padding: 14px 0 52px; }
  .zsg-single-product__container { width: min(100% - 22px, 1320px); }
  .zsg-single-product__breadcrumbs { margin-bottom: 14px; font-size: 12px; }
  .zsg-single-breadcrumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .zsg-single-breadcrumbs::-webkit-scrollbar { display: none; }
  .zsg-single-breadcrumbs__item { flex: 0 0 auto; }
  .zsg-single-breadcrumbs [aria-current="page"] { max-width: 210px; }

  .zsg-product-hero { gap: 16px; }
  .zsg-product-gallery__stage,
  .zsg-product-gallery__main-button { min-height: 340px; border-radius: 15px; }
  .zsg-product-gallery__main-button { padding: 12px; }
  .zsg-product-gallery__main-image,
  .zsg-product-gallery__placeholder img { height: 316px; }
  .zsg-product-gallery__zoom { right: 10px; bottom: 10px; }
  .zsg-product-gallery__thumb { width: 70px; height: 70px; flex-basis: 70px; border-radius: 10px; }

  .zsg-product-summary { padding: 20px 16px; border-radius: 15px; }
  .zsg-product-summary__title { font-size: clamp(25px, 7.4vw, 32px); }
  .zsg-product-meta { display: grid; gap: 7px; }
  .zsg-product-purchase { margin-top: 16px; padding: 14px; }
  .zsg-product-purchase__price { align-items: start; flex-direction: column; gap: 4px; }
  .zsg-product-purchase__form form.cart { display: grid; grid-template-columns: 1fr; }
  .zsg-product-purchase__form .quantity { width: 160px; }
  .zsg-product-purchase__form .single_add_to_cart_button,
  .zsg-product-purchase__form button.single_add_to_cart_button,
  .zsg-product-purchase__form .button.single_add_to_cart_button { width: 100%; min-height: 52px; flex-basis: auto; }
  .zsg-product-purchase__form .variations tr { grid-template-columns: 1fr; gap: 5px; }
  .zsg-product-purchase__form .woocommerce-grouped-product-list { display: block; overflow-x: auto; }

  .zsg-product-details,
  .zsg-product-section { margin-top: 42px; }
  .zsg-product-details { padding: 38px 0; }
  .zsg-product-section-head--with-controls { align-items: center; }
  .zsg-product-description,
  .zsg-product-attributes { padding: 18px 15px; border-radius: 14px; }
  .zsg-product-attributes__row { grid-template-columns: 1fr; gap: 4px; }
  .zsg-product-strip__controls { display: none; }
  .zsg-product-strip__item { flex-basis: min(78vw, 300px); }
  .zsg-product-strip__viewport { margin-right: -11px; padding-right: 22px; }
  .zsg-product-categories { display: flex; overflow-x: auto; gap: 9px; margin-right: -11px; padding: 2px 22px 6px 2px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .zsg-product-categories::-webkit-scrollbar { display: none; }
  .zsg-product-categories__item { flex: 0 0 min(78vw, 290px); scroll-snap-align: start; }

  .zsg-product-lightbox__inner { grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 4px; }
  .zsg-product-lightbox__nav { width: 42px; height: 42px; }
}

@media (max-width: 360px) {
  .zsg-single-product__container { width: min(100% - 18px, 1320px); }
  .zsg-product-gallery__stage,
  .zsg-product-gallery__main-button { min-height: 300px; }
  .zsg-product-gallery__main-image,
  .zsg-product-gallery__placeholder img { height: 278px; }
  .zsg-product-summary { padding-inline: 14px; }
  .zsg-product-purchase { padding-inline: 12px; }
  .zsg-product-strip__item { flex-basis: 84vw; }
  .zsg-product-categories__item { flex-basis: 84vw; }
}

@media (prefers-reduced-motion: reduce) {
  .zsg-single-product *,
  .zsg-single-product *::before,
  .zsg-single-product *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Revision 8: the side cart is the visual add-to-cart confirmation on product pages.
   Hide only WooCommerce success messages; validation/error notices remain available. */
.single-product .woocommerce-notices-wrapper .woocommerce-message {
  display: none !important;
}
