/* =====================================================================
   shop-v2.css — Crisp Commerce (Blue × White)
   Album Butterfly shop redesign
   ---------------------------------------------------------------------
   - Pure white background, blue shades for every accent
   - Onest variable font (not Inter, not Roboto)
   - Real ecommerce density: 2 / 3 / 4 / 5 col responsive grid
   - Compact cards: image, category, title, partner, price, buy + add
   - Navy primary, bright-blue accents, soft-blue surfaces
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Blue palette — the only colors we use */
    --v2-blue-50:   #eff6ff;
    --v2-blue-100:  #dbeafe;
    --v2-blue-200:  #bfdbfe;
    --v2-blue-300:  #93c5fd;
    --v2-blue-400:  #60a5fa;
    --v2-blue-500:  #3b82f6;  /* bright */
    --v2-blue-600:  #2563eb;
    --v2-blue-700:  #1d4ed8;
    --v2-blue-800:  #1e40af;
    --v2-blue-900:  #1e3a8a;  /* deep navy — primary brand */
    --v2-blue-950:  #172554;

    /* Neutrals (still cool-tinted to stay in the blue family) */
    --v2-white:     #ffffff;
    --v2-ink:       #0f172a;
    --v2-ink-soft:  #334155;
    --v2-ink-mute:  #64748b;
    --v2-ink-mute2: #94a3b8;
    --v2-line:      #e2e8f0;
    --v2-line-soft: #f1f5f9;
    --v2-surface:   #ffffff;

    /* Semantic — minimal use, blue dominates */
    --v2-success:   #059669;
    --v2-danger:    #dc2626;

    /* Shadows (blue-tinted) */
    --v2-shadow-xs:  0 1px 2px rgba(30, 58, 138, 0.06);
    --v2-shadow-sm:  0 2px 8px rgba(30, 58, 138, 0.08);
    --v2-shadow:     0 10px 24px rgba(30, 58, 138, 0.10);
    --v2-shadow-lg:  0 20px 44px -12px rgba(30, 58, 138, 0.22);
    --v2-shadow-ring: 0 0 0 3px rgba(59, 130, 246, 0.16);

    --v2-radius:    14px;
    --v2-radius-lg: 20px;
    --v2-radius-xl: 26px;

    --v2-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --v2-header-h: 62px;
}

/* =====================================================================
   Scoped reset
   ===================================================================== */
body.shop-v2 {
    background: var(--v2-white);
    color: var(--v2-ink);
    font-family: var(--v2-sans);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "ss01" on, "cv11" on;
}

body.shop-v2 *,
body.shop-v2 *::before,
body.shop-v2 *::after { box-sizing: border-box; }

body.shop-v2 img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.shop-v2 button { font-family: inherit; }

.v2-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) { .v2-container { padding: 0 32px; } }
@media (min-width: 1280px) { .v2-container { padding: 0 40px; } }

/* =====================================================================
   Sticky header — clean, white, blue brand
   ===================================================================== */
.v2-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--v2-line);
}

.v2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--v2-header-h);
    gap: 12px;
}

.v2-brand {
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-brand-mark {
    font-family: var(--v2-sans);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--v2-blue-900);
    letter-spacing: -0.02em;
}

.v2-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--v2-blue-500);
    box-shadow: 0 0 0 3px var(--v2-blue-100);
}

.v2-brand-sub {
    font-size: 0.72rem;
    color: var(--v2-ink-mute);
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 520px) {
    .v2-brand-sub { display: none; }
    .v2-brand-mark { font-size: 1.15rem; }
}

.v2-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-search-wrap { position: relative; display: flex; align-items: center; }

.v2-search-input {
    width: 40px;
    height: 40px;
    padding: 0 14px 0 38px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: var(--v2-blue-50);
    color: transparent;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-search-input::placeholder { color: transparent; }

.v2-search-input:focus {
    width: 220px;
    background: var(--v2-white);
    border-color: var(--v2-blue-500);
    box-shadow: var(--v2-shadow-ring);
    color: var(--v2-ink);
    cursor: text;
}

.v2-search-input:focus::placeholder { color: var(--v2-ink-mute2); }

@media (min-width: 768px) {
    .v2-search-input:focus { width: 280px; }
}

.v2-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v2-blue-700);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.v2-search-icon svg {
    width: 16px;
    height: 16px;
}

