/*
 * The redesigned product page (products::product_v2, assets/js/product-v2.js). Flat and minimal on the gozar-ui.css
 * tokens: white cards with faint borders on desktop; on phones an app-like page with no site header or bottom bar,
 * sections parted by soft grey bands, a glass top bar and a fixed buy bar.
 */

.gp { --gp-pad: 15px; font-family: var(--gz-font); color: var(--gz-ink); }
.gp .gzi { width: 1em; height: 1em; }

/* ---- small parts ---- */
.gp-alert { margin: 12px 0; padding: 10px 14px; border-radius: var(--gz-radius-md); background: var(--gz-info-50); color: var(--gz-info); font-size: 13px; }
.gp-alert.is-danger { background: var(--gz-danger-50); color: var(--gz-danger); }
.gp .is-success { color: var(--gz-success); }
.gp .is-danger { color: var(--gz-danger); }
.gp .is-muted { color: var(--gz-ink-3); }
.gp-toman { margin-inline-start: 3px; color: var(--gz-ink-3); font-size: 12px; font-weight: 400; }
.gp-off {
    display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--gz-radius-pill);
    background: var(--gz-danger); color: #fff; font-size: 12px; font-weight: 800;
}
.gp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px;
    border: 1px solid var(--gz-border-strong); border-radius: var(--gz-radius-md); background: var(--gz-surface);
    color: var(--gz-ink) !important; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
    transition: background var(--gz-fast), border-color var(--gz-fast), opacity var(--gz-fast);
}
.gp-btn .gzi { font-size: 18px; }
.gp-btn:hover { border-color: var(--gz-brand-300); background: var(--gz-brand-50); }
.gp-btn.is-primary { border-color: var(--gz-brand-500); background: var(--gz-brand-500); color: #fff !important; }
.gp-btn.is-primary:hover { background: var(--gz-brand-600); }
.gp-btn.is-buy { border: 0; background: var(--gz-brand-500); color: #fff !important; }
.gp-btn .loader-container { display: none; }
.gp-btn.loading .loader-container { display: inline-flex; }
.gp-card-title, .gp-section-title { margin: 0 0 12px; color: var(--gz-ink); font-size: 16px; font-weight: 800; }

/* ---- breadcrumb ---- */
.gp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 16px 0 14px; color: var(--gz-ink-3); font-size: 12.5px; }
.gp-crumbs a { color: var(--gz-ink-3) !important; }
.gp-crumbs a:hover { color: var(--gz-brand-600) !important; }
.gp-crumbs .gzi { font-size: 13px; transform: rotate(90deg); color: var(--gz-ink-4); }
.gp-crumbs-line { display: none; }

/* ---- the top: picture | summary and options | seller and delivery ---- */
.gp-layout { display: grid; grid-template-columns: minmax(0, 11.6fr) minmax(280px, 3fr); gap: 24px; }
.gp-primary { min-width: 0; }
.gp-hero { display: grid; grid-template-columns: minmax(0, 6.6fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.gp-main > .gp-shipping { margin-top: 16px; }
/* the seller column follows the reader down the whole top and sections */
.gp-aside-inner { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.gp-card { padding: 16px; border: 1px solid var(--gz-border); border-radius: var(--gz-radius-lg); background: var(--gz-surface); }

/* gallery */
.gp-gallery { position: relative; }
/* desktop: thumbnails in a column at the start side, as tall as the picture and scrolling inside it */
.gp-gallery:has(.gp-thumbs) { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.gp-gallery:has(.gp-thumbs) .gallery-list { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; }
.gp-gallery .gallery-list, .gp-gallery-single {
    position: relative; overflow: hidden; border-radius: var(--gz-radius-xl); background: var(--gz-surface-2);
}
.gp-gallery .swiper-slide img, .gp-gallery-single img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.gp-gallery-flag { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: var(--gz-radius-pill); background: var(--gz-ink); color: #fff; font-size: 12px; }
.gp-gallery.is-hidden img { opacity: .6; filter: grayscale(.6); }
.gp-gallery-arrow {
    position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    bottom: auto; width: 42px; height: 42px; margin: -21px 0 0; padding: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%;
    background: rgba(255, 255, 255, .38); color: var(--gz-ink); font-size: 20px; cursor: pointer;
    -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 2px 10px rgba(28, 18, 36, .12);
    transition: background var(--gz-fast), opacity var(--gz-normal);
}
.gp-gallery-arrow:hover { background: rgba(255, 255, 255, .7); }
.gp-gallery-arrow.prev { right: 12px; left: auto; }
.gp-gallery-arrow.prev .gzi { transform: rotate(-90deg); }
.gp-gallery-arrow.next { left: 12px; right: auto; }
.gp-gallery-arrow.next .gzi { transform: rotate(90deg); }
.gp-gallery-arrow.swiper-button-disabled { opacity: 0 !important; pointer-events: none; }
.gp-gallery-dots { display: none; }
.gp-gallery-count {
    position: absolute; bottom: 12px; left: 12px; z-index: 2; padding: 2px 10px; border-radius: var(--gz-radius-pill);
    background: rgba(0, 0, 0, .35); color: #fff; font-size: 12px; direction: ltr;
}
.gp-thumbs {
    grid-column: 1; grid-row: 1; contain: size; /* takes the picture's height, not its own */
    display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.gp-thumbs::-webkit-scrollbar { display: none; }
.gp-thumbs .gallery-thumb {
    flex-shrink: 0; width: 76px; height: 96px; border: 2px solid transparent; border-radius: var(--gz-radius-md);
    object-fit: cover; background: var(--gz-surface-2); cursor: pointer; opacity: .75;
    transition: border-color var(--gz-fast), opacity var(--gz-fast);
}
.gp-thumbs .gallery-thumb:hover { opacity: 1; }
.gp-thumbs .gallery-thumb.active { border-color: var(--gz-ink); opacity: 1; }
/* more thumbnails above or below: a white fade across the column's end with an arrow */
.gp-thumbs-more {
    grid-column: 1; grid-row: 1; align-self: end; z-index: 2; display: flex; align-items: flex-end; justify-content: center;
    width: 100%; height: 56px; margin: 0; padding: 0 0 4px; border: 0; cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 55%, #fff 100%);
}
.gp-thumbs-more.is-up {
    align-self: start; align-items: flex-start; padding: 4px 0 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 55%, #fff 100%);
}
.gp-thumbs-more[hidden] { display: none; }
.gp-thumbs-more .gzi {
    width: 28px; height: 28px; padding: 6px; border: 1px solid var(--gz-border); border-radius: 50%; background: #fff;
    color: var(--gz-ink); box-shadow: 0 2px 6px rgba(28, 18, 36, .12); font-size: 28px; transition: transform var(--gz-fast);
}
.gp-thumbs-more.is-up .gzi { transform: rotate(180deg); }
.gp-thumbs-more:hover .gzi { box-shadow: 0 3px 10px rgba(28, 18, 36, .2); }

/* summary */
.gp-title-row { display: flex; align-items: flex-start; gap: 12px; }
.gp-title { flex: 1; margin: 0; font-size: 19px; font-weight: 800; line-height: 1.8; }
.gp-title-actions { display: flex; gap: 4px; flex-shrink: 0; }
.gp-icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--gz-ink-2) !important; font-size: 20px; cursor: pointer;
    transition: background var(--gz-fast);
}
.gp-icon-btn:hover { background: var(--gz-surface-3); }
.gp-icon-btn .loader-container { display: none; }
.gp-icon-btn.loading .loader-container { display: inline-flex; position: absolute; }
.gp-icon-btn.loading .icon { opacity: 0; }
/* save for later (single_v2.save_button): a filled bookmark once saved */
.gp-save .loader-container { display: none; }
.gp-save.loading .loader-container { display: inline-flex; position: absolute; }
.gp-save.loading .icon { opacity: 0; }
.gp-save.is-saved { color: var(--gz-brand-500) !important; }
.gp-save.is-saved .gzi { fill: currentColor; }
.gp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; color: var(--gz-ink-3); }
.gp-meta:empty { display: none; }
.gp-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--gz-ink-3) !important; }
.gp-rating .gzi { font-size: 15px; color: var(--gz-star); fill: var(--gz-star); }
.gp-rating b { color: var(--gz-ink); font-size: 13.5px; }
.gp-rating.is-empty { color: var(--gz-brand-600) !important; font-weight: 700; }
.gp-proof { color: var(--gz-success); font-weight: 700; }

.gp-price { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 18px; }
.gp-price-tags { display: flex; align-items: center; gap: 8px; }
.gp-price-tags del { color: var(--gz-ink-4); font-size: 13px; }
.gp-price-now { display: flex; align-items: baseline; gap: 4px; }
.gp-price-now b { font-size: 24px; font-weight: 900; }
.gp-price-now small { color: var(--gz-ink-3); font-size: 13px; }
.gp-price-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gp-price-notes:empty { display: none; }
.gp-note { padding: 3px 10px; border-radius: var(--gz-radius-pill); font-size: 12px; font-weight: 700; }
.gp-note.is-danger { background: var(--gz-danger-50); }
.gp-note.is-success { background: var(--gz-success-50); }
.gp-soldout { margin-top: 18px; padding: 12px 14px; border-radius: var(--gz-radius-md); background: var(--gz-surface-2); color: var(--gz-danger); font-weight: 700; }

/* the promises: cards in one row that scrolls sideways (icon beside one or two short lines) */
.gp-facts {
    display: flex; gap: 8px; margin: 16px 0 0; padding: 0 0 2px; overflow-x: auto; list-style: none;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    font-size: 12px; line-height: 1.75; color: var(--gz-ink-2); user-select: none; -webkit-user-select: none; cursor: grab;
}
.gp-facts::-webkit-scrollbar { display: none; }
/* dragged with the mouse (product-v2.js): no snapping while it moves */
.gp-facts.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gp-facts li {
    display: flex; flex: 0 0 auto; align-items: center; gap: 8px; width: 172px; padding: 8px 10px;
    border: 1px solid var(--gz-border); border-radius: var(--gz-radius-md); background: var(--gz-surface); scroll-snap-align: start;
}
.gp-facts li.is-wide { width: 300px; }
.gp-fact-icon {
    display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: var(--gz-brand-50); color: var(--gz-brand-500); font-size: 17px;
}

/* options and the add button (add_to_cart, product_price_section; product.js) */
.gp-options { margin-top: 16px; }
.gp-options .form-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.gp-options .form-group > span { width: 100%; color: var(--gz-ink-2); font-size: 13px; font-weight: 700; }
.gp-options .check-container { position: relative; margin: 0 !important; }
.gp-options .check-container input { position: absolute; opacity: 0; pointer-events: none; }
.gp-options .check-container label {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 0; padding: 0 14px 0 12px;
    border: 1.5px solid var(--gz-border-strong); border-radius: var(--gz-radius-pill); background: var(--gz-surface);
    color: var(--gz-ink-2); font-size: 13px; cursor: pointer; transition: border-color var(--gz-fast), background var(--gz-fast);
}
.gp-options .check-container .check-color {
    position: absolute; top: 50%; right: 10px; left: auto; bottom: auto; width: 16px; height: 16px; margin: -8px 0 0; border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none;
}
.gp-options .check-container:has(.check-color) label { padding-right: 32px; }
.gp-options .check-container input:checked + label { border-color: var(--gz-brand-500); background: var(--gz-brand-50); color: var(--gz-brand-700); font-weight: 700; }
.gp-options .check-container.disabled label { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.gp-options .variation-price-container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.gp-options .variation-price-container:empty { display: none; }
/* while a choice's price loads (product.js marks the box .opacity-50): a spinner beside it, the add button waits */
.gp-options .variation-price-container.opacity-50 { opacity: 1 !important; color: var(--gz-ink-3); }
.gp-options .variation-price-container.opacity-50::after {
    content: ""; width: 16px; height: 16px; border: 2px solid var(--gz-brand-100); border-top-color: var(--gz-brand-500);
    border-radius: 50%; animation: gp-spin .7s linear infinite;
}
.gp-options:has(.variation-price-container.opacity-50) [data-add-block] { opacity: .6; pointer-events: none; transition: opacity var(--gz-fast); }
.gp-options .kt-btn.btn-add-to-cart {
    min-height: 48px; border: 0; border-radius: var(--gz-radius-md); background: var(--gz-brand-500); box-shadow: none;
}
.gp-options .kt-btn.btn-add-to-cart:hover { background: var(--gz-brand-600); }
/* quantity (before adding) and the in-cart stepper: one outlined pill as tall as the add button */
.gp-options .quantity-box, .gp-options .cart-stepper {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 2px; width: auto; height: 48px;
    padding: 0 5px; border: 1.5px solid var(--gz-border-strong); border-radius: var(--gz-radius-pill); background: var(--gz-surface);
    user-select: none;
}
.gp-options .quantity-box .increase, .gp-options .quantity-box .decrease, .gp-options .cart-stepper button {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0;
    border-radius: 50%; background: transparent; box-shadow: none; color: var(--gz-ink); font-size: 16px; line-height: 1;
    cursor: pointer; transition: background var(--gz-fast), transform var(--gz-fast);
}
.gp-options .quantity-box .increase:hover, .gp-options .quantity-box .decrease:hover, .gp-options .cart-stepper button:hover { background: var(--gz-surface-2); }
.gp-options .quantity-box .increase:active, .gp-options .quantity-box .decrease:active, .gp-options .cart-stepper button:active { transform: scale(.9); }
.gp-options .quantity-box .count, .gp-options .cart-stepper [data-qty] {
    width: auto; min-width: 28px; height: auto; color: var(--gz-ink); font-size: 16px; font-weight: 800; line-height: 1; text-align: center;
}
.gp-options .cart-stepper { border-color: var(--gz-brand-300); }
.gp-options .cart-stepper button { color: var(--gz-brand-600); }
.gp a, .gp a:hover { text-decoration: none; }
.variations-fields.gp-attention { animation: gp-attention 1.2s var(--gz-ease); border-radius: var(--gz-radius-md); }
@keyframes gp-attention { 0%, 60% { box-shadow: 0 0 0 3px var(--gz-brand-200); } 100% { box-shadow: 0 0 0 3px transparent; } }

.gp-unavailable { margin-top: 16px; padding: 12px 14px; border-radius: var(--gz-radius-md); background: var(--gz-surface-2); color: var(--gz-ink-2); font-size: 13px; line-height: 2; }

/* coupons */
.gp-coupons { margin-top: 18px; }
.gp-coupon-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gp-coupon-rail::-webkit-scrollbar { display: none; }
.gp-coupon {
    display: flex; flex-direction: column; gap: 2px; flex: 0 0 220px; padding: 10px 12px; border: 1px dashed var(--gz-danger);
    border-radius: var(--gz-radius-md); background: var(--gz-danger-50);
}
.gp-coupon b { color: var(--gz-danger); font-size: 13.5px; }
.gp-coupon small { color: var(--gz-ink-3); font-size: 11.5px; }
.gp-coupon-code { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.gp-coupon-code input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; border: 0; border-radius: var(--gz-radius-sm); background: #fff; color: var(--gz-ink); font: 700 13px var(--gz-font); letter-spacing: 1px; direction: ltr; }
.gp-coupon-code button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--gz-radius-sm); background: var(--gz-danger); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }

/* delivery and seller */
.gp-rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.9; color: var(--gz-ink-2); }
.gp-rows li { display: flex; align-items: flex-start; gap: 8px; }
.gp-rows .gzi { flex-shrink: 0; margin-top: 3px; font-size: 18px; color: var(--gz-ink-3); }
.gp-rows .is-danger .gzi, .gp-rows .is-success .gzi { color: inherit; }
.gp-methods > span { display: flex; flex-direction: column; }

.gp-seller-head { display: flex; align-items: center; gap: 10px; color: var(--gz-ink) !important; }
.gp-seller-logo { position: relative; flex-shrink: 0; width: 52px; height: 52px; }
.gp-seller-logo img { width: 52px; height: 52px; border: 1px solid var(--gz-border); border-radius: 50%; object-fit: cover; }
.gp-seller-logo .sc-online { bottom: 1px; inset-inline-end: 1px; }
.gp-seller-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gp-seller-name b { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.gp-seller-name small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; color: var(--gz-ink-3); font-size: 12px; }
.gp-seller-name small > span:empty { display: none; }
.gp-seller-name small > span:not(:empty) ~ span:not(:empty)::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 7px; border-radius: 50%; background: var(--gz-ink-4); vertical-align: middle; }
.gp-seller-rating { display: inline-flex; align-items: center; gap: 2px; color: var(--gz-ink-2); font-weight: 700; }
.gp-seller-rating .gzi { color: var(--gz-star); fill: var(--gz-star); font-size: 13px; }
.gp-seller-go { flex-shrink: 0; font-size: 18px; color: var(--gz-ink-4); transform: rotate(90deg); }
.gp-seller-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gp-checks { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--gz-radius-md); background: var(--gz-success-50); list-style: none; font-size: 12.5px; color: var(--gz-ink-2); }
.gp-checks li { display: flex; align-items: center; gap: 6px; }
.gp-checks .gzi { flex-shrink: 0; font-size: 15px; color: var(--gz-success); stroke-width: 2.4; }
.gp-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--gz-radius-md); background: var(--gz-warning-50); color: var(--gz-ink-2); font-size: 12.5px; line-height: 1.9; }
.gp-seller-seen { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 0; color: var(--gz-ink-3); font-size: 12px; }
/* side by side when they fit, else one under the other */
.gp-seller-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gp-seller-actions .gp-btn { flex: 1 1 auto; height: 42px; padding: 0 12px; gap: 5px; font-size: 13px; }

