/* Shared by G3Ferrari lists, carousels and compact recommendations. */
.g3-product-column,
.g3-product-slide,
.g3-product-mini { display: flex; min-width: 0; }
.g3-product-slide { height: auto; }
.g3-product-grid { --ar-gutter-x: .75rem; --ar-gutter-y: .75rem; }
.g3-product-carousel .swiper-wrapper { align-items: stretch; }
.g3-product-carousel { padding: 4px 4px 8px; margin-inline: -4px; }
#hero-popular-prev, #hero-popular-next { min-width: 44px; min-height: 44px; }
.g3-product-section {
    --g3-section-ink: #20262c;
    --g3-section-line: #e2e6ea;
    --g3-control-tray: #f5f6f7;
    --g3-control-surface: #ffffff;
    --g3-control-ink: #4f5c69;
    --g3-control-hover: #fff0f2;
    --g3-section-accent: #b32231;
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(1.75rem, 4vw, 3rem);
}
.g3-product-section + .g3-product-section { padding-top: 0; }
.g3-product-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--g3-section-line);
}
.g3-product-section__copy { min-width: 0; }
.g3-product-section__eyebrow {
    display: block;
    margin-bottom: .4rem;
    color: var(--g3-section-accent);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}
.g3-product-section__title {
    margin: 0;
    color: var(--g3-section-ink);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.g3-carousel-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--g3-section-line);
    border-radius: 14px;
    background: var(--g3-control-tray);
}
.g3-carousel-control {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--g3-section-line);
    border-radius: 10px;
    appearance: none;
    background: var(--g3-control-surface);
    color: var(--g3-control-ink);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(189, 34, 49, .15);
    transition: transform 150ms ease;
}
.g3-carousel-control i { font-size: 1.125rem; line-height: 1; }
.g3-carousel-control--next { border-color: #bd2231; background: #bd2231; color: #ffffff; box-shadow: 0 3px 8px rgba(130, 22, 34, .15); }
.g3-carousel-control--prev:not(:disabled):not(.swiper-button-disabled):hover { border-color: #c9505d; background: var(--g3-control-hover); color: var(--g3-section-accent); }
.g3-carousel-control--next:not(:disabled):not(.swiper-button-disabled):hover { border-color: #991927; background: #991927; color: #ffffff; }
.g3-carousel-control:not(:disabled):not(.swiper-button-disabled):hover { transform: translateY(-1px); }
.g3-carousel-control:not(:disabled):not(.swiper-button-disabled):active { transform: scale(.95); }
.g3-carousel-control:focus-visible { outline: 3px solid var(--g3-section-accent); outline-offset: 3px; }
.g3-carousel-control:disabled,
.g3-carousel-control.swiper-button-disabled { opacity: .4; box-shadow: none; cursor: default; }
.g3-carousel-control.swiper-button-lock { display: none; }
.g3-carousel-controls:has(> .g3-carousel-control--prev.swiper-button-lock):has(> .g3-carousel-control--next.swiper-button-lock) { display: none; }
[data-bs-theme="dark"] .g3-product-section {
    --g3-section-ink: #f1f3f5;
    --g3-section-line: #3b4651;
    --g3-control-tray: #1c2228;
    --g3-control-surface: #303841;
    --g3-control-ink: #edf1f5;
    --g3-control-hover: #41262d;
    --g3-section-accent: #ffadb6;
}
@media (max-width: 575.98px) {
    .g3-product-section__header { gap: .75rem; margin-bottom: 1.125rem; padding-bottom: 1rem; }
    .g3-product-section__eyebrow { letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
    .g3-carousel-control { transition: none; }
    .g3-carousel-control:not(:disabled):not(.swiper-button-disabled):hover,
    .g3-carousel-control:not(:disabled):not(.swiper-button-disabled):active { transform: none; }
}
.g3-product-card {
    --g3-card-ink: #20262c;
    --g3-card-muted: #65707b;
    --g3-card-line: #e2e5e8;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    container: g3-card / inline-size;
    border: 1px solid var(--g3-card-line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--g3-card-ink);
    box-shadow: 0 2px 5px rgba(27, 33, 39, .025);
}
.g3-product-card__media { position: relative; flex: 0 0 10.5rem; height: 10.5rem; min-width: 0; border-radius: 9px 9px 0 0; background: #fff; }
.g3-product-card__image { display: grid; place-items: center; height: 100%; padding: 1.75rem .75rem .5rem; }
.g3-product-card__image img { display: block; width: 100%; height: 8rem; object-fit: contain; }
.g3-product-card__badges { position: absolute; z-index: 1; top: .5rem; right: .5rem; left: .5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .25rem; pointer-events: none; }
.g3-product-card__badge { padding: .2rem .35rem; border-radius: 4px; font-size: .75rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.g3-product-card__badge--available { color: #1d623b; background: #e7f5ec; }
.g3-product-card__badge--unavailable,
.g3-product-card__badge--preorder { color: #85420f; background: #fff0dc; }
.g3-product-card__badge--ended { color: #56616c; background: #eef0f3; }
.g3-product-card__badge--sale { margin-left: auto; color: #a01b2b; background: #ffedf0; white-space: nowrap; }
.g3-product-card__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: .4rem .85rem .85rem; }
.g3-product-card__category { height: 1rem; overflow: hidden; color: var(--g3-card-muted); font-size: .75rem; line-height: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.g3-product-card__title { height: 2.875rem; margin: .3rem 0 .35rem; padding: 0; }
.g3-product-card__title a { display: block; min-height: 2.875rem; color: var(--g3-card-ink); font-size: .875rem; font-weight: 650; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; touch-action: manipulation; }
.g3-product-card__title a:hover { color: #ae1e2d; text-decoration: underline; }
.g3-product-card__title a > span,
.g3-product-card__notice { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.g3-product-card__meta { height: 2.125rem; margin-bottom: .4rem; min-width: 0; color: var(--g3-card-muted); font-size: .75rem; line-height: 1.35; }
.g3-product-card__notice { color: #ae1e2d; }
.g3-product-card__purchase { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 3.125rem; margin-top: auto; }
.g3-product-card__price { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; white-space: nowrap; }
.g3-product-card__original-price { height: 1rem; color: var(--g3-card-muted); font-size: .75rem; font-weight: 400; line-height: 1rem; }
.g3-product-card .g3ferrari-sale-price { color: #bd2231; font-size: 1em; font-weight: 800; }
.g3-product-card__action { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: #bd2231; color: #fff; font-size: 1.2rem; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color 150ms ease, color 150ms ease; }
.g3-product-card__action:hover { background: #991927; color: #fff; }
.g3-product-card__action--details { background: #f0f2f5; color: #4f5c69; }
.g3-product-card__action--details:hover { background: #e0e5ea; color: #25313c; }
.g3-product-card a:focus-visible,
.g3-product-card button:focus-visible { outline: 3px solid #c63443; outline-offset: 3px; }
.g3-product-card--compact { display: grid; grid-template-columns: 6rem minmax(0, 1fr); }
.g3-product-card--compact .g3-product-card__media { height: 100%; min-height: 9rem; border-radius: 9px 0 0 9px; }
.g3-product-card--compact .g3-product-card__image { padding: 2.2rem .4rem .65rem; }
.g3-product-card--compact .g3-product-card__image img { height: 5.4rem; }
.g3-product-card--compact .g3-product-card__body { padding: .75rem; }
.g3-product-card--compact .g3-product-card__title { margin-top: 0; }
.g3-product-card--compact .g3-product-card__category,
.g3-product-card--compact .g3-product-card__meta,
.g3-product-card--compact .g3-product-card__badge--sale { display: none; }
[data-bs-theme="dark"] .g3-product-card { --g3-card-ink: #f1f3f5; --g3-card-muted: #b8c0c8; --g3-card-line: #3b424b; background: #232930; }
[data-bs-theme="dark"] .g3-product-card__notice,
[data-bs-theme="dark"] .g3-product-card .g3ferrari-sale-price,
[data-bs-theme="dark"] .g3-product-card__title a:hover { color: #ff9ba5; }
[data-bs-theme="dark"] .g3-product-card__action--details { color: #eef1f5; background: #3a434e; }
[data-bs-theme="dark"] .g3-product-card__action--details:hover { background: #4b5866; }
@media (max-width: 767.98px) {
    .g3-product-card__media { flex-basis: 9rem; height: 9rem; }
    .g3-product-card__image { padding-inline: .5rem; }
    .g3-product-card__image img { height: 6.5rem; }
    .g3-product-card__body { padding: .35rem .6rem .65rem; }
    .g3-product-card__price { font-size: .9375rem; }
    .g3-product-card__badge { font-size: .75rem; padding: .2rem .3rem; }
}
@media (max-width: 359.98px) {
    .g3-product-card__purchase { align-items: flex-start; flex-direction: column; min-height: 5.5rem; }
    .g3-product-card__action { align-self: flex-end; }
    .g3-product-card--compact .g3-product-card__purchase { align-items: center; flex-direction: row; min-height: 3.125rem; }
}
@container g3-card (max-width: 146px) {
    .g3-product-card__purchase { align-items: flex-start; flex-direction: column; min-height: 5.5rem; }
    .g3-product-card__action { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
    .g3-product-card__action { transition: none; }
}