.v2-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1.5px solid var(--v2-line);
    background: var(--v2-white);
    color: var(--v2-blue-900);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.v2-icon-btn:hover {
    border-color: var(--v2-blue-500);
    background: var(--v2-blue-50);
    transform: translateY(-1px);
}

.v2-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 0 6px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: var(--v2-blue-900);
    color: var(--v2-white);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    font-family: var(--v2-sans);
}

.v2-icon-btn:hover .v2-badge { background: var(--v2-blue-600); }

/* Page title strip removed — grid starts directly below filter bar */

/* =====================================================================
   Promo ticker — blue bar with auto-scrolling Hinglish offers
   ===================================================================== */
.v2-ticker {
    background: linear-gradient(90deg, var(--v2-blue-900) 0%, var(--v2-blue-800) 50%, var(--v2-blue-900) 100%);
    color: var(--v2-white);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* No fade-out pseudo-elements — the marquee scrolls seamlessly off the edges. */

.v2-ticker-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.92);
}

.v2-ticker-track {
    display: flex;
    gap: 56px;
    white-space: nowrap;
    width: max-content;
    animation: v2-ticker-scroll 44s linear infinite;
    will-change: transform;
}

.v2-ticker:hover .v2-ticker-track {
    animation-play-state: paused;
}

.v2-ticker-item {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v2-ticker-item::after {
    content: '•';
    margin-left: 56px;
    color: var(--v2-blue-400);
    font-size: 1rem;
}

@keyframes v2-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 640px) {
    .v2-ticker { padding: 9px 0; }
    .v2-ticker-item { font-size: 0.76rem; }
    .v2-ticker-track { gap: 40px; animation-duration: 34s; }
    .v2-ticker-item::after { margin-left: 40px; }
}

/* =====================================================================
   Filter chip strip — clean horizontal scroll
   ===================================================================== */
.v2-filter-strip {
    position: sticky;
    top: var(--v2-header-h);
    z-index: 80;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    padding: 14px 0 12px;
    margin-top: 0;
    border-bottom: 1px solid var(--v2-line);
}

@media (max-width: 640px) {
    .v2-filter-strip { padding: 12px 0 10px; }
}

.v2-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px;
    margin: 0 -20px;
}

.v2-filter-row::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .v2-filter-row { padding: 0 32px; margin: 0 -32px; }
}

@media (min-width: 1280px) {
    .v2-filter-row { padding: 0 40px; margin: 0 -40px; }
}

.v2-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--v2-line);
    background: var(--v2-white);
    color: var(--v2-ink-soft);
    font-family: var(--v2-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    user-select: none;
    min-height: 38px;
    letter-spacing: -0.005em;
}

.v2-chip:hover {
    border-color: var(--v2-blue-500);
    color: var(--v2-blue-700);
    background: var(--v2-blue-50);
}

.v2-chip.active {
    background: var(--v2-blue-900);
    border-color: var(--v2-blue-900);
    color: var(--v2-white);
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.24);
}

.v2-chip-divider {
    flex-shrink: 0;
    width: 1px;
    height: 20px;
    background: var(--v2-line);
    margin: 0 4px;
}

.v2-sort-chip {
    margin-left: auto;
    flex-shrink: 0;
    padding: 9px 36px 9px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--v2-line);
    background: var(--v2-white);
    color: var(--v2-ink-soft);
    font-family: var(--v2-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 38px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all 0.22s ease;
}

.v2-sort-chip:hover {
    border-color: var(--v2-blue-500);
    color: var(--v2-blue-700);
}

/* Applied filters row */
.v2-applied-row {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0 0;
}

.v2-applied-row.has-filters { display: flex; }

.v2-applied-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--v2-ink-mute);
}

.v2-applied-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 6px 5px 12px;
    border-radius: 999px;
    background: var(--v2-blue-50);
    color: var(--v2-blue-800);
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid var(--v2-blue-200);
}

