/* ============================================
   ELVIS ALPHA WEAR LLC - Responsive Styles
   ============================================ */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }
    
    .category-card.category-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
    
    .values-grid,
    .stats-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-layout {
        grid-template-columns: 1fr 350px;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr 380px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        padding: calc(var(--header-height) + var(--announcement-height) + var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
        transform: translateX(-100%);
        transition: var(--transition-base);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--color-off-white);
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md) 0;
        font-size: 1.2rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .has-dropdown .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0 0 var(--spacing-md) var(--spacing-md);
        display: none;
    }
    
    .has-dropdown.open .dropdown {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Instagram */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-image {
        order: -1;
        max-height: 400px;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* FAQ */
    .faq-wrapper {
        grid-template-columns: 1fr;
    }
    
    .faq-categories {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }
    
    .faq-cat-btn {
        flex: 1;
        min-width: 150px;
        text-align: center;
    }
    
    /* Shop */
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        z-index: 2000;
        padding: var(--spacing-xl);
        transform: translateX(-100%);
        transition: var(--transition-base);
        max-height: 100vh;
    }
    
    .shop-sidebar.active {
        transform: translateX(0);
    }
    
    .filter-close {
        display: block;
    }
    
    .filter-toggle {
        display: flex;
    }
    
    /* Cart */
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-header-row {
        display: none;
    }
    
    .cart-items .cart-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .cart-items .cart-item-product {
        margin-bottom: var(--spacing-sm);
    }
    
    .cart-items .cart-item-price,
    .cart-items .cart-item-qty,
    .cart-items .cart-item-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-items .cart-item-price::before { content: 'Price: '; color: var(--color-gray); }
    .cart-items .cart-item-total::before { content: 'Total: '; color: var(--color-gray); }
    
    /* Checkout */
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
    
    /* Product Detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .product-gallery {
        position: static;
    }
    
    /* Banner */
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --announcement-height: 35px;
        --spacing-4xl: 4rem;
        --spacing-3xl: 3rem;
    }
    
    .announcement-bar {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    /* Logo */
    .logo-text {
        display: none;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-3xl) 0;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .product-info {
        padding: var(--spacing-sm);
    }
    
    .product-name {
        font-size: 0.85rem;
    }
    
    .product-price .current {
        font-size: 0.95rem;
    }
    
    .product-actions {
        display: none;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .category-card {
        height: 200px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        margin: 0;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    /* Instagram */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    /* Page Header */
    .page-header {
        padding-top: calc(var(--header-height) + var(--announcement-height) + var(--spacing-xl));
    }
    
    .page-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    /* Values & Stats */
    .values-grid,
    .stats-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }
    
    /* FAQ */
    .faq-cat-btn {
        min-width: 100%;
        flex: auto;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: var(--spacing-md) 0;
    }
    
    /* Cart Sidebar */
    .cart-sidebar {
        width: 100%;
    }
    
    /* Cart Page */
    .cart-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cart-actions .btn {
        width: 100%;
    }
    
    .promo-code {
        flex-direction: column;
    }
    
    /* Product Detail */
    .product-thumbnails {
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
    }
    
    .product-thumb {
        flex-shrink: 0;
    }
    
    .add-to-cart-section {
        flex-direction: column;
    }
    
    .add-to-cart-section .btn-primary {
        order: 1;
    }
    
    .quantity-selector {
        order: 2;
        justify-content: center;
    }
    
    .wishlist-btn {
        order: 3;
        width: 100%;
    }
    
    /* Checkout */
    .payment-method {
        flex-wrap: wrap;
    }
    
    /* Map */
    .map-section {
        height: 300px;
    }
    
    .map-overlay-content {
        margin: var(--spacing-md);
        padding: var(--spacing-lg);
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        display: flex;
        flex-direction: row;
    }
    
    .product-image {
        width: 120px;
        flex-shrink: 0;
        aspect-ratio: auto;
        height: 150px;
    }
    
    .product-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-image {
        max-width: 200px;
        margin: 0 auto var(--spacing-md);
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: calc(var(--header-height) + var(--announcement-height));
    }
    
    .hero-content {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and lines */
    .product-card,
    .category-card,
    .feature-card {
        border: 0.5px solid rgba(0,0,0,0.05);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-line {
        animation: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --color-black: #ffffff;
        --color-charcoal: #f5f5f5;
        --color-dark-gray: #e0e0e0;
        --color-gray: #b5b5b5;
        --color-light-gray: #8a8a8a;
        --color-silver: #4a4a4a;
        --color-off-white: #1a1a1a;
        --color-white: #0a0a0a;
    }
    */
}

/* Print Styles */
@media print {
    .header,
    .announcement-bar,
    .footer,
    .cart-sidebar,
    .cart-overlay,
    .hero-scroll,
    .newsletter,
    .instagram {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero {
        min-height: auto;
        padding: 20pt 0;
    }
    
    .hero-bg,
    .hero-overlay {
        display: none;
    }
    
    .hero-content {
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    .btn {
        border: 1pt solid #000;
        background: transparent !important;
        color: #000 !important;
    }
}

