/* ==========================================================
   xixaSoft Shop - Complete Styles
   Uses design tokens from main /assets/css/style.css
   ========================================================== */

/* Reset for shop pages */
.shop-main *,
.shop-header *,
.shop-footer * {
    box-sizing: border-box;
}

/* Announcement bar */
.shop-announce {
    background: var(--gradient-brand);
    color: #fff;
    padding: 0.6rem 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.shop-announce strong {
    font-weight: 700;
}

/* Header */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 200ms ease;
}

.shop-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 72px;
}

.shop-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.shop-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-primary);
}

.shop-brand-text {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.shop-brand-text span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shop-brand-badge {
    padding: 0.25rem 0.5rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
}

/* Shop nav */
.shop-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 900px) {
    .shop-nav {
        display: flex;
    }
}

.shop-nav-link {
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: color 180ms ease, background 180ms ease;
}

.shop-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

/* Shop actions */
.shop-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-theme-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 180ms ease;
}

.shop-theme-toggle:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.shop-icon-sun,
.shop-icon-moon {
    position: absolute;
    transition: opacity 300ms ease;
}

.shop-icon-sun { opacity: 0; }
.shop-icon-moon { opacity: 1; }

[data-theme="dark"] .shop-icon-sun { opacity: 1; }
[data-theme="dark"] .shop-icon-moon { opacity: 0; }

/* Cart button */
.shop-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 180ms ease;
}

.shop-cart-btn:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.shop-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* User menu */
.shop-user-menu {
    position: relative;
    display: none;
}

@media (min-width: 640px) {
    .shop-user-menu {
        display: block;
    }
}

.shop-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem 0.375rem 0.375rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 180ms ease;
}

.shop-user-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary-border);
}

.shop-user-avatar {
    width: 28px;
    height: 28px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.shop-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 200ms ease;
}

.shop-user-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shop-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 180ms ease;
}

.shop-user-dropdown a:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

/* Mobile toggle */
.shop-mobile-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 900px) {
    .shop-mobile-toggle {
        display: none;
    }
}

.shop-mobile-menu {
    display: none;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem 1.5rem;
}

.shop-mobile-menu.is-open {
    display: block;
}

.shop-mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
}

.shop-mobile-menu a:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

/* Main content */
.shop-main {
    min-height: 60vh;
    padding: 3rem 0 5rem;
    background: var(--bg-page);
}

/* Alert */
.shop-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.shop-alert-success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.shop-alert-error {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .shop-alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

[data-theme="dark"] .shop-alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* Breadcrumbs */
.shop-breadcrumbs {
    margin-bottom: 1.5rem;
}

.shop-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.shop-breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-light);
}

.shop-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.shop-breadcrumbs a:hover {
    color: var(--primary);
}

.shop-breadcrumbs [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 600;
}

/* Common typography */
.shop-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.shop-gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shop-page-header {
    margin-bottom: 2.5rem;
}

.shop-page-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-page-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.shop-page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Buttons */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
    line-height: 1.2;
}

.shop-btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
}

.shop-btn-block {
    display: flex;
    width: 100%;
}

.shop-btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.shop-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(25, 30, 225, 0.35);
    color: #fff;
}

.shop-btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-default);
}

.shop-btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.shop-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.shop-btn-ghost:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.shop-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 180ms ease;
}

.shop-btn-icon:hover {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: var(--danger);
}

/* Hero */
.shop-hero {
    position: relative;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    margin-bottom: 4rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .shop-hero {
        padding: 4.5rem 3rem;
    }
}

.shop-hero-decoration {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-soft), transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .shop-hero-decoration {
    background: radial-gradient(circle, rgba(107, 112, 255, 0.12), transparent 70%);
}

.shop-hero-content {
    position: relative;
    max-width: 720px;
}

.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    background: var(--success-soft);
    color: var(--success);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .shop-hero-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.shop-hero-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    position: relative;
}

.shop-hero-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    animation: shopPulse 2s ease-out infinite;
}

@keyframes shopPulse {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 0; transform: scale(3); }
}

.shop-hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.shop-hero-text {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin: 0 0 2rem;
    max-width: 600px;
}

.shop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.shop-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.shop-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.shop-trust-item svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Section */
.shop-section {
    margin-bottom: 4rem;
}

.shop-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.shop-section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.shop-section-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Products grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.text-white {
    color: white !important;
    text-align: center;
}
@media screen and (max-width: 768px ){
    a#s-log {
    display: none;
}
}
@media (min-width: 640px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.shop-product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all 300ms ease;
}

.shop-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-default);
    box-shadow: var(--shadow-lg);
}

.shop-product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.shop-product-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-subtle);
    overflow: hidden;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.05);
}

.shop-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.shop-product-placeholder strong {
    color: #fff;
}

.shop-product-type {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 0.25rem 0.625rem;
    background: #ad0d0d;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.shop-product-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-product-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.shop-product-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    flex: 1;
}

.shop-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.shop-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-product-from {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.shop-product-amount {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.shop-product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: gap 200ms ease;
}

.shop-product-card:hover .shop-product-cta {
    gap: 0.625rem;
}

/* Features */
.shop-features {
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
}

.shop-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .shop-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .shop-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.shop-feature {
    text-align: center;
    padding: 1rem;
}

.shop-feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.shop-feature h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.shop-feature p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Empty state */
.shop-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
}

.shop-empty-lg {
    padding: 4rem 2rem;
}

.shop-empty-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.shop-empty h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.shop-empty p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Panels */
.shop-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.5rem;
}

.shop-panel-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--primary);
}

.shop-panel-header h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Product detail layout */
.shop-product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .shop-product-detail {
        grid-template-columns: 1.4fr 1fr;
        gap: 3rem;
    }
}

.shop-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-gallery-main {
    aspect-ratio: 16 / 10;
    background: var(--bg-subtle);
    border-radius: 1rem;
    overflow: hidden;
}

.shop-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.shop-gallery-placeholder strong {
    color: #fff;
}

.shop-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.shop-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 180ms ease;
}

.shop-thumb:hover,
.shop-thumb.is-active {
    border-color: var(--primary);
}

.shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-info {
    padding: 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: var(--shadow-xs);
}

.shop-product-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.shop-product-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.shop-product-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.shop-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.shop-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.shop-product-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.shop-product-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Pricing plans */
.shop-plans-card {
    position: sticky;
    top: 96px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.shop-plans-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.375rem;
}

.shop-plans-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
}

.shop-plans-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-plan {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 0.875rem;
    transition: all 200ms ease;
}

.shop-plan:hover {
    border-color: var(--border-strong);
}

.shop-plan.is-featured {
    background: linear-gradient(180deg, var(--primary-soft), transparent 30%);
    border: 2px solid var(--primary);
    box-shadow: 0 12px 28px rgba(25, 30, 225, 0.12);
}

[data-theme="dark"] .shop-plan.is-featured {
    background: linear-gradient(180deg, rgba(107, 112, 255, 0.12), transparent 30%);
}

.shop-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    box-shadow: var(--shadow-primary);
    white-space: nowrap;
}

.shop-plan-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.shop-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.shop-plan-amount {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.shop-plan-period {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.shop-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.shop-plan-features svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
}

.shop-plan-features strong {
    color: var(--text-primary);
    font-weight: 600;
}

.shop-plan-save {
    color: var(--success) !important;
}

.shop-plan-actions {
    display: flex;
    gap: 0.5rem;
}

.shop-qty {
    width: 70px;
    padding: 0.625rem 0.75rem;
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: center;
}

.shop-qty:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.shop-plans-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.shop-plans-note svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Cart */
.shop-cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .shop-cart-layout {
        grid-template-columns: 1fr 380px;
        gap: 2.5rem;
    }
}

.shop-cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 0.875rem;
    box-shadow: var(--shadow-xs);
}

@media (max-width: 768px) {
    .shop-cart-item {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
    }

    .shop-cart-item-qty,
    .shop-cart-item-price {
        grid-column: 2 / 4;
        justify-self: flex-start;
    }
}

.shop-cart-item-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-cart-item-info {
    min-width: 0;
}

.shop-cart-item-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.shop-cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.shop-cart-item-plan {
    padding: 0.15rem 0.5rem;
    background: var(--bg-subtle);
    border-radius: 999px;
    font-weight: 600;
    color: var(--text-secondary);
}

.shop-cart-item-qty,
.shop-cart-item-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.shop-cart-qty-label,
.shop-cart-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.shop-cart-qty-value,
.shop-cart-price-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Cart summary */
.shop-cart-summary {
    position: sticky;
    top: 96px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    align-self: flex-start;
}

.shop-summary-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.shop-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.shop-summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.shop-summary-row-discount {
    color: var(--success);
    font-weight: 600;
}

.shop-summary-note {
    color: var(--text-muted);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
    margin-top: 1rem;
}

.shop-summary-note svg {
    flex-shrink: 0;
    color: var(--primary);
}

.shop-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
}

.shop-summary-total strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.shop-summary-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
    margin-top: 0.5rem;
}

.shop-summary-secure svg {
    color: var(--success);
}

/* Checkout */
.shop-checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .shop-checkout-layout {
        grid-template-columns: 1fr 400px;
        gap: 2.5rem;
    }
}

.shop-discount-form {
    margin: 0;
}

.shop-discount-row {
    display: flex;
    gap: 0.5rem;
}

.shop-discount-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 0.625rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: "JetBrains Mono", Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-discount-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Payment methods */
.shop-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-payment-method {
    display: block;
    cursor: pointer;
}

.shop-payment-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-payment-method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: var(--bg-page);
    border: 2px solid var(--border-default);
    border-radius: 0.75rem;
    transition: all 200ms ease;
}

.shop-payment-method:hover .shop-payment-method-card {
    border-color: var(--primary-border);
}

.shop-payment-method input:checked + .shop-payment-method-card {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.shop-payment-method-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.shop-payment-method-content {
    flex: 1;
    min-width: 0;
}

.shop-payment-method-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.shop-payment-method-desc {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.shop-payment-method-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 2px solid var(--border-default);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 200ms ease;
}

.shop-payment-method input:checked + .shop-payment-method-card .shop-payment-method-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.shop-checkout-terms {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
    line-height: 1.5;
}

.shop-checkout-terms a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shop-checkout-summary {
    position: sticky;
    top: 96px;
    align-self: flex-start;
}

.shop-summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.shop-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-light);
}

