/* =============================================================
   POv2 — Photos Online v2 — Design System
   Mobile-First · Premium UX · Multi-Language
   @author @baypri · Unique Platform
   ============================================================= */

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

/* ── Root Design Tokens ── */
:root {
    /* Brand (overridden inline by PHP $dConfig) */
    --brand: #0ea5e9;
    --brand-dark: #0284c7;
    --brand-light: rgba(14, 165, 233, .15);
    --brand-sec: #f59e0b;

    /* Surfaces */
    --surface-0: #0a0a0f;
    --surface-1: #111118;
    --surface-2: #1a1a24;
    --surface-3: rgba(255, 255, 255, .06);
    --surface-4: rgba(255, 255, 255, .10);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, .08);
    --glass-border: rgba(255, 255, 255, .14);
    --glass-blur: 16px;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Status */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #38bdf8;

    /* Spacing */
    --space-xs: .25rem;
    --space-sm: .5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .6);
    --shadow-brand: 0 0 20px rgba(14, 165, 233, .3);

    /* Transition */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --dur-fast: 150ms;
    --dur-base: 280ms;
    --dur-slow: 500ms;

    /* Bottom bar height (mobile safe area) */
    --bar-h: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Light Theme Override ── */
[data-theme="light"] {
    --surface-0: #f8fafc;
    --surface-1: #ffffff;
    --surface-2: #f1f5f9;
    --surface-3: rgba(0, 0, 0, .06);
    --surface-4: rgba(0, 0, 0, .10);

    --glass-bg: rgba(255, 255, 255, .75);
    --glass-border: rgba(0, 0, 0, .1);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--surface-0);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}


/* =====================================================
   GLASS CARD UTILITY
   ===================================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.glass-sm {
    border-radius: var(--radius-md);
}


/* =====================================================
   HEADER / NAVBAR
   ===================================================== */
.pov2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    background: rgba(10, 10, 15, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    min-height: 56px;
}

[data-theme="light"] .pov2-header {
    background: rgba(255, 255, 255, .85);
}

.pov2-header .brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pov2-header .brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.pov2-header .client-info {
    flex: 1;
    min-width: 0;
}

.pov2-header .client-name {
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.pov2-header .client-stats {
    font-size: .72rem;
    color: var(--text-secondary);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-top: 2px;
}

.pov2-header .client-stats .badge-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-size: .68rem;
    font-weight: 500;
}

.badge-photos {
    background: rgba(14, 165, 233, .2);
    color: var(--info);
}

.badge-videos {
    background: rgba(239, 68, 68, .2);
    color: #f87171;
}

.pov2-header .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Typography Helpers */
b,
strong {
    font-weight: 700;
}

/* Bootstrap 3/4 legacy support */
.hidden {
    display: none !important;
}

.well {
    background: var(--surface-1) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-xl) !important;
    margin-bottom: var(--space-xl) !important;
    box-shadow: var(--shadow-lg) !important;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-primary) !important;
}

.well:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.well h4 {
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.well h5 {
    color: var(--brand);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
}

/* =====================================================
   SHOPPING CART MODAL & SIDEBAR (Zero-Dependency Polyfill)
   ===================================================== */
.modal {
    display: none;
}

.modal.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 1050;
    overflow: hidden;
    outline: 0;
    pointer-events: none;
    /* Let clicks pass through when hidden */
}

/* Base display override triggered by jQuery/Bootstrap JS */
.modal.show,
.modal.sidebar.show {
    display: block !important;
    pointer-events: auto;
    /* Enable clicks when visible */
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.sidebar .modal-dialog {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
}

.modal.sidebar.show .modal-dialog {
    transform: translateX(0);
}

.modal.sidebar .modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none !important;
    border-left: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-xl);
    background: var(--surface-1) !important;
}

.modal.sidebar .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--glass-border) !important;
    background: var(--surface-1);
}

.modal.sidebar .modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

/* Modal Close Button */
.modal.sidebar .close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-secondary) !important;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.modal.sidebar .close:hover {
    color: var(--brand) !important;
}

.modal.sidebar .modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--space-lg);
    overflow-y: auto;
    background: var(--surface-0);
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.modal.sidebar .modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal.sidebar .modal-body::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.modal.sidebar .modal-footer {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--glass-border) !important;
    background: var(--surface-1);
    gap: var(--space-sm);
}

/* =====================================================
   SHOPPING CART ITEMS (Injected dynamically)
   ===================================================== */
