/* Awuraa E-commerce - Responsive Styles */

* {
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    overflow-x: hidden;
}

a,
button,
input,
select,
textarea {
    min-height: 44px;
}

@media (max-width: 1200px) {
    .container {
        max-width: 1040px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }

    .main-nav {
        display: none;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    .desktop-cta {
        display: none;
    }

    .dropdown-container {
        margin-left: auto;
    }

    .logo-image {
        height: 50px;
    }

    .hamburger-button {
        width: 40px;
        height: 40px;
        gap: 6px;
    }

    .hamburger-button span {
        height: 3px;
    }

    .hero-content,
    .about-grid,
    .contact-grid,
    .product-layout,
    .shop-layout,
    .cart-layout,
    .checkout-layout,
    .account-layout,
    .auth-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons,
    .cta-buttons {
        justify-content: center;
    }

    .hero-visual,
    .auth-image {
        display: none;
    }

    .highlights-grid,
    .categories-grid,
    .benefits-grid,
    .routine-grid,
    .testimonials-slider,
    .faq-grid,
    .footer-grid,
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .values-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-summary,
    .checkout-summary,
    .shop-sidebar,
    .account-sidebar,
    .product-gallery {
        position: static;
    }

    .newsletter-content,
    .footer-bottom-content,
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 56px 0;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    h2 {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
    }

    .header-content {
        min-height: 80px;
        padding: 15px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }



    .logo-image {
        height: 50px;
    }

    .hamburger-button {
        width: 36px;
        height: 36px;
        gap: 6px;
    }

    .hamburger-button span {
        height: 3px;
    }

    .search-modal {
        padding: 16px;
    }

    .search-form {
        border-radius: 16px;
    }

    .search-form input {
        padding: 16px;
        font-size: 16px;
    }

    .search-form button {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }

    .search-close {
        top: -46px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-title {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    .hero-subtitle,
    .section-header p {
        font-size: 1rem;
    }

    .hero-buttons,
    .cta-buttons,
    .newsletter-form,
    .success-actions,
    .social-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn,
    .btn-primary,
    .btn-outline,
    .btn-white,
    .btn-outline-white,
    .add-to-cart,
    .mobile-secondary-link {
        width: 100%;
    }

    .highlights-grid,
    .categories-grid,
    .products-grid,
    .benefits-grid,
    .routine-grid,
    .testimonials-slider,
    .values-grid,
    .team-grid,
    .faq-grid,
    .dashboard-stats,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .promotion-banner,
    .newsletter-content,
    .footer-bottom-content {
        text-align: left;
    }

    .promotion-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
        gap: 20px;
    }

    .promotion-decoration {
        display: none;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tabs-nav {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .tab-btn {
        white-space: nowrap;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: left;
    }

    .cart-product {
        align-items: flex-start;
    }

    .cart-summary,
    .checkout-summary,
    .contact-form-wrapper,
    .auth-card {
        padding: 24px;
    }

    .form-row,
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .thumbnail-grid {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding: 0 0 24px 40px;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 24px 40px;
        text-align: left;
    }

    .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 4px;
        right: auto;
    }

    .footer-newsletter,
    .footer-top {
        padding: 36px 0;
    }

    .newsletter-form {
        gap: 12px;
    }

    .newsletter-form button {
        width: 100%;
    }

    .page-home .custom-hero {
        min-height: 100vh !important;
        padding: 32px 0 56px !important;
    }

    .page-home .custom-hero .container {
        padding-top: 8px;
    }

    .page-home .custom-hero .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        min-height: auto !important;
        gap: 24px !important;
    }

    .page-home .custom-hero .hero-text,
    .page-home .product-preview .container > div > div,
    .page-home .ingredients-section .container > div > div,
    .page-home .brand-story-section .container > div > div {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .page-home .custom-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3rem) !important;
    }

    .page-home .custom-hero [style*="display:flex"][style*="gap:18px"] {
        flex-direction: column !important;
    }

    .page-home .hero-product-card {
        max-width: 100% !important;
        min-height: 0 !important;
        border-radius: 26px !important;
    }

    .page-home .hero-product-card [style*="left:-32px"][style*="bottom:-60px"] {
        position: static !important;
        left: auto !important;
        bottom: auto !important;
        margin-top: 20px !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .page-home .hero-highlights {
        gap: 20px !important;
        margin-top: 28px !important;
    }

    .page-home .product-preview .container > div,
    .page-home .ingredients-section .container > div,
    .page-home .brand-story-section .container > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
    }

    .page-home .how-to-use-section .container > div[style*="display:grid"],
    .page-home .testimonials .testimonials-slider {
        grid-template-columns: 1fr !important;
    }

    .page-shop [style*="display: flex"][style*="gap: 60px"],
    .page-product [style*="display: flex"][style*="gap: 60px"],
    .page-about [style*="display: flex"][style*="gap: 60px"],
    .page-contact .contact-grid,
    .page-social [style*="display: flex"][style*="gap: 16px"][style*="justify-content: center"],
    .page-social [style*="display: flex"][style*="gap: 12px"][style*="max-width: 500px"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .page-shop [style*="min-width: 350px"],
    .page-shop [style*="min-width:350px"],
    .page-product [style*="min-width: 350px"],
    .page-product [style*="min-width:350px"],
    .page-about [style*="min-width: 350px"],
    .page-about [style*="min-width:350px"],
    .page-home [style*="min-width: 340px"],
    .page-home [style*="min-width:340px"],
    .page-home [style*="min-width: 300px"],
    .page-home [style*="min-width:300px"],
    .page-contact [style*="min-width: 300px"],
    .page-contact [style*="min-width:300px"] {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-shop [style*="grid-template-columns: repeat(auto-fit, minmax(350px, 1fr))"],
    .page-product [style*="grid-template-columns: repeat(auto-fit, minmax(350px, 1fr))"],
    .page-product [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
    .page-about [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
    .page-about [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"],
    .page-social #social-posts-grid,
    .page-contact [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .page-social [style*="display: flex"][style*="justify-content: center"][style*="margin-top: 32px"] {
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }

    .page-social [style*="display: flex"][style*="gap: 12px"][style*="max-width: 500px"] button,
    .page-social [style*="display: flex"][style*="gap: 12px"][style*="max-width: 500px"] input,
    .page-contact button[type="submit"],
    .page-checkout button[type="submit"],
    .page-cart a[href="checkout.php"],
    .page-cart a[href="product.php"] {
        width: 100% !important;
    }

    .page-cart [style*="display: grid; grid-template-columns: 2fr 1fr"],
    .page-checkout [style*="display: grid; grid-template-columns: 2fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .page-cart [style*="display: flex; gap: 24px; align-items: center"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .page-cart [style*="width: 120px; height: 120px"] {
        width: 100% !important;
        height: auto !important;
        padding: 16px !important;
    }

    .page-checkout [style*="grid-template-columns: 1fr 1fr"],
    .page-contact [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 48px 0;
    }

    .header-content {
        min-height: 72px;
        padding: 10px 0;
    }

    .logo-image {
        height: 40px;
    }

    .hamburger-button {
        width: 32px;
        height: 32px;
        gap: 5px;
    }

    .hamburger-button span {
        height: 2.5px;
    }

    .hero,
    .page-home .custom-hero {
        min-height: 100vh !important;
        padding: 28px 0 48px !important;
    }

    .promotion-banner,
    .contact-form-wrapper,
    .cart-summary,
    .checkout-summary,
    .auth-card {
        padding: 20px;
    }

    .product-info,
    .tab-panel,
    .sidebar-widget {
        padding: 18px;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}