.v2-applied-tag button {
    background: transparent;
    border: none;
    color: var(--v2-blue-700);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 5px;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0.7;
}

.v2-applied-tag button:hover { opacity: 1; }

.v2-applied-clear {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--v2-blue-700);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: var(--v2-sans);
}

.v2-applied-clear:hover { color: var(--v2-blue-900); }

/* =====================================================================
   Results info line
   ===================================================================== */
.v2-results-info {
    padding: 22px 0 16px;
    color: var(--v2-ink-mute);
    font-size: 0.82rem;
    font-weight: 500;
}

.v2-results-info strong {
    color: var(--v2-blue-900);
    font-weight: 700;
}

/* =====================================================================
   Grid — 2 col on phone (compact), scales up from there
   ===================================================================== */
.v2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 0 40px;
}

@media (min-width: 600px) {
    .v2-grid { gap: 16px; }
}

@media (min-width: 768px) {
    .v2-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .v2-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (min-width: 1440px) {
    .v2-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 24px;
    }
}

/* =====================================================================
   Card — crisp commerce
   ===================================================================== */
.v2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--v2-white);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius-lg);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                opacity 0.6s ease;
    box-shadow: var(--v2-shadow-xs);
    opacity: 0;
    transform: translateY(16px);
}

.v2-card.v2-in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .v2-card {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.v2-card:hover {
    transform: translateY(-4px);
    border-color: var(--v2-blue-300);
    box-shadow: var(--v2-shadow-lg);
}

/* Software card (id=1) — animated glow halo */
.v2-card.card-software {
    border-color: var(--v2-blue-300);
    background: linear-gradient(180deg, var(--v2-blue-50) 0%, var(--v2-white) 40%);
    animation: v2-software-glow 3.2s ease-in-out infinite;
}

.v2-card.card-software.v2-in-view {
    /* glow takes over from transform via override below */
}

@keyframes v2-software-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.32),
                    var(--v2-shadow-xs);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.10),
                    0 12px 28px rgba(59, 130, 246, 0.18);
    }
}

.v2-card.card-software:hover {
    border-color: var(--v2-blue-500);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.14),
                0 24px 48px -12px rgba(59, 130, 246, 0.36);
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .v2-card.card-software { animation: none !important; }
}

/* In-cart highlight — blue instead of green */
.v2-card.in-cart {
    border-color: var(--v2-blue-500);
    border-width: 2px;
}

.v2-card.in-cart .v2-incart-pill {
    display: inline-flex;
}

.v2-incart-pill {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--v2-blue-500);
    color: var(--v2-white);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.32);
    line-height: 1;
}

/* --- Image well --- */
.v2-card-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--v2-blue-50) 0%, var(--v2-blue-100) 100%);
    overflow: hidden;
    cursor: pointer;
    border-bottom: 1px solid var(--v2-line);
}

/* Stacked images for slideshow on hover */
.v2-card-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    image-rendering: auto;
    will-change: opacity, transform;
}

.v2-card-img-wrap img.active {
    opacity: 1;
}

/* Software/physical = cover fit (product photography crops cleanly) */
.v2-card.card-software .v2-card-img-wrap img,
.v2-card.card-physical .v2-card-img-wrap img {
    object-fit: cover;
    object-position: center;
}

/* Digital (PSD) = contain with padding so designs aren't cropped */
.v2-card.card-digital .v2-card-img-wrap img {
    object-fit: contain;
    padding: 10px;
}

.v2-card:hover .v2-card-img-wrap img.active {
    transform: scale(1.04);
}

/* Wishlist heart — top right */
.v2-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: var(--v2-ink-mute);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.12);
}

.v2-wishlist:hover {
    background: var(--v2-white);
    color: var(--v2-danger);
    border-color: var(--v2-white);
    transform: scale(1.1);
}

.v2-wishlist.active {
    background: var(--v2-danger);
    color: var(--v2-white);
    border-color: var(--v2-danger);
}

.v2-wishlist svg { width: 16px; height: 16px; }

/* Badges on image — max 2 */
.v2-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: calc(100% - 56px);
}

.v2-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--v2-blue-900);
    color: var(--v2-white);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.22);
    white-space: nowrap;
}

