/* ==========================================================================
   SOPYSHOP.ID — PREMIUM ANIMATED PROMOTIONAL BANNERS (GAMBAR REF 2)
   Compatible with WordPress / WooCommerce & Standalone HTML5
   Uses hardware-accelerated transform & opacity with prefers-reduced-motion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800;900&display=swap');

.sopy-pb-section {
    --sopy-pb-red-start: #f41f4e;
    --sopy-pb-red-end: #d40c38;
    width: 100%;
    max-width: 1360px;
    margin: 18px auto 26px auto;
    padding: 0 4px;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: clip;
    position: relative;
}

.sopy-pb-section *,
.sopy-pb-section *::before,
.sopy-pb-section *::after {
    box-sizing: border-box;
}

/* GRID LAYOUT: Desktop 4 cols, Tablet 2 cols, Mobile 1 col or swipe carousel */
.sopy-pb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

/* CARD SHELL */
.sopy-pb-card {
    position: relative;
    border-radius: 22px;
    min-height: 212px;
    padding: 22px 18px 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    isolation: isolate;
    text-decoration: none !important;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease;
    will-change: transform, opacity;
    perspective: 900px;
}

/* Inner glossy white border frame matching Gambar Ref 2 */
.sopy-pb-card::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 19px;
    border: 1.5px solid rgba(255, 255, 255, 0.78);
    pointer-events: none;
    z-index: 6;
}

/* Hover Lift (4-6px) & Stronger Shadow */
.sopy-pb-card:hover {
    transform: translateY(-5px);
}

