:root {
    --primary-color: #ff004f;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden; /* Prevent body scroll, feed-container will scroll */
}

/* Feed Container (Snap Scrolling) */
.feed-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    overflow-x: hidden; /* Evita cualquier desplazamiento o rebote lateral */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.feed-container::-webkit-scrollbar {
    display: none;
}

/* Individual Product View */
.product-view {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    overflow: clip; /* Crop images without creating a nested scrolling surface. */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(0,0,0,0.4);
}

/* Wrapper for perfect hotspot alignment */
.product-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100vw; /* Default, overridden by JS */
    height: 100vh; /* Default, overridden by JS */
    z-index: 2; /* Bring on top of background blur */
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill; /* Wrapper aspect ratio is controlled by JS, so fill is safe */
}

/* Overlay UI Elements */
.header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    pointer-events: none; /* Let clicks pass through empty space */
}

.logo {
    width: 50%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    pointer-events: auto;
}

.search-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.search-btn:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.6);
}
.search-btn.is-fav {
    color: #ff4d6a;
    border-color: #ff4d6a;
    background: rgba(255, 77, 106, 0.12);
}

.cart-icon-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: none; /* Controlled dynamically by cart.js */
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    text-decoration: none;
}
.cart-icon-wrapper:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.6);
    color: white;
}
.cart-bubble {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color, #ff004f);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.cart-bubble.bump {
    animation: bump 0.4s ease-out;
}
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.sidebar-buttons {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.round-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.round-btn:hover { transform: scale(1.1); color: white;}
.round-btn { background-color: var(--primary-color); }

.bottom-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center everything horizontally */
    gap: 15px;
    z-index: 100;
    pointer-events: none;
}

/* Title and dots (centered above actions) */
.product-info-overlay {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center title and dots horizontally */
    text-align: center;
    pointer-events: auto;
}

.glowing-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.6);
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.3px;
}

.dots-container {
    display: flex;
    gap: 8px;
    justify-content: center; /* Center dots horizontally */
    pointer-events: auto;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s;
}
.dot.active { background-color: white; }

/* Bottom bar container */
.bottom-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.qr-btn {
    background: rgba(11, 11, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 12px;
    width: 54px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s, background-color 0.2s;
}
.qr-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
}

.wa-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.74rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 40%, transparent);
    z-index: 5;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.pulsing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   color-mix(in srgb, var(--primary-color) 70%, transparent); }
    70%  { transform: scale(1.05); box-shadow: 0 0 0 15px color-mix(in srgb, var(--primary-color) 0%,  transparent); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   color-mix(in srgb, var(--primary-color) 0%,  transparent); }
}

.scroll-indicator {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    color: white;
    font-size: 1.8rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    z-index: 10;
    text-align: center;
}

.scroll-indicator:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.bouncing {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Modals */
.fullscreen-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

/* Search modal: align to top so keyboard doesn't cover categories on mobile */
#search-modal {
    align-items: flex-start;
    padding-top: 60px;
}

#search-modal .modal-content {
    margin-top: 0;
}

.fullscreen-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    background: none; border: none;
    color: white; font-size: 2rem; cursor: pointer;
}

.modal-content {
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 30px;
    border-radius: 15px;
    color: white;
}

#search-input {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 30px;
    border: none;
    outline: none;
}

.qr-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    margin: 20px 0;
}

/* Hotspots */
.hotspot-pin {
    position: absolute;
    width: 30px; height: 30px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    transform: translate(-50%, -50%);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.hotspot-pin:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.6);
}

.hotspot-popup {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: max-content;
    max-width: 250px;
    transform: translate(-50%, -120%); /* Above the pin */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 50;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.hotspot-popup.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .glowing-text { font-size: 1.4rem; }
    .product-info-overlay { max-width: 75%; }
    .wa-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        gap: 6px;
    }
    .qr-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Premium blurred background layer */
.product-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.4);
    transform: scale(1.1); /* Prevents blurred white edges */
    z-index: 1;
    pointer-events: none;
    transition: background-image 0.5s ease-in-out;
}