.v2-pill.pill-offer {
    background: var(--v2-blue-600);
}

.v2-pill.pill-new {
    background: var(--v2-success);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.22);
}

.v2-pill.pill-software {
    background: linear-gradient(135deg, var(--v2-blue-700), var(--v2-blue-500));
}

.v2-pill.pill-partner {
    background: var(--v2-blue-500);
}

.v2-pill.pill-topseller {
    background: var(--v2-blue-800);
}

/* --- Card body --- */
.v2-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 14px 14px;
    gap: 3px;
}

@media (min-width: 1024px) {
    .v2-card-body { padding: 16px 16px 16px; gap: 4px; }
}

.v2-cat-chip {
    display: none;
    align-self: flex-start;
    padding: 2px 8px;
    margin-bottom: 6px;
    background: var(--v2-blue-50);
    color: var(--v2-blue-700);
    border-radius: 4px;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--v2-blue-100);
}

.v2-card.card-physical .v2-cat-chip { display: inline-flex; }

.v2-card-title {
    font-family: var(--v2-sans);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    letter-spacing: -0.012em;
    color: var(--v2-ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    transition: color 0.2s ease;
}

@media (min-width: 1024px) {
    .v2-card-title { font-size: 0.95rem; }
}

.v2-card:hover .v2-card-title { color: var(--v2-blue-700); }

.v2-card-subtitle {
    font-size: 0.72rem;
    color: var(--v2-ink-mute);
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-card-subtitle strong {
    color: var(--v2-blue-800);
    font-weight: 700;
}

.v2-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.v2-price-final {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--v2-blue-900);
    line-height: 1;
    letter-spacing: -0.015em;
}

@media (min-width: 1024px) {
    .v2-price-final { font-size: 1.18rem; }
}

.v2-price-old {
    font-size: 0.8rem;
    color: var(--v2-ink-mute2);
    text-decoration: line-through;
    font-weight: 500;
}

.v2-price-save {
    font-size: 0.68rem;
    color: var(--v2-blue-600);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Card actions (two-row: primary on top, preview + cart below) --- */
.v2-card-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.v2-card-sub-row {
    display: flex;
    gap: 6px;
}

.v2-btn-sub {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 8px;
    border-radius: 10px;
    background: var(--v2-white);
    color: var(--v2-blue-800);
    border: 1.5px solid var(--v2-blue-200);
    font-family: var(--v2-sans);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.22s ease,
                color 0.22s ease,
                border-color 0.22s ease,
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.22s ease;
    min-height: 38px;
    line-height: 1;
    text-decoration: none;
    letter-spacing: -0.005em;
}

.v2-btn-arrow {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 1px;
}

/* Hover — solid navy fill, white text, arrow slides right */
.v2-btn-sub:hover {
    background: var(--v2-blue-900);
    border-color: var(--v2-blue-900);
    color: var(--v2-white);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.28);
}

.v2-btn-sub:hover .v2-btn-arrow {
    transform: translateX(3px);
}

.v2-btn-sub.added {
    background: var(--v2-blue-500);
    color: var(--v2-white);
    border-color: var(--v2-blue-500);
}

.v2-btn-sub.added:hover {
    background: var(--v2-blue-700);
    border-color: var(--v2-blue-700);
    color: var(--v2-white);
}

@media (min-width: 1024px) {
    .v2-btn-sub { font-size: 0.8rem; padding: 10px 10px; min-height: 40px; }
}

.v2-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-family: var(--v2-sans);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    min-height: 40px;
    line-height: 1;
    letter-spacing: -0.005em;
}

.v2-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.v2-btn-primary {
    background: var(--v2-blue-900);
    color: var(--v2-white);
    border-color: var(--v2-blue-900);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.24);
}

.v2-btn-primary:hover:not(:disabled) {
    background: var(--v2-blue-700);
    border-color: var(--v2-blue-700);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.32);
}

.v2-btn-bright {
    background: linear-gradient(135deg, var(--v2-blue-600) 0%, var(--v2-blue-500) 100%);
    color: var(--v2-white);
    border-color: var(--v2-blue-600);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.30);
}

