/**
 * CSS específico para a página inicial (index.php)
 * Estilos para banners, categorias, produtos em destaque e catálogo
 */

/* ============================================
   BANNER CAROUSEL
   ============================================ */
.banner-carousel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #1a5cc7 100%);
    border-radius: 0;
    margin: 0;
    box-shadow: 0 4px 20px rgba(38, 129, 255, 0.15);
}

.carousel-wrapper {
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    min-width: 100%;
    min-height: 160px;
    max-height: 280px;
    aspect-ratio: 16 / 7;
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ============================================
   BANNER IMAGES - Desktop vs Mobile
   ============================================ */

/* Por padrão (mobile primeiro), mostra desktop e esconde mobile */
.banner-img-desktop {
    display: block !important;
}

.banner-img-mobile {
    display: none !important;
}

/* Desktop (768px+): mostra desktop, esconde mobile */
@media (min-width: 768px) {
    .banner-img-desktop {
        display: block !important;
    }
    
    .banner-img-mobile {
        display: none !important;
    }
}

/* Mobile (<768px): mostra mobile, esconde desktop */
@media (max-width: 767px) {
    .banner-img-desktop {
        display: none !important;
    }
    
    .banner-img-mobile {
        display: block !important;
    }
}

.banner-slide:hover,
.banner-slide:focus {
    opacity: 0.92;
}

.banner-slide:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.banner-overlay {
    display: none;
}

.banner-copy {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    max-width: 500px;
}

.banner-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(4px);
}

.banner-copy h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    z-index: 10;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Desktop: banner maior e imagem bem exibida */
@media (min-width: 768px) {
    .banner-slide {
        min-height: 280px;
        max-height: 380px;
        aspect-ratio: 16 / 6;
    }

    .carousel-controls {
        padding: 0 1.5rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
}

/* ============================================
   CATEGORIES SECTION — RESPONSIVO
   Mobile: lista horizontal com scroll
   Desktop: grid responsivo
   ============================================ */
.categories-section {
    padding: 1.25rem 0;
    background: var(--bg);
}

.categories-section .section-heading {
    margin-bottom: 1rem;
}

/* Mobile: lista horizontal com scroll */
.categories-grid {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

.cat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: #fff;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.72rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.cat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    background: var(--primary-soft);
}

.cat-card.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.cat-card-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    opacity: 0.85;
}

.cat-card:hover .cat-card-icon,
.cat-card.active .cat-card-icon {
    opacity: 1;
}

.cat-card-label {
    text-align: center;
    line-height: 1.2;
}

/* Desktop: grid responsivo */
@media (min-width: 768px) {
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        overflow-x: visible;
        padding: 0;
    }
    
    .cat-card {
        flex-direction: column;
        padding: 1rem 0.75rem;
        border-radius: 12px;
        white-space: normal;
        flex-shrink: unset;
        border: 1px solid var(--border);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    
    .cat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(38, 129, 255, 0.12);
        border-color: rgba(38, 129, 255, 0.3);
    }
    
    .cat-card-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 0.25rem;
    }
    
    .cat-card-label {
        font-size: 0.78rem;
        font-weight: 600;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.85rem;
    }
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
}

.section-eyebrow::before {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.section-heading h2 span {
    color: var(--primary);
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
    padding: 2rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

.featured-section .products-grid {
    gap: 1rem;
}

/* Featured Card Styling */
.featured-section .card {
    position: relative;
    overflow: hidden;
}

.featured-section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #4d9fff);
    z-index: 1;
}

.featured-section .card:hover::before {
    height: 4px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 1rem 0;
    padding-bottom: 6rem;
}

.products-section .section-heading {
    padding: 0 1rem;
}

/* ============================================
   PRODUCT CARDS - DESKTOP REFINED
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(38, 129, 255, 0.18);
    border-color: rgba(38, 129, 255, 0.4);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Imagem do card com position relative para o badge */
.card-image-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    /* Altura automática para mostrar imagem real */
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.card:hover .card-image-wrap img {
    transform: scale(1.08);
}

/* Overlay sutil no hover */
.card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-image-wrap::after {
    opacity: 1;
}

/* Badge posicionado no canto superior direito da imagem */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #1a5cc7 100%);
    color: #fff;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(38, 129, 255, 0.35);
}