.detalle-carrito .cart-item {
    display: flex;
    flex-direction: column;
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
}

.detalle-carrito .cart-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    object-fit: cover;
    max-height: 150px;
    /* Constrain huge default images */
    background: #000;
}

.detalle-carrito .cart-item b,
.detalle-carrito .cart-item strong {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Remove (Trash/X) button for items */
.detalle-carrito .cart-item .cart-close,
.detalle-carrito .cart-item .elimina_foto,
.detalle-carrito .cart-item .cart-item-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff !important;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Force 'X' icon rendering since legacy .icon-x font is missing in pov2 */
.detalle-carrito .cart-item .cart-item-close .icon-x::before {
    content: "\f00d";
    /* FontAwesome Xmark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
}

.detalle-carrito .cart-item .cart-item-close:hover,
.detalle-carrito .cart-item .elimina_foto:hover {
    background: var(--red);
}

/* Summary Texts */
.detalle-carrito {
    color: var(--text-primary);
}

.detalle-carrito h3 {
    font-weight: 800;
    font-size: 1.25rem;
    margin-top: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: var(--space-md);
    color: var(--brand);
}

/* Global Total */
.detalle-carrito .text-right {
    text-align: right;
}

.detalle-carrito .text-right b,
.detalle-carrito .text-right strong {
    font-size: 1.35rem;
    color: var(--text-primary);
}

/* Checkout Form Inputs */
.detalle-carrito form,
.detalle-carrito .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.detalle-carrito input[type="text"],
.detalle-carrito input[type="email"],
.detalle-carrito textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font);
    transition: border-color 0.2s;
}

.detalle-carrito input:focus,
.detalle-carrito textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.detalle-carrito input[type="radio"],
.detalle-carrito input[type="checkbox"] {
    accent-color: var(--brand);
    transform: scale(1.1);
    margin-right: 6px;
    cursor: pointer;
}

.detalle-carrito label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

/* =====================================================
   CHECKOUT SUBMIT BUTTON (#ppp_pagar & .btn-cobrast)
   ===================================================== */
#ppp_pagar,
.btn-cobrast {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
    background: var(--brand);
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

#ppp_pagar:hover,
.btn-cobrast:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

#ppp_pagar:active,
.btn-cobrast:active {
    transform: translateY(0);
}

/* =====================================================
   PAYMENT ERRORS & ALERTS (#card-errors, #payment-result)
   ===================================================== */
#card-errors:not(:empty),
#payment-result:not(:empty) {
    display: flex !important;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--red);
    color: var(--red) !important;
    padding: 12px 16px;
    margin-top: 5px !important;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    animation: fadeInDown 0.4s ease;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#card-errors:not(:empty)::before,
#payment-result:not(:empty)::before {
    content: "\f071";
    /* FontAwesome Exclamation Triangle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--red);
    flex-shrink: 0;
}


/* =====================================================
   HERO SECTION (account page)
   ===================================================== */
.pov2-hero {
    position: relative;
    width: 100%;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(56px + var(--space-xl)) var(--space-md) calc(var(--space-xl));
    overflow: hidden;
    text-align: center;
}

.pov2-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(.4) saturate(.8);
    transition: opacity var(--dur-slow) var(--ease);
    z-index: 0;
}

.pov2-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(10, 10, 15, .5) 60%,
            var(--surface-0) 100%);
    z-index: 1;
}

[data-theme="light"] .pov2-hero .hero-overlay {
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, .5) 60%,
            var(--surface-0) 100%);
}

.pov2-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .3);
    color: #86efac;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* ── Hero action buttons ── */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* =====================================================
   BUTTONS
   ===================================================== */
.pov2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: .75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: .9rem;
    font-weight: 600;
    transition: all var(--dur-base) var(--ease);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pov2-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--dur-fast);
}

.pov2-btn:hover::after {
    background: rgba(255, 255, 255, .06);
}

.pov2-btn:active::after {
    background: rgba(255, 255, 255, .12);
}

/* Primary — download */
.pov2-btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(14, 165, 233, .35);
}

.pov2-btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 6px 24px rgba(14, 165, 233, .5);
    transform: translateY(-1px);
}

.pov2-btn-primary:active {
    transform: translateY(0);
}

/* Success */
.pov2-btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, .35);
}

.pov2-btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Outline */
.pov2-btn-outline {
    background: transparent;
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.pov2-btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

/* Warning */
.pov2-btn-warning {
    background: var(--warning);
    color: #0a0a0f;
    box-shadow: 0 4px 16px rgba(245, 158, 11, .35);
}

.pov2-btn-warning:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Video */
.pov2-btn-video {
    background: var(--error);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, .35);
}

