/* ==========================================================================
   Vanity Theme - Responsive Stylesheet
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; line-height: 1.15; }
    .hero-subtitle { font-size: 1rem; padding: 0 1rem; }
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    .mobile-nav {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(24px);
        z-index: 100;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .mobile-nav.active { opacity: 1; visibility: visible; }
    .mobile-nav a { font-size: 1.5rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: all 0.3s; }
    .mobile-nav a:hover { color: var(--vanity-primary); transform: scale(1.05); }

    .search-container { margin: 0 1rem; }
    .product-card-resources { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }

    .dashboard-sidebar { display: none; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .dashboard-stats .stat-card { padding: 1rem; }
    .dashboard-stats .stat-value { font-size: 1.25rem; }

    /* Reduce heavy animations on mobile */
    .orb { filter: blur(80px); opacity: 0.5; }
    #particles { display: none; }

    /* Cart mobile fixes */
    .cart-item-actions { flex-wrap: wrap; }

    /* Checkout page mobile */
    .checkout-grid { grid-template-columns: 1fr !important; }
    .checkout-grid > div:first-child { order: 2; }
    .checkout-grid > div:last-child { order: 1; }

    /* Category page mobile */
    .category-sidebar { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.875rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .vanity-btn-primary,
    .hero-cta .vanity-btn-secondary { width: 100%; justify-content: center; }

    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .category-card { padding: 1rem; }
    .category-icon { width: 3rem; height: 3rem; }

    .stats-row { flex-direction: column; gap: 1rem; }
    .stats-row .stat-item { width: 100%; }

    .page-header { padding: 2rem 0; }
    .page-title { font-size: 1.75rem; }

    .product-card-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .product-card-pricing { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .product-card-pricing .vanity-btn-primary { width: 100%; justify-content: center; }

    .filter-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.5rem;
    }
    .filter-scroll::-webkit-scrollbar { display: none; }
    .filter-scroll .filter-item { flex-shrink: 0; }

    /* Cart mobile small */
    .cart-item-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Product category page mobile */
    .product-grid-categories {
        grid-template-columns: 1fr !important;
    }

    /* Footer mobile */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    footer .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
}

@media (min-width: 1600px) {
    .max-w-7xl { max-width: 90rem; }
    .hero-title { font-size: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .animate-float, .animate-float-delayed, .animate-float-slow,
    .orb, #particles { animation: none !important; }
    .stagger-item { opacity: 1; transform: none; }
    [data-tilt] { transform: none !important; }
}

@media print {
    body { background: white; color: black; }
    .bg-vanity-bg, .vanity-surface, .glass, nav, footer, .fixed, .orb, #particles { display: none !important; }
    .text-white, .text-vanity-text { color: black !important; }
    a { text-decoration: underline; }
}