/* Badge de Promoção - Vermelho */
.badge-promo {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45) !important;
}

/* Badge de Destaque - Laranja */
.badge-highlight {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45) !important;
}

.badge-sold-out {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

.product-unavailable .card-image-wrap img {
    filter: grayscale(0.65);
    opacity: 0.78;
}

.product-unavailable .card-buy-btn-disabled {
    background: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
    box-shadow: none;
}

.product-unavailable .card-buy-btn-disabled:hover {
    transform: none;
    filter: none;
    box-shadow: none;
}

/* Miniaturas da galeria no card */
.card-gallery {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e2e8f0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.card-gallery::-webkit-scrollbar {
    height: 4px;
}

.card-gallery::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 2px;
}

.card-gallery::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.card-gallery-thumb {
    width: 44px !important;
    height: 44px !important;
    display: block;
    border-radius: 4px;
    object-fit: contain;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.card-gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.1);
}

.card-gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.card-highlight .product-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    transition: color 0.2s ease;
}

.card:hover .card-body h3 {
    color: var(--primary);
}

.card-category {
    margin: 0 0 0.35rem !important;
    color: var(--primary) !important;
    font-size: 0.7rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-copy {
    display: none;
    margin: 0.4rem 0;
    color: #64748b;
    line-height: 1.5;
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

/* Preço normal (riscado quando tem promoção) */
.price-normal {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    opacity: 0.8;
}

/* Preço Promocional - Vermelho e destacado */
.price-promo {
    color: #ef4444 !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);
    letter-spacing: -0.02em;
}

.price-old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-price-and-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.card-buy-btn {
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #1a5cc7 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(38, 129, 255, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

button.card-buy-btn {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0;
    padding: 0.62rem 0.78rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.card-buy-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(38, 129, 255, 0.28);
}

.card-actions {
    display: flex;
    gap: 0.6rem;
    padding: 0 1rem 1rem;
    flex-wrap: wrap;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-modal.is-open {
    display: flex;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(4px);
}

.product-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(950px, calc(100vw - 2rem));
    max-width: 950px;
    max-height: min(92vh, 760px);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 0;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.product-modal-media {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
}

.product-modal-image {
    width: 100%;
    height: clamp(250px, 44vh, 420px);
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.product-modal-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}

.product-modal-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.product-modal-gallery img:hover {
    transform: translateY(-1px);
}

.product-modal-gallery img.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-modal-content {
    padding: 1.5rem 1.4rem 1.35rem;
    display: block;
    min-width: 0;
}

.product-modal-category {
    margin: 0 0 0.4rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-modal-title {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
    line-height: 1.35;
}

.product-modal-price {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-modal-price .price {
    font-size: 1.1rem;
}

.product-modal-price .price-normal {
    font-size: 0.85rem !important;
}

.product-modal-price .price-promo {
    font-size: 1.35rem !important;
}

.product-modal-description {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.7;
    font-size: 0.92rem;
}

.product-modal-actions {
    display: block;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
}

a.product-modal-whatsapp {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
    box-sizing: border-box;
}

a.product-modal-whatsapp img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

button.product-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    z-index: 3;
    display: grid;
    place-items: center;
    box-sizing: border-box;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-modal {
        padding: 0.75rem;
    }

    .product-modal-dialog {
        width: min(760px, calc(100vw - 1.5rem));
        max-height: 88vh;
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .product-modal-media {
        padding: 0.85rem;
    }

    .product-modal-image {
        height: clamp(220px, 32vh, 300px);
    }

    .product-modal-content {
        display: block;
        padding: 1rem 1rem 1.15rem;
    }

    .product-modal-actions {
        display: block;
        width: auto;
        align-self: flex-start;
    }

    .product-modal-close {
        top: 0.7rem;
        right: 0.7rem;
    }
}

@media (max-width: 768px) {
    .product-modal {
        padding: 0.75rem;
    }

    .product-modal-dialog {
        width: 100%;
        max-height: 94vh;
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .product-modal-media {
        padding: 0.8rem;
    }

    .product-modal-image {
        height: clamp(220px, 38vh, 300px);
    }

    .product-modal-content {
        display: block;
        padding: 1rem;
    }

    .product-modal-title {
        font-size: 1.15rem;
    }

    .product-modal-actions {
        width: auto;
    }

    .product-modal-actions a {
        width: auto;
        justify-content: center;
    }

    .product-modal-close {
        top: 0.65rem;
        right: 0.65rem;
        width: 40px;
        height: 40px;
    }

    .card-price-and-action {
        align-items: stretch;
    }

    button.card-buy-btn {
        width: auto;
        max-width: 100%;
        padding: 0.55rem 0.7rem;
        font-size: 0.62rem;
        letter-spacing: 0.03em;
        margin-bottom: 0;
        justify-content: center;
    }
}

.card-share {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-share img {
    width: 16px;
    height: 16px;
}

.card-share:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: none;
    background: var(--bg);
    border-radius: 25px;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--border);
    transition: border-color 0.2s ease;
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-form input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}

.search-form input::placeholder {
    color: var(--muted);
}

/* ============================================
   MOBILE RESPONSIVE - Product Cards
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .products-grid {
        gap: 0.6rem;
    }
    
    .card {
        border-radius: 12px;
    }
    
    .card-image-wrap img {
        height: 130px;
    }
    
    .card-body {
        padding: 0.5rem 0.6rem 0.6rem;
    }
    
    .card-body h3 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .card-category {
        font-size: 0.6rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .price-normal {
        font-size: 0.7rem !important;
    }
    
    .price-promo {
        font-size: 1rem !important;
    }
    
    .product-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
        top: 6px;
        right: 6px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .products-grid {
        gap: 0.5rem;
    }
    
    .card {
        border-radius: 10px;
        border: 1px solid var(--border);
    }
    
    .card-image-wrap img {
        height: 110px;
    }
    
    .card-body {
        padding: 0.45rem 0.5rem 0.5rem;
    }
    
    .card-body h3 {
        font-size: 0.78rem;
        line-height: 1.3;
        margin-bottom: 0.2rem;
    }
    
    .card-category {
        font-size: 0.58rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    .card-price {
        gap: 0.3rem;
    }
    
    .price-normal {
        font-size: 0.65rem !important;
    }
    
    .price-promo {
        font-size: 0.95rem !important;
    }
    
    .product-badge {
        font-size: 0.5rem;
        padding: 0.12rem 0.35rem;
        top: 5px;
        right: 5px;
        border-radius: 4px;
    }
    
    .card-actions {
        padding: 0 0.5rem 0.5rem;
    }
}

/* Small mobile phones */
@media (max-width: 380px) {
    .card-image-wrap img {
        height: 100px;
    }
    
    .card-body {
        padding: 0.4rem 0.45rem 0.45rem;
    }
    
    .card-body h3 {
        font-size: 0.75rem;
    }
    
    .card-category {
        font-size: 0.55rem !important;
    }
    
    .price-promo {
        font-size: 0.9rem !important;
    }
    
    .product-badge {
        font-size: 0.48rem;
        padding: 0.1rem 0.3rem;
    }
}

.search-form button {
    background: var(--primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-form button:hover {
    background: #1a5cc7;
    transform: scale(1.05);
}

.search-form button img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

/* ============================================
   TABLET RESPONSIVE (768px+)
   ============================================ */
@media (min-width: 768px) {
    .banner-slide {
        min-height: 280px;
        height: 320px;
        max-height: 380px;
        background-size: 100% auto;
        background-position: center top;
    }
    
    .banner-copy {
        padding: 2rem;
    }
    
    .banner-copy h1 {
        font-size: 2rem;
    }
    
    .banner-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    
    .categories-bar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .chip {
        flex-direction: row;
        padding: 0.6rem 1.25rem;
        min-width: auto;
    }
    
    .chip-icon {
        width: 20px;
        height: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .card img {
        height: 160px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-body h3 {
        font-size: 1rem;
    }
    
    .section-heading {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }
    
    .search-form {
        display: flex;
        max-width: 420px;
        margin: 0 auto 2rem;
        padding: 0.3rem 0.3rem 0.3rem 0.8rem;
    }
    
    .search-form input {
        font-size: 0.85rem;
    }
    
    .search-form button {
        width: 32px;
        height: 32px;
    }
    
    .search-form button img {
        width: 16px;
        height: 16px;
    }
    
    .featured-section {
        padding: 2.5rem 0;
    }
    
    .featured-section .products-grid {
        gap: 1.25rem;
        padding: 0 1rem;
    }
    
    .products-section {
        padding: 2.5rem 0;
    }
    
    .card-actions {
        padding: 0 1rem 1rem;
    }
}

/* ============================================
   DESKTOP RESPONSIVE (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .banner-slide {
        min-height: 320px;
        height: 380px;
        max-height: 420px;
        background-size: cover;
        background-position: center top;
    }
    
    .banner-copy {
        padding: 3rem;
        max-width: 600px;
    }
    
    .banner-copy h1 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .banner-actions .btn {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }
    
    .carousel-controls {
        padding: 0 2rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
    }
    
    .categories-bar {
        padding: 1.25rem 0;
    }
    
    .categories-bar .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        justify-content: flex-start;
    }
    
    .chip {
        padding: 0.7rem 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 0 2rem;
    }
    
    .card {
        border-radius: 16px;
    }
    
    .card img {
        height: 200px;
    }
    
    .card-body {
        padding: 1.15rem;
    }
    
    .card-body h3 {
        font-size: 1.05rem;
    }
    
    .card-copy {
        display: block;
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .section-heading {
        padding: 0 2rem;
    }
    
    .section-heading h2 {
        font-size: 1.6rem;
    }
    
    .featured-section {
        padding: 3rem 0;
    }
    
    .featured-section .products-grid {
        padding: 0 2rem;
    }
    
    .products-section {
        padding: 3rem 0;
    }
    
    .banner-carousel {
        border-radius: 20px;
        margin: 1rem auto;
        max-width: 1200px;
        box-shadow: 0 8px 30px rgba(38, 129, 255, 0.2);
    }
    
    .card-share {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    
    .card-share img {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .banner-slide {
        min-height: 380px;
        height: 420px;
        max-height: 480px;
        background-size: cover;
        background-position: center top;
    }
    
    .banner-copy h1 {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .card img {
        height: 220px;
    }
}
/* Product detail page (produto.php) responsive styles */
.product-detail-page .product-card { max-width: 1100px; margin: 1.5rem auto; padding: 1.5rem; }
.product-detail-page .product-media { max-width: 480px; max-height: 480px; }
.product-detail-page .product-info h1 { font-size: 1.75rem; }
.product-detail-page .product-price { font-size: 1.75rem; }
.product-detail-page .product-description { font-size: 0.95rem; line-height: 1.5; }
.product-detail-page .btn { padding: 0.65rem 1rem; font-size: 0.9rem; }
.product-detail-page .btn img { width: 18px; height: 18px; }
.product-detail-page .share-icon { width: 36px; height: 36px; }
.product-detail-page .share-icon img { width: 16px; height: 16px; }
@media (max-width: 768px) {
  .product-detail-page .product-card { padding: 1rem; margin: 1rem; }
  .product-detail-page .product-media {
    max-width: 100%;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  .product-detail-page .product-gallery-thumbs { width: 100%; }
  .product-detail-page .product-info h1 { font-size: 1.35rem; }
  .product-detail-page .product-price { font-size: 1.5rem; }
  .product-detail-page .product-actions { flex-direction: column; }
  .product-detail-page .btn { width: 100%; }
}
@media (max-width: 480px) {
  .product-detail-page .product-card { padding: 0.75rem; margin: 0.5rem; }
  .product-detail-page .product-media {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  .product-detail-page .product-info h1 { font-size: 1.15rem; }
  .product-detail-page .product-price { font-size: 1.25rem; }
  .product-detail-page .btn { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
  .product-detail-page .btn img { width: 16px; height: 16px; }
  .product-detail-page .share-icon { width: 32px; height: 32px; }
  .product-detail-page .share-icon img { width: 14px; height: 14px; }
}