.pov2-btn-video:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Disabled */
.pov2-btn[disabled],
.pov2-btn.disabled {
    opacity: .5;
    pointer-events: none;
}

/* Icon-only */
.pov2-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    padding: 0;
    flex-shrink: 0;
}

/* Full width */
.pov2-btn-block {
    width: 100%;
}

/* Spinner inside button */
.pov2-btn .spin {
    animation: spin 1s linear infinite;
}

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


/* =====================================================
   MEDIA GRID (Photos + Videos unified)
   ===================================================== */
.pov2-section-grid {
    padding: var(--space-lg) var(--space-sm) calc(var(--bar-h) + var(--safe-bottom) + var(--space-xl));
}

.pov2-section-grid .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-sm) var(--space-md);
}

.pov2-section-grid .section-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pov2-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

@media (min-width: 480px) {
    .pov2-media-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
}

@media (min-width: 768px) {
    .pov2-media-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
}

@media (min-width: 1024px) {
    .pov2-media-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
}

@media (min-width: 1280px) {
    .pov2-media-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
    }
}

/* ── Media cell ── */
.pov2-media-cell {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface-2);
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease);
}

.pov2-media-cell:hover {
    transform: scale(1.03);
    z-index: 2;
}

.pov2-media-cell:active {
    transform: scale(.97);
}

.pov2-media-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity var(--dur-base) var(--ease);
}

/* Overlay that shows on hover/touch */
.pov2-media-cell .cell-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xs);
    pointer-events: none; /* Crucial: Let clicks pass through to the image */
}

.pov2-media-cell:hover .cell-overlay,
.pov2-media-cell.touched .cell-overlay {
    opacity: 1;
}

/* Download icon inside overlay */
.cell-dl-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .85rem;
    pointer-events: auto;
    transition: background var(--dur-fast);
    flex-shrink: 0;
}

.cell-dl-btn:hover {
    background: var(--brand);
}

/* ── Video cell badge ── */
.video-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(239, 68, 68, .85);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    pointer-events: none;
}

/* Video play icon over thumbnail */
.pov2-media-cell.is-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, .6);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur-fast);
}

.pov2-media-cell.is-video:hover .play-icon {
    background: var(--brand);
}

/* ── Publishing indicator ── */
.pov2-media-cell .cell-publishing {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, .7);
    pointer-events: none;
}

.pov2-media-cell .cell-publishing svg {
    animation: spin 2s linear infinite;
    opacity: .7;
}


/* ── Skeleton loader ── */
.pov2-media-cell.skeleton {
    pointer-events: none;
    overflow: hidden;
}

.pov2-media-cell.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--surface-2) 25%,
            var(--surface-3) 50%,
            var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}


/* ── Load more button ── */
.pov2-load-more {
    display: block;
    width: calc(100% - var(--space-md) * 2);
    margin: var(--space-md) auto;
    padding: .85rem;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--dur-base) var(--ease);
    cursor: pointer;
}

.pov2-load-more:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--brand);
}

.pov2-load-more.disabled {
    opacity: .4;
    pointer-events: none;
}


/* =====================================================
   BOTTOM ACTION BAR (Mobile sticky)
   ===================================================== */
.pov2-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + var(--safe-bottom));
    background: rgba(10, 10, 15, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

[data-theme="light"] .pov2-bottom-bar {
    background: rgba(255, 255, 255, .92);
}

.pov2-bottom-bar .bar-main {
    flex: 1;
}

.pov2-bottom-bar .bar-side {
    display: flex;
    gap: var(--space-sm);
}

/* ── On desktop, hide bottom bar; show inline action panel ── */
@media (min-width: 768px) {
    .pov2-bottom-bar {
        display: none;
    }

    .pov2-desktop-actions {
        display: flex !important;
    }

    .pov2-section-grid {
        padding-bottom: var(--space-2xl);
    }
}

.pov2-desktop-actions {
    display: none;
}

/* ── Normalize backend injected elements to prevent overlaps ── */
.pov2-desktop-actions>* {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
}

.pov2-desktop-actions br {
    display: none !important;
}

.pov2-desktop-actions span,
.pov2-desktop-actions small,
.pov2-desktop-actions p {
    display: block !important;
    margin: 0 !important;
    font-size: 0.75rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.2;
}

.pov2-desktop-actions img {
    margin: 0 !important;
    max-height: 32px !important;
    position: static !important;
}

.pov2-desktop-actions .btn-app img {
    max-height: 44px !important;
    width: auto !important;
    display: block;
}

.pov2-desktop-actions .btn-app {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1;
}


/* =====================================================
   VIDEO PLAYER MODAL (<dialog>)
   ===================================================== */
#pov2-player-dialog {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    border: none;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    overflow: hidden;
    transition: background var(--dur-base);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

#pov2-player-dialog[open] {
    background: rgba(0, 0, 0, .88);
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

#pov2-player-dialog::backdrop {
    background: transparent;
}