/* Rotate Device Overlay */
.rotate-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* Show on narrow height screens in landscape orientation (mobile landscape) */
@media (max-height: 520px) and (max-width: 950px) and (orientation: landscape) {
    .rotate-overlay {
        display: flex;
    }
}

.rotate-content {
    font-size: 1.2rem;
    padding: 20px;
}

.rotate-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: rotatePhone 2s infinite ease-in-out;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

/* Glassmorphism Category Pills inside Search Modal */
.categories-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
    width: 100%;
}

/* Custom Scrollbar for categories container */
.categories-list-container::-webkit-scrollbar {
    width: 6px;
}
.categories-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.categories-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.categories-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.category-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-pill i {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.category-pill:hover i {
    opacity: 1;
}

.category-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.category-pill.active i {
    opacity: 1;
}

/* --- PREMIUM MENU & FEED FAV & PRICE BADGES (NUEVO) --- */
.menu-fab {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(11,11,15,0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid var(--primary-color);
}
.menu-fab:hover { background: var(--primary-color); border-color: var(--primary-color); }
.menu-fab i { font-size: 1.15rem; }

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-panel {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(280px, 80vw);
    background: #0b0b0f;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.menu-overlay.open .menu-panel { transform: translateX(0); }

.menu-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.menu-panel-header img { height: 44px; object-fit: contain; }
.menu-close-btn {
    background: none; border: none; color: white;
    font-size: 1.3rem; cursor: pointer; padding: 4px 8px;
    transition: color 0.2s;
}
.menu-close-btn:hover { color: var(--primary-color); }

.menu-items { flex: 1; padding: 16px 0; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    position: relative;
}
.menu-item:hover { color: var(--primary-color); padding-left: 28px; }
.menu-item i { width: 20px; text-align: center; font-size: 1rem; }
.menu-item-badge {
    margin-left: auto;
    background: var(--primary-color);
    color: #fff;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
}
.menu-item-badge.visible { display: flex; }

.menu-item-badge.cart-bubble {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
    box-shadow: none;
}

.menu-panel-footer {
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    color: #a2a3b7;
    letter-spacing: 0.1em;
    text-align: center;
}

.feed-fav-btn {
    display: none !important; /* Moved to header - see #header-fav-btn */
}

.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    white-space: nowrap;
}
.price-badge:hover, .price-badge:active {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,0,79,0.5);
}

#cart-toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20,20,28,0.95);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}
#cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.cart-bubble.bump { animation: bump 0.35s ease; }

/* Desktop Layout (min-width: 769px) */
@media (min-width: 769px) {
    /* Main structures */
    .product-view {
        display: flex !important;
        flex-direction: row !important;
        background-color: #08080c;
    }
    
    .product-image-column {
        width: 60% !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden;
    }
    
    /* Premium info panel on the right */
    .desktop-info-panel {
        width: 40% !important;
        height: 100vh !important;
        background: rgba(11, 11, 15, 0.94);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        padding: 60px 45px;
        box-sizing: border-box;
        overflow-y: auto;
        z-index: 10;
        color: white;
        position: relative;
    }
    
    /* Hide mobile-only elements on desktop */
    .bottom-overlay {
        display: none !important;
    }
    
    .feed-fav-btn {
        display: none !important;
    }
    
    /* Heart is shown in desktop panel instead, hide it from header */
    #header-fav-btn {
        display: none !important;
    }
    
    /* Header constraints on desktop */
    .header {
        right: calc(40% + 30px); /* Keep inside the image column area */
        left: 30px;
        top: 30px;
    }
    
    .menu-fab {
        left: 30px;
    }

    /* Desktop Info Panel Elements styling */
    .desktop-info-tag {
        align-self: flex-start;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
        color: var(--primary-color);
    }
    
    .desktop-info-title {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 8px;
        color: #fff;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .desktop-info-code {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.4);
        margin-bottom: 25px;
        display: inline-block;
        font-family: 'Inter', sans-serif;
        letter-spacing: 0.5px;
    }
    
    .desktop-info-divider {
        height: 1px;
        background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
        margin-bottom: 25px;
        border: none;
    }
    
    .desktop-info-description {
        font-size: 1.05rem;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 35px;
        max-height: 250px;
        overflow-y: auto;
        padding-right: 10px;
    }
    
    .desktop-info-description::-webkit-scrollbar {
        width: 4px;
    }
    .desktop-info-description::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.15);
        border-radius: 2px;
    }

    /* Actions and Buttons styling */
    .desktop-price-section {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .desktop-price-val {
        font-size: 2rem;
        font-weight: 800;
        color: #fff;
    }
    
    .desktop-cart-btn {
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 12px 28px;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.2s ease;
        box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 40%, transparent);
    }
    
    .desktop-cart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 60%, transparent);
    }
    
    .desktop-actions-row {
        display: flex;
        gap: 15px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }
    
    .desktop-wa-btn {
        flex: 1;
        min-width: 200px;
        background: var(--primary-color);
        color: white;
        padding: 14px 24px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 30%, transparent);
        transition: all 0.2s ease;
    }
    .desktop-wa-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 50%, transparent);
    }
    
    .desktop-round-action {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.15);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .desktop-round-action:hover {
        background: rgba(255,255,255,0.15);
        border-color: rgba(255,255,255,0.3);
        transform: scale(1.05);
    }
    
    .desktop-round-action.is-fav {
        color: #ff4d6a;
        border-color: #ff4d6a;
        background: rgba(255, 77, 106, 0.1);
    }
    
    /* Navigation dots and slider buttons inside desktop panel */
    .desktop-slider-controls {
        margin-top: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 30px;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    
    .desktop-nav-arrow {
        background: none;
        border: none;
        color: rgba(255,255,255,0.6);
        font-size: 1.2rem;
        cursor: pointer;
        transition: color 0.2s, transform 0.2s;
        padding: 10px;
    }
    .desktop-nav-arrow:hover {
        color: white;
        transform: scale(1.15);
    }
}

