/* Horizontal Sticky Row Scroll – Page‑scroll controlled */
.pretpot-sticky-canvas {
    position: sticky;
    top: 0;
    width: 100%;
    overflow: hidden;
    background: #fff;
    z-index: 10;
    will-change: transform; /* prevents subpixel jitter */
}
.pretpot-collage-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
    will-change: transform;
}
.pretpot-sticky-card {
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    min-height: 200px;
}
.pretpot-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}
.pretpot-card-media {
    position: absolute;
    inset: 0;
}
.pretpot-card-media img,
.pretpot-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ensures uniform coverage */
    display: block;
}
.pretpot-gradient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pretpot-price-outside,
.pretpot-price-inside {
    position: absolute;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: bold;
    z-index: 5;
}
.pretpot-price-outside.top-right    { top: 12px; right: 12px; }
.pretpot-price-outside.top-left     { top: 12px; left: 12px; }
.pretpot-price-outside.bottom-right { bottom: 12px; right: 12px; }
.pretpot-price-outside.bottom-left  { bottom: 12px; left: 12px; }
.pretpot-price-inside {
    bottom: 16px;
    right: 16px;
}
.pretpot-card-subtitle {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255,255,245,0.9);
    padding: 4px 12px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.pretpot-sticky-card:hover .pretpot-card-subtitle {
    opacity: 1;
}
/* Wipe overlay & Modal */
.pretpot-wipe-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
}
.pretpot-wipe-overlay.active {
    transform: translateX(0);
}
.pretpot-sticky-modal {
    position: fixed;
    inset: 0;
    z-index: 9001;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.3s;
}
.pretpot-sticky-modal.active {
    visibility: visible;
    opacity: 1;
}
.pretpot-modal-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9002;
}
.pretpot-modal-container {
    width: 90vw;
    max-width: 1100px;
    background: white;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s;
}
.pretpot-sticky-modal.active .pretpot-modal-container {
    transform: scale(1);
}
@media (min-width: 768px) {
    .pretpot-modal-container { flex-direction: row; }
    .pretpot-modal-image-section { flex: 1; }
    .pretpot-modal-content-section { flex: 1; padding: 2rem; }
}
.pretpot-modal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pretpot-modal-price {
    background: #f0f4f8;
    padding: 4px 12px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 1rem;
}
.pretpot-modal-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.pretpot-modal-description { margin: 0.5rem 0 1.5rem; line-height: 1.6; }
.pretpot-modal-button {
    background: #1e3b5c;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
}
.pretpot-word {
    display: inline-block;
    animation: fadeUp 0.4s forwards;
    opacity: 0;
    transform: translateY(10px);
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Force card media container to fill card */
.pretpot-card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Make images and videos fully cover the container, cropping if needed */
.pretpot-card-media img,
.pretpot-card-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* Ensure the card inner layer respects the card height */
.pretpot-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Optional: if images still don't stretch, force with min-size */
.pretpot-card-media img {
    min-width: 100%;
    min-height: 100%;
}

.pretpot-card-media img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Background support for sticky canvas */
.pretpot-sticky-canvas.has-background {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}