.player-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.player-inner video {
    width: 100%;
    border-radius: var(--radius-lg);
    background: #000;
    max-height: 70dvh;
    box-shadow: var(--shadow-lg);
}

.player-controls {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.player-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--dur-fast);
    z-index: 10;
}

.player-close:hover {
    background: rgba(239, 68, 68, .6);
}


/* =====================================================
   LANGUAGE SELECTOR
   ===================================================== */
.pov2-lang {
    position: relative;
}

.pov2-lang-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--dur-fast);
}

.pov2-lang-btn:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-light);
}

.pov2-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--dur-base) var(--ease);
    z-index: 200;
}

.pov2-lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pov2-lang-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: .6rem var(--space-md);
    font-size: .85rem;
    color: var(--text-secondary);
    transition: all var(--dur-fast);
}

.pov2-lang-menu a:hover {
    background: var(--surface-3);
    color: var(--text-primary);
}

.pov2-lang-menu a.active {
    color: var(--brand);
    font-weight: 600;
}


/* =====================================================
   INDEX PAGE — Hero search form
   ===================================================== */
.pov2-index-hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.pov2-index-hero .hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.3) saturate(.6);
    z-index: 0;
}

.pov2-index-hero .hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, .08) 0%, transparent 70%);
    z-index: 1;
}

.pov2-search-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    background: rgba(17, 17, 24, .88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .pov2-search-card {
    background: rgba(255, 255, 255, .88);
}

/* ── Tabs ── */
.pov2-tabs {
    display: flex;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: var(--space-lg);
    gap: 2px;
}

/* ── App Badges ── */
.pov2-app-badges img {
    height: 48px;
    width: auto;
    margin: 0 var(--space-xs);
    display: inline-block;
    vertical-align: middle;
}

.pov2-tab-btn {
    flex: 1;
    padding: .55rem .5rem;
    border-radius: calc(var(--radius-md) - 2px);
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--dur-base) var(--ease);
}

.pov2-tab-btn.active {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.pov2-tab-content {
    display: none;
}

.pov2-tab-content.active {
    display: block;
}


/* ── Forms ── */
.pov2-form-group {
    margin-bottom: var(--space-md);
}

.pov2-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.pov2-input {
    width: 100%;
    padding: .75rem var(--space-md);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
    appearance: none;
}

.pov2-input::placeholder {
    color: var(--text-muted);
}

.pov2-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}

.pov2-select {
    width: 100%;
    padding: .75rem var(--space-md);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: .9rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: 2.5rem;
    transition: border-color var(--dur-fast);
}

.pov2-select:focus {
    outline: none;
    border-color: var(--brand);
}

/* Override legacy form fields from modules/cms */
.form-control {
    background: var(--surface-2) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: .75rem var(--space-md) !important;
    font-family: 'Inter', sans-serif !important;
}

.form-control:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15) !important;
}

.btn {
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
}

.btn-primary,
.btn-themed {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-themed:hover {
    background: var(--brand-dark) !important;
}


/* =====================================================
   CONFETTI CANVAS
   ===================================================== */
#confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}


/* =====================================================
   FOOTER
   ===================================================== */
.pov2-footer {
    background: var(--surface-1);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
}

.pov2-footer a {
    color: var(--text-secondary);
    transition: color var(--dur-fast);
}

.pov2-footer a:hover {
    color: var(--brand);
}

.pov2-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.pov2-social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.pov2-social-links a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: all var(--dur-fast);
}

.pov2-social-links a:hover {
    background: var(--brand-light);
    color: var(--brand);
}


/* =====================================================
   MODAL (Términos / Aviso)
   ===================================================== */
.pov2-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, .75);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur-base);
}

.pov2-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 640px) {
    .pov2-modal-overlay {
        align-items: center;
    }
}