/* Hide desktop info panel on mobile */
@media (max-width: 768px) {
    .desktop-info-panel {
        display: none !important;
    }
}

/* Touch feed: controls within thumb reach, below the consultation row. */
.scroll-indicator { background: transparent; border: 0; }
@media (max-width: 768px) {
    .feed-container, .product-view { height: 100dvh; }
    .feed-container { scroll-behavior: auto; overscroll-behavior-y: contain; }
    .product-view { scroll-snap-stop: always; }
    .menu-fab { left: auto; right: max(16px, env(safe-area-inset-right)); width: 48px; height: 48px; }
    .menu-panel { left: auto; right: 0; transform: translateX(100%); }
    .scroll-indicator { align-self: flex-end; width: 48px; height: 48px; border-radius: 50%; background: rgba(11,11,15,.7); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .bouncing { animation: none; }
}
@media (max-width: 768px) {
    .bottom-overlay { bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); }
}

/* Matching thumb controls, grouped on the right on mobile. */
@media (max-width: 768px) {
    .menu-fab, .scroll-indicator, #header-fav-btn, .qr-btn, #photo-next-btn, #feed-search-btn {
        width: 48px; height: 48px;
        background: rgba(120, 125, 135, .24);
        border: 1px solid rgba(255, 255, 255, .28);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 2px 8px rgba(0,0,0,.12);
        color: #fff; font-size: 1.15rem;
    }
    .scroll-indicator {
        position: fixed; top: calc(50% + 34px);
        right: max(16px, env(safe-area-inset-right)); left: auto;
        transform: none;
    }
    #header-fav-btn {
        position: fixed; top: calc(50% - 82px);
        right: max(16px, env(safe-area-inset-right)); left: auto;
        transform: none;
    }
    .qr-btn {
        position: fixed; top: calc(50% - 140px);
        right: max(16px, env(safe-area-inset-right)); left: auto; bottom: auto;
        border-radius: 50%; transform: none;
        display: flex; align-items: center; justify-content: center;
    }
    #feed-search-btn {
        position: fixed; top: calc(50% - 198px);
        right: max(16px, env(safe-area-inset-right)); left: auto;
        border-radius: 50%; transform: none;
        display: flex; align-items: center; justify-content: center;
    }
    #feed-search-btn:hover { background: rgba(120,125,135,.35); transform: none; }
    #feed-search-btn:focus-visible { outline: 2px solid white; outline-offset: 3px; }
    .bottom-bar { gap: 12px; }
    #price-badge-container { flex: 0 0 auto; }
    #feed-price-badge, #wa-btn {
        height: 44px; box-sizing: border-box; padding: 0 16px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 22px; line-height: 1; transform: none;
    }
    #wa-btn { margin-left: auto; flex: 0 0 auto; animation-name: consultation-glow; }
    #feed-price-badge:hover, #feed-price-badge:active { transform: none; }
    #photo-next-btn {
        position: fixed; top: calc(50% + 34px);
        right: calc(max(16px, env(safe-area-inset-right)) + 58px);
        border-radius: 50%; padding: 0; cursor: pointer; pointer-events: auto;
        display: flex; align-items: center; justify-content: center;
    }
    .qr-btn:hover, #photo-next-btn:hover { background: rgba(120,125,135,.35); transform: none; }
    #photo-next-btn:focus-visible, .qr-btn:focus-visible { outline: 2px solid white; outline-offset: 3px; }
    #header-fav-btn:hover { background: rgba(120,125,135,.35); transform: none; }
    #header-fav-btn.is-fav { color: #ff4d6a; border-color: #ff4d6a; }
    .menu-fab:hover, .scroll-indicator:hover { background: rgba(120,125,135,.35); border-color: rgba(255,255,255,.4); transform: none; }
    .menu-fab:hover { transform: translateY(-50%); }
    .scroll-indicator:disabled { opacity: .5; cursor: default; }
    #feed-end-label { position: fixed; top: calc(50% + 88px); right: max(16px, env(safe-area-inset-right)); padding: 5px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: white; font-size: .75rem; }
}