.v2-btn-bright:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--v2-blue-700), var(--v2-blue-600));
    border-color: var(--v2-blue-700);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.40);
}

.v2-btn-ghost {
    flex: 0 0 40px;
    padding: 11px 0;
    background: var(--v2-white);
    color: var(--v2-blue-800);
    border-color: var(--v2-blue-200);
    font-size: 1rem;
    min-width: 40px;
}

.v2-btn-ghost:hover:not(:disabled) {
    background: var(--v2-blue-50);
    border-color: var(--v2-blue-500);
    color: var(--v2-blue-900);
}

.v2-btn-ghost.added {
    background: var(--v2-blue-500);
    color: var(--v2-white);
    border-color: var(--v2-blue-500);
}

/* =====================================================================
   Skeleton loader
   ===================================================================== */
.v2-skel {
    display: flex;
    flex-direction: column;
    background: var(--v2-white);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius-lg);
    overflow: hidden;
    padding: 0;
}

.v2-skel-img,
.v2-skel-line {
    background: linear-gradient(90deg,
        var(--v2-blue-50) 0%, var(--v2-blue-100) 50%, var(--v2-blue-50) 100%);
    background-size: 200% 100%;
    animation: v2-shimmer 1.5s ease-in-out infinite;
}

.v2-skel-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    margin: 0;
    border-radius: 0;
}

.v2-skel-body {
    padding: 14px;
}

.v2-skel-line {
    height: 11px;
    margin: 6px 0;
    width: 85%;
    border-radius: 4px;
}

.v2-skel-line.short { width: 55%; }
.v2-skel-line.btn { height: 40px; margin-top: 12px; border-radius: 10px; width: 100%; }

@keyframes v2-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.v2-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--v2-ink-mute);
}

.v2-empty-icon {
    font-size: 3rem;
    color: var(--v2-blue-200);
    margin-bottom: 10px;
    font-weight: 300;
}

.v2-empty h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--v2-blue-900);
    margin: 0 0 6px;
}

.v2-empty p {
    margin: 0 0 20px;
    font-size: 0.9rem;
}

/* =====================================================================
   Pagination — numbered page nav (prev/numbers/next)
   ===================================================================== */
.v2-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 28px 0 60px;
    flex-wrap: wrap;
    background: transparent;
    box-shadow: none;
    position: static;
    z-index: auto;
    font-family: var(--v2-sans);
}

.v2-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-white);
    color: var(--v2-blue-900);
    border: 1.5px solid var(--v2-line);
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--v2-sans);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
}

.v2-page-btn:hover:not(:disabled):not(.active) {
    background: var(--v2-blue-50);
    border-color: var(--v2-blue-500);
    color: var(--v2-blue-900);
    transform: translateY(-1px);
}

.v2-page-btn.active {
    background: var(--v2-blue-900);
    color: var(--v2-white);
    border-color: var(--v2-blue-900);
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.28);
    cursor: default;
    pointer-events: none;
}

.v2-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.v2-page-btn.v2-page-nav {
    min-width: 40px;
    padding: 0 12px;
}

.v2-page-btn.v2-page-nav svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.v2-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 40px;
    color: var(--v2-ink-mute);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

@media (max-width: 599px) {
    .v2-pagination {
        gap: 4px;
        padding: 20px 0 60px;
    }
    .v2-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
        padding: 0 10px;
        border-radius: 9px;
    }
    .v2-page-btn.v2-page-nav {
        min-width: 36px;
        padding: 0 10px;
    }
    .v2-page-ellipsis {
        min-width: 22px;
        height: 36px;
        font-size: 0.88rem;
    }
}

/* =====================================================================
   Quick View Modal
   ===================================================================== */
.v2-qv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9500;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: v2-qv-fade 0.3s ease;
}

.v2-qv-overlay.open { display: flex; }

@keyframes v2-qv-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes v2-qv-pop {
    from { opacity: 0; transform: scale(0.94) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.v2-qv-box {
    background: var(--v2-white);
    border-radius: var(--v2-radius-xl);
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.5);
    animation: v2-qv-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@media (min-width: 780px) {
    .v2-qv-box {
        grid-template-columns: 1.05fr 1fr;
        max-width: 920px;
        max-height: 88vh;
    }
}

.v2-qv-img-wrap {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--v2-blue-50), var(--v2-blue-100));
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--v2-line);
}