.pov2-modal {
    background: var(--surface-1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 680px;
    max-height: 80dvh;
    overflow-y: auto;
    padding: var(--space-xl);
    transform: translateY(40px);
    transition: transform var(--dur-base) var(--ease);
}

@media (min-width: 640px) {
    .pov2-modal {
        border-radius: var(--radius-xl);
        transform: scale(.96);
    }

    .pov2-modal-overlay.open .pov2-modal {
        transform: scale(1);
    }
}

.pov2-modal-overlay.open .pov2-modal {
    transform: translateY(0);
}

.pov2-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.pov2-modal h2,
.pov2-modal h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.pov2-modal p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    font-size: .9rem;
}

.pov2-modal li {
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-size: .9rem;
}


/* =====================================================
   STATUS ALERTS (llave inválida, orden expirada)
   ===================================================== */
.pov2-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid;
    margin: var(--space-md);
}

.pov2-alert-error {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .3);
    color: #fca5a5;
}

.pov2-alert-warning {
    background: rgba(245, 158, 11, .08);
    border-color: rgba(245, 158, 11, .3);
    color: #fcd34d;
}

.pov2-alert-info {
    background: rgba(14, 165, 233, .08);
    border-color: rgba(14, 165, 233, .3);
    color: #7dd3fc;
}


/* =====================================================
   DESKTOP SIDEBAR PANEL (account page ≥ 768px)
   ===================================================== */
@media (min-width: 768px) {
    .pov2-account-layout {
        display: grid;
        grid-template-columns: 300px 1fr;
        min-height: 100dvh;
        padding-top: 56px;
    }

    .pov2-sidebar {
        position: sticky;
        top: 56px;
        height: calc(100dvh - 56px);
        overflow-y: auto;
        padding: var(--space-xl) var(--space-lg);
        border-right: 1px solid var(--glass-border);
        background: var(--surface-1);
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .pov2-main-content {
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    .pov2-account-layout {
        display: flex;
        flex-direction: column;
        padding-top: 56px;
    }

    .pov2-sidebar {
        padding: var(--space-md);
        border-bottom: 1px solid var(--glass-border);
    }
}


/* =====================================================
   LOADING OVERLAY (page initial load)
   ===================================================== */
.pov2-page-loader {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--surface-0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--dur-slow);
}

.pov2-page-loader.done {
    opacity: 0;
    pointer-events: none;
}

.loader-ring {
    width: 44px;
    height: 44px;
    border: 3px solid var(--surface-2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}


/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-brand {
    color: var(--brand);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-error {
    color: var(--error);
}

.bg-surface-1 {
    background: var(--surface-1);
}

.bg-surface-2 {
    background: var(--surface-2);
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.d-block {
    display: block !important;
}

.w-full {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.gap-xs {
    gap: var(--space-xs);
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.p-md {
    padding: var(--space-md);
}

.p-lg {
    padding: var(--space-lg);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.overflow-hidden {
    overflow: hidden;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.shrink-0 {
    flex-shrink: 0;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* font sizes */
.text-xs {
    font-size: .72rem;
}

.text-sm {
    font-size: .85rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-semi {
    font-weight: 600;
}

/* scroll */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Horizontal rule */
.pov2-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: var(--space-md) 0;
}

/* ==========================================================================
   16. SWEETALERT2 POV2 ADAPTATION (Dark/Light Modes)
   ========================================================================== */
body.swal2-shown .swal2-popup {
    background: var(--surface-1) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] body.swal2-shown .swal2-popup {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

body.swal2-shown .swal2-title,
body.swal2-shown .swal2-html-container {
    color: var(--text-primary) !important;
    font-family: inherit !important;
}

/* Force inner tags to inherit text color so injected PHP HTML adapts */
body.swal2-shown .swal2-html-container * {
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

/* Fix input field inside Swal if present */
body.swal2-shown .swal2-input,
body.swal2-shown .swal2-textarea {
    background: var(--surface-2) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md) !important;
    font-family: inherit !important;
}

body.swal2-shown .swal2-input:focus,
body.swal2-shown .swal2-textarea:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2) !important;
}

/* Actions */
body.swal2-shown .swal2-actions {
    gap: var(--space-sm) !important;
}

body.swal2-shown .swal2-confirm {
    background: var(--brand) !important;
    color: #fff !important;
    border-radius: var(--radius-md) !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
}

body.swal2-shown .swal2-cancel,
body.swal2-shown .swal2-deny {
    background: var(--surface-3) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   17. INDEX PAGE PRE-BUY GALLERY FIX (Legacy Overrides)
   ========================================================================== */
#detail,
#portfolio,
#shopping-cart {
    padding: var(--space-xl) var(--space-md);
    margin: 0 auto;
    max-width: 1200px;
}

/* ==========================================================================
   17.1 INDIVIDUAL PRE-BUY GALLERY (.det_album & components)
   ========================================================================== */
section#detail.features-list,
body #detail {
    background: var(--surface-0) !important;
    background-color: var(--surface-0) !important;
    color: var(--text-primary) !important;
}

#detail .container-new,
#detail .combos {
    background: transparent !important;
    color: var(--text-primary) !important;
}

/* ==========================================================================
   17.2 NEO-GLASSMORPHISM PACKAGE CHOOSERS (.custom-choice)
   ========================================================================== */

/* Force center alignment for the package grid */
#detail .container-new>.row.gutter-1 {
    justify-content: center !important;
}

.custom-choice {
    position: relative;
    background: var(--surface-1) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-xl) !important;
    padding-left: 3.5rem !important;
    /* Make room for the radio indicator */
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: block;
}

.custom-choice:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--brand) !important;
}

/* Selected state triggered by JS */
.custom-choice.selected {
    border-color: var(--brand) !important;
    background: var(--brand-light) !important;
    box-shadow: var(--shadow-brand) !important;
}

/* Hide native radio strictly */
.custom-choice .custom-control-input {
    position: absolute !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* Override native injected Bootstrap text classes */
.custom-choice label.text-dark {
    color: var(--text-primary) !important;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.custom-choice .text-muted {
    color: var(--text-secondary) !important;
}

/* Vertical Flow for Title and Price */
.custom-choice .d-flex.justify-content-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: var(--space-md) !important;
    gap: var(--space-xs);
}

.custom-choice .eyebrow {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
}

.custom-choice .eyebrow span {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--brand) !important;
    display: block;
    margin-top: 4px;
}

/* Feature Bullets Recreated */
.custom-choice ul.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.custom-choice ul.plan-features li {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.custom-choice ul.plan-features li::before {
    content: "✦";
    color: var(--brand);
    font-size: 0.8rem;
}

/* Custom Interactive Radio Indicator */
.custom-choice .choice-indicator {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    /* Color visible para estado inactivo */
    background: var(--surface-2);
    /* Fondo suave */
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Checked state styles (keep for fallback/standard radio behavior) */
.custom-choice .custom-control-input:checked~.choice-indicator,
.custom-choice.selected .choice-indicator {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.custom-choice .custom-control-input:checked~.choice-indicator::after,
.custom-choice.selected .choice-indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}


#detail .det_album {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* Force Bootstrap columns injected by backend to behave like CSS Grid cells */
#detail .det_album>div,
#detail .det_album>.col-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#detail .product {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    height: 100%;
}

#detail .product-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

#detail .product-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: flex-end;
}

#detail .product-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs) var(--space-sm);
    background: var(--success);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: var(--text-sm);
}

/* ==========================================================================
   17.2 ALBUMS PRE-BUY GALLERY (#appshots)
   ========================================================================== */
#appshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

#appshots>div:not(.shot),
#appshots>.row {
    display: contents !important;
}