/* Small visible dots with generous, non-overlapping touch targets. */
#image-dots { gap: 0; flex-wrap: wrap; max-width: 100%; }
.photo-dot { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.photo-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.photo-dot.active::after { background: white; }
.photo-dot:focus-visible { outline: 2px solid white; outline-offset: -4px; border-radius: 10px; }
#photo-swipe-hint { color: white; background: var(--primary-color); font-size: .8rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5); pointer-events: auto; display: flex; align-items: center; gap: 4px; padding-left: 14px; border-radius: 14px; box-shadow: 0 3px 12px rgba(0,0,0,.2); max-width: 100%; }
#photo-swipe-hint button { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 14px; color: inherit; background: transparent; font-size: 1.5rem; cursor: pointer; }
#photo-swipe-hint button:focus-visible { outline: 2px solid white; outline-offset: -4px; }
#photo-swipe-hint[hidden] { display: none; }
@media (min-width: 769px) { #photo-swipe-hint { display: none; } }

/* Photo guidance enters below the header, leaving thumb controls accessible. */
@media (max-width: 768px) {
    #photo-swipe-hint {
        position: fixed;
        top: calc(env(safe-area-inset-top) + clamp(110px, 20svh, 160px));
        left: 16px; right: 16px;
        width: auto; max-width: 420px; margin-inline: auto;
        padding: 10px 4px 10px 16px; gap: 8px;
        font-size: .85rem; line-height: 1.5;
        align-items: flex-start;
        animation: photo-hint-enter .35s ease-out both;
    }
    #photo-swipe-hint > span { flex: 1; }
    #image-dots.hint-active .photo-dot::after { animation: photo-dot-pulse 1.6s ease-in-out infinite; }
    #image-dots.hint-active .photo-dot:nth-child(2n)::after { animation-delay: .2s; }
}

@keyframes consultation-glow {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 70%, transparent); }
    70% { box-shadow: 0 0 0 15px color-mix(in srgb, var(--primary-color) 0%, transparent); }
}

#photo-next-btn[hidden] { display: none; }
@media (min-width: 769px) { #photo-next-btn { display: none; } }
@keyframes photo-hint-enter { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-dot-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(255,255,255,.15); } }
@media (prefers-reduced-motion: reduce) {
    #photo-swipe-hint, #image-dots.hint-active .photo-dot::after { animation: none; }
    #image-dots.hint-active { outline: 1px solid rgba(255,255,255,.5); border-radius: 12px; }
}