@media (min-width: 780px) {
    .v2-qv-img-wrap {
        aspect-ratio: auto;
        height: 100%;
        border-bottom: none;
        border-right: 1px solid var(--v2-line);
    }
}

.v2-qv-img-wrap img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(30, 58, 138, 0.22));
}

.v2-qv-body {
    padding: 26px 28px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px) {
    .v2-qv-body { padding: 22px 22px 20px; }
}

.v2-qv-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border: 1.5px solid var(--v2-line);
    color: var(--v2-blue-900);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    padding: 0;
    font-family: var(--v2-sans);
    font-weight: 400;
    transition: all 0.2s ease;
}

.v2-qv-close:hover {
    background: var(--v2-white);
    border-color: var(--v2-blue-500);
    transform: rotate(90deg);
    color: var(--v2-danger);
}

.v2-qv-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    color: var(--v2-blue-700);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: var(--v2-blue-50);
    border-radius: 4px;
    align-self: flex-start;
}

.v2-qv-title {
    font-family: var(--v2-sans);
    font-weight: 800;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--v2-blue-900);
    margin: 0 0 6px;
}

@media (max-width: 640px) {
    .v2-qv-title { font-size: 1.22rem; }
}

.v2-qv-subtitle {
    font-size: 0.84rem;
    color: var(--v2-ink-mute);
    margin: 0 0 16px;
    font-weight: 500;
}

.v2-qv-subtitle strong {
    color: var(--v2-blue-800);
    font-weight: 700;
}

.v2-qv-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--v2-line);
}

.v2-qv-price .v2-price-final { font-size: 1.8rem; }
.v2-qv-price .v2-price-old { font-size: 0.95rem; }
.v2-qv-price .v2-price-save {
    background: var(--v2-blue-50);
    color: var(--v2-blue-700);
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.72rem;
}

.v2-qv-desc {
    font-size: 0.88rem;
    color: var(--v2-ink-soft);
    line-height: 1.6;
    margin: 0 0 18px;
    max-height: 7em;
    overflow: hidden;
}

.v2-qv-desc em {
    color: var(--v2-ink-mute);
    font-style: italic;
}

.v2-qv-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 20px;
    padding: 14px;
    background: var(--v2-blue-50);
    border-radius: var(--v2-radius);
    border: 1px solid var(--v2-blue-100);
}

.v2-qv-meta-item {
    font-size: 0.8rem;
}

.v2-qv-meta-item .label {
    display: block;
    color: var(--v2-blue-700);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    margin-bottom: 2px;
    font-size: 0.62rem;
}

.v2-qv-meta-item .value {
    color: var(--v2-blue-900);
    font-weight: 700;
}

.v2-qv-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 520px) {
    .v2-qv-actions { flex-direction: row; }
    .v2-qv-actions .v2-btn { flex: 1; }
}

.v2-qv-extras {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--v2-line);
}

.v2-qv-extras a {
    font-size: 0.78rem;
    color: var(--v2-blue-700);
    text-decoration: none;
    padding: 4px 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v2-qv-extras a:hover {
    color: var(--v2-blue-900);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================================================================
   Toast
   ===================================================================== */
.mini-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--v2-blue-900);
    color: var(--v2-white);
    padding: 12px 20px;
    border-radius: var(--v2-radius);
    font-family: var(--v2-sans);
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(30, 58, 138, 0.4);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 560px) {
    .mini-toast {
        right: 14px;
        bottom: 14px;
        left: 14px;
        max-width: none;
        text-align: center;
    }
}

/* =====================================================================
   Flipix link — small pill bottom-right of image
   ===================================================================== */
.v2-flipix {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--v2-blue-900);
    font-size: 0.66rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.18);
    transition: all 0.22s ease;
}

.v2-flipix svg {
    width: 12px;
    height: 12px;
    color: var(--v2-blue-600);
}

.v2-flipix:hover {
    background: var(--v2-blue-900);
    color: var(--v2-white);
    border-color: var(--v2-blue-900);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.32);
}