.gp-safe { padding: 12px 14px; background: var(--gz-surface-2); border-color: transparent; }
/* the most important line of the box: never pay the seller directly */
.gp-safe-note {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; padding: 12px;
    border: 1px solid rgba(217, 119, 6, .28); border-radius: var(--gz-radius-md); background: var(--gz-warning-50);
    color: var(--gz-ink); font-size: 12.5px; line-height: 1.9;
}
.gp-safe-note .gzi { flex-shrink: 0; margin-top: 2px; font-size: 22px; color: var(--gz-warning); stroke-width: 2; }
.gp-safe-note b { display: block; color: #92400E; font-size: 13.5px; font-weight: 800; }
.gp-link-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0;
    border-top: 1px solid var(--gz-border); color: var(--gz-ink-2) !important; font-size: 12.5px; cursor: pointer;
}
.gp-link-row .gzi { flex-shrink: 0; font-size: 15px; color: var(--gz-ink-4); transform: rotate(90deg); }
.gp-link-row:hover { color: var(--gz-brand-600) !important; }
.gp-link-row.is-danger:hover { color: var(--gz-danger) !important; }

/* ---- description, attributes, reviews ---- */
.gp-sections { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.gp-section { padding: 20px; border: 1px solid var(--gz-border); border-radius: var(--gz-radius-lg); background: var(--gz-surface); }
.gp-description { color: var(--gz-ink-2); font-size: 14px; line-height: 2.1; }
.gp-attrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; font-size: 13.5px; }
.gp-attrs > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gz-border); }
/* no line under the last row (two columns: the last two when they share a row) */
.gp-attrs > div:last-child { border-bottom: 0; }
@media (min-width: 992px) { .gp-attrs > div:nth-last-child(2):nth-child(odd):not(.is-long):has(+ div:last-child:not(.is-long)) { border-bottom: 0; } }
.gp-attrs dt { flex: 0 0 40%; color: var(--gz-ink-3); font-weight: 400; }
.gp-attrs dd { min-width: 0; margin: 0; color: var(--gz-ink); font-weight: 600; }
.gp-attrs > .is-long { grid-column: 1 / -1; }
.gp-attrs > .is-long dt { flex-basis: calc(20% - 6px); }
.gp-attrs > .is-long dd { flex: 1; color: var(--gz-ink-2); font-weight: 400; line-height: 2; }
.gp-attr-text { display: -webkit-box; overflow: hidden; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.gp-attrs .is-open .gp-attr-text { display: block; -webkit-line-clamp: unset; }
.gp-more { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--gz-brand-600); font: 700 12.5px var(--gz-font); cursor: pointer; }
/* the reviews block (products::includes.single.comments) until its own redesign */
.gp-sections #commentsSection { margin: 0 !important; border: 1px solid var(--gz-border); border-radius: var(--gz-radius-lg); box-shadow: none !important; }

