/* css/responsive.css - Premium Mobile Overrides */

@media (max-width: 768px) {
    /* --- Global Elements --- */
    :root {
        --font-hero: 2.2rem;
        --font-xlarge: 1.6rem;
        --spacing-lg: 1.2rem;
        --spacing-xl: 1.8rem;
    }

    .container {
        padding: 0 20px;
    }

    /* --- Header & Navigation (Screen Optimizations) --- */
    header {
        padding: 10px 0;
        z-index: 2000;
        background: #ffffff;
        border-bottom: 1px solid #f1f5f9;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    }

    .header-top {
        display: grid;
        grid-template-areas: 
            "logo hamburger"
            "actions actions"
            "search search";
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: center;
    }

    .logo {
        grid-area: logo;
        justify-self: start;
    }
    
    .logo a {
        font-size: 1.4rem;
    }

    .hamburger-btn {
        grid-area: hamburger;
        justify-self: end;
        display: flex;
        z-index: 3000;
    }

    .header-actions {
        grid-area: actions;
        justify-content: center;
        width: 100%;
        gap: 12px;
        margin-top: 5px;
    }

    /* Default Mobile Header Buttons (Light Themes - Shop, Contact, etc.) */
    .header-actions .btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.85rem;
        min-height: 42px;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: none !important;
    }

    /* Home Page Hero Header (Dark Themes) */
    body.home-page header:not(.scrolled) .header-actions .btn {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        backdrop-filter: blur(8px);
    }

    .header-actions .btn:active {
        opacity: 0.8;
        transform: scale(0.98);
    }

    .search-form {
        grid-area: search;
        width: 100% !important;
        margin-top: 0;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    /* Fix Navigation Drawer (Side Bar) Transparency */
    .main-nav {
        background: #FFFFFF !important; /* Solid background for mobile drawer */
        position: fixed !important;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        z-index: 2500 !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
    }

    .main-nav.nav-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links a {
        padding: 18px 0 !important;
        font-size: 1.1rem !important;
        color: #1e293b !important;
        width: 100%;
        justify-content: flex-start !important;
    }

    /* Home Page Transparent Header Overrides */
    body.home-page header:not(.scrolled) {
        position: absolute;
        background: rgba(0,0,0,0.1);
        backdrop-filter: blur(5px);
    }

    /* --- Hero Section Mobile --- */
    .hero-section {
        height: auto;
        min-height: 85vh;
        padding-top: 240px; /* Increased to clear the stacked mobile header */
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.6rem;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 35px;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-cta, .hero-secondary {
        width: 100%;
        padding: 18px 25px;
        font-size: 1.1rem;
    }

    /* --- Features Section --- */
    .features {
        padding: 40px 0;
    }

    .feature-item {
        padding: 25px;
        margin-bottom: 15px;
    }

    /* --- Grid & Product Cards --- */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .card {
        padding: 15px;
    }

    .card img {
        height: 250px;
    }

    /* --- Forms (Standard & Modern) --- */
    .modern-form-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    /* --- Contact Page Mobile Polish --- */
    body .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-top: 0 !important;
        padding-top: 40px !important;
        width: 100% !important;
    }

    body .contact-info-section, 
    body .contact-form-section {
        width: 100% !important;
        display: block !important;
    }

    .contact-header {
        padding: 50px 0 !important;
        border-radius: 0 0 40px 40px;
        text-align: center;
    }

    .contact-title {
        font-size: 2rem !important;
    }

    .contact-subtitle {
        font-size: 1rem !important;
    }

    .modern-form-group label {
        font-size: 0.9rem;
    }

    .modern-input, .modern-select, .modern-textarea {
        padding: 12px !important;
        font-size: 1rem !important;
    }

    /* Adjusting info card for mobile stack */
    .contact-info-card {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .contact-method {
        margin-bottom: 25px !important;
    }

    /* --- Footer Mobile --- */
    footer {
        padding-top: 50px;
        margin-top: 50px;
    }

    .footer-main {
        grid-template-columns: 1fr !important;
        gap: 35px;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .logo a {
        font-size: 1.4rem;
    }

    .header-actions .btn {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
}
