/* Responsive Styles - Loja Guedez Refactor */

/* ============================================
   Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }

    .hero-title {
        font-size: 3rem;
    }


}

/* ============================================
   Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 40px;
        --spacing-xxl: 60px;
    }

    /* ---- Global Mobile Spacing ---- */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Sections need horizontal breathing room */
    .section {
        padding: var(--spacing-lg) 0;
    }

    /* ---- Header Mobile Layout ---- */
    .header-top .container {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        padding: 12px 20px;
    }

    /* Branding: left aligned, auto-width */
    .branding-area {
        order: 1;
        flex: 1;
        min-width: 0;
    }

    .site-branding {
        max-width: 160px;
    }

    /* Search Area: hidden on mobile header (it's inside the slide-out panel) */
    .header-top .search-area {
        display: none;
    }

    /* Actions: cart + hamburger only */
    .actions-area {
        order: 2;
        gap: var(--spacing-md);
    }

    /* Hide desktop-only elements on mobile */
    .btn-atendimento,
    .user-links {
        display: none;
    }

    /* Show hamburger */
    .hamburger-toggle {
        display: flex;
    }

    /* ---- Desktop Nav: hidden on mobile ---- */
    .header-bottom {
        display: none;
    }

    /* ---- Hero ---- */
    .hero-section {
        padding: var(--spacing-lg) 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }



    /* ---- Single Product Page Mobile ---- */
    .product-layout {
        padding: 0 20px;
    }

    .product-summary-custom {
        padding: 0 4px;
    }

    .product-title-custom {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .product-short-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .product-price-custom .price {
        font-size: 1.6rem;
    }

    .product-add-to-cart-area form.cart {
        gap: 12px;
    }

    .product-add-to-cart-area .single_add_to_cart_button {
        padding: 12px 24px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
    }

    .product-add-to-cart-area .woocommerce-variation-add-to-cart {
        flex-wrap: wrap;
        width: 100%;
    }

    .product-add-to-cart-area .quantity-wrapper {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .product-share {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
    }

    .product-meta-custom {
        margin-top: 12px;
    }

    /* WooCommerce Tabs - more room on mobile */
    .woocommerce div.product .woocommerce-tabs {
        padding: 0 20px;
        margin-top: var(--spacing-lg);
    }

    .woocommerce div.product .woocommerce-tabs .panel {
        padding: 20px 0;
    }

    /* Related Products spacing */
    .related.products {
        padding: 0 20px;
    }

    /* ---- Footer ---- */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-widget {
        text-align: center;
    }

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

    .footer-contact-list li {
        justify-content: center;
        text-align: left;
    }

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

    /* ---- WooCommerce Content Areas ---- */
    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        padding: 0 4px;
    }

    .woocommerce-page .woocommerce-notices-wrapper,
    .woocommerce-page .woocommerce-message,
    .woocommerce-page .woocommerce-info,
    .woocommerce-page .woocommerce-error {
        margin-left: 20px;
        margin-right: 20px;
    }

    /* ---- Gutenberg blocks ---- */
    .entry-content>.alignwide {
        max-width: 100%;
    }

    .entry-content>.alignfull {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
}

/* ============================================
   Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }



    .product-card .card-content {
        padding: var(--spacing-sm);
    }

    /* Buttons: full width */
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
    }

    /* Section titles smaller */
    .section-title {
        font-size: 1.75rem;
    }

    /* ---- Single Product - Small Mobile ---- */
    .product-layout {
        padding: 0 16px;
    }

    .product-title-custom {
        font-size: 1.3rem;
    }

    .product-price-custom .price {
        font-size: 1.4rem;
    }

    .product-price-custom .price ins {
        font-size: 1.6rem;
    }

    .woocommerce div.product .woocommerce-tabs {
        padding: 0 16px;
    }

    .related.products {
        padding: 0 16px;
    }

    .woocommerce-page .woocommerce-notices-wrapper,
    .woocommerce-page .woocommerce-message,
    .woocommerce-page .woocommerce-info,
    .woocommerce-page .woocommerce-error {
        margin-left: 16px;
        margin-right: 16px;
    }
}