/* ---- more from the shop, similar products ---- */
.gp-shop-row { margin-top: 32px; }
.gp-similar { margin-top: 32px; padding: 0; border: 0; background: none; }
/* a masonry: product-v2.js puts each tile under the shortest column (.gp-feed-col); before that, a plain grid */
.gp-feed { --gp-cols: 5; --gp-gap: 16px; display: grid; grid-template-columns: repeat(var(--gp-cols), minmax(0, 1fr)); gap: var(--gp-gap); align-items: start; }
.gp-feed.is-masonry { display: flex; align-items: flex-start; gap: var(--gp-gap); }
.gp-feed-col { display: flex; flex: 1 1 0; flex-direction: column; gap: var(--gp-gap); min-width: 0; }
.gp-feed-item { min-width: 0; }
.gp-feed-loader { --gp-gap: 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gp-gap); margin-top: var(--gp-gap); }
.gp-feed-loader[hidden] { display: none; }
.gp-skeleton { aspect-ratio: 3 / 4; border-radius: var(--gz-radius-lg); background: linear-gradient(90deg, var(--gz-surface-2), var(--gz-surface-3), var(--gz-surface-2)); background-size: 200% 100%; animation: gp-shimmer 1.4s linear infinite; }
.gp-skeleton:nth-child(even) { aspect-ratio: 1; }
@keyframes gp-shimmer { to { background-position: -200% 0; } }
@media (max-width: 1199.98px) {
    .gp-feed { --gp-cols: 4; }
    .gp-feed-loader { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gp-skeleton:nth-child(n + 5) { display: none; }
}
@media (max-width: 991.98px) {
    .gp-feed { --gp-cols: 3; }
    .gp-feed-loader { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gp-skeleton:nth-child(n + 4) { display: none; }
}
@media (max-width: 767.98px) {
    .gp-feed, .gp-feed-loader { --gp-gap: 8px; }
    .gp-feed { --gp-cols: 2; }
    .gp-feed-loader { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gp-skeleton:nth-child(4) { display: block; }
}

/* ---- phone-only parts, hidden on desktop ---- */
.gp-topbar, .gp-buybar { display: none; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .gp-layout { display: flex; flex-direction: column; gap: 24px; }
    .gp-primary { display: contents; }
    .gp-hero { order: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .gp-aside { order: 2; }
    .gp-sections { order: 3; margin-top: 0; }
    .gp-aside-inner { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}

/* ======== phones and tablets: app-like ======== */
@media (max-width: 991.98px) {
    /* this page has its own top bar and buy bar instead of the site's header and bottom bar */
    .gzh, .gzh-top-banner, .gzb, .gzb-spacer { display: none !important; }
    body:has(.gp) { padding-top: 0 !important; } /* the room the site header kept */

    .gp-crumbs { display: none; }
    .gp-crumbs-line {
        display: flex; align-items: center; gap: 3px; margin: 14px calc(-1 * var(--gp-pad)) 0; padding: 0 var(--gp-pad);
        overflow-x: auto; scrollbar-width: none; white-space: nowrap; color: var(--gz-ink-4); font-size: 11px;
    }
    .gp-crumbs-line::-webkit-scrollbar { display: none; }
    .gp-crumbs-line a { flex-shrink: 0; color: var(--gz-ink-4) !important; }
    .gp-crumbs-line .gzi { flex-shrink: 0; font-size: 11px; color: var(--gz-ink-4); transform: rotate(90deg); }
    .gp-layout { display: flex; flex-direction: column; gap: 0; }
    .gp-primary { display: contents; }
    .gp-hero { order: 1; display: block; }
    .gp-aside { order: 2; }
    .gp-sections { order: 3; }
    .gp-aside-inner { position: static; gap: 0; }

    /* sections run edge to edge, parted by grey bands */
    .gp-main > *, .gp-card, .gp-section, .gp-sections #commentsSection, .gp-shop-row {
        margin-inline: calc(-1 * var(--gp-pad)) !important;
        padding: 16px var(--gp-pad) !important;
        border: 0 !important; border-radius: 0 !important;
        border-top: 8px solid var(--gz-surface-3) !important;
    }
    .gp-main > .gp-summary { border-top: 0 !important; }
    .gp-sections { gap: 0; margin-top: 0; max-width: none; }
    .gp-shop-row { margin-top: 0; }
    .gp-shop-row .pc-title { font-size: 12px; }
    .gp-shop-row .pc-low { font-size: 10.5px; }
    .gp-shop-row .pc-low .gzi { font-size: 12px; }
    .gp-similar { margin-top: 0; }

    /* the picture from edge to edge, under the floating buttons */
    .gp-gallery, .gp-gallery:has(.gp-thumbs) { display: block; margin: 0 calc(-1 * var(--gp-pad)); }
    .gp-gallery .gallery-list, .gp-gallery-single { border-radius: 0; }
    .gp-thumbs, .gp-thumbs-more, .gp-gallery .gp-gallery-arrow { display: none !important; }
    .gp-gallery-dots {
        position: absolute; bottom: 12px; left: 50%; z-index: 2; display: flex; gap: 4px; padding: 4px 6px;
        border-radius: var(--gz-radius-pill); background: rgba(0, 0, 0, .2); transform: translateX(-50%);
    }
    .gp-gallery-dots span { width: 6px; height: 6px; border-radius: var(--gz-radius-pill); background: rgba(255, 255, 255, .6); transition: width var(--gz-normal); }
    .gp-gallery-dots span.is-active { width: 16px; background: #fff; }
    .gp-gallery-count { bottom: 10px; left: auto; right: 12px; }

    .gp-title { font-size: 16px; }
    .gp-price { margin-top: 12px; }
    .gp-price-now b { font-size: 21px; }
    .gp-facts { margin-inline: calc(-1 * var(--gp-pad)); padding-inline: var(--gp-pad); scroll-padding-inline: var(--gp-pad); }

    /* the buy bar does the adding; the quantity in the cart stays */
    .gp-options [data-add-block] { display: none !important; }
    .gp-options { margin-top: 0; }
    /* no leftover room under the choices: the add box is hidden here unless the product is in the cart */
    .gp-options .form-group:not(:has(~ .form-group)) { margin-bottom: 0; }
    .gp-options [data-product-buy]:not(:has(.product-in-cart:not(.d-none))) { margin-top: 0 !important; }
    /* nothing to choose and not in the cart yet: no empty band */
    .gp-options:not(:has(.form-group, .product-in-cart:not(.d-none), .variation-price-container:not(:empty))) { display: none; }

    .gp-attrs { grid-template-columns: minmax(0, 1fr); }
    .gp-attrs > .is-long { flex-direction: column; gap: 4px; }

    /* ---- top bar: round buttons over the picture, glass once it has scrolled away ---- */
    .gp-topbar {
        position: fixed; top: 0; right: 0; left: 0; z-index: 1022; display: flex; align-items: center; gap: 8px;
        height: 64px; padding: 0 12px; pointer-events: none;
    }
    .gp-topbar::before {
        content: ""; position: absolute; inset: 0 0 -18px; z-index: -1; opacity: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .82) 62%, rgba(255, 255, 255, 0) 100%);
        -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
        -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
        transition: opacity var(--gz-normal) var(--gz-ease);
    }
    .gp-topbar.is-solid::before { opacity: 1; }
    /* a faint dark shade at the top of the picture, so the round buttons stand out on white pictures */
    .gp-gallery::before {
        content: ""; position: absolute; top: 0; right: 0; left: 0; z-index: 2; height: 120px; pointer-events: none;
        background: linear-gradient(180deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .06) 50%, rgba(0, 0, 0, 0) 100%);
    }
    .gp-round {
        position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
        width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; pointer-events: auto;
        background: rgba(255, 255, 255, .78); color: var(--gz-ink); font-size: 20px; cursor: pointer;
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
        box-shadow: 0 1px 6px rgba(28, 18, 36, .14);
        transition: background var(--gz-normal), box-shadow var(--gz-normal);
    }
    .gp-topbar.is-solid .gp-round { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .gp-back-icon { font-size: 22px; }
    .gp-round .count {
        position: absolute; top: 2px; left: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--gz-radius-pill);
        background: var(--gz-danger); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center;
    }
    .gp-topbar-title {
        flex: 1; min-width: 0; overflow: hidden; color: var(--gz-ink); font-size: 14px; font-weight: 700;
        white-space: nowrap; text-overflow: ellipsis; opacity: 0; transform: translateY(4px);
        transition: opacity var(--gz-normal), transform var(--gz-normal);
    }
    .gp-topbar.is-solid .gp-topbar-title { opacity: 1; transform: none; }
    .gp-topbar-save { display: none; }
    .gp-topbar.is-solid .gp-topbar-save { display: inline-flex; }

    /* ---- buy bar ---- */
    /* ---- buy bar: a floating glass pill, the button at the start, the price at the end ---- */
    .gp-buybar {
        position: fixed; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; z-index: 1020;
        display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid rgba(255, 255, 255, .7);
        border-radius: var(--gz-radius-pill); background: rgba(255, 255, 255, .6);
        -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
        box-shadow: 0 10px 30px rgba(28, 18, 36, .16), 0 1px 3px rgba(28, 18, 36, .08);
    }
    .gp-buybar .gp-btn.is-buy {
        flex: 1 1 auto; gap: 6px; height: 48px; max-width: 230px; padding: 0 18px; border-radius: var(--gz-radius-pill); font-size: 14.5px;
    }
    .gp-buybar .gp-btn.is-buy .gzi { font-size: 18px; }
    /* busy while the product goes into the cart: faded, a spinner in place of the plus */
    .gp-buybar .gp-btn.is-buy.is-loading,
    .gp:has(.variation-price-container.opacity-50) .gp-buybar .gp-btn.is-buy { opacity: .8; pointer-events: none; }
    .gp-buybar .gp-btn.is-buy.is-loading .gzi { display: none; }
    .gp-buybar .gp-btn.is-buy.is-loading::before {
        content: ""; flex-shrink: 0; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
        border-radius: 50%; animation: gp-spin .7s linear infinite;
    }
    .gp-buybar-price { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; padding-inline-end: 10px; }
    .gp-buybar-prices { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
    .gp-buybar-prices del { color: var(--gz-ink-4); font-size: 11.5px; }
    .gp-buybar-now { display: flex; align-items: baseline; gap: 3px; }
    .gp-buybar-now b { font-size: 17px; font-weight: 900; }
    .gp-buybar-now small { color: var(--gz-ink-3); font-size: 12px; }
    .gp-buybar .gp-off { height: 22px; padding: 0 7px; font-size: 11.5px; }
    .gp:has(.gp-buybar) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

    /* the side cart takes the whole height here: no bottom bar under it */
    body:has(.gp) .mini-shopping-cart { bottom: calc(8px + env(safe-area-inset-bottom)); }

    /* the similar feed runs nearly edge to edge */
    .gp-similar.gp-section { padding-inline: 8px !important; }
    .gp-similar .gp-section-title { padding-inline: calc(var(--gp-pad) - 8px); }
}

@media (prefers-reduced-motion: reduce) {
    .gp-topbar::before, .gp-round, .gp-topbar-title, .gp-skeleton { transition: none; animation: none; }
}
@keyframes gp-spin { to { transform: rotate(360deg); } }

/* the zoom hint (product-v2.js): shown over the picture when someone tries to zoom it; a tap opens the gallery */
.gp-zoom-hint {
    position: absolute; top: 50%; left: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--gz-radius-pill);
    background: rgba(28, 18, 36, .62); color: #fff; font: 700 13px var(--gz-font); cursor: pointer;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.92);
    transition: opacity var(--gz-normal), transform var(--gz-normal) var(--gz-ease);
}
.gp-zoom-hint.is-shown { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.gp-zoom-hint .gzi { font-size: 18px; }

/* ---- buyers' photos: the strip under the pictures, and the full-screen gallery's tabs (product-v2.js) ---- */
.gp-buyers { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--gz-border); border-radius: var(--gz-radius-lg); background: var(--gz-surface); }
.gp-buyers-label { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--gz-ink); font: 700 13.5px var(--gz-font); cursor: pointer; white-space: nowrap; }
.gp-buyers-label .gzi { font-size: 18px; color: var(--gz-brand-500); }
.gp-buyers-label b { padding: 1px 8px; border-radius: var(--gz-radius-pill); background: var(--gz-brand-50); color: var(--gz-brand-700); font-size: 12px; }
.gp-buyers-thumbs { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.gp-buyers-thumb { position: relative; flex-shrink: 0; width: 48px; height: 48px; padding: 0; overflow: hidden; border: 0; border-radius: var(--gz-radius-sm); background: var(--gz-surface-3); cursor: pointer; }
.gp-buyers-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--gz-normal) var(--gz-ease); }
.gp-buyers-thumb:hover img { transform: scale(1.06); }
.gp-buyers-thumb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(28, 18, 36, .6); color: #fff; font: 800 13px var(--gz-font); }
@media (max-width: 991.98px) { .gp-buyers { margin: 12px 0 0; } .gp-buyers-thumb { width: 44px; height: 44px; } .gp-buyers-thumbs .gp-buyers-thumb:nth-child(n+5) { display: none; } }

