﻿/* Mobile-first refinement layer for the Vapelocker rose-gold theme. */

:root {
    --mob-bottom-nav-h: 62px;
    --mob-radius: 16px;
    --mob-radius-sm: 12px;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.fade-lift {
    animation: vapelockerFadeLift 0.45s ease both;
}

@keyframes vapelockerFadeLift {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-selling-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.top-selling-card img,
.product-card .card-img-top,
.related-card img,
.brand-tile img {
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #201419 0%, #120c10 100%);
}

.top-selling-card img {
    height: 260px;
}

.top-selling-info {
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
}

.top-selling-price,
.product-price {
    color: var(--vh-accent-strong);
    font-weight: 800;
}

.top-selling-name {
    color: var(--vh-text);
    font-weight: 600;
}

.brand-duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.brand-tile {
    padding: 1rem;
    text-align: center;
}

.brand-tile img {
    height: 220px;
    border-radius: 1rem;
    margin-bottom: 0.9rem;
}

.brand-tile-footer {
    font-weight: 700;
    color: var(--vh-text);
}

.faq-grid,
.steps-grid {
    display: grid;
    gap: 1rem;
}

.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.filter-sidebar {
    position: sticky;
    top: 110px;
}

.product-main-img {
    width: 100%;
    max-height: 540px;
    object-fit: contain;
    background: linear-gradient(135deg, #24171d 0%, #120d11 100%);
    border-radius: 1.4rem;
}

.gallery-wrap,
.product-gallery-shell {
    border-radius: 1.5rem;
    overflow: hidden;
}

.product-add-row,
.product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.variant-btn,
.option-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px !important;
}

@media (max-width: 1199px) {
    .top-selling-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .top-selling-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-sidebar {
        position: static;
        top: auto;
    }

    .cart-summary {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(var(--mob-bottom-nav-h) + 12px);
    }

    .hero-stat-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .hero-stat {
        padding: 0.75rem 0.5rem;
        text-align: center;
    }

    .hero-stat strong {
        font-size: 1rem;
    }

    .hero-stat span {
        font-size: 0.72rem;
    }

    .top-selling-grid,
    .faq-grid,
    .steps-grid,
    .brand-duo {
        grid-template-columns: 1fr;
    }

    .top-selling-card img,
    .brand-tile img,
    .product-card .card-img-top,
    .related-card img {
        height: 220px;
    }

    .product-add-row,
    .product-actions,
    .cta-section .d-flex,
    .home-hero .d-flex {
        flex-direction: column;
    }

    .product-add-row .btn,
    .product-actions .btn,
    .cta-section .btn,
    .home-hero .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .top-selling-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .top-selling-card,
    .product-card {
        border-radius: var(--mob-radius);
    }

    .top-selling-card img,
    .product-card .card-img-top {
        height: 150px;
        object-fit: contain;
        padding: 0.6rem;
    }

    .top-selling-info,
    .product-card .card-body {
        padding: 0.75rem;
    }

    .top-selling-name,
    .product-card .card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .top-selling-price,
    .product-price {
        font-size: 0.95rem;
    }

    .category-img {
        height: 200px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
    }
}