.shop-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shop-summary-item-info {
    min-width: 0;
    flex: 1;
}

.shop-summary-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.shop-summary-item-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.shop-summary-item-price {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.shop-summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0 1rem;
}

.shop-checkout-trust {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.shop-trust-badge {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-trust-badge svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Auth pages */
.shop-auth-page {
    max-width: 460px;
    margin: 2rem auto;
}

.shop-auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.shop-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.shop-auth-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-primary);
}

.shop-auth-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.shop-auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.shop-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.shop-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.shop-input-wrap {
    position: relative;
}

.shop-input-icon {
    position: absolute;
    top: 50%;
    left: 0.875rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.shop-input-wrap input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.625rem;
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 0.625rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 180ms ease;
}

.shop-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.shop-input-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.shop-input-toggle:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.shop-field-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

.shop-form-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    position: relative;
    margin: 0.5rem 0;
}

.shop-form-divider::before,
.shop-form-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--border-light);
}

.shop-form-divider::before { left: 0; }
.shop-form-divider::after { right: 0; }

.shop-auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.shop-auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.shop-auth-switch a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shop-auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.shop-auth-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.shop-auth-benefit svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Thank you page */
.shop-thankyou {
    max-width: 720px;
    margin: 2rem auto;
}

.shop-thankyou-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.shop-thankyou-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 8px var(--success-soft);
    animation: shopThankyouPulse 2s ease-in-out infinite;
}

[data-theme="dark"] .shop-thankyou-icon {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.15);
}

@keyframes shopThankyouPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.shop-thankyou-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.shop-thankyou-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.shop-thankyou-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem;
    background: var(--bg-subtle);
    border-radius: 0.875rem;
    text-align: left;
}

@media (min-width: 640px) {
    .shop-thankyou-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

.shop-thankyou-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-thankyou-detail-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.shop-thankyou-detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.shop-thankyou-next {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 2rem;
    padding: 1.75rem;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 0.875rem;
}

.shop-thankyou-next h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.shop-thankyou-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-thankyou-steps li {
    display: flex;
    gap: 0.875rem;
}

.shop-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    box-shadow: var(--shadow-primary);
}

.shop-thankyou-steps strong {
    display: block;
    color: var(--text-primary);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.shop-thankyou-steps p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.5;
}

.shop-thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Account page */
.shop-account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .shop-account-layout {
        grid-template-columns: 260px 1fr;
        gap: 2.5rem;
    }
}

.shop-account-sidebar {
    align-self: flex-start;
}

@media (min-width: 900px) {
    .shop-account-sidebar {
        position: sticky;
        top: 96px;
    }
}

.shop-account-user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 0.875rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-xs);
}

.shop-account-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.shop-account-user-info {
    min-width: 0;
    flex: 1;
}

.shop-account-user-name {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-account-user-email {
    color: var(--text-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-account-nav {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 0.875rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-account-nav a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 180ms ease;
}

.shop-account-nav a:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.shop-account-nav a.is-active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.shop-account-main {
    min-width: 0;
}

/* Stats grid */
.shop-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .shop-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.shop-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 0.875rem;
    box-shadow: var(--shadow-xs);
}

.shop-stat-icon {
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.shop-stat-info {
    min-width: 0;
}

.shop-stat-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.shop-stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Orders list */
.shop-orders-list {
    display: flex;
    flex-direction: column;
}

.shop-order-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-light);
    transition: background 180ms ease;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.5rem;
}

.shop-order-row:last-child {
    border-bottom: none;
}

.shop-order-row:hover {
    background: var(--bg-subtle);
    color: inherit;
}

.shop-order-row-main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

.shop-order-row-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-order-row-info {
    min-width: 0;
    flex: 1;
}

.shop-order-row-number {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.shop-order-row-meta {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.shop-order-row-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.shop-order-row-total {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.shop-order-row-arrow {
    color: var(--text-muted);
    transition: transform 180ms ease;
}

.shop-order-row:hover .shop-order-row-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* Order info */
.shop-order-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .shop-order-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .shop-order-info {
        grid-template-columns: repeat(4, 1fr);
    }
}

.shop-order-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-order-info-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.shop-order-info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.shop-order-info-value code {
    padding: 0.25rem 0.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.8125rem;
    color: var(--primary);
}

.shop-order-info-total {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Order items */
.shop-order-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shop-order-item {
    padding: 1.25rem;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
}

.shop-order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-light);
}

.shop-order-item-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.shop-order-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.shop-order-item-price {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

/* License block */
.shop-license-block {
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 0.625rem;
}

.shop-license-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
}

.shop-license-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.875rem;
}

.shop-license-header-left svg {
    color: var(--primary);
}

.shop-license-key-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.shop-license-key {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.8125rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    word-break: break-all;
    line-height: 1.4;
}

.shop-license-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--bg-subtle);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.shop-license-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.shop-license-download {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.shop-license-download-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

.shop-license-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-subtle);
    color: var(--text-muted);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    margin-top: 1rem;
}

.shop-license-unavailable svg {
    color: var(--text-muted);
}

.shop-license-pending {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--warning-soft);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.625rem;
    color: var(--warning);
}

[data-theme="dark"] .shop-license-pending {
    background: rgba(245, 158, 11, 0.12);
}

.shop-license-pending svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.shop-license-pending strong {
    display: block;
    color: var(--text-primary);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.shop-license-pending p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.5;
}

/* Badges */
.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.625rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-badge-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.shop-badge-active,
.shop-badge-paid {
    background: var(--success-soft);
    color: var(--success);
}

.shop-badge-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.shop-badge-revoked,
.shop-badge-expired,
.shop-badge-cancelled {
    background: var(--danger-soft);
    color: var(--danger);
}

.shop-badge-suspended {
    background: rgba(255, 145, 0, 0.12);
    color: #f97316;
}

[data-theme="dark"] .shop-badge-active,
[data-theme="dark"] .shop-badge-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

[data-theme="dark"] .shop-badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .shop-badge-revoked,
[data-theme="dark"] .shop-badge-expired,
[data-theme="dark"] .shop-badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Error page */
.shop-error-page {
    max-width: 560px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
}

.shop-error-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: var(--danger-soft);
    color: var(--danger);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .shop-error-icon {
    background: rgba(239, 68, 68, 0.15);
}

.shop-error-page h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.shop-error-page p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 2rem;
}

.shop-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Footer */
.shop-footer {
    background: #0b1020;
    color: #cbd5e1;
    padding: 3.5rem 0 2rem;
}

.shop-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .shop-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

.shop-footer-brand {
    max-width: 340px;
}

.shop-footer-brand .shop-brand {
    color: #fff;
    margin-bottom: 1rem;
}

.shop-footer-brand .shop-brand-text {
    color: #fff;
}

.shop-footer-brand p {
    color: #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.shop-footer-socials {
    display: flex;
    gap: 0.5rem;
}

.shop-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border-radius: 0.5rem;
    transition: all 180ms ease;
}

.shop-footer-socials a:hover {
    background: var(--gradient-brand);
    color: #fff;
    transform: translateY(-2px);
}

.shop-footer h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
}

.shop-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-footer ul a {
    color: #cbd5e1;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 180ms ease, padding-left 180ms ease;
}

.shop-footer ul a:hover {
    color: #a5b4fc;
    padding-left: 4px;
}

.shop-footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.shop-footer-bottom p {
    margin: 0;
}

.shop-footer-bottom strong {
    color: #fff;
}

@media (min-width: 768px) {
    .shop-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
/* ==========================================================
   Product Gallery — Enhanced
   ========================================================== */

.shop-gallery-main {
    position: relative;
    overflow: hidden;
}

.shop-gallery-main-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.shop-gallery-main-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.shop-gallery-main-btn:hover img {
    transform: scale(1.03);
}

.shop-gallery-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 250ms ease, transform 250ms ease;
    pointer-events: none;
}

.shop-gallery-main-btn:hover .shop-gallery-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   Lightbox Modal
   ========================================================== */

.shop-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.shop-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.shop-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Close button */
.shop-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease;
    backdrop-filter: blur(8px);
}

.shop-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Counter */
.shop-lightbox-counter {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.02em;
}

/* Navigation arrows */
.shop-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease;
    backdrop-filter: blur(8px);
}

.shop-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.shop-lightbox-prev {
    left: 20px;
}

.shop-lightbox-next {
    right: 20px;
}

/* Content area */
.shop-lightbox-content {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shop-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 300ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Loader */
.shop-lightbox-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.shop-lightbox-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shopSpin 700ms linear infinite;
}

@keyframes shopSpin {
    to { transform: rotate(360deg); }
}

/* Thumbnails strip */
.shop-lightbox-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    max-width: calc(100vw - 40px);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.shop-lightbox-thumbs::-webkit-scrollbar {
    height: 6px;
}

.shop-lightbox-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.shop-lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
}

.shop-lightbox-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 200ms ease;
}

.shop-lightbox-thumb:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.shop-lightbox-thumb.is-active {
    opacity: 1;
    border-color: #fff;
    transform: translateY(-3px);
}

.shop-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .shop-lightbox-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .shop-lightbox-counter {
        top: 20px;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .shop-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .shop-lightbox-prev {
        left: 10px;
    }

    .shop-lightbox-next {
        right: 10px;
    }

    .shop-lightbox-content {
        max-height: 70vh;
        padding: 0.5rem;
    }

    .shop-lightbox-image {
        max-height: 70vh;
    }

    .shop-lightbox-thumbs {
        bottom: 14px;
        gap: 6px;
        padding: 8px;
        max-width: calc(100vw - 20px);
    }

    .shop-lightbox-thumb {
        width: 52px;
        height: 40px;
    }

    .shop-gallery-zoom-hint {
        display: none;
    }
}

/* Prevent body scroll when lightbox open */
body.lightbox-open {
    overflow: hidden;
}