#appshots>div>.shot,
#appshots>.shot {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#appshots .shot {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: block;
}

#appshots img.img-thumbnail {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

#appshots img.img-thumbnail:hover {
    box-shadow: var(--shadow-lg);
}

#appshots .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto !important;
    margin: 0 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#appshots .shot:hover .center {
    opacity: 1;
}

#appshots .center a {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 48px;
    height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    pointer-events: auto;
}

#appshots .center a i {
    font-size: 1.25rem !important;
}

/* ==========================================================================
   17.3 SHOPPING CART (Inline Glass Component)
   ========================================================================== */
#shopping-cart {
    position: relative !important;
    margin: var(--space-xl) auto !important;
    max-width: 1200px !important;
    background: var(--surface-1) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: var(--space-lg) !important;
    border-radius: var(--radius-lg);
}

#shopping-cart .detalle-carrito {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 1200px;
    margin: 0 auto;
}

#shopping-cart p {
    margin-bottom: var(--space-md);
    font-size: var(--text-md);
    color: var(--text-secondary);
}

#shopping-cart .btn {
    background: var(--brand) !important;
    border: none;
    border-radius: var(--radius-md) !important;
    padding: var(--space-sm) var(--space-xl) !important;
    color: #fff !important;
    font-weight: bold !important;
    min-width: 200px;
    display: inline-block;
}