/* Preview photo controls: scoped independently of the full stock gallery. */
.pc-card-gallery { position: relative; min-width: 0; }
.pc-card-gallery [hidden], .pc-offer-navigation[hidden] { display: none !important; }
.pc-card-gallery .pc-card-gallery-arrow {
    position: absolute; top: 50%; z-index: 3;
    display: grid; place-items: center; width: 44px; height: 44px;
    min-width: 44px; min-height: 44px; margin: 0; padding: 0 !important;
    transform: translateY(-50%); border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%; background: rgba(7,20,26,.82); color: #fff;
    font-size: 0; line-height: 1; cursor: pointer; touch-action: manipulation;
}
.pc-card-gallery [data-pc-photo-prev] { left: 10px; }
.pc-card-gallery [data-pc-photo-next] { right: 10px; }
.pc-card-gallery .pc-card-gallery-arrow svg,
.pc-offer-navigation button svg { display: block; width: 24px; height: 24px; pointer-events: none; }
.pc-card-gallery .pc-card-gallery-arrow:hover { background: #07141a; }
.pc-card-gallery .pc-card-gallery-arrow:focus-visible,
.pc-offer-navigation button:focus-visible { outline: 3px solid #ff8a32; outline-offset: 3px; }
.pc-card-gallery .pc-card-gallery-count {
    position: absolute; right: 10px; bottom: 10px; z-index: 2;
    padding: 4px 9px; border-radius: 999px; color: #fff;
    background: rgba(7,20,26,.82); font-size: 11px; line-height: 1.5;
    font-weight: 650; pointer-events: none;
}
.pc-card-gallery .pc-card-gallery-status {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.pc-offers .pc-offer-navigation {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 6px; padding: 0 2px;
}
.pc-offer-navigation button {
    display: grid; place-items: center; flex: 0 0 48px;
    width: 48px; height: 48px; min-height: 48px; padding: 0;
    border: 1px solid #adbbc3; border-radius: 50%; background: #fff; color: #102733;
    cursor: pointer; touch-action: manipulation;
}
.pc-offer-navigation button:hover:not(:disabled) { background: #102733; color: #fff; }
.pc-offer-navigation button:disabled { opacity: .4; cursor: default; }
.pc-offer-navigation p { margin: 0; color: #52646e; font-size: 14px; line-height: 1.4; text-align: center; }
@media (prefers-reduced-motion: reduce) {
    #pc-home-offer-grid { scroll-behavior: auto !important; }
    .pc-offer:has(.pc-card-gallery), .pc-c2-card:has(.pc-card-gallery),
    .pc-card-gallery img { transition: none !important; }
}

/* Homepage offer photos: transparent circles with white chevrons. */
.pc-card-gallery--home .pc-card-gallery-arrow,
.pc-card-gallery--home .pc-card-gallery-arrow:hover,
.pc-card-gallery--home .pc-card-gallery-arrow:active,
.pc-card-gallery--home .pc-card-gallery-arrow:focus-visible {
    background: transparent;
    color: #fff;
    box-shadow: none;
}


/* Homepage offers rail: keep five visible cards and expose additional stock through the shared navigation. */
@media (min-width: 821px) {
    #pc-home-offer-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    #pc-home-offer-grid::-webkit-scrollbar {
        display: none;
    }

    #pc-home-offer-grid .pc-offer {
        scroll-snap-align: start;
    }
}

@media (min-width: 1121px) {
    #pc-home-offer-grid {
        grid-auto-columns: calc((100% - 80px) / 5);
    }
}

@media (min-width: 821px) and (max-width: 1120px) {
    #pc-home-offer-grid {
        grid-auto-columns: calc((100% - 40px) / 3);
    }
}
