/* =========================================================
   VELORA THEME — RESPONSIVE CSS
   Mobile-first breakpoint overrides for all components
   ========================================================= */

/* ─── GLOBAL RESPONSIVE ─── */
@media (max-width: 1200px) {
    .hero-headline { font-size: 2.5rem; }
}

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .velora-main-nav { display: none; }
    .velora-hamburger { display: flex; }
    .velora-mobile-bottom-bar { display: flex; }
    body { padding-bottom: 76px !important; } /* room for bottom bar */
    .velora-benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .newsletter-inner { flex-direction: column; gap: 24px; }
    .express-order-layout { grid-template-columns: 1fr; }
    .express-order-summary { position: static; order: -1; }
    .velora-product-gallery-info { grid-template-columns: 1fr; }
    .velora-blog-layout { grid-template-columns: 1fr; }
    .velora-sidebar { display: none; }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch;
    }
    .velora-container {
        padding: 0 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ─── APP-LIKE COMPACT MOBILE TOP HEADER ─── */
    #wpadminbar {
        position: fixed !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .velora-site-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        background: #064e3b !important;
        border-bottom: 1.5px solid rgba(234, 179, 8, 0.3) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
    }
    .header-inner {
        height: 50px !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .velora-logo {
        flex: 0 1 auto !important;
        max-width: calc(100% - 125px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .velora-logo-link {
        display: flex !important;
        align-items: center !important;
        max-width: 100% !important;
    }
    .velora-logo-img {
        max-height: 32px !important;
        max-width: 115px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    .velora-logo-text {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Hide redundant clutter icons from mobile top header */
    .velora-header-actions #nabashakti-skin-toggle,
    .velora-header-actions .velora-account-btn,
    .velora-header-actions .velora-wishlist-toggle {
        display: none !important;
    }

    /* Clean 3-button mobile actions: Search + Cart + Menu */
    .velora-header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 5px !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
    .velora-action-btn {
        width: 34px !important;
        height: 34px !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .velora-action-btn svg {
        width: 17px !important;
        height: 17px !important;
    }
    .velora-cart-count {
        font-size: 0.62rem !important;
        min-width: 15px !important;
        height: 15px !important;
        top: -2px !important;
        right: -2px !important;
        background: #eab308 !important;
        color: #064e3b !important;
    }
    .velora-hamburger {
        display: flex !important;
        width: 34px !important;
        height: 34px !important;
        padding: 7px 6px !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        flex-shrink: 0 !important;
    }
    .velora-hamburger span {
        background: #ffffff !important;
    }

    /* White skin support for mobile top header */
    body.skin-white .velora-site-header {
        background: #ffffff !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
    }
    body.skin-white .velora-logo-text {
        color: #064e3b !important;
    }
    body.skin-white .velora-action-btn {
        background: rgba(0, 0, 0, 0.06) !important;
        color: #064e3b !important;
    }
    body.skin-white .velora-hamburger {
        background: rgba(0, 0, 0, 0.06) !important;
        color: #064e3b !important;
    }
    body.skin-white .velora-hamburger span {
        background: #064e3b !important;
    }

    /* ─── UNIVERSAL 2-COLUMN GRID (ALL PAGES, TOP TO BOTTOM) ─── */
    .velora-product-grid,
    .nabashakti-product-grid,
    .woocommerce .products,
    .woocommerce-page .products,
    ul.products,
    .related.products .products,
    .upsells.products .products,
    .nabashakti-showcase-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        list-style: none !important;
        box-sizing: border-box !important;
    }

    /* ─── ULTRA-ATTRACTIVE 2-COLUMN MOBILE PRODUCT CARD ─── */
    .velora-product-card,
    .nabashakti-product-card,
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        float: none !important;
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        border: 1px solid rgba(22, 163, 74, 0.16) !important;
        overflow: hidden !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
        box-sizing: border-box !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    .product-card-image-wrap,
    .ns-card-image-wrap {
        aspect-ratio: 1 / 1 !important;
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        background: #f8fafc !important;
        border-radius: 13px 13px 0 0 !important;
    }
    .product-card-img,
    .ns-product-img,
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        transition: transform 0.3s ease !important;
    }
    .product-card-badges,
    .ns-card-image-wrap .ns-badge-discount,
    .ns-card-image-wrap .ns-badge-original {
        position: absolute !important;
        top: 6px !important;
        left: 6px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        z-index: 2 !important;
    }
    .velora-badge-sale,
    .ns-badge-discount {
        font-size: 0.64rem !important;
        font-weight: 800 !important;
        padding: 3px 6px !important;
        border-radius: 5px !important;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 5px rgba(220, 38, 38, 0.35) !important;
        letter-spacing: 0.2px !important;
    }
    .velora-badge-new,
    .ns-badge-original {
        font-size: 0.6rem !important;
        font-weight: 700 !important;
        padding: 2px 5px !important;
        border-radius: 5px !important;
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 5px rgba(5, 150, 105, 0.3) !important;
    }
    .product-card-body,
    .ns-card-body {
        padding: 10px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        gap: 4px !important;
        background: #ffffff !important;
    }
    .product-card-rating,
    .ns-rating-stars {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        background: #fffbeb !important;
        border: 1px solid rgba(245, 158, 11, 0.25) !important;
        border-radius: 12px !important;
        padding: 2px 6px !important;
        width: fit-content !important;
        font-size: 0.62rem !important;
        line-height: 1 !important;
        margin-bottom: 2px !important;
    }
    .product-card-rating .stars-gold {
        color: #f59e0b !important;
        font-size: 0.68rem !important;
        letter-spacing: 1px !important;
    }
    .product-card-rating .rating-count {
        color: #92400e !important;
        font-weight: 700 !important;
        font-size: 0.62rem !important;
    }
    .product-card-title,
    .ns-card-title {
        font-size: 0.84rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        line-height: 1.35 !important;
        min-height: 2.3em !important;
        margin: 2px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .product-card-title a,
    .ns-card-title a {
        color: #0f172a !important;
        text-decoration: none !important;
    }
    .product-card-price,
    .ns-card-pricing {
        display: flex !important;
        align-items: baseline !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin: 3px 0 !important;
    }
    .card-price-current,
    .ns-current-price,
    .woocommerce ul.products li.product .price {
        font-size: 1.05rem !important;
        font-weight: 900 !important;
        color: #15803d !important;
        letter-spacing: -0.2px !important;
    }
    .card-price-regular,
    .ns-del-price {
        font-size: 0.74rem !important;
        color: #94a3b8 !important;
        text-decoration: line-through !important;
    }
    .ns-stock-status,
    .ns-card-features {
        display: none !important;
    }
    .product-card-cta,
    .ns-card-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 5px !important;
        margin-top: auto !important;
        padding-top: 6px !important;
        width: 100% !important;
    }
    .card-btn-order,
    .ns-btn-order {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 5px !important;
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
        color: #ffffff !important;
        font-size: 0.82rem !important;
        font-weight: 800 !important;
        height: 36px !important;
        padding: 0 6px !important;
        border-radius: 9px !important;
        text-decoration: none !important;
        box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35) !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }
    .card-btn-order:active,
    .ns-btn-order:active {
        transform: scale(0.97) !important;
    }
    .card-btn-details,
    .ns-btn-details {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        background: #f8fafc !important;
        color: #475569 !important;
        border: 1px solid #e2e8f0 !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        height: 28px !important;
        padding: 0 4px !important;
        border-radius: 7px !important;
        text-decoration: none !important;
    }

    /* Categories, Benefits, Features, Posters & Reviews -> ALL 2 COLUMNS */
    .velora-categories-grid,
    .reassurance-grid,
    .velora-benefits-grid,
    .trust-badges,
    .velora-trust-badges,
    .footer-trust-grid,
    .features-card-grid,
    .reviews-card-grid,
    .poster-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        overflow: visible !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Section padding */
    .velora-section { padding: 32px 0 !important; }
    .velora-section-header { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 18px !important; }
    .velora-section-header h2 { font-size: 1.35rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .velora-footer-upper { padding: 32px 0; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 12px; }
    .footer-payment-methods { justify-content: center; }

    /* Shop toolbar */
    .nabashakti-shop-toolbar {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    .shop-call-order-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }

    /* Mini cart & Mobile drawer */
    .velora-mini-cart { width: 100%; }
    .velora-mobile-drawer { width: 300px; max-width: 85vw; }

    /* WhatsApp floating button */
    .velora-whatsapp-float { bottom: 82px !important; right: 14px !important; width: 46px !important; height: 46px !important; z-index: 99 !important; }

    /* Express Form */
    .express-form-wrapper { padding: 18px 12px; }
    .velora-zone-selector { flex-direction: column; }

    /* Checkout & Account */
    .woocommerce-checkout .col2-set { display: flex; flex-direction: column; }
    .woocommerce-checkout .col-1, .woocommerce-checkout .col-2 { width: 100%; }
    .woocommerce-account .woocommerce { flex-direction: column; }
    .woocommerce-MyAccount-navigation { width: 100%; margin-bottom: 20px; }
}

@media (max-width: 480px) {
    .velora-container {
        padding: 0 6px !important;
    }
    /* STRICTLY KEEP 2-COLUMN GRID ON SMALL SCREENS — NO 1-COLUMN FORCING */
    .velora-product-grid,
    .nabashakti-product-grid,
    .woocommerce .products,
    .woocommerce-page .products,
    ul.products,
    .related.products .products,
    .upsells.products .products,
    .nabashakti-showcase-grid,
    .velora-categories-grid,
    .reassurance-grid,
    .velora-benefits-grid,
    .features-card-grid,
    .reviews-card-grid,
    .poster-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .announcement-text { font-size: 0.72rem; }
    .footer-trust-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
}

/* ─── ANIMATION CLASSES ─── */
.velora-will-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.velora-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for grid children */
.velora-product-grid .velora-will-animate:nth-child(1) { transition-delay: 0.0s; }
.velora-product-grid .velora-will-animate:nth-child(2) { transition-delay: 0.08s; }
.velora-product-grid .velora-will-animate:nth-child(3) { transition-delay: 0.16s; }
.velora-product-grid .velora-will-animate:nth-child(4) { transition-delay: 0.24s; }
.velora-product-grid .velora-will-animate:nth-child(n+5) { transition-delay: 0.32s; }

/* ─── PRINT STYLES ─── */
@media print {
    .velora-site-header,
    .velora-announcement-bar,
    .velora-mobile-bottom-bar,
    .velora-mini-cart,
    .velora-mobile-drawer,
    .velora-whatsapp-float,
    .velora-express-order-section,
    .related.products { display: none !important; }
    body { padding-bottom: 0 !important; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .velora-will-animate { opacity: 1; transform: none; }
}

/* ─── HIGH CONTRAST MODE ─── */
@media (forced-colors: active) {
    .velora-btn-primary, .velora-btn-secondary { border: 2px solid ButtonText; }
    .velora-badge { border: 1px solid ButtonText; }
}

/* ─── DARK MODE (if user prefers) ─── */
@media (prefers-color-scheme: dark) {
    :root {
        --velora-bg: #0f172a;
        --velora-bg-alt: #1e293b;
        --velora-surface: #1e293b;
        --velora-border: rgba(255,255,255,0.08);
        --velora-border-light: rgba(255,255,255,0.04);
        --velora-text: #e2e8f0;
        --velora-text-muted: #94a3b8;
        --velora-text-light: #64748b;
    }
    .velora-site-header { background: linear-gradient(180deg, #064e3b 0%, #043f30 100%); border-color: rgba(255,255,255,0.08); }
    .velora-product-card, .express-form-wrapper, .velora-cat-card { background: #1e293b; border-color: rgba(255,255,255,0.08); }
    .velora-mini-cart, .velora-mobile-drawer { background: #1e293b; }
    .mini-cart-footer { background: #0f172a; }
    .velora-hero { background: linear-gradient(135deg, #064e3b 0%, #022c22 100%); }
    .hero-img-placeholder { background: linear-gradient(135deg, #064e3b, #043c2e); }
    .velora-newsletter-section { background: rgba(22, 163, 74, 0.1); }
    .newsletter-input-wrap input { background: #1e293b; color: #e2e8f0; border-color: rgba(255,255,255,0.1); }
    .velora-field-group input, .velora-field-group textarea { background: #1e293b; color: #e2e8f0; border-color: rgba(255,255,255,0.1); }
}