.gp-fb .fancybox__container, .fancybox__container.gp-fb { font-family: var(--gz-font); }
.gp-fb-tabs {
    position: absolute; top: 12px; left: 50%; z-index: 30; display: flex; gap: 4px; padding: 4px; transform: translateX(-50%);
    border-radius: var(--gz-radius-pill); background: rgba(28, 18, 36, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    direction: rtl;
}
.gp-fb-tabs button {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--gz-radius-pill);
    background: none; color: rgba(255, 255, 255, .8); font: 700 13px var(--gz-font); white-space: nowrap; cursor: pointer;
}
.gp-fb-tabs button b { font-size: 11.5px; font-weight: 800; opacity: .8; }
.gp-fb-tabs button.is-active { background: #fff; color: var(--gz-ink); }
@media (max-width: 575.98px) { .gp-fb-tabs { top: 56px; } .gp-fb-tabs button { height: 34px; padding: 0 12px; font-size: 12.5px; } }
/* a buyer's photo: a frame the size of the photo, the review over its bottom edge on a dark blur that fades upwards */
.gp-fb.is-buyers .fancybox__content { padding: 0; background: transparent; color: #fff; }
/* the toolbar has the close button already */
.gp-fb.is-buyers .fancybox__content > .carousel__button.is-close { display: none; }
.gp-bphoto { position: relative; display: inline-block; max-width: min(92vw, 1000px); overflow: hidden; border-radius: 14px; line-height: 0; }
.gp-bphoto > img {
    display: block; width: auto; height: auto; max-width: 100%;
    max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px);
}
.gp-bc {
    position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: 56px 14px 12px; direction: rtl; isolation: isolate;
    color: #fff; text-align: right; line-height: 1.6; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    background: linear-gradient(to top, rgba(14, 8, 20, .9), rgba(14, 8, 20, .55) 55%, rgba(14, 8, 20, 0));
}
.gp-bc::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to top, #000 50%, transparent); mask-image: linear-gradient(to top, #000 50%, transparent);
}
.gp-bc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.gp-bc-stars { direction: rtl; letter-spacing: 1px; }
.gp-bc-stars i { color: rgba(255, 255, 255, .3); font-style: normal; font-size: 15px; }
.gp-bc-stars i.is-on { color: #F5A524; }
.gp-bc-head b { font-size: 13.5px; }
.gp-bc-head small { color: rgba(255, 255, 255, .65); font-size: 12px; }
/* long words scroll inside their own strip (about five lines), so the photo stays in view */
.gp-bc p {
    max-height: calc(13px * 1.9 * 5); margin: 6px 0 0; padding-inline-end: 4px; overflow-y: auto; overscroll-behavior: contain;
    font-size: 13px; line-height: 1.9; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent;
}
.gp-bc p::-webkit-scrollbar { width: 4px; }
.gp-bc p::-webkit-scrollbar-thumb { border-radius: 2px; background: rgba(255, 255, 255, .4); }
