:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-light: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.top-bar {
    background: var(--dark-color);
    color: rgba(255,255,255,0.92);
    padding: 0.5rem 0;
    font-size: 0.813rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left .top-bar-icon,
.top-bar-right .top-bar-icon {
    margin-right: 1rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar-left .top-bar-icon:hover,
.top-bar-right .top-bar-icon:hover {
    color: #fff;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .top-bar-text {
        display: none;
    }
    
    .top-bar .top-bar-icon {
        margin-right: 1.25rem;
        font-size: 1.1rem;
        padding: 0.35rem 0;
        display: inline-flex;
        align-items: center;
    }
    
    .top-bar .top-bar-icon:last-child {
        margin-right: 0;
    }
}

.main-header {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 span {
    color: var(--secondary-color);
}

.logo a {
    text-decoration: none;
}

.logo-img {
    width: auto;
    object-fit: contain;
    display: block;
}

.search-bar {
    flex: 1;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-bar button {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: var(--secondary-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Menu de navegação - estilo moderno, cores dinâmicas conforme paleta do admin */
.main-nav {
    background: #fff;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 1px 0 0 var(--border-color);
}

.nav-container {
    position: relative;
}

.nav-drawer-header {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
    z-index: 100;
}

.nav-toggle:hover {
    background: var(--nav-hover-bg, #f1f5f9);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
}

.nav-menu > li {
    margin: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 1rem 1.35rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
    background: var(--nav-hover-bg, #f1f5f9);
}

.nav-menu > li > a:hover::after {
    width: 100%;
    left: 0;
}

.nav-menu > li.has-dropdown > a {
    padding-right: 1.5rem;
}

.nav-menu > li.has-dropdown > a i {
    font-size: 0.65em;
    margin-left: 0.35rem;
    opacity: 0.8;
    transition: transform 0.25s ease;
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown {
    display: block;
    animation: nav-dropdown-fade 0.2s ease;
}

@keyframes nav-dropdown-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, background 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown a:hover {
    color: var(--primary-color);
    background: var(--nav-hover-bg, #f1f5f9);
    border-left-color: var(--primary-color);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.main-content {
    min-height: calc(100vh - 400px);
}

/* Home Slider */
.home-slider {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: 330px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    background: var(--dark-color);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-slide img,
.slider-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: center;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .home-slider {
        height: 280px;
    }
    .slider-slide img {
        height: 280px;
    }
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* Ícones de categorias na home */
.home-categories {
    padding: 1rem 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.category-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.category-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    min-width: 58px;
    transition: transform 0.25s ease;
}

.category-icon-link:hover {
    transform: translateY(-2px);
}

.category-icon-link:hover .category-icon-label {
    color: var(--primary-color);
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    border-radius: 50%;
    margin-bottom: 0.35rem;
    color: #b8bdc6;
    font-size: 1.2rem;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
    overflow: visible;
}

.category-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: border-color 0.25s ease;
}

.category-icon-link:hover .category-icon {
    transform: scale(1.12);
    color: #9ca3af;
}

.category-icon-link:hover .category-icon::before {
    border-color: #c5cad3;
    animation: category-circle-expand 1.8s ease-out infinite;
}

@keyframes category-circle-expand {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.category-icon-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    max-width: 65px;
    line-height: 1.2;
    color: var(--text-color);
    transition: color 0.25s ease;
}

@media (min-width: 769px) {
    .category-icons .category-icons-clone {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-categories {
        position: relative;
    }
    
    .category-icons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.75rem 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding: 0.5rem 1rem;
        margin: 0 -1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-icons::-webkit-scrollbar {
        display: none;
    }
    .category-icon-link {
        flex-shrink: 0;
        scroll-snap-align: start;
        min-width: 62px;
    }
    .category-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .category-icon-label {
        font-size: 0.65rem;
        max-width: 65px;
    }
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--text-light);
    color: #fff;
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
}

/* Produtos em Destaque - layout aprimorado */
.section-header-featured {
    gap: 2rem;
    flex-wrap: wrap;
}

.section-header-featured .section-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header-featured .section-title-accent {
    width: 5px;
    height: 56px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color, var(--primary-color)));
    border-radius: 6px;
    flex-shrink: 0;
}

.section-header-featured h1.section-title,
.section-header-featured h2.section-title,
.section-header-featured .section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em;
    font-size: 2rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.section-header-featured .title-line {
    color: var(--dark-color);
}

.section-header-featured .title-highlight {
    color: var(--primary-color);
    position: relative;
}

.section-header-featured .title-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
    opacity: 0.5;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.view-all:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.view-all i {
    transition: transform 0.2s;
}

.view-all:hover i {
    transform: translateX(4px);
}

@media (max-width: 576px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .section-header-featured .section-title-wrap {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .section-header-featured .section-title-accent {
        height: 36px;
        width: 3px;
    }
    
    .section-header-featured h1.section-title,
    .section-header-featured h2.section-title,
    .section-header-featured .section-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }
    
    .section-header-featured .title-highlight::after {
        height: 2px;
        bottom: 1px;
    }
    
    .view-all {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .section-header-featured .section-title-accent {
        width: 6px;
        height: 64px;
    }
    
    .section-header-featured h1.section-title,
    .section-header-featured h2.section-title,
    .section-header-featured .section-title {
        font-size: 2.25rem;
    }
    
    .section-header-featured .title-highlight::after {
        height: 5px;
        bottom: 5px;
    }
}

@media (min-width: 992px) {
    .section-header-featured .section-title-accent {
        height: 72px;
    }
    
    .section-header-featured h1.section-title,
    .section-header-featured h2.section-title,
    .section-header-featured .section-title {
        font-size: 2.5rem;
    }
}

.featured-products,
.products-section {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* 4 produtos por linha na página /produtos */
.products-section .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-section .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile: padronizar respiro dos cards com a home (apenas products-section) */
@media (max-width: 768px) {
    .products-section .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .products-section .products-grid {
        max-width: 100%;
        justify-items: center;
    }
    
    .products-section .product-card {
        max-width: 340px;
        width: 100%;
    }
}

/* Tipografia mais compacta somente na página de produtos (4 por linha) */
.products-section .product-card .product-info {
    padding: 1rem;
}
.products-section .product-brand {
    font-size: 0.7rem;
}
.products-section .product-title {
    font-size: 0.95rem;
    margin: 0.35rem 0;
}
.products-section .product-bottom .product-price-row {
    margin: 0;
}
.products-section .product-bottom .product-rating {
    margin: 0 0 0.35rem 0;
}
.products-section .price-old {
    font-size: 0.75rem;
}
.products-section .price-current {
    font-size: 1.2rem;
}
.products-section .product-rating {
    margin: 0.35rem 0;
}
.products-section .product-rating span {
    font-size: 0.75rem;
}
.products-section .product-card .btn,
.products-section .add-to-cart-form .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}
.products-section .product-whatsapp-btn {
    width: 34px;
    height: 34px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Badges em cards de produto (canto superior) */
.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.badge-sale {
    background: var(--danger-color);
    color: #fff;
}

.badge-featured {
    background: var(--warning-color);
    color: #000;
}

.product-card .badge-featured {
    top: 40px;
}

.product-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image:not(.product-image-zoom) img {
    transform: scale(1.1);
}

/* Ícone ampliar + efeito parallax nos produtos (como na página Sobre) */
.product-image-zoom {
    cursor: pointer;
}

.product-image-zoom img {
    will-change: transform;
}

.product-zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.product-card:hover .product-zoom-icon {
    opacity: 1;
}

/* Zoom icon na galeria da página de detalhe do produto */
.product-detail .main-image.product-image-zoom .product-zoom-icon {
    opacity: 0;
}
.product-detail .main-image.product-image-zoom:hover .product-zoom-icon {
    opacity: 1;
}

/* Lightbox para imagens de produto */
.product-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.product-lightbox.active {
    display: flex;
}

.product-lightbox-inner {
    text-align: center;
    cursor: default;
}

.product-lightbox img {
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.product-lightbox a.btn-ver-produto {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.product-lightbox a.btn-ver-produto:hover {
    background: var(--secondary-color, #555);
    transform: translateY(-2px);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Espaço entre preço e botão */
.product-info form {
    margin-top: 0.5rem;
}

.product-brand {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    margin: 0.5rem 0;
    font-size: 1.125rem;
}

.product-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    margin: 0.5rem 0;
    color: var(--warning-color);
}

.product-rating .fa-star.active {
    color: var(--warning-color);
}

.product-rating .fa-star {
    color: var(--border-color);
    
}

/* Placeholder: estrelas cinza bem claras quando produto ainda não tem avaliação */
.product-rating.placeholder .fa-star {
    color: #e5e7eb;
}

.product-rating.placeholder span {
    color: #d1d5db;
}

.product-rating span {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.product-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-bottom .product-rating {
    margin: 0 0 0.5rem 0;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0;
}

.product-bottom .product-price-row {
    margin: 0;
}

.product-price {
    margin: 0;
}

.product-whatsapp-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-whatsapp-btn:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

.product-whatsapp-btn-detail {
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 10px 20px;
    gap: 0.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.product-whatsapp-btn-detail i {
    font-size: 1.1rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
}

.features {
    background: var(--light-color);
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--text-light);
}

.footer {
    background: var(--dark-color);
    color: #fff;
    margin-top: 4rem;
}

.footer-top {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h3 span {
    color: var(--primary-color);
}

.footer-logo {
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.social-links a:hover i,
.social-links a:hover svg {
    color: #fff !important;
    fill: #fff !important;
}

.social-links a svg.icon-x {
    display: block;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    margin: 0;
    color: rgba(255,255,255,0.85);
}

.footer-bottom-content .footer-credit-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.footer-bottom-content .footer-credit-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Coração vazado com degrade azul */
.footer-bottom-content .footer-heart-icon {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 2rem;
}

.page-header {
    background: var(--light-color);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header p {
    margin: 0.5rem 0 0;
    color: var(--text-light);
}

.page-header-products .section-header {
    margin-bottom: 0.5rem;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.filter-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.filter-box h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.filter-options label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.filter-categories {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.filter-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.filter-link.active {
    background: var(--primary-color);
    color: #fff;
}

.filter-link.active:hover {
    color: #fff;
    background: var(--secondary-color, var(--primary-color));
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
}

.products-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-toggle-btn {
    display: none;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-left: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.breadcrumb {
    background: var(--light-color);
    padding: 1rem 0;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb i {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb-current {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 500;
}

.product-detail {
    padding: 3rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-gallery {
    max-width: 600px;
}

.product-gallery .main-image {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    width: 600px !important;
    height: 600px !important;
    min-width: 600px;
    min-height: 600px;
    max-width: 600px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    flex-shrink: 0;
}

.product-gallery .main-image img {
    width: 600px !important;
    height: 600px !important;
    min-width: 600px;
    min-height: 600px;
    max-width: 600px;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail-gallery img {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail-gallery img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Garantir 600x600 em desktop (acima de 1366px) */
@media (min-width: 1366px) {
    .product-gallery .main-image {
        width: 600px !important;
        height: 600px !important;
        min-width: 600px !important;
        min-height: 600px !important;
        max-width: 600px !important;
        max-height: 600px !important;
    }
    
    .product-gallery .main-image img {
        width: 600px !important;
        height: 600px !important;
        min-width: 600px !important;
        min-height: 600px !important;
        max-width: 600px !important;
        max-height: 600px !important;
    }
}

/* Responsivo para tablets e telas médias */
@media (min-width: 769px) and (max-width: 1365px) {
    .product-gallery .main-image {
        width: 500px !important;
        height: 500px !important;
        min-width: 500px;
        min-height: 500px;
        max-width: 500px;
        max-height: 500px;
    }
    
    .product-gallery .main-image img {
        width: 500px !important;
        height: 500px !important;
        min-width: 500px;
        min-height: 500px;
        max-width: 500px;
        max-height: 500px;
    }
}

/* Responsivo para mobile (abaixo de 768px) */
@media (max-width: 768px) {
    .product-gallery .main-image {
        width: 100% !important;
        height: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        aspect-ratio: 1;
    }
    
    .product-gallery .main-image img {
        width: 100% !important;
        height: 100% !important;
        min-width: auto !important;
        min-height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
}

.product-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-price-box {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.product-price-box .price-current {
    font-size: 2.5rem;
}

.discount-badge {
    color: var(--success-color);
    font-weight: bold;
    margin-top: 0.5rem;
}

.product-info-items {
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.in-stock {
    color: var(--success-color);
    font-weight: 600;
}

.out-of-stock {
    color: var(--danger-color);
    font-weight: 600;
}

.product-share {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-share span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-x { background: #000; }
.share-copy { background: var(--text-light); }

.product-tabs {
    margin: 3rem 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -1px;
}

.tabs-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 2rem;
}

.tab-pane.active {
    display: block;
}

.tab-inner {
    max-width: 800px;
}

.product-description-full {
    line-height: 1.8;
}

.product-description-full img {
    max-width: 100%;
    height: auto;
}

.review-form {
    margin-bottom: 2rem;
}

.review-form h4,
.reviews-list + h4,
.tab-inner > h4:first-of-type {
    margin-bottom: 1rem;
}

.star-rating-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.star-rating-input .star-label {
    cursor: pointer;
    margin: 0;
}

.star-rating-input .star-label input {
    display: none;
}

.star-rating-input .star-label i {
    color: var(--border-color);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.star-rating-input .star-label:hover i,
.star-rating-input .star-label i.hover,
.star-rating-input .star-label i.selected {
    color: var(--warning-color);
}

.review-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.reviews-list {
    margin-top: 1rem;
}

.review-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    color: var(--dark-color);
}

.review-stars i {
    color: var(--border-color);
    font-size: 0.9rem;
}

.review-stars i.active {
    color: var(--warning-color);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: auto;
}

.review-text {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.review-login a,
.review-notice {
    color: var(--text-light);
}

.no-reviews {
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

.related-products {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-products h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.quantity-selector {
    margin: 1.5rem 0;
}

.qty-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-input input {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1.125rem;
}

/* Botões + e - redondos e suavizados no carrinho */
.cart-table .qty-input button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--dark-color);
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}
.cart-table .qty-input button:hover {
    background: var(--border-color);
}
.cart-table .qty-input button:active {
    transform: scale(0.95);
}

/* Botão de exclusão sem borda */
.cart-table .actions .btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}
.cart-table .actions .btn-icon:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}

.cart-items {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    background: var(--light-color);
    font-weight: 600;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 1rem;
}

.cart-summary .summary-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--dark-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.summary-row.total {
    border-top: 2px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 1rem;
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--success-color);
}

.cart-summary .btn-success {
    margin-top: 1.5rem;
}

.cart-summary .shipping-cep-form .form-control {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

/* Overlay de loading no carrinho */
#cart-section .container { position: relative; }
.cart-loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cart-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}
.cart-spinner-svg {
    animation: cart-spinner-rotate 0.9s linear infinite;
}
@keyframes cart-spinner-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.security-badges {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.security-badges i {
    margin-right: 0.5rem;
}

.empty-cart,
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-cart i,
.empty-state i {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: block;
}

.empty-cart h2,
.empty-state h3 {
    margin-bottom: 0.75rem;
}

.empty-cart p,
.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.auth-section {
    padding: 4rem 0;
    background: var(--light-color);
    min-height: calc(100vh - 400px);
}

.auth-box {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.account-section,
.checkout-section,
.cart-section,
.contact-section {
    padding: 3rem 0 4rem;
}

.about-section {
    padding: 3rem 0 4rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.checkout-section .container {
    margin-top: 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}

.checkout-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.checkout-card:last-child {
    margin-bottom: 0;
}

.checkout-card h3 {
    margin: 0 0 1.5rem;
    color: var(--dark-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-menu {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover,
.menu-item.active {
    background: var(--primary-color);
    color: #fff;
}

.welcome-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.account-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.orders-table {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
}

.orders-table th {
    background: var(--light-color);
    font-weight: 600;
}

.badge-success { background: var(--success-color); color: #fff; }
.badge-warning { background: var(--warning-color); color: #fff; }
.badge-info { background: var(--info-color); color: #fff; }
.badge-secondary { background: var(--text-light); color: #fff; }

@media (max-width: 992px) {
    .cart-layout,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .cart-section,
    .account-section,
    .checkout-section {
        padding: 2rem 0 3rem;
    }
    
    .cart-layout {
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 1rem;
    }
    
    .product-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-item img {
        width: 60px;
        height: 60px;
    }
    
    .products-layout,
    .account-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-section .sidebar {
        display: none;
    }
    
    .filter-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 0.9rem;
        cursor: pointer;
        margin-right: 1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .filter-toggle-btn:hover {
        background: var(--secondary-color, #555);
    }
    
    .filter-drawer-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .filter-drawer-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .filter-drawer {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        z-index: 1001;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .filter-drawer.active {
        right: 0;
    }
    
    .filter-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .filter-drawer-header h3 {
        margin: 0;
        font-size: 1.1rem;
    }
    
    .filter-drawer-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: var(--text-color);
        font-size: 1.35rem;
        cursor: pointer;
        border-radius: 8px;
    }
    
    .filter-drawer-close:hover {
        background: var(--light-color);
        color: var(--primary-color);
    }
    
    .filter-drawer-content {
        padding: 1.25rem;
    }
    
    .checkout-grid {
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
    
    .checkout-card {
        padding: 1.5rem;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .header-content .nav-toggle {
        display: flex;
        order: 1;
    }
    
    .header-content .logo {
        order: 2;
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .header-content .logo a {
        display: inline-block;
    }
    
    .header-content .search-bar {
        order: 4;
        width: 100%;
        flex: 1 1 100%;
    }
    
    .header-content .header-actions {
        order: 3;
    }
    
    .main-header {
        padding: 0.75rem 0;
    }
    
    .main-nav {
        padding: 0;
        min-height: 0;
        border-bottom: none;
    }
    
    .main-nav .nav-container {
        display: block;
        padding: 0;
    }
    
    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
        background: #fff;
    }
    
    .nav-drawer-logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--primary-color);
        font-weight: 600;
        font-size: 1.1rem;
    }
    
    .nav-drawer-logo img {
        max-height: 40px;
        width: auto;
    }
    
    .nav-drawer-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: var(--text-color);
        font-size: 1.35rem;
        cursor: pointer;
        border-radius: 8px;
        transition: background 0.2s, color 0.2s;
    }
    
    .nav-drawer-close:hover {
        background: var(--nav-hover-bg, #f1f5f9);
        color: var(--primary-color);
    }
    
    .nav-drawer {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 0;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
    }
    
    .main-nav.nav-open .nav-overlay {
        display: block;
    }
    
    .main-nav.nav-open .nav-drawer {
        left: 0;
    }
    
    .nav-menu > li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu > li > a {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu .has-dropdown .dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        padding-left: 1rem;
    }
    
    .nav-menu .has-dropdown.open .dropdown {
        display: block;
        animation: none;
    }
    
    .nav-menu .has-dropdown.open > a i {
        transform: rotate(180deg);
    }
    
    .nav-menu .has-dropdown > a {
        pointer-events: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