/* Smooth entrance animation */
.shop-lightbox.is-open .shop-lightbox-content {
    animation: shopLightboxIn 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shopLightboxIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.shop-lightbox.is-open .shop-lightbox-close,
.shop-lightbox.is-open .shop-lightbox-counter,
.shop-lightbox.is-open .shop-lightbox-nav,
.shop-lightbox.is-open .shop-lightbox-thumbs {
    animation: shopLightboxFadeIn 500ms ease 100ms both;
}

@keyframes shopLightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ==========================================================
   Shop Logo - Theme Aware
   ========================================================== */

.shop-brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.shop-brand-logo-light {
    display: block;
}

.shop-brand-logo-dark {
    display: none;
}

[data-theme="dark"] .shop-brand-logo-light {
    display: none;
}

[data-theme="dark"] .shop-brand-logo-dark {
    display: block;
}

/* Footer always shows white logo */
.shop-footer .shop-brand-logo {
    display: block !important;
}

@media (max-width: 640px) {
    .shop-brand-logo {
        height: 30px;
    }
}

/* ==========================================================
   Shop Hero Banner - Rotating Slides (Crossfade)
   ========================================================== */

.shop-hero {
    position: relative;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .shop-hero {
        padding: 4rem 3rem;
    }
}

.shop-hero-decoration {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-soft, rgba(25,30,225,0.08)), transparent 70%);
    pointer-events: none;
}

/* Slider container */
.shop-hero-slider {
    position: relative;
    min-height: 220px;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .shop-hero-slider {
        min-height: 240px;
    }
}

/* Individual slide */
.shop-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 800ms ease-in-out, visibility 800ms ease-in-out;
    pointer-events: none;
}

.shop-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: auto;
}

.shop-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

/* Hero badge */
.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .shop-hero-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.shop-hero-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    position: relative;
}

.shop-hero-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    animation: shopPulse 2s ease-out infinite;
}