/* CARD 1 THEME: SANDAL CUSTOM (Golden Yellow) */
.sopy-pb-card--sandal {
    background: linear-gradient(135deg, #fffdf6 0%, #fff6d1 48%, #fde08d 82%, #f9c846 100%);
    border: 1.5px solid #f7d683;
    box-shadow: 0 10px 24px -6px rgba(217, 119, 6, 0.15), 0 2px 6px rgba(15, 23, 42, 0.04);
}
.sopy-pb-card--sandal:hover {
    box-shadow: 0 18px 34px -6px rgba(217, 119, 6, 0.26), 0 6px 14px rgba(15, 23, 42, 0.06);
    border-color: #f59e0b;
}

/* CARD 2 THEME: REQUEST AROMA PARFUM (Soft Pink) */
.sopy-pb-card--parfum {
    background: linear-gradient(135deg, #fffafc 0%, #fde8f1 48%, #fbcfe4 82%, #f8a8ce 100%);
    border: 1.5px solid #f7c6dc;
    box-shadow: 0 10px 24px -6px rgba(225, 29, 72, 0.13), 0 2px 6px rgba(15, 23, 42, 0.04);
}
.sopy-pb-card--parfum:hover {
    box-shadow: 0 18px 34px -6px rgba(225, 29, 72, 0.24), 0 6px 14px rgba(15, 23, 42, 0.06);
    border-color: #f472b6;
}

/* CARD 3 THEME: CETAK STIKER CUSTOM (Turquoise / Mint) */
.sopy-pb-card--stiker {
    background: linear-gradient(135deg, #f6fffe 0%, #e0fbf6 48%, #b3f3e6 82%, #6ee7d2 100%);
    border: 1.5px solid #a7f0e1;
    box-shadow: 0 10px 24px -6px rgba(13, 148, 136, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
}
.sopy-pb-card--stiker:hover {
    box-shadow: 0 18px 34px -6px rgba(13, 148, 136, 0.25), 0 6px 14px rgba(15, 23, 42, 0.06);
    border-color: #2dd4bf;
}

/* CARD 4 THEME: BUAT DESAIN KAOS / JERSEY (Purple & Blue) */
.sopy-pb-card--jersey {
    background: linear-gradient(135deg, #faf9ff 0%, #ede9fe 48%, #d8b4fe 85%, #a88beb 100%);
    border: 1.5px solid #d5c7fb;
    box-shadow: 0 10px 24px -6px rgba(109, 40, 217, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
}
.sopy-pb-card--jersey:hover {
    box-shadow: 0 18px 34px -6px rgba(109, 40, 217, 0.26), 0 6px 14px rgba(15, 23, 42, 0.06);
    border-color: #8b5cf6;
}

/* Dynamic Hover Spotlight Layer (Especially noticeable on Card 4 Jersey) */
.sopy-pb-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(220px circle at var(--spot-x, 75%) var(--spot-y, 45%), rgba(255, 255, 255, 0.55), transparent 70%);
}
.sopy-pb-card:hover .sopy-pb-spotlight {
    opacity: 1;
}

/* BACKGROUND WAVE RIBBONS (Bottom decorative waves matching Gambar Ref 2) */
.sopy-pb-waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 78px;
    pointer-events: none;
    z-index: 1;
}

/* LEFT COLUMN: TEXT + ACCENT LINE + CTA BUTTON */
.sopy-pb-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    max-width: 56%;
    gap: 12px;
}

.sopy-pb-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.sopy-pb-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #0b192c;
}
.sopy-pb-card--parfum .sopy-pb-title,
.sopy-pb-card--stiker .sopy-pb-title,
.sopy-pb-card--jersey .sopy-pb-title {
    font-size: 19.5px;
}

.sopy-pb-subtitle {
    margin: 2px 0 0 0 !important;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sopy-pb-card--sandal .sopy-pb-subtitle { color: #b45309; }
.sopy-pb-card--parfum .sopy-pb-subtitle { color: #be123c; }
.sopy-pb-card--stiker .sopy-pb-subtitle { color: #0f766e; }
.sopy-pb-card--jersey .sopy-pb-subtitle { color: #4338ca; }

.sopy-pb-accent-bar {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    margin-top: 3px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sopy-pb-card:hover .sopy-pb-accent-bar {
    width: 48px;
}
.sopy-pb-card--sandal .sopy-pb-accent-bar { background: #f59e0b; }
.sopy-pb-card--parfum .sopy-pb-accent-bar { background: #ec4899; }
.sopy-pb-card--stiker .sopy-pb-accent-bar { background: #0d9488; }
.sopy-pb-card--jersey .sopy-pb-accent-bar { background: #6d28d9; }

/* CTA BUTTON: PESAN SEKARANG > */
.sopy-pb-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sopy-pb-red-start) 0%, var(--sopy-pb-red-end) 100%);
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 14px rgba(212, 12, 56, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.28s ease;
    z-index: 7;
}
.sopy-pb-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 45%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: rotate(25deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
.sopy-pb-card:hover .sopy-pb-btn,
.sopy-pb-btn:hover {
    transform: translateY(-1.5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(212, 12, 56, 0.38), inset 0 1px 2px rgba(255, 255, 255, 0.45);
    filter: brightness(1.04);
}
.sopy-pb-card:hover .sopy-pb-btn::after,
.sopy-pb-btn:hover::after {
    left: 130%;
}
.sopy-pb-btn-arrow {
    width: 11px;
    height: 11px;
    stroke-width: 2.8;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}
.sopy-pb-card:hover .sopy-pb-btn-arrow {
    transform: translateX(3px);
}

/* RIGHT COLUMN: VISUAL STAGE (CIRCLE + DECORATIONS + INDEPENDENT PRODUCT LAYERS) */
.sopy-pb-stage {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 162px;
    height: 184px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circular Halo Backdrop behind each product */
.sopy-pb-halo {
    position: absolute;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.sopy-pb-card--sandal .sopy-pb-halo {
    background: radial-gradient(circle at 35% 30%, #facc15 0%, #f59e0b 72%, #d97706 100%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.65), 0 8px 20px rgba(217, 119, 6, 0.2);
}
.sopy-pb-card--parfum .sopy-pb-halo {
    background: radial-gradient(circle at 35% 30%, #fce7f3 0%, #f9a8d4 72%, #f472b6 100%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72), 0 8px 20px rgba(236, 72, 153, 0.18);
}
.sopy-pb-card--stiker .sopy-pb-halo {
    background: radial-gradient(circle at 35% 30%, #99f6e4 0%, #2dd4bf 75%, #0d9488 100%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72), 0 8px 20px rgba(13, 148, 136, 0.18);
    animation: sopyHaloBreath 6s ease-in-out infinite;
}
.sopy-pb-card--jersey .sopy-pb-halo {
    background: radial-gradient(circle at 35% 30%, #ede9fe 0%, #c4b5fd 72%, #8b5cf6 100%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.75), 0 8px 20px rgba(124, 58, 237, 0.18);
}

/* Decorative Burst Rays / Aroma Swirls */
.sopy-pb-decor {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    will-change: transform;
}
.sopy-pb-decor--sandal {
    top: 8px;
    left: 4px;
    width: 28px;
    height: 28px;
    animation: sopyDecorPulse 3.2s ease-in-out infinite;
}
.sopy-pb-decor--parfum {
    top: 8px;
    right: 6px;
    width: 36px;
    height: 36px;
    animation: sopyDecorFloat 3.8s ease-in-out infinite;
}
.sopy-pb-decor--stiker {
    top: 6px;
    right: 12px;
    width: 26px;
    height: 26px;
    animation: sopyDecorPulse 3.5s ease-in-out infinite;
}
.sopy-pb-decor--jersey {
    top: 6px;
    right: 8px;
    width: 26px;
    height: 26px;
    animation: sopyDecorPulse 3.4s ease-in-out infinite;
}

/* Product Scale Wrapper on Hover (3-5% scale up) */
.sopy-pb-product-group {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 4;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    will-change: transform;
}
.sopy-pb-card:hover .sopy-pb-product-group {
    transform: scale(1.045);
}

/* ==========================================================================
   CARD 1 LAYERS: LEFT SANDAL & RIGHT SANDAL (Independent Phase Offset)
   ========================================================================== */
.sopy-pb-sandal-left {
    position: absolute;
    inset: 4px 2px 4px 8px;
    width: calc(100% - 10px);
    height: calc(100% - 8px);
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(120, 53, 15, 0.24));
    animation: sopySandalFloatLeft 3.4s ease-in-out infinite;
    will-change: transform;
}
.sopy-pb-sandal-right {
    position: absolute;
    inset: 4px 2px 4px 8px;
    width: calc(100% - 10px);
    height: calc(100% - 8px);
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(120, 53, 15, 0.26));
    animation: sopySandalFloatRight 3.4s ease-in-out -1.1s infinite;
    will-change: transform;
}
.sopy-pb-card--sandal:hover .sopy-pb-sandal-left,
.sopy-pb-card--sandal:hover .sopy-pb-sandal-right {
    animation-duration: 2.3s;
}

/* ==========================================================================
   CARD 2 LAYERS: PERFUME BOTTLE + SWAYING FLOWERS + RISING AROMA PARTICLES
   ========================================================================== */
.sopy-pb-parfum-bottle-wrap {
    position: absolute;
    width: 96px;
    height: 168px;
    left: 34px;
    top: 8px;
    animation: sopyParfumFloat 4.2s ease-in-out infinite;
    will-change: transform;
}
.sopy-pb-parfum-bottle {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(159, 18, 57, 0.22));
    display: block;
}
/* Glass edge shimmer that avoids blurring the center REQUEST PARFUM label */
.sopy-pb-parfum-shimmer {
    position: absolute;
    inset: 42px 8px 10px 8px;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: none;
    /* Mask out the center label region so label stays 100% crisp */
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 18%, transparent 22%, transparent 78%, #000 82%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 18%, transparent 22%, transparent 78%, #000 82%, #000 100%);
}
.sopy-pb-parfum-shimmer::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -100%;
    width: 55%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    transform: rotate(22deg);
    animation: sopyPeriodicShimmer 5.2s ease-in-out infinite;
}

.sopy-pb-flower-left {
    position: absolute;
    width: 62px;
    height: auto;
    left: 10px;
    bottom: 6px;
    transform-origin: 70% 90%;
    filter: drop-shadow(0 5px 8px rgba(159, 18, 57, 0.16));
    animation: sopyFlowerBreezeLeft 3.8s ease-in-out infinite;
    z-index: 5;
    will-change: transform;
}
.sopy-pb-flower-right {
    position: absolute;
    width: 46px;
    height: auto;
    right: 6px;
    bottom: 12px;
    transform-origin: 20% 85%;
    filter: drop-shadow(0 5px 8px rgba(159, 18, 57, 0.16));
    animation: sopyFlowerBreezeRight 4.1s ease-in-out -1.4s infinite;
    z-index: 3;
    will-change: transform;
}

/* Rising Transparent Aroma Particles */
.sopy-pb-aroma-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}
.sopy-pb-aroma-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(244, 114, 182, 0.45) 65%, transparent 100%);
    opacity: 0;
    will-change: transform, opacity;
}
.sopy-pb-aroma-dot--1 { width: 7px; height: 7px; left: 52px; top: 38px; animation: sopyAromaRise 3.6s ease-out infinite; }
.sopy-pb-aroma-dot--2 { width: 5px; height: 5px; left: 108px; top: 34px; animation: sopyAromaRise 3.9s ease-out 1.1s infinite; }
.sopy-pb-aroma-dot--3 { width: 8px; height: 8px; left: 82px; top: 26px; animation: sopyAromaRise 4.2s ease-out 2.1s infinite; }
.sopy-pb-aroma-dot--4 { width: 6px; height: 6px; left: 118px; top: 52px; animation: sopyAromaRise 3.4s ease-out 0.6s infinite; }

/* ==========================================================================
   CARD 3 LAYERS: STICKER ROLL + FLEXIBLE PEELING SHEET + SHIMMER
   ========================================================================== */
.sopy-pb-stiker-wrap {
    position: absolute;
    width: 144px;
    height: 162px;
    left: 10px;
    top: 14px;
    filter: drop-shadow(0 10px 16px rgba(15, 118, 110, 0.22));
    will-change: transform;
}
.sopy-pb-stiker-core {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: 78% 48%;
    animation: sopyRollSubtleTurn 4.5s ease-in-out infinite;
    will-change: transform;
}
.sopy-pb-stiker-peel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: 68% 28%;
    animation: sopyPaperPeelFlex 3.6s ease-in-out infinite;
    will-change: transform;
}

/* ==========================================================================
   CARD 4 LAYERS: 3D CUSTOM JERSEY + CURSOR TILT + FABRIC SHIMMER
   ========================================================================== */
.sopy-pb-jersey-wrap {
    position: absolute;
    width: 148px;
    height: 172px;
    left: 8px;
    top: 6px;
    animation: sopyJerseyFloat 3.8s ease-in-out infinite;
    will-change: transform;
}
.sopy-pb-jersey-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(76, 29, 149, 0.25));
    display: block;
}

/* Shared Periodic Shimmer Overlay across Product Surfaces */
.sopy-pb-product-shine {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 6;
    mix-blend-mode: soft-light;
}
.sopy-pb-product-shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -120%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
    transform: rotate(25deg);
    animation: sopyPeriodicShimmer 5.6s ease-in-out infinite;
}
.sopy-pb-card--stiker .sopy-pb-product-shine::after {
    animation-delay: 1.4s;
}
.sopy-pb-card--jersey .sopy-pb-product-shine::after {
    animation-delay: 2.6s;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS (60fps GPU Transform & Opacity Only)
   ========================================================================== */
@keyframes sopySandalFloatLeft {
    0%, 100% { transform: translate3d(0, 0px, 0) rotate(-1.5deg); }
    50% { transform: translate3d(0, -6px, 0) rotate(1.5deg); }
}
@keyframes sopySandalFloatRight {
    0%, 100% { transform: translate3d(0, 0px, 0) rotate(1.5deg); }
    50% { transform: translate3d(0, -7px, 0) rotate(-1.8deg); }
}
@keyframes sopyParfumFloat {
    0%, 100% { transform: translate3d(0, 0px, 0); }
    50% { transform: translate3d(0, -4.5px, 0); }
}
@keyframes sopyFlowerBreezeLeft {
    0%, 100% { transform: rotate(-2.5deg) translate3d(0, 0, 0); }
    50% { transform: rotate(3.2deg) translate3d(1px, -1.5px, 0); }
}
@keyframes sopyFlowerBreezeRight {
    0%, 100% { transform: rotate(2.2deg) translate3d(0, 0, 0); }
    50% { transform: rotate(-3.5deg) translate3d(-1px, -1.5px, 0); }
}
@keyframes sopyAromaRise {
    0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(0.6); }
    35% { opacity: 0.78; }
    100% { opacity: 0; transform: translate3d(-4px, -26px, 0) scale(1.35); }
}
@keyframes sopyRollSubtleTurn {
    0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
    50% { transform: rotate(1.8deg) translate3d(0, -2.5px, 0); }
}
@keyframes sopyPaperPeelFlex {
    0%, 100% { transform: rotate(0deg) skewX(0deg) translate3d(0, 0, 0); }
    50% { transform: rotate(-2.2deg) skewX(-1.4deg) translate3d(-2px, -4px, 0); }
}
@keyframes sopyJerseyFloat {
    0%, 100% { transform: translate3d(0, 0px, 0); }
    50% { transform: translate3d(0, -5.5px, 0); }
}
@keyframes sopyHaloBreath {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.035); }
}
@keyframes sopyDecorPulse {
    0%, 100% { transform: scale(0.94) rotate(-3deg); opacity: 0.85; }
    50% { transform: scale(1.08) rotate(4deg); opacity: 1; }
}
@keyframes sopyDecorFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-2px, -4px, 0) rotate(5deg); }
}
@keyframes sopyPeriodicShimmer {
    0%, 28% { left: -120%; opacity: 0; }
    35% { opacity: 0.9; }
    62%, 100% { left: 160%; opacity: 0; }
}

/* Pause animations when offscreen (toggled by IntersectionObserver) */
.sopy-pb-section.is-offscreen .sopy-pb-card *,
.sopy-pb-section.is-offscreen .sopy-pb-card *::after {
    animation-play-state: paused !important;
}

/* Mobile Carousel Navigation Controls (Shown when swipe mode is active on mobile) */
.sopy-pb-mobile-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.sopy-pb-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}
.sopy-pb-dot.is-active {
    width: 22px;
    background: #e11d48;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop 4 Cols, Tablet 2 Cols, Mobile Stack/Swipe)
   ========================================================================== */
@media (max-width: 1180px) and (min-width: 641px) {
    .sopy-pb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .sopy-pb-card {
        min-height: 204px;
    }
}

@media (max-width: 640px) {
    /* Default Mobile: Clean 1-Column Stack OR Swipeable Horizontal Carousel */
    .sopy-pb-section[data-mobile-layout="carousel"] .sopy-pb-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 12px;
        padding-bottom: 6px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .sopy-pb-section[data-mobile-layout="carousel"] .sopy-pb-grid::-webkit-scrollbar {
        display: none;
    }
    .sopy-pb-section[data-mobile-layout="carousel"] .sopy-pb-card {
        flex: 0 0 88%;
        max-width: 340px;
        scroll-snap-align: center;
    }
    .sopy-pb-section[data-mobile-layout="carousel"] .sopy-pb-mobile-nav {
        display: flex;
    }

    .sopy-pb-section:not([data-mobile-layout="carousel"]) .sopy-pb-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sopy-pb-card {
        min-height: 186px;
        padding: 18px 14px 16px 18px;
    }
    .sopy-pb-title {
        font-size: 18.5px !important;
    }
    .sopy-pb-stage {
        width: 144px;
        height: 168px;
        right: 4px;
    }
    .sopy-pb-halo {
        width: 122px;
        height: 122px;
    }
    .sopy-pb-sandal-left, .sopy-pb-sandal-right { inset: 4px 2px 4px 6px; width: calc(100% - 8px); height: calc(100% - 8px); }
    .sopy-pb-parfum-bottle-wrap { width: 86px; height: 150px; left: 30px; top: 10px; }
    .sopy-pb-flower-left { width: 54px; left: 8px; }
    .sopy-pb-flower-right { width: 40px; right: 4px; }
    .sopy-pb-stiker-wrap { width: 128px; height: 146px; left: 8px; top: 14px; }
    .sopy-pb-jersey-wrap { width: 132px; height: 154px; left: 6px; top: 8px; }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .sopy-pb-card,
    .sopy-pb-card *,
    .sopy-pb-card *::before,
    .sopy-pb-card *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