.v2-flipix:hover svg {
    color: var(--v2-white);
}

/* =====================================================================
   Quick view — full product page link
   ===================================================================== */
.v2-qv-detail-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 10px;
    color: var(--v2-blue-700);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid var(--v2-line);
    padding-top: 14px;
    transition: color 0.2s ease;
}

.v2-qv-detail-link:hover {
    color: var(--v2-blue-900);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================================================================
   Quick view carousel nav (prev/next buttons + dot strip)
   ===================================================================== */
.v2-qv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--v2-line);
    color: var(--v2-blue-900);
    cursor: pointer;
    font-size: 26px;
    font-weight: 400;
    font-family: system-ui, sans-serif;
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.22);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px 0;
    line-height: 1;
    transition: all 0.22s ease;
}

.v2-qv-nav:hover {
    background: var(--v2-blue-900);
    color: var(--v2-white);
    border-color: var(--v2-blue-900);
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.36);
    transform: translateY(-50%) scale(1.06);
}

.v2-qv-prev { left: 14px; }
.v2-qv-next { right: 14px; }

@media (max-width: 640px) {
    .v2-qv-nav { width: 38px; height: 38px; font-size: 22px; }
    .v2-qv-prev { left: 10px; }
    .v2-qv-next { right: 10px; }
}

.v2-qv-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 6px;
    z-index: 6;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.18);
}

.v2-qv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--v2-blue-200);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.v2-qv-dot:hover {
    background: var(--v2-blue-400);
}

.v2-qv-dot.active {
    background: var(--v2-blue-900);
    width: 24px;
    border-radius: 999px;
}

/* =====================================================================
   Phone-only: 2-col COMPACT cards (Blinkit-inspired density)
   Smaller fonts, tighter padding, compact actions.
   Bypassed cleanly at min-width: 600px — desktop is 100% untouched.
   ===================================================================== */
@media (max-width: 599px) {
    /* Tighter container padding to give cards more width */
    .v2-container { padding: 0 12px; }

    .v2-card-body {
        padding: 10px 10px 10px;
        gap: 2px;
    }

    /* --- Typography compression --- */
    .v2-cat-chip {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin-bottom: 3px;
        letter-spacing: 0.06em;
    }

    .v2-card-subtitle {
        font-size: 0.64rem;
        line-height: 1.3;
    }

    .v2-card-subtitle strong { font-weight: 700; }

    .v2-card-title {
        font-size: 0.76rem;
        line-height: 1.25;
        min-height: 1.9em;        /* reserve 2 lines but allow collapse */
        -webkit-line-clamp: 2;
        margin-top: 1px;
    }

    /* --- Price row: compact inline --- */
    .v2-price-row {
        margin-top: 4px;
        gap: 5px;
        row-gap: 2px;
    }

    .v2-price-final { font-size: 0.92rem; }
    .v2-price-old   { font-size: 0.66rem; }
    .v2-price-save  {
        font-size: 0.58rem;
        padding: 1px 4px;
        background: var(--v2-blue-50);
        color: var(--v2-blue-700);
        border-radius: 3px;
    }

    /* --- Action stack: 2 rows, tight --- */
    .v2-card-actions {
        margin-top: 8px;
        gap: 5px;
    }

    .v2-btn-primary,
    .v2-btn-bright,
    .v2-btn-gold {
        padding: 8px 10px;
        min-height: 32px;
        font-size: 0.74rem;
        border-radius: 8px;
    }

    .v2-card-sub-row { gap: 5px; }

    .v2-btn-sub {
        padding: 6px 4px;
        min-height: 28px;
        font-size: 0.62rem;
        gap: 2px;
        border-radius: 7px;
        border-width: 1px;
    }

    /* --- Image overlays: smaller, less crowding --- */
    .v2-badges {
        bottom: 7px;
        left: 7px;
        max-width: calc(100% - 44px);
        gap: 3px;
    }

    .v2-pill {
        font-size: 0.56rem;
        padding: 2px 6px;
        letter-spacing: 0.04em;
        border-radius: 4px;
    }

    .v2-wishlist {
        width: 28px;
        height: 28px;
        top: 7px;
        right: 7px;
    }

    .v2-wishlist svg { width: 13px; height: 13px; }

    .v2-incart-pill {
        top: 7px;
        left: 7px;
        font-size: 0.54rem;
        padding: 2px 7px;
        letter-spacing: 0.03em;
    }

    .v2-flipix {
        bottom: 7px;
        right: 7px;
        padding: 3px 7px 3px 6px;
        font-size: 0.54rem;
        gap: 3px;
    }

    .v2-flipix svg { width: 10px; height: 10px; }

    /* Keep software glow but softer on tiny screens */
    .v2-card.card-software {
        background: linear-gradient(180deg, var(--v2-blue-50) 0%, var(--v2-white) 35%);
    }

    @keyframes v2-software-glow-mobile {
        0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.28), var(--v2-shadow-xs); }
        50%      { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08), 0 8px 20px rgba(59, 130, 246, 0.14); }
    }

    .v2-card.card-software {
        animation: v2-software-glow-mobile 3.2s ease-in-out infinite;
    }
}