/* Hero title */
.shop-hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.shop-gradient-text {
    background: linear-gradient(135deg, #191ee1 0%, #7b3fe4 60%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

[data-theme="dark"] .shop-gradient-text {
    background: linear-gradient(135deg, #6b70ff 0%, #a78bfa 60%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero subtitle */
.shop-hero-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Slide dots */
.shop-hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.shop-hero-dot-btn {
    width: 8px;
    height: 8px;
    background: var(--border-strong);
    border: 0;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: all 300ms ease;
}

.shop-hero-dot-btn:hover {
    opacity: 1;
    transform: scale(1.3);
}

.shop-hero-dot-btn.is-active {
    background: var(--primary, #191ee1);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(25, 30, 225, 0.4);
}

[data-theme="dark"] .shop-hero-dot-btn.is-active {
    background: #6b70ff;
    box-shadow: 0 0 12px rgba(107, 112, 255, 0.5);
}

/* Hero actions */
.shop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* Hero trust */
.shop-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.shop-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.shop-trust-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ==========================================================
   Shop Search Bar
   ========================================================== */

.shop-search-bar {
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.shop-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.shop-search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 2.75rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-default);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.shop-search-input::placeholder {
    color: var(--text-light);
}

.shop-search-input:focus {
    border-color: var(--primary, #191ee1);
    box-shadow: 0 0 0 4px rgba(25, 30, 225, 0.1);
}

[data-theme="dark"] .shop-search-input:focus {
    box-shadow: 0 0 0 4px rgba(107, 112, 255, 0.15);
}

.shop-search-clear {
    position: absolute;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: var(--bg-subtle);
    border: 0;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 200ms ease, color 200ms ease;
}

.shop-search-clear:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Hidden product during search */
.shop-product-card.is-search-hidden {
    display: none !important;
}

/* No results */
.shop-no-results {
    margin-bottom: 2rem;
}

/* ===== Additive Bank / QR Payment Module ===== */
.shop-bankqr-panel{margin-top:1.5rem;padding:1.25rem;border:1px solid var(--border-color,#e5e7eb);border-radius:16px;background:var(--card-bg,#fff)}
.shop-bankqr-grid{display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:1.5rem;align-items:start}.shop-bankqr-code{text-align:center}.shop-bankqr-code img{display:block;max-width:100%;height:auto;margin:0 auto .65rem;background:#fff;padding:8px;border-radius:14px;border:1px solid #e5e7eb}.shop-bankqr-code small{display:block;color:var(--text-muted,#667085);line-height:1.5}.shop-bankqr-details h2,.shop-bankqr-details h3{margin-top:0}.shop-bankqr-row{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid var(--border-color,#e5e7eb)}.shop-bankqr-row span{color:var(--text-muted,#667085)}.shop-bankqr-row strong{text-align:right;word-break:break-word}.shop-bankqr-submit{margin-top:1rem}.shop-bankqr-submit label{display:block;font-weight:700;margin:.75rem 0 .35rem}.shop-bankqr-submit input,.shop-bankqr-submit textarea{width:100%;box-sizing:border-box;padding:.8rem .9rem;border:1px solid var(--border-color,#d0d5dd);border-radius:10px;background:var(--input-bg,#fff);color:inherit}.shop-bankqr-status{margin-top:1rem;padding:.8rem 1rem;border-radius:10px;background:#fff8e6;color:#8a5a00;font-weight:700}@media(max-width:760px){.shop-bankqr-grid{grid-template-columns:1fr}.shop-bankqr-code img{width:min(280px,100%)}}


/* ===== Bank / QR Payment scan + black-text fix ===== */
.shop-bankqr-panel,
.shop-bankqr-panel h1,.shop-bankqr-panel h2,.shop-bankqr-panel h3,.shop-bankqr-panel h4,
.shop-bankqr-panel p,.shop-bankqr-panel span,.shop-bankqr-panel strong,.shop-bankqr-panel small,
.shop-bankqr-panel label,.shop-bankqr-panel input,.shop-bankqr-panel textarea { color:#000000 !important; }
.shop-bankqr-panel { background:#ffffff !important; }
.shop-bankqr-row { border-bottom-color:#e5e7eb !important; }
.shop-bankqr-submit input,.shop-bankqr-submit textarea { background:#ffffff !important; border-color:#cbd5e1 !important; }
.shop-bankqr-qr{width:320px;max-width:100%;margin:0 auto .65rem;padding:10px;box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.shop-bankqr-qr canvas,.shop-bankqr-qr img{display:block !important;width:100% !important;height:auto !important;max-width:100% !important;max-height:none !important;aspect-ratio:auto !important;object-fit:contain !important;background:#fff;padding:0 !important;border:0 !important;border-radius:0 !important;margin:0 !important}
.shop-bankqr-error{font-size:.9rem;line-height:1.5;color:#b42318 !important;padding:1rem}
@media(max-width:760px){.shop-bankqr-qr{width:min(320px,100%)}.shop-bankqr-qr canvas,.shop-bankqr-qr img{width:100% !important;height:auto !important;aspect-ratio:auto !important;object-fit:contain !important}}
.shop-bankqr-currency{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem;padding:1rem;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#000!important}.shop-bankqr-currency>span{font-weight:800;color:#000!important}.shop-bankqr-currency>div{display:flex;gap:.5rem}.shop-bankqr-currency-btn{display:inline-flex;align-items:center;justify-content:center;padding:.7rem 1rem;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#000!important;text-decoration:none;font-weight:800}.shop-bankqr-currency-btn.is-active{background:#111827;color:#fff!important;border-color:#111827}.shop-bankqr-rate{margin:.6rem 0;padding:.65rem .8rem;border-radius:9px;background:#f3f4f6;color:#000!important;font-size:.9rem;font-weight:700}.shop-bankqr-details,.shop-bankqr-details *{color:#000!important}@media(max-width:600px){.shop-bankqr-currency{align-items:flex-start;flex-direction:column}.shop-bankqr-currency>div{width:100%}.shop-bankqr-currency-btn{flex:1}}

.shop-payment-countdown{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:14px 16px;border:1px solid #f2b8b8;border-radius:12px;background:#fff7f7;color:#111}.shop-payment-countdown strong{font-size:24px;color:#b40000;font-variant-numeric:tabular-nums}.shop-payment-countdown small{width:100%;color:#555}.shop-payment-countdown.is-expired{background:#f3f4f6;border-color:#d0d5dd}.shop-payment-countdown.is-expired strong{color:#667085}

/* Stable expired-payment state: no reload loop */
.shop-payment-countdown.is-expired{background:#f3f4f6!important;border-color:#d0d5dd!important}
.shop-payment-countdown.is-expired .shop-countdown-value{color:#667085!important}
.shop-bankqr-panel [aria-disabled="true"]{opacity:.55;pointer-events:none}

/* Payment submitted / admin-confirmation state */
.shop-payment-waiting{
    display:flex;align-items:flex-start;gap:14px;margin:0 0 18px;padding:18px;
    border:1px solid #A7E8C2;border-radius:14px;background:#F1FFF6;color:#102A1C;
}
.shop-payment-waiting-icon{
    width:40px;height:40px;flex:0 0 40px;border-radius:50%;
    display:grid;place-items:center;background:#17A766;color:#fff;font-size:20px;font-weight:900;
}
.shop-payment-waiting strong{display:block;font-size:16px;margin-bottom:5px}
.shop-payment-waiting p{margin:0 0 5px;line-height:1.5}
.shop-payment-waiting small{color:#4B6758}

/* EUR bank wire */
.shop-eur-wire-card{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:220px;padding:24px;border:1px solid #dcdcff;border-radius:18px;background:linear-gradient(135deg,#f7f7ff,#eefaff);text-align:left}
.shop-eur-wire-card strong{font-size:22px;color:#2322E2}
.shop-eur-wire-card span{line-height:1.55;color:#344054}
.shop-eur-wire-card small{color:#6A39E4;font-weight:700}

/* V14.1 Mobile payment layout fix */
@media (max-width: 768px){
    .shop-account-main,
    .shop-panel,
    .shop-bankqr-panel,
    .shop-bankqr-grid,
    .shop-bankqr-details,
    .shop-bankqr-code{
        min-width:0!important;
        max-width:100%!important;
        width:100%!important;
        box-sizing:border-box!important;
    }

    .shop-bankqr-panel{
        padding:14px!important;
        overflow:hidden!important;
    }

    .shop-payment-countdown{
        display:grid!important;
        grid-template-columns:1fr auto!important;
        gap:8px 12px!important;
        align-items:center!important;
        padding:14px!important;
        line-height:1.35!important;
    }

    .shop-payment-countdown > span{
        min-width:0!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
    }

    .shop-payment-countdown .shop-countdown-value{
        white-space:nowrap!important;
        font-size:1.15rem!important;
        line-height:1!important;
    }

    .shop-payment-countdown > small{
        grid-column:1 / -1!important;
        display:block!important;
        margin-top:2px!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
        line-height:1.5!important;
    }

    .shop-bankqr-currency{
        display:block!important;
        padding:14px 0!important;
    }

    .shop-bankqr-currency > span{
        display:block!important;
        margin-bottom:10px!important;
        font-weight:800!important;
    }

    .shop-bankqr-currency > div{
        display:grid!important;
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:8px!important;
        width:100%!important;
    }

    .shop-bankqr-currency-btn{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        min-width:0!important;
        width:100%!important;
        padding:11px 8px!important;
        border-radius:10px!important;
        white-space:nowrap!important;
        text-align:center!important;
        font-size:.95rem!important;
        box-sizing:border-box!important;
        overflow:hidden!important;
    }

    .shop-bankqr-grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:16px!important;
    }

    .shop-bankqr-code{
        order:1!important;
        text-align:center!important;
    }

    .shop-bankqr-details{
        order:2!important;
    }

    .shop-bankqr-qr{
        width:100%!important;
        max-width:360px!important;
        margin:0 auto!important;
        padding:10px!important;
        box-sizing:border-box!important;
    }

    .shop-bankqr-qr img{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        height:auto!important;
        object-fit:contain!important;
        margin:0 auto!important;
    }

    .shop-bankqr-details h2,
    .shop-bankqr-details h3{
        font-size:1.35rem!important;
        line-height:1.25!important;
        overflow-wrap:anywhere!important;
    }

    .shop-bankqr-row{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:4px!important;
        padding:10px 0!important;
    }

    .shop-bankqr-row span,
    .shop-bankqr-row strong{
        min-width:0!important;
        overflow-wrap:anywhere!important;
        word-break:break-word!important;
    }

    .shop-bankqr-submit input,
    .shop-bankqr-submit textarea,
    .shop-bankqr-submit select,
    .shop-bankqr-submit button{
        width:100%!important;
        max-width:100%!important;
        box-sizing:border-box!important;
    }

    .shop-eur-wire-card{
        min-height:0!important;
        padding:18px!important;
    }
}

@media (max-width: 420px){
    .shop-bankqr-currency > div{
        grid-template-columns:1fr!important;
    }

    .shop-bankqr-currency-btn{
        font-size:1rem!important;
    }

    .shop-payment-countdown{
        grid-template-columns:1fr!important;
    }

    .shop-payment-countdown .shop-countdown-value{
        justify-self:start!important;
    }
}

/* V14.2 mobile currency buttons + active currency indicator */
.shop-active-currency{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin:0 0 10px;
    padding:6px 10px;
    border-radius:999px;
    background:#EEF0FF;
    color:#344054;
    font-size:12px;
    font-weight:700;
}
.shop-active-currency strong{
    color:#2322E2;
    font-weight:900;
}

.shop-bankqr-currency-btn{
    border:1px solid #D0D5DD!important;
    background:#fff!important;
    color:#344054!important;
    text-decoration:none!important;
    font-weight:800!important;
    box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.shop-bankqr-currency-btn:hover{
    border-color:#6A39E4!important;
    color:#2322E2!important;
}
.shop-bankqr-currency-btn.is-active{
    background:linear-gradient(135deg,#2322E2,#6A39E4)!important;
    color:#fff!important;
    border-color:transparent!important;
    box-shadow:0 8px 18px rgba(35,34,226,.20)!important;
}

.shop-bankqr-row{
    gap:12px;
}
.shop-bankqr-row span{
    color:#667085;
}
.shop-bankqr-row strong{
    text-align:right;
}

@media (max-width:768px){
    .shop-bankqr-currency{
        text-align:left!important;
    }

    .shop-bankqr-currency > span{
        font-size:1rem!important;
        line-height:1.35!important;
    }

    .shop-active-currency{
        display:flex!important;
        width:max-content!important;
        max-width:100%!important;
        margin:0 0 12px!important;
    }

    .shop-bankqr-currency > div{
        display:grid!important;
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:8px!important;
    }

    .shop-bankqr-currency-btn{
        min-height:44px!important;
        padding:10px 8px!important;
        border-radius:12px!important;
        font-size:.92rem!important;
        line-height:1.1!important;
    }

    .shop-bankqr-row{
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
        gap:4px!important;
        padding:10px 0!important;
    }

    .shop-bankqr-row span,
    .shop-bankqr-row strong{
        display:block!important;
        width:100%!important;
        text-align:left!important;
        overflow-wrap:anywhere!important;
        word-break:break-word!important;
    }

    .shop-bankqr-rate{
        margin:10px 0!important;
        padding:10px 12px!important;
        border-radius:10px!important;
        background:#F7F7FF!important;
        line-height:1.45!important;
    }

    .shop-eur-wire-card{
        text-align:left!important;
    }

    .shop-eur-wire-card strong{
        display:block!important;
        margin-bottom:4px!important;
    }
}

@media (max-width:430px){
    .shop-bankqr-currency > div{
        grid-template-columns:1fr!important;
    }

    .shop-bankqr-currency-btn{
        width:100%!important;
        justify-content:flex-start!important;
        padding-left:14px!important;
    }
}


/* Product ratings, reviews and automatic badges */
.shop-badge-stack,.shop-detail-badges{display:flex;flex-wrap:wrap;gap:6px}
.shop-badge-stack{position:absolute;left:12px;top:12px;z-index:3;max-width:calc(100% - 24px)}
.shop-auto-badge{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.02em;box-shadow:0 4px 12px rgba(16,24,40,.10)}
.shop-auto-badge.badge-new{background:#e9f7ff;color:#0874a6}
.shop-auto-badge.badge-bestseller{background:#fff3d6;color:#9a5d00}
.shop-auto-badge.badge-customizable{background:#f0eaff;color:#6338c7}
.shop-auto-badge.badge-free{background:#ddf8e8;color:#087443}
.shop-rating-line,.shop-detail-rating{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#667085;font-size:12px}
.shop-rating-line{margin:6px 0 8px}
.shop-rating-line strong,.shop-detail-rating strong{color:#101828}
.shop-stars{color:#f59e0b;letter-spacing:1px;font-size:17px;white-space:nowrap}
.shop-detail-badges{margin:8px 0}
.shop-detail-rating{margin:8px 0 4px}

.shop-reviews-section{margin-top:28px;padding:26px;background:#fff;border:1px solid #e4e7ec;border-radius:18px}
.shop-reviews-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.shop-reviews-head h2{margin:5px 0}.shop-reviews-head p{margin:0;color:#667085}
.shop-rating-summary{min-width:140px;text-align:center;padding:14px;border-radius:14px;background:#f8fafc}
.shop-rating-summary>strong{display:block;font-size:34px;line-height:1;color:#101828}
.shop-rating-summary>small{display:block;color:#667085;margin-top:3px}
.shop-reviews-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);gap:18px}
.shop-review-list{display:grid;gap:12px;align-content:start}
.shop-review-card{padding:17px;border:1px solid #e4e7ec;border-radius:14px;background:#fff}
.shop-review-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.shop-review-card-head>div:first-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.verified-purchase{font-size:10px;font-weight:800;color:#067647;background:#dcfae6;border-radius:999px;padding:4px 7px}
.shop-review-card p{line-height:1.65;color:#344054}.shop-review-card>small{color:#98a2b3}
.shop-review-empty{padding:24px;border:1px dashed #d0d5dd;border-radius:14px;color:#667085;background:#fafafa}
.shop-review-form-card{padding:19px;border-radius:15px;background:#f8fafc;border:1px solid #e4e7ec;align-self:start}
.shop-review-form-card h3{margin-top:0}.shop-review-form-card p{color:#667085;line-height:1.55}
.review-current-status{margin:10px 0;padding:9px 11px;border-radius:9px;background:#fff4d6;color:#7a4b00}
.shop-review-form{display:grid;gap:13px}.shop-review-form>label{display:grid;gap:6px;font-weight:700}
.shop-review-form textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #d0d5dd;border-radius:10px;resize:vertical;background:#fff}
.star-input{border:0;padding:0;margin:0;display:flex;flex-direction:row-reverse;justify-content:flex-end}
.star-input legend{font-weight:800;margin-bottom:6px}
.star-input input{position:absolute;opacity:0;pointer-events:none}
.star-input label{font-size:31px;color:#d0d5dd;cursor:pointer;line-height:1;padding-right:3px;transition:transform .12s,color .12s}
.star-input label:hover,.star-input label:hover~label,.star-input input:checked~label{color:#f59e0b}
.star-input label:hover{transform:scale(1.08)}
@media(max-width:800px){.shop-reviews-head{flex-direction:column}.shop-rating-summary{width:100%;text-align:left}.shop-reviews-grid{grid-template-columns:1fr}.shop-review-card-head{align-items:flex-start;flex-direction:column}.shop-badge-stack{top:8px;left:8px}}


/* Phase 2 commerce UI */
.phase2-filter-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.phase2-filter-row select{min-height:42px;padding:0 12px;border:1px solid var(--border-color,#d0d5dd);border-radius:10px;background:var(--card-bg,#fff);color:inherit}
.phase2-check{display:inline-flex;align-items:center;gap:7px;padding:0 11px;min-height:42px;border:1px solid var(--border-color,#d0d5dd);border-radius:10px;font-size:12px;font-weight:700}
.phase2-check input{width:auto}
.phase2-product-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0}
.phase2-product-facts>div{padding:10px 12px;border:1px solid var(--border-color,#e4e7ec);border-radius:10px;background:var(--surface,#f8fafc)}
.phase2-product-facts span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#667085}.phase2-product-facts strong{display:block;margin-top:3px;font-size:13px}
.phase2-product-links{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 17px}.phase2-product-links a{padding:7px 10px;border-radius:999px;background:#eef0ff;color:#2322e2;font-size:12px;font-weight:800;text-decoration:none}
.phase2-changelog{margin-top:28px;padding:26px;background:#fff;border:1px solid #e4e7ec;border-radius:18px}.phase2-release-list{display:grid;gap:12px}.phase2-release-list article{padding:16px;border:1px solid #e4e7ec;border-radius:12px;background:#f8fafc}.phase2-release-list article>div{display:flex;justify-content:space-between;gap:12px}.phase2-release-list small{color:#667085}.phase2-release-list p{margin-bottom:0;line-height:1.6;color:#344054}
.phase2-review-tools{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:18px}.phase2-breakdown{display:grid;gap:5px;min-width:280px}.phase2-breakdown>div{display:grid;grid-template-columns:28px minmax(100px,220px) 30px;align-items:center;gap:7px;font-size:11px}.phase2-breakdown i{height:7px;border-radius:999px;background:#eaecf0;overflow:hidden}.phase2-breakdown b{display:block;height:100%;background:#f59e0b;border-radius:999px}.phase2-review-sort select{margin-left:7px;padding:8px;border:1px solid #d0d5dd;border-radius:8px}
.phase2-admin-reply{margin-top:12px;padding:12px;background:#eef4ff;border-left:3px solid #2322e2;border-radius:8px}.phase2-admin-reply strong{display:block;color:#2322e2;font-size:12px}.phase2-admin-reply p{margin:5px 0 0!important}
.phase2-helpful{margin-top:10px}.phase2-helpful button{border:1px solid #d0d5dd;background:#fff;border-radius:999px;padding:6px 10px;cursor:pointer;font-size:11px;color:#344054}.phase2-helpful button:hover{border-color:#2322e2;color:#2322e2}
.phase2-account-summary{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 20px}.phase2-account-summary span{padding:8px 12px;border:1px solid #e4e7ec;background:#fff;border-radius:999px;color:#667085;font-size:12px}.phase2-account-summary strong{color:#101828}
@media(max-width:760px){.phase2-filter-row>*{width:100%}.phase2-product-facts{grid-template-columns:1fr}.phase2-review-tools{flex-direction:column;align-items:stretch}.phase2-breakdown{min-width:0}.phase2-review-sort select{width:100%;margin:6px 0 0}}


/* Secure Commerce Phase 3 */
.phase3-video-main{position:absolute;inset:0;background:#000;border-radius:inherit;overflow:hidden;z-index:4}
.phase3-video-main iframe{width:100%;height:100%;border:0;display:block;aspect-ratio:16/9}
.shop-gallery-main{position:relative}
.phase3-video-thumb{position:relative}.phase3-video-thumb>span{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;color:#fff;text-shadow:0 2px 8px #000;background:rgba(0,0,0,.18);border-radius:inherit}
.phase3-bundles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.phase3-bundle-card{padding:20px;border:1px solid #e4e7ec;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.05)}
.phase3-bundle-head{display:grid;gap:4px}.phase3-bundle-head span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#2322e2;font-weight:900}.phase3-bundle-head strong{font-size:20px}.phase3-bundle-card p{color:#667085;line-height:1.5}.phase3-bundle-card ul{padding-left:20px;color:#344054}.phase3-bundle-price{display:flex;justify-content:space-between;align-items:end;margin:16px 0}.phase3-bundle-price span{display:grid}.phase3-bundle-price del{color:#98a2b3;font-size:12px}.phase3-bundle-price strong{font-size:24px;color:#2322e2}.phase3-bundle-price small{color:#067647;background:#dcfae6;padding:5px 8px;border-radius:999px;font-weight:800}
.phase3-related-section{margin-top:28px;padding:26px;background:#fff;border:1px solid #e4e7ec;border-radius:18px}.phase3-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.phase3-related-card{display:grid;gap:7px;padding:15px;border:1px solid #e4e7ec;border-radius:12px;color:inherit;text-decoration:none;background:#f8fafc}.phase3-related-card>span{font-size:10px;text-transform:uppercase;color:#667085}.phase3-related-card>strong{font-size:14px}.phase3-related-card>small{color:#667085}
.phase3-account-activity{margin-top:16px}.phase3-activity-list{display:grid}.phase3-activity-list>div{display:grid;grid-template-columns:150px 1fr auto;gap:12px;padding:10px 0;border-bottom:1px solid #eaecf0}.phase3-activity-list>div:last-child{border-bottom:0}.phase3-activity-list span{font-size:11px;color:#2322e2;font-weight:800}.phase3-activity-list strong{font-size:12px}.phase3-activity-list small{color:#98a2b3;white-space:nowrap}
@media(max-width:900px){.phase3-bundles-grid{grid-template-columns:1fr 1fr}.phase3-related-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.phase3-bundles-grid,.phase3-related-grid{grid-template-columns:1fr}.phase3-activity-list>div{grid-template-columns:1fr;gap:3px}.phase3-video-main iframe{min-height:240px}}

.phase3-account-products{margin-top:16px}.phase3-account-table{display:grid}.phase3-account-table>div{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(110px,.8fr) auto auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #eaecf0}.phase3-account-table>div:last-child{border-bottom:0}.phase3-account-table a{color:inherit;text-decoration:none}.phase3-account-table small{color:#98a2b3}.phase3-invoice-ready{font-size:10px;color:#2322e2;background:#eef0ff;padding:4px 7px;border-radius:999px;font-weight:800}
@media(max-width:700px){.phase3-account-table>div{grid-template-columns:1fr;gap:4px}}


/* Phase 3.2 — explicit theme tokens so the shop does not depend on main-site CSS */
:root,
html[data-theme="light"]{
    color-scheme:light;
    --primary:#2322E2;--primary-hover:#1c1bc0;--primary-soft:#EEF0FF;--primary-border:#DCDDFF;
    --success:#067647;--success-soft:#DCFCE7;
    --bg-page:#F7F8FC;--bg-surface:#FFFFFF;--bg-subtle:#F8FAFC;--bg-muted:#F2F4F7;
    --text-primary:#0B1020;--text-secondary:#475467;--text-muted:#667085;--text-light:#98A2B3;
    --border-light:#EAECF0;--border-default:#D0D5DD;
    --gradient-brand:linear-gradient(135deg,#2322E2,#6A39E4 58%,#14A8D6);
    --shadow-sm:0 2px 8px rgba(16,24,40,.06);--shadow-md:0 8px 24px rgba(16,24,40,.09);
    --shadow-primary:0 8px 22px rgba(35,34,226,.20);
}
html[data-theme="dark"]{
    color-scheme:dark;
    --primary:#8B8AFF;--primary-hover:#A6A5FF;--primary-soft:rgba(106,57,228,.16);--primary-border:rgba(139,138,255,.27);
    --success:#4ADE80;--success-soft:rgba(34,197,94,.13);
    --bg-page:#080D1B;--bg-surface:#0F172A;--bg-subtle:#141D31;--bg-muted:#182238;
    --text-primary:#F7F9FC;--text-secondary:#CBD5E1;--text-muted:#94A3B8;--text-light:#64748B;
    --border-light:#202C44;--border-default:#334155;
    --gradient-brand:linear-gradient(135deg,#5B5AF7,#7C49EB 58%,#24BDE8);
    --shadow-sm:0 2px 10px rgba(0,0,0,.22);--shadow-md:0 12px 30px rgba(0,0,0,.28);
    --shadow-primary:0 10px 26px rgba(91,90,247,.28);
}
html[data-theme="light"] body{background:var(--bg-page);color:var(--text-primary)}
html[data-theme="dark"] body{background:var(--bg-page)!important;color:var(--text-primary)!important}
html[data-theme="dark"] .shop-header,
html[data-theme="dark"] .shop-footer,
html[data-theme="dark"] .shop-product-card,
html[data-theme="dark"] .shop-reviews-section,
html[data-theme="dark"] .shop-review-card,
html[data-theme="dark"] .shop-review-form-card,
html[data-theme="dark"] .phase2-changelog,
html[data-theme="dark"] .phase3-related-section,
html[data-theme="dark"] .phase3-bundle-card,
html[data-theme="dark"] .shop-panel,
html[data-theme="dark"] .shop-order-card,
html[data-theme="dark"] .shop-cart-summary,
html[data-theme="dark"] .shop-checkout-card{
    background:var(--bg-surface)!important;color:var(--text-primary)!important;border-color:var(--border-light)!important;
}
html[data-theme="dark"] .phase2-release-list article,
html[data-theme="dark"] .phase2-product-facts>div,
html[data-theme="dark"] .shop-review-empty,
html[data-theme="dark"] .shop-thankyou-details,
html[data-theme="dark"] .phase3-related-card{
    background:var(--bg-subtle)!important;border-color:var(--border-default)!important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
    background:#0B1325!important;color:var(--text-primary)!important;border-color:var(--border-default)!important;
}
html[data-theme="dark"] .shop-theme-toggle,
html[data-theme="dark"] .shop-cart-btn{background:var(--bg-subtle);border-color:var(--border-default)}
html[data-theme="dark"] .shop-brand-logo-light{display:none!important}
html[data-theme="dark"] .shop-brand-logo-dark{display:block!important}
html[data-theme="light"] .shop-brand-logo-dark{display:none!important}
html[data-theme="light"] .shop-brand-logo-light{display:block!important}

/* Related products — compact product boxes */
.phase32-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.phase32-related-card{display:block;min-width:0;overflow:hidden;border:1px solid var(--border-light);border-radius:14px;background:var(--bg-surface);color:var(--text-primary);text-decoration:none;box-shadow:var(--shadow-sm);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.phase32-related-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--primary-border)}
.phase32-related-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--bg-subtle)}
.phase32-related-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.phase32-related-card:hover .phase32-related-media img{transform:scale(1.035)}
.phase32-related-placeholder{width:100%;height:100%;display:grid;place-items:center;font-weight:900;color:var(--primary);background:linear-gradient(135deg,var(--primary-soft),var(--bg-subtle))}
.phase32-related-badges{position:absolute;left:8px;top:8px;display:flex;gap:5px;flex-wrap:wrap}
.phase32-related-body{padding:12px}
.phase32-related-type{display:block;color:var(--text-muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin-bottom:5px}
.phase32-related-body h3{margin:0 0 8px;color:var(--text-primary);font-family:"Space Grotesk",sans-serif;font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.phase32-related-meta{display:flex;align-items:center;gap:5px;min-width:0;color:var(--text-muted);font-size:10px;white-space:nowrap}
.phase32-related-meta .shop-stars{font-size:12px;letter-spacing:0}
.phase32-related-price{margin-top:9px;color:var(--text-primary);font-weight:800;font-size:13px}

/* Product video */
.phase3-video-main{display:block!important}
.phase3-video-main[hidden]{display:none!important}
.phase3-video-main iframe{background:#000}
.phase3-video-thumb{cursor:pointer}
.phase3-video-thumb.is-active{border-color:var(--primary)!important;box-shadow:0 0 0 2px var(--primary-soft)!important}

@media(max-width:1050px){.phase32-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.phase32-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:430px){.phase32-related-grid{grid-template-columns:1fr 1fr}.phase32-related-body{padding:9px}.phase32-related-body h3{font-size:12px}.phase32-related-price{font-size:12px}}


/* Phase 3.3 — reliable video modal + responsive card sliders */
body.phase33-video-open{overflow:hidden}
.phase33-video-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px}
.phase33-video-modal[hidden]{display:none!important}
.phase33-video-backdrop{position:absolute;inset:0;background:rgba(4,8,18,.82);backdrop-filter:blur(5px)}
.phase33-video-dialog{position:relative;z-index:1;width:min(980px,94vw);border-radius:18px;overflow:hidden;background:#000;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.phase33-video-frame{aspect-ratio:16/9;width:100%;background:#000}
.phase33-video-frame iframe{display:block;width:100%;height:100%;border:0;background:#000}
.phase33-video-close{position:absolute;z-index:2;right:10px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(11,16,32,.86);color:#fff;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.28)}
.phase33-video-close:hover{background:#2322E2}
.phase3-video-thumb{cursor:pointer}
.phase3-video-thumb:hover{border-color:var(--primary)!important;box-shadow:0 0 0 2px var(--primary-soft)!important}

.phase33-slider-section{min-width:0}
.phase33-slider-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.phase33-slider-head h2,.phase33-slider-head .shop-section-title{margin-bottom:4px}
.phase33-slider-head p{margin:0;color:var(--text-secondary);font-size:13px}
.phase33-slider-controls{display:flex;gap:8px;flex:0 0 auto}
.phase33-slider-controls button{width:38px;height:38px;border:1px solid var(--border-default);border-radius:10px;background:var(--bg-surface);color:var(--text-primary);font-size:24px;display:grid;place-items:center;cursor:pointer;transition:all .18s ease}
.phase33-slider-controls button:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:translateY(-1px)}
.phase33-slider{--cards:4;display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:3px 2px 12px;scrollbar-width:none}
.phase33-slider::-webkit-scrollbar{display:none}
.phase33-slide{flex:0 0 calc((100% - (14px * (var(--cards) - 1))) / var(--cards));min-width:0;scroll-snap-align:start}

.phase33-related-card{overflow:hidden;border:1px solid var(--border-light);border-radius:15px;background:var(--bg-surface);color:var(--text-primary);text-decoration:none;box-shadow:var(--shadow-sm);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.phase33-related-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--primary-border)}
.phase33-related-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--bg-subtle)}
.phase33-related-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .22s ease}
.phase33-related-card:hover .phase33-related-media img{transform:scale(1.035)}
.phase33-card-placeholder{width:100%;height:100%;min-height:110px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary-soft),var(--bg-subtle));color:var(--primary);font-weight:900}
.phase33-card-badges{position:absolute;left:8px;top:8px;display:flex;gap:5px;flex-wrap:wrap}
.phase33-related-body{padding:11px}
.phase33-card-kicker{display:block;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted);margin-bottom:5px}
.phase33-related-body h3{margin:0 0 8px;font-size:14px;line-height:1.35;color:var(--text-primary);font-family:"Space Grotesk",sans-serif;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:38px}
.phase33-related-meta{display:flex;align-items:center;gap:5px;color:var(--text-muted);font-size:10px;white-space:nowrap}
.phase33-related-meta .shop-stars{font-size:11px;letter-spacing:0}
.phase33-related-price{margin-top:9px;font-size:13px;color:var(--text-primary);font-weight:800}

.phase33-bundle-card{overflow:hidden;border:1px solid var(--border-light);border-radius:16px;background:var(--bg-surface);box-shadow:var(--shadow-sm);display:flex;flex-direction:column}
.phase33-bundle-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--bg-subtle)}
.phase33-bundle-media img{width:100%;height:100%;display:block;object-fit:cover}
.phase33-save-badge{position:absolute;top:9px;right:9px;padding:5px 8px;border-radius:999px;background:#DCFCE7;color:#067647;font-size:10px;font-weight:900}
.phase33-bundle-body{display:flex;flex-direction:column;flex:1;padding:13px}
.phase33-bundle-body h3{margin:0 0 7px;color:var(--text-primary);font-family:"Space Grotesk",sans-serif;font-size:15px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.phase33-bundle-body>p{margin:0 0 10px;color:var(--text-secondary);font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:48px}
.phase33-bundle-items{display:grid;gap:4px;margin-bottom:12px}
.phase33-bundle-items span{display:block;color:var(--text-secondary);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phase33-price-row{margin-top:auto;padding-top:10px;border-top:1px solid var(--border-light);margin-bottom:10px}
.phase33-price-row>div{display:flex;align-items:baseline;gap:8px}
.phase33-price-row del{font-size:10px;color:var(--text-light)}
.phase33-price-row strong{font-size:19px;color:var(--primary)}
html[data-theme="dark"] .phase33-related-card,
html[data-theme="dark"] .phase33-bundle-card{background:var(--bg-surface);border-color:var(--border-light)}

@media(max-width:1100px){.phase33-slider{--cards:3}}
@media(max-width:780px){
  .phase33-slider{--cards:1;gap:12px}
  .phase33-slider-head{align-items:center}
  .phase33-slider-controls button{width:36px;height:36px}
  .phase33-related-media,.phase33-bundle-media{aspect-ratio:16/9}
  .phase33-video-modal{padding:10px}
  .phase33-video-dialog{width:96vw;border-radius:12px}
}
/* =========================================================
   PRODUCT VIDEO MODAL - FULL SCREEN OVERLAY FIX
   CSS ONLY
   ========================================================= */

.phase33-video-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 30px !important;
    box-sizing: border-box !important;

    opacity: 1;
    visibility: visible;
}

/* IMPORTANT: actually hide modal when closed */
.phase33-video-modal[hidden] {
    display: none !important;
}

.phase33-video-backdrop {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;

    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    cursor: pointer;
}

/* Main centered video container */
.phase33-video-dialog {
    position: relative !important;
    z-index: 2 !important;

    width: min(1200px, 92vw) !important;
    max-width: 1200px !important;

    margin: auto !important;

    background: #000 !important;
    border-radius: 14px !important;
    overflow: visible !important;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* 16:9 responsive video */
.phase33-video-frame {
    position: relative !important;

    width: 100% !important;
    aspect-ratio: 16 / 9 !important;

    background: #000 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* YouTube iframe fills modal */
.phase33-video-frame iframe,
#phase33VideoIframe {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    background: #000 !important;
}

/* Close button */
.phase33-video-close {
    position: absolute !important;

    top: -48px !important;
    right: 0 !important;

    width: 40px !important;
    height: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;

    background: rgba(20, 20, 25, 0.9) !important;
    color: #fff !important;

    font-size: 28px !important;
    line-height: 1 !important;

    cursor: pointer !important;
    z-index: 5 !important;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.phase33-video-close:hover {
    background: #ffffff !important;
    color: #111 !important;
    transform: scale(1.08);
}

/* Prevent page scrolling while video is open */
body.phase33-video-open {
    overflow: hidden !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .phase33-video-modal {
        padding: 20px !important;
    }

    .phase33-video-dialog {
        width: 94vw !important;
        max-width: 94vw !important;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .phase33-video-modal {
        padding: 12px !important;
    }

    .phase33-video-dialog {
        width: 96vw !important;
        max-width: 96vw !important;
    }

    .phase33-video-frame {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 8px !important;
    }

    .phase33-video-close {
        top: -45px !important;
        right: 0 !important;

        width: 38px !important;
        height: 38px !important;

        font-size: 25px !important;
    }
}

/* Landscape phones - maximize usable video area */
@media (max-height: 600px) and (orientation: landscape) {

    .phase33-video-dialog {
        width: auto !important;
        height: 88vh !important;
        max-width: 95vw !important;
    }

    .phase33-video-frame {
        width: auto !important;
        height: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }

    .phase33-video-close {
        top: 8px !important;
        right: 8px !important;

        background: rgba(0, 0, 0, 0.75) !important;
    }
}


/* ==========================================================
   xixaSoft Shop - Smooth Scrolling & Rendering Fix
   Light + Dark Theme Safe
   ----------------------------------------------------------
   This block intentionally uses explicit light/dark selectors
   for the performance-sensitive surfaces instead of relying
   only on inherited design variables.
   ========================================================== */

/* ---------- Page scrolling ---------- */
html {
    min-height: 100%;
    overflow-x: clip;
    overflow-y: auto;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

body {
    min-height: 100%;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Explicit page surfaces for both themes. */
html[data-theme="light"],
html[data-theme="light"] body {
    background: #F7F8FC;
    color: #0B1020;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    background: #080D1B;
    color: #F7F9FC;
}

/* ---------- Stable sticky header ---------- */
.shop-header {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style;
    transition: box-shadow 180ms ease;
}

html[data-theme="light"] .shop-header {
    background: #FFFFFF;
    border-bottom-color: #EAECF0;
}

html[data-theme="dark"] .shop-header {
    background: #0F172A;
    border-bottom-color: #202C44;
}

/* ---------- Main document surfaces ---------- */
.shop-main,
.shop-footer,
.shop-announcement,
.shop-announce {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

html[data-theme="light"] .shop-main {
    background: #F7F8FC;
}

html[data-theme="dark"] .shop-main {
    background: #080D1B;
}

/* ---------- Expensive card repaint reduction ---------- */
.shop-product-card,
.shop-panel,
.shop-review-card,
.shop-plan,
.shop-cart-item,
.shop-cart-summary,
.shop-checkout-summary,
.shop-auth-card,
.phase33-related-card,
.phase33-bundle-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Do not keep will-change active while scrolling. */
.shop-product-card,
.phase33-related-card,
.phase33-bundle-card {
    will-change: auto;
}

.shop-product-card:hover,
.phase33-related-card:hover,
.phase33-bundle-card:hover {
    will-change: transform;
}

/* Explicit card colors preserve both themes during GPU promotion. */
html[data-theme="light"] .shop-product-card,
html[data-theme="light"] .shop-panel,
html[data-theme="light"] .shop-review-card,
html[data-theme="light"] .shop-plan,
html[data-theme="light"] .shop-cart-item,
html[data-theme="light"] .shop-cart-summary,
html[data-theme="light"] .shop-auth-card,
html[data-theme="light"] .phase33-related-card,
html[data-theme="light"] .phase33-bundle-card {
    background-color: #FFFFFF;
    border-color: #EAECF0;
}

html[data-theme="dark"] .shop-product-card,
html[data-theme="dark"] .shop-panel,
html[data-theme="dark"] .shop-review-card,
html[data-theme="dark"] .shop-plan,
html[data-theme="dark"] .shop-cart-item,
html[data-theme="dark"] .shop-cart-summary,
html[data-theme="dark"] .shop-auth-card,
html[data-theme="dark"] .phase33-related-card,
html[data-theme="dark"] .phase33-bundle-card {
    background-color: #0F172A;
    border-color: #202C44;
}

/* ---------- Remove blur from repeated scrolling elements ----------
   Backdrop blur on every product card/type badge is expensive while
   the page is moving. Use solid/translucent theme colors instead. */
.shop-product-type {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html[data-theme="light"] .shop-product-type {
    background: rgba(173, 13, 13, 0.94);
    color: #FFFFFF;
}

html[data-theme="dark"] .shop-product-type {
    background: rgba(196, 36, 36, 0.96);
    color: #FFFFFF;
}

/* Gallery zoom hint is normally over an image; keep the look without blur. */
.shop-gallery-zoom-hint {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html[data-theme="light"] .shop-gallery-zoom-hint {
    background: rgba(11, 16, 32, 0.78);
    color: #FFFFFF;
}

html[data-theme="dark"] .shop-gallery-zoom-hint {
    background: rgba(2, 6, 23, 0.86);
    color: #FFFFFF;
}

/* ---------- Image rendering ---------- */
.shop-product-image img,
.shop-gallery-main img,
.shop-thumb img,
.phase33-related-media img,
.phase33-bundle-media img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Keep image animations GPU-friendly. */
.shop-product-image img,
.phase33-related-media img {
    transition-property: transform;
}

/* ---------- Horizontal sliders ---------- */
.phase33-slider,
.shop-gallery-thumbs,
.shop-lightbox-thumbs {
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.phase33-slider {
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    contain: layout paint;
}

.phase33-slide {
    scroll-snap-stop: normal;
}

/* Explicit slider surfaces in each theme. */
html[data-theme="light"] .phase33-slider-controls button {
    background: #FFFFFF;
    border-color: #D0D5DD;
    color: #0B1020;
}

html[data-theme="dark"] .phase33-slider-controls button {
    background: #141D31;
    border-color: #334155;
    color: #F7F9FC;
}

/* ---------- Sticky side/summary cards ---------- */
.shop-plans-card,
.shop-cart-summary,
.shop-checkout-summary {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Avoid sticky rendering issues on short mobile viewports. */
@media (max-width: 1023px) {
    .shop-plans-card,
    .shop-cart-summary,
    .shop-checkout-summary {
        position: static;
        top: auto;
    }
}

/* ---------- Overlay scroll lock ----------
   Keeps the underlying page fixed without changing its width. */
body.phase33-video-open,
body.shop-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none;
    padding-right: var(--xixa-scrollbar-width, 0px);
}

/* Lightbox/video backdrops only exist while an overlay is open.
   Reduce blur strength to avoid frame drops during open/close. */
.shop-lightbox-backdrop,
.phase33-video-backdrop {
    -webkit-backdrop-filter: blur(2px) !important;
    backdrop-filter: blur(2px) !important;
}

html[data-theme="light"] .shop-lightbox-backdrop,
html[data-theme="light"] .phase33-video-backdrop {
    background: rgba(2, 6, 23, 0.84) !important;
}

html[data-theme="dark"] .shop-lightbox-backdrop,
html[data-theme="dark"] .phase33-video-backdrop {
    background: rgba(0, 0, 0, 0.90) !important;
}

.shop-lightbox,
.phase33-video-modal {
    contain: layout paint style;
}

/* ---------- Scrollbar styling ---------- */
html[data-theme="light"] {
    scrollbar-color: #A8B0C0 #F7F8FC;
}

html[data-theme="dark"] {
    scrollbar-color: #475569 #080D1B;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #F7F8FC;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #B8C0CF;
    border-radius: 999px;
    border: 3px solid #F7F8FC;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #8D98AA;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #080D1B;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 999px;
    border: 3px solid #080D1B;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

/* ---------- Mobile touch scrolling ---------- */
@media (max-width: 780px) {
    html,
    body {
        overscroll-behavior-y: auto;
        touch-action: pan-y pinch-zoom;
    }

    .shop-main {
        overflow: visible;
    }

    .phase33-slider,
    .shop-gallery-thumbs {
        touch-action: pan-x;
    }

    /* Disable large hover lifts on touch screens. */
    .shop-product-card:hover,
    .phase33-related-card:hover,
    .phase33-bundle-card:hover {
        transform: none;
    }

    /* Mobile shadows cost more while swiping. */
    html[data-theme="light"] .shop-product-card,
    html[data-theme="light"] .phase33-related-card,
    html[data-theme="light"] .phase33-bundle-card {
        box-shadow: 0 3px 12px rgba(16, 24, 40, 0.06);
    }

    html[data-theme="dark"] .shop-product-card,
    html[data-theme="dark"] .phase33-related-card,
    html[data-theme="dark"] .phase33-bundle-card {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    }
}

/* ---------- Coarse pointer / phones / tablets ---------- */
@media (hover: none), (pointer: coarse) {
    .shop-product-card,
    .phase33-related-card,
    .phase33-bundle-card,
    .shop-btn,
    .shop-btn-icon,
    .phase33-slider-controls button {
        transition-duration: 120ms;
    }

    .shop-product-card:hover,
    .phase33-related-card:hover,
    .phase33-bundle-card:hover,
    .shop-btn-primary:hover,
    .shop-btn-secondary:hover {
        transform: none;
    }
}

/* ---------- Reduced motion accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    .phase33-slider,
    .shop-gallery-thumbs,
    .shop-lightbox-thumbs {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}
/* =========================================================
   xixaSoft LIVE FIX — Related product slider stability
   Isolated to #relatedSlider so existing product/video/bundle CSS stays intact.
   Explicit light + dark theme values are intentional.
   ========================================================= */
#relatedSlider.phase33-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    contain: layout paint;
}
#relatedSlider.phase33-slider::-webkit-scrollbar { display: none !important; }
#relatedSlider.phase33-slider > .phase33-related-card {
    display: block !important;
    flex: 0 0 calc((100% - 42px) / 4) !important;
    width: calc((100% - 42px) / 4) !important;
    min-width: 0 !important;
    max-width: calc((100% - 42px) / 4) !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
}
#relatedSlider .phase33-related-media {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: 190px !important;
    overflow: hidden !important;
}
#relatedSlider .phase33-related-media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 190px !important;
    object-fit: cover !important;
    object-position: center !important;
}
#relatedSlider .phase33-related-body {
    min-width: 0 !important;
    overflow: hidden !important;
}
#relatedSlider .phase33-related-body h3 {
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

/* Light mode — explicit colors */
html[data-theme="light"] .phase3-related-section {
    background: #FFFFFF !important;
    border-color: #E4E7EC !important;
    color: #0B1020 !important;
}
html[data-theme="light"] #relatedSlider > .phase33-related-card {
    background: #FFFFFF !important;
    border-color: #E4E7EC !important;
    color: #0B1020 !important;
    box-shadow: 0 4px 14px rgba(16,24,40,.06) !important;
}
html[data-theme="light"] #relatedSlider .phase33-related-media {
    background: #F8FAFC !important;
}
html[data-theme="light"] #relatedSlider .phase33-related-body h3,
html[data-theme="light"] #relatedSlider .phase33-related-price {
    color: #0B1020 !important;
}
html[data-theme="light"] #relatedSlider .phase33-card-kicker,
html[data-theme="light"] #relatedSlider .phase33-related-meta,
html[data-theme="light"] .phase33-slider-head p {
    color: #667085 !important;
}
html[data-theme="light"] .phase33-slider-controls button {
    background: #FFFFFF !important;
    border-color: #D0D5DD !important;
    color: #0B1020 !important;
}
html[data-theme="light"] .phase33-slider-controls button:hover {
    background: #2322E2 !important;
    border-color: #2322E2 !important;
    color: #FFFFFF !important;
}

/* Dark mode — explicit colors */
html[data-theme="dark"] .phase3-related-section {
    background: #0F172A !important;
    border-color: #202C44 !important;
    color: #F7F9FC !important;
}
html[data-theme="dark"] #relatedSlider > .phase33-related-card {
    background: #111A2E !important;
    border-color: #26334D !important;
    color: #F7F9FC !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] #relatedSlider .phase33-related-media {
    background: #141D31 !important;
}
html[data-theme="dark"] #relatedSlider .phase33-related-body h3,
html[data-theme="dark"] #relatedSlider .phase33-related-price {
    color: #F7F9FC !important;
}
html[data-theme="dark"] #relatedSlider .phase33-card-kicker,
html[data-theme="dark"] #relatedSlider .phase33-related-meta,
html[data-theme="dark"] .phase33-slider-head p {
    color: #94A3B8 !important;
}
html[data-theme="dark"] .phase33-slider-controls button {
    background: #141D31 !important;
    border-color: #334155 !important;
    color: #F7F9FC !important;
}
html[data-theme="dark"] .phase33-slider-controls button:hover {
    background: #6A39E4 !important;
    border-color: #6A39E4 !important;
    color: #FFFFFF !important;
}

@media (max-width: 1100px) {
    #relatedSlider.phase33-slider > .phase33-related-card {
        flex-basis: calc((100% - 28px) / 3) !important;
        width: calc((100% - 28px) / 3) !important;
        max-width: calc((100% - 28px) / 3) !important;
    }
}
@media (max-width: 780px) {
    #relatedSlider.phase33-slider {
        gap: 12px !important;
    }
    #relatedSlider.phase33-slider > .phase33-related-card {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #relatedSlider .phase33-related-media,
    #relatedSlider .phase33-related-media img {
        max-height: 240px !important;
    }
}

/* =========================================================
   xixaSoft Shop — Legal / Trust Pages
   Scoped to legal pages, explicit light + dark theme support.
   ========================================================= */
.shop-legal-page{padding:18px 0 34px}
.shop-legal-hero{padding:34px 36px;border-radius:22px;margin-bottom:20px;position:relative;overflow:hidden}
html[data-theme="light"] .shop-legal-hero{background:linear-gradient(135deg,#F1F3FF 0%,#F7FBFF 58%,#EEF9FD 100%);border:1px solid #DCDDFF;color:#0B1020}
html[data-theme="dark"] .shop-legal-hero{background:linear-gradient(135deg,#10182D 0%,#121A34 58%,#0E2230 100%);border:1px solid #26334D;color:#F7F9FC}
.shop-legal-hero h1{font-family:"Space Grotesk",sans-serif;font-size:clamp(2rem,4vw,3.2rem);line-height:1.08;letter-spacing:-.045em;margin:8px 0 12px}
.shop-legal-hero p{max-width:820px;margin:0;line-height:1.7;font-size:1rem}
html[data-theme="light"] .shop-legal-hero p{color:#475467}
html[data-theme="dark"] .shop-legal-hero p{color:#CBD5E1}
.shop-legal-updated{display:inline-flex;margin-top:18px;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:700}
html[data-theme="light"] .shop-legal-updated{background:#FFFFFF;color:#475467;border:1px solid #E4E7EC}
html[data-theme="dark"] .shop-legal-updated{background:#0B1020;color:#CBD5E1;border:1px solid #334155}
.shop-legal-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}
.shop-legal-card{border-radius:18px;padding:28px;box-shadow:0 8px 24px rgba(16,24,40,.055)}
html[data-theme="light"] .shop-legal-card{background:#FFFFFF;border:1px solid #E4E7EC;color:#0B1020}
html[data-theme="dark"] .shop-legal-card{background:#0F172A;border:1px solid #26334D;color:#F7F9FC;box-shadow:0 10px 28px rgba(0,0,0,.22)}
.shop-legal-section{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid}
.shop-legal-section:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}
html[data-theme="light"] .shop-legal-section{border-color:#EAECF0}
html[data-theme="dark"] .shop-legal-section{border-color:#26334D}
.shop-legal-section h2{font-family:"Space Grotesk",sans-serif;font-size:1.25rem;letter-spacing:-.02em;margin:0 0 10px}
.shop-legal-section p,.shop-legal-section li{font-size:.94rem;line-height:1.75}
html[data-theme="light"] .shop-legal-section p,html[data-theme="light"] .shop-legal-section li{color:#475467}
html[data-theme="dark"] .shop-legal-section p,html[data-theme="dark"] .shop-legal-section li{color:#CBD5E1}
.shop-legal-section ul{margin:8px 0 0;padding-left:22px;display:grid;gap:7px}
.shop-legal-section a,.shop-legal-contact a{color:#2322E2;text-decoration:none;font-weight:700}
html[data-theme="dark"] .shop-legal-section a,html[data-theme="dark"] .shop-legal-contact a{color:#8B8AFF}
.shop-legal-section a:hover,.shop-legal-contact a:hover{text-decoration:underline}
.shop-legal-contact{position:sticky;top:110px}
.shop-legal-contact h2{font-family:"Space Grotesk",sans-serif;margin:7px 0 8px;font-size:1.5rem}
.shop-legal-contact>p{font-size:.9rem;line-height:1.6;margin:0 0 18px}
html[data-theme="light"] .shop-legal-contact>p{color:#667085}
html[data-theme="dark"] .shop-legal-contact>p{color:#94A3B8}
.shop-legal-contact dl{display:grid;gap:12px;margin:0 0 20px}
.shop-legal-contact dt{text-transform:uppercase;letter-spacing:.07em;font-size:9px;font-weight:900;color:#667085}
html[data-theme="dark"] .shop-legal-contact dt{color:#94A3B8}
.shop-legal-contact dd{margin:3px 0 0;font-size:.87rem;line-height:1.5;overflow-wrap:anywhere}
.shop-legal-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shop-legal-contact-grid>div{padding:15px;border-radius:12px;display:grid;gap:6px}
html[data-theme="light"] .shop-legal-contact-grid>div{background:#F8FAFC;border:1px solid #EAECF0}
html[data-theme="dark"] .shop-legal-contact-grid>div{background:#141D31;border:1px solid #26334D}
.shop-legal-contact-grid strong{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}
.shop-legal-contact-grid span,.shop-legal-contact-grid a{font-size:.9rem;line-height:1.5}
@media(max-width:980px){.shop-legal-layout{grid-template-columns:1fr}.shop-legal-contact{position:static}.shop-legal-hero{padding:28px}.shop-legal-card{padding:24px}}
@media(max-width:640px){.shop-legal-page{padding-top:8px}.shop-legal-hero{padding:22px 18px;border-radius:16px}.shop-legal-card{padding:20px 17px;border-radius:15px}.shop-legal-contact-grid{grid-template-columns:1fr}.shop-legal-section h2{font-size:1.12rem}}


/* ==========================================================
   xixaSoft Bundle Detail + Build Your Own Bundle
   Additive styles only
   ========================================================== */
.xixa-bundle-detail{margin:0 0 48px}.xixa-bundle-detail-list{display:grid;gap:12px;margin-top:16px}
.xixa-bundle-detail-product{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--border-color,#e5e7eb);border-radius:14px;color:inherit;text-decoration:none;background:var(--bg-surface,#fff)}
.xixa-bundle-detail-product img{width:72px;height:72px;object-fit:cover;border-radius:10px}.xixa-bundle-detail-product small{display:block;opacity:.65;margin:3px 0}.xixa-bundle-detail-product p{margin:5px 0 0;font-size:12px;opacity:.75}
.xixa-bundle-summary{align-self:start;position:sticky;top:100px}.xixa-build-bundle-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0 120px}
.xixa-build-product{position:relative;border:1px solid var(--border-color,#e5e7eb);border-radius:16px;overflow:hidden;background:var(--bg-surface,#fff);cursor:pointer;transition:.2s ease}.xixa-build-product:hover{transform:translateY(-2px)}
.xixa-build-product input{position:absolute;top:12px;right:12px;width:22px;height:22px;z-index:2;accent-color:#2322E2}.xixa-build-product:has(input:checked){outline:2px solid #2322E2;box-shadow:0 8px 24px rgba(35,34,226,.12)}
.xixa-build-product-media{aspect-ratio:16/10;background:#0B1020}.xixa-build-product-media img{width:100%;height:100%;object-fit:cover}.xixa-build-product-body{padding:14px;display:grid;gap:6px}.xixa-build-product-body span{font-weight:800}.xixa-build-product-body small{opacity:.65}
.xixa-build-sticky{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:1000;width:min(900px,calc(100% - 28px));display:grid;grid-template-columns:repeat(3,1fr) auto;gap:16px;align-items:center;padding:14px 18px;border-radius:18px;background:rgba(255,255,255,.96);border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 50px rgba(15,23,42,.18);backdrop-filter:blur(14px)}
html[data-theme="dark"] .xixa-build-sticky{background:rgba(11,16,32,.96);border-color:rgba(255,255,255,.1)}.xixa-build-sticky small{display:block;opacity:.65}.xixa-build-sticky strong{font-size:16px}
.xixa-cart-bundle-notice{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.xixa-bundle-locked{opacity:.65;cursor:not-allowed!important}
.xixa-bundle-builder-promo{padding:28px;border:1px solid var(--border-color,#e5e7eb);border-radius:20px;background:var(--bg-surface,#fff)}
@media(max-width:1000px){.xixa-build-bundle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.xixa-build-sticky{grid-template-columns:repeat(3,1fr);}.xixa-build-sticky .shop-btn{grid-column:1/-1}}
@media(max-width:640px){.xixa-build-bundle-grid{grid-template-columns:1fr}.xixa-bundle-detail-product{grid-template-columns:58px 1fr}.xixa-bundle-detail-product>b{grid-column:2}.xixa-bundle-detail-product img{width:58px;height:58px}.xixa-build-sticky{grid-template-columns:1fr 1fr;gap:10px}.xixa-build-sticky>div:nth-child(3){grid-column:1/-1}.xixa-bundle-summary{position:static}}


/* Bundle Builder — product-listing presentation */
.xixa-builder-page-head{margin-bottom:20px}
.xixa-builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;padding:18px 20px;border:1px solid var(--border-color,#e5e7eb);border-radius:16px;background:var(--bg-surface,#fff)}
.xixa-builder-toolbar>div:first-child{display:grid;gap:4px}.xixa-builder-toolbar>div:first-child strong{font-size:17px}.xixa-builder-toolbar>div:first-child span{font-size:13px;opacity:.7}
.xixa-builder-search{width:min(360px,100%);position:relative}.xixa-builder-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);opacity:.55}.xixa-builder-search input{width:100%;height:44px;padding:0 14px 0 42px;border:1px solid var(--border-color,#dfe3ea);border-radius:12px;background:transparent;color:inherit}
.xixa-builder-card-label{display:flex;flex-direction:column;height:100%;cursor:pointer;position:relative}.xixa-builder-product-card{position:relative;transition:transform .18s ease,box-shadow .18s ease,outline-color .18s ease}.xixa-builder-product-card.is-selected{outline:2px solid #2322E2;box-shadow:0 12px 32px rgba(35,34,226,.14);transform:translateY(-2px)}
.xixa-builder-checkbox{position:absolute;opacity:0;pointer-events:none}.xixa-builder-select-indicator{position:absolute;z-index:8;right:12px;top:12px;display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid rgba(15,23,42,.12);font-size:12px;font-weight:800;color:#111827;box-shadow:0 5px 18px rgba(15,23,42,.1)}
.xixa-builder-checkmark{display:none}.xixa-builder-product-card.is-selected .xixa-builder-select-indicator{background:#2322E2;color:#fff;border-color:#2322E2}.xixa-builder-product-card.is-selected .xixa-builder-checkmark{display:inline}
.xixa-builder-card-action{font-size:12px;font-weight:800;color:#2322E2}.xixa-builder-product-card.is-selected .xixa-builder-card-action{color:#14A8D6}
.xixa-builder-products-grid{margin-bottom:120px}
.xixa-build-sticky{grid-template-columns:repeat(4,minmax(100px,1fr)) auto}
@media(max-width:900px){.xixa-builder-toolbar{align-items:stretch;flex-direction:column}.xixa-builder-search{width:100%}.xixa-build-sticky{grid-template-columns:1fr 1fr}.xixa-build-sticky .shop-btn{grid-column:1/-1}}
@media(max-width:560px){.xixa-build-sticky{bottom:8px;width:calc(100% - 16px);padding:10px 12px}.xixa-build-sticky>div{font-size:12px}}

.phase33-bundle-media-link{display:block;position:relative;text-decoration:none;color:inherit}
.phase33-bundle-title-link{color:inherit;text-decoration:none}
.phase33-bundle-title-link:hover{text-decoration:underline;text-underline-offset:3px}
