/* Promptit Image Prompts — glassmorphism carousel */
.pip-section {
    direction: rtl;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 28px 0;
    padding: clamp(16px, 2.5vw, 26px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 0%, rgba(160,130,255,.18), transparent 34%),
        radial-gradient(circle at 95% 100%, rgba(78,190,255,.14), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,.76), rgba(244,246,255,.55));
    box-shadow: 0 14px 42px rgba(32, 38, 70, .08), inset 0 1px 0 rgba(255,255,255,.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.pip-section, .pip-section * { box-sizing: border-box; }
.pip-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.pip-heading-copy { min-width: 0; }
.pip-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #8172c8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}
.pip-heading h2 {
    margin: 0;
    color: #202238;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.5;
    font-weight: 800;
}
.pip-controls { display: flex; flex: 0 0 auto; gap: 8px; }
.pip-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(126,111,195,.22);
    border-radius: 13px;
    color: #51458e;
    background: rgba(255,255,255,.65);
    box-shadow: 0 5px 14px rgba(40,35,90,.07);
    cursor: pointer;
    font: inherit;
    font-size: 25px;
    line-height: 1;
    transition: transform .2s ease, background .2s ease;
}
.pip-arrow:hover { transform: translateY(-2px); background: #fff; }
.pip-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(119,105,185,.35) transparent;
}
.pip-track::-webkit-scrollbar { height: 5px; }
.pip-track::-webkit-scrollbar-thumb { background: rgba(119,105,185,.32); border-radius: 10px; }
.pip-card {
    display: flex;
    flex: 0 0 clamp(150px, 19vw, 218px);
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    color: inherit !important;
    text-decoration: none !important;
    scroll-snap-align: start;
    outline-offset: 4px;
}
.pip-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 20px;
    background: linear-gradient(135deg, #e8e5f8, #dceefa);
    box-shadow: 0 9px 24px rgba(38,35,78,.12), inset 0 1px 0 rgba(255,255,255,.8);
}
.pip-product-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.pip-card:hover .pip-product-image { transform: scale(1.055); }
.pip-card-overlay {
    position: absolute;
    inset: 35% 0 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(18,18,38,.18));
}
.pip-open-icon {
    position: absolute;
    left: 11px;
    bottom: 11px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 11px;
    color: #fff;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    font-size: 18px;
}
.pip-card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    color: #292940;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    text-align: right;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.pip-no-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #7164a9;
    font-weight: 800;
}
.pip-notice {
    padding: 12px 16px;
    border-radius: 12px;
    background: #f4f1ff;
    color: #51458e;
}
@media (max-width: 600px) {
    .pip-section { padding: 15px 12px; border-radius: 18px; }
    .pip-heading { margin-bottom: 13px; }
    .pip-arrow { width: 33px; height: 33px; border-radius: 11px; }
    .pip-track { gap: 12px; }
    .pip-card { flex-basis: min(66vw, 205px); }
    .pip-image-wrap { border-radius: 16px; }
    .pip-card-title { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .pip-track { scroll-behavior: auto; }
    .pip-product-image, .pip-arrow { transition: none; }
}