/* Very small phones (<360px) — extra compression so nothing clips */
@media (max-width: 359px) {
    .v2-container { padding: 0 10px; }
    .v2-grid { gap: 8px; }
    .v2-card-body { padding: 8px; }
    .v2-card-title { font-size: 0.72rem; }
    .v2-price-final { font-size: 0.86rem; }
    .v2-btn-primary, .v2-btn-bright, .v2-btn-gold { font-size: 0.7rem; }
    .v2-btn-sub { font-size: 0.58rem; }
}

/* =====================================================================
   Microinteractions — adding life
   ===================================================================== */

/* Offer pill pulse — ONLY on the featured Album Butterfly (software) card.
   Every product has an offer, so pulsing all of them is meaningless.
   Pulsing only id=1 keeps the highlight where it matters. */
.v2-card.card-software .v2-pill.pill-offer {
    animation: v2-pill-pulse 2.6s ease-in-out infinite;
}

@keyframes v2-pill-pulse {
    0%, 100% {
        box-shadow: 0 4px 10px rgba(30, 58, 138, 0.22);
    }
    50% {
        box-shadow: 0 4px 18px rgba(30, 58, 138, 0.42),
                    0 0 0 4px rgba(59, 130, 246, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-card.card-software .v2-pill.pill-offer { animation: none !important; }
}

/* Cart/wishlist badge bounce */
.v2-badge.bumped {
    animation: v2-badge-bounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes v2-badge-bounce {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.38); }
    55%  { transform: scale(0.88); }
    80%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Wishlist heart pop on click */
.v2-wishlist.popping {
    animation: v2-heart-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes v2-heart-pop {
    0%   { transform: scale(1); }
    25%  { transform: scale(0.82); }
    55%  { transform: scale(1.32); }
    100% { transform: scale(1); }
}

/* Primary button — sweep of light on hover */
.v2-btn-primary,
.v2-btn-bright {
    position: relative;
    overflow: hidden;
}

.v2-btn-primary::before,
.v2-btn-bright::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.v2-btn-primary:hover:not(:disabled)::before,
.v2-btn-bright:hover:not(:disabled)::before {
    left: 140%;
}

/* =====================================================================
   Back-to-top button
   ===================================================================== */
.v2-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--v2-blue-900);
    color: var(--v2-white);
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.38);
    z-index: 70;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.v2-back-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.v2-back-top:hover {
    background: var(--v2-blue-700);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 18px 36px rgba(30, 58, 138, 0.48);
}

@media (max-width: 640px) {
    .v2-back-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* =====================================================================
   Body scroll lock (modal open) — works on iOS too
   ===================================================================== */
html.v2-scroll-lock,
body.v2-scroll-lock {
    overflow: hidden !important;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

.v2-qv-overlay,
.bn-modal,
.pg-modal {
    overscroll-behavior: contain;
}

/* =====================================================================
   Kill v1 bleed
   ===================================================================== */
body.shop-v2 .shop-container,
body.shop-v2 .pagination-wrapper,
body.shop-v2 .shutter-overlay { display: none !important; }
