:root {
    --bg-color: #ffffff;
    --card-bg: #f9f9f9;
    --primary: #121212; /* Carbon Black */
    --primary-hover: #333333;
    --text-main: #121212;
    --text-muted: #454545; /* Lead Gray */
    --accent: #121212;
    --glass: rgba(0, 0, 0, 0.02);
    --border: #e8e8e8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    height: 100px;
    display: flex;
    align-items: center;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar .container.navbar-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.logo {
    justify-self: center;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid var(--border);
    max-width: 250px;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border);
}

.search-dropdown.active {
    display: block;
}

.search-results-header {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: #fdfdfd;
}

.search-results-header img {
    height: 35px;
    width: auto;
    display: inline-block;
    filter: grayscale(0.2);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9f9fb;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.search-result-price {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-container input {
    background: transparent;
    border: none !important;
    outline: none !important;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    width: 100%;
    text-transform: uppercase;
    box-shadow: none !important;
}

.search-container input::placeholder {
    color: #bbb;
}


.nav-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-btn-icon {
    padding: 10px 12px;
    position: relative;
    gap: 0;
}

.nav-btn-icon i {
    font-size: 1rem;
}

.cart-count-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

.cart-count-badge:empty,
.cart-count-badge[data-count="0"] {
    display: none;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-self: end;
}

#brand-options i {
    transition: transform 0.4s ease;
}

.rotate {
    transform: rotate(180deg);
}

#mini-card-brand {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
    transition: transform 0.3s ease;
    width: 260px;
    max-height: 300px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    padding: 15px;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    border-radius: 8px 0 0 8px;
}

#mini-card-brand.active {
    transform: translate(0, -50%);
}

#mini-card-brand ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mini-card-brand li {
    padding: 5px 8px;
    text-align: center;
    margin-bottom: 5px;
    background: #f2f2f2;
    border-radius: 4px;
    font-size: 14px;
}

main {
    display: block;
    width: 100%;
    overflow: visible;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 80px;
}

.carousel-inner {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    width: 20%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide:nth-child(4) img {
    object-position: center 25%;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 35px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: #fff;
    width: 50px;
}

/* Store Switcher */
.store-switcher {
    margin-bottom: 40px;
    text-align: center;
}

.switcher-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 8px;
    display: inline-flex;
    border: 1px solid var(--border);
}

.store-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    letter-spacing: 1px;
}

.store-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.store-btn:hover:not(.active) {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

/* Filters */
.filters-wrapper {
    margin-bottom: 40px;
    width: 100%;
    overflow: visible;
}

.filters {
    display: flex !important;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 640px; /* Forces break after exactly 5 items on desktop */
    margin: 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.filter-btn {
    background: #f9f9f9;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px; /* Slightly reduced padding */
    border-radius: 25px; /* Pill style */
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary);
    color: #fff !important;
    background: var(--primary) !important;
}

@media (max-width: 768px) {
    .filters-wrapper {
        margin-bottom: 30px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .filters-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 5px 20px 15px;
        gap: 8px;
        max-width: none;
        margin: 0;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        padding: 8px 18px;
        border-radius: 25px; /* Pill style */
        font-size: 0.75rem;
        background: #f9f9f9;
        border: 1px solid var(--border);
        white-space: nowrap;
    }
    
    .filter-btn.active {
        background: var(--primary) !important;
        color: #fff !important;
        border-color: var(--primary) !important;
    }
}

/* Product */
#product-title {
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px 0;
    min-height: 200px;
    margin-bottom: 120px;
    scroll-margin-top: 150px;
}

.message-italva {
    text-align: center;  
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.5px;
}

@media (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

.loading {
    display: none !important;
}

.product-card {
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: none;
    border-color: transparent;
}

.product-image-container {
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.product-image-front {
    position: relative;
    z-index: 1;
}

.product-image-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    z-index: 2;
    padding: 20px;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: auto;
    max-height: 40px;
    overflow: hidden;
}

.price {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    margin-top: auto;
}

.size-selector {
    margin-bottom: 20px;
}

.size-selector label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.size-btn:hover:not(:disabled) {
    border-color: var(--primary);
}

.size-btn.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.add-to-cart-btn {
    margin-top: 10px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    padding: 16px;
    border-radius: 0;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    background: transparent;
    color: var(--primary);
}

.add-to-cart-btn:disabled {
    background: var(--border);
    border-color: var(--border);
    color: #999;
    cursor: not-allowed;
}

/* Sidebar Cart */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.close-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #000;
}

.cart-items {
    padding: 16px 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: #f0f0f0;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e8e8e8;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-details h4 {
    font-size: 0.75rem;
    margin-bottom: 3px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.item-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.item-price {
    font-size: 0.85rem;
    font-weight: 900;
    color: #111;
    margin-top: 4px;
}

.remove-item {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.remove-item:hover {
    color: #000;
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 0;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:hover {
    background: #333;
}

.payment-method-title {
    font-size: 0.85rem;
    font-weight: 800;
    margin: 20px 0 10px;
    letter-spacing: 1px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Form de Entrega */
.shipping-form {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.shipping-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.shipping-form input:focus {
    border-color: #000;
}

.shipping-form input::placeholder {
    color: #aaa;
    font-size: 0.75rem;
}

/* Estado Desativado do Pagamento */
.payment-methods-disabled {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.payment-lock-notice {
    background: #e74c3c; /* Vermelho vibrante */
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: block;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pix-btn {
    width: 100%;
    background: #32BCAD;
    color: #fff;
    border: none;
    height: 48px; /* Altura padrão para bater com os do PayPal */
    border-radius: 4px; /* Combinando com o PayPal que usa cantos levemente arredondados */
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.pix-btn:hover {
    background: #28a396;
}

.pix-btn.loading {
    background: #28a396 !important;
    opacity: 0.8 !important;
    cursor: wait !important;
}

/* Botão PAGAR COM CARTÃO */
.card-method-btn {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.card-method-btn:hover {
    background: #333;
}

/* Card Form */
.card-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.card-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #999;
    text-transform: uppercase;
}

.card-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    letter-spacing: 0.02em;
}

.card-input:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
    background: #fff;
}

.card-input.error {
    border-color: #e74c3c;
}

.card-number-wrapper,
.card-cvv-wrapper {
    position: relative;
}

.card-number-wrapper .card-input {
    padding-right: 52px;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
}

.card-brand-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
    display: none;
}

.card-brand-icon.visible {
    display: block;
}

.card-cvv-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 0.85rem;
    cursor: help;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.card-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.card-pay-btn {
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.card-pay-btn:hover {
    background: #333;
}

.card-pay-btn:disabled {
    background: #999;
    cursor: wait;
}

.custom-spin {
    animation: custom-spin-anim 1s infinite linear;
    display: inline-block;
}

@keyframes custom-spin-anim {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Cart Toast Notification */
#cart-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

#cart-toast span {
    opacity: 0.65;
    font-weight: 600;
}

#cart-toast i {
    color: #4cd964;
    margin-right: 6px;
}

#cart-toast.cart-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#cart-toast.cart-toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* Cart icon bounce animation */
@keyframes cart-bounce-anim {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    55%  { transform: scale(0.9); }
    75%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

#cart-toggle.cart-bounce {
    animation: cart-bounce-anim 0.4s ease;
}

/* Modal Base */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    z-index: 2500;
    width: 90%;
    max-width: 400px;
    padding: 0;
    border-radius: 12px;
    display: none;
    transition: var(--transition);
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.contact-option-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 1500;
    display: none;
    pointer-events: none;
}

.overlay.active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 15px 0;
    }
    .navbar .container.navbar-grid {
        display: grid;
        grid-template-areas: 
            "logo cart"
            "search search";
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .logo {
        grid-area: logo;
        justify-self: start;
    }
    .logo img {
        height: 50px;
    }
    .nav-actions {
        grid-area: cart;
        justify-self: end;
    }
    .search-container {
        grid-area: search;
        display: flex;
        max-width: 100%;
        margin: 0;
    }
    .search-dropdown {
        top: 100%;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero {
        padding: 60px 0 30px;
    }
    .product-image-container {
        padding: 8px;
        margin-bottom: 6px;
    }
    .product-info {
        padding: 0 4px 6px;
    }
    .product-info h3 {
        font-size: 0.62rem;
        margin-bottom: 3px;
        line-height: 1.25;
        height: auto;
        overflow: visible;
    }
    .product-info p {
        display: none;
    }
    .price {
        font-size: 0.72rem;
        margin-bottom: 0;
    }
    .size-selector {
        display: none !important;
    }
    .add-to-cart-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
        text-align: center;
    }
    .footer .container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .social-links {
        justify-content: center;
    }
}
/* Modal de Autenticação */
.auth-modal-content {
    max-width: 420px;
    width: 100%;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.auth-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
}

.auth-tabs {
    display: flex;
    gap: 28px;
}

.auth-tab {
    background: none;
    border: none;
    padding: 22px 0;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #bbb;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    text-transform: uppercase;
}

.auth-tab:hover {
    color: #555;
}

.auth-tab.active {
    color: #000;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
    border-radius: 2px 2px 0 0;
}

.tab-content {
    display: none;
    padding: 32px 28px 28px;
    background: #fff;
}

.tab-content.active {
    display: block;
}

.tab-content .form-group {
    margin-bottom: 12px;
}

.tab-content input[type="text"],
.tab-content input[type="email"],
.tab-content input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.04em;
    color: #111;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.tab-content input[type="text"]:focus,
.tab-content input[type="email"]:focus,
.tab-content input[type="password"]:focus {
    border-color: #000;
    background: #fff;
}

.tab-content input::placeholder {
    color: #bbb;
    font-weight: 600;
}

.tab-content .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.tab-content .form-row input {
    flex: 1;
}

.auth-submit-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.auth-submit-btn:hover {
    background: #222;
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

/* ===================== PIX QR CODE MODAL ===================== */

.pix-qr-modal-content {
    max-width: 380px;
    width: 100%;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.pix-qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #00b1a5;
    color: #fff;
}

.pix-qr-title {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pix-qr-header .close-btn {
    color: rgba(255,255,255,0.8);
}

.pix-qr-header .close-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.pix-qr-body {
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pix-qr-instruction {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    margin: 0;
}

.pix-qr-image-wrap {
    width: 200px;
    height: 200px;
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qr-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pix-qr-or {
    font-size: 0.72rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.pix-qr-copy-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.pix-qr-copy-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.72rem;
    color: #555;
    background: #fafafa;
    outline: none;
    min-width: 0;
}

.pix-qr-copy-row button {
    padding: 10px 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pix-qr-copy-row button:hover {
    background: #222;
}

.pix-qr-total-row {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

.pix-qr-total-row strong {
    color: #000;
    font-weight: 800;
}

.pix-qr-warning {
    font-size: 0.72rem;
    color: #888;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.pix-qr-warning i {
    margin-top: 2px;
    color: #f59e0b;
    flex-shrink: 0;
}

/* ===================== STATUS DO PEDIDO ===================== */

.order-status-modal-content {
    max-width: 420px;
    width: 100%;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.order-status-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.order-status-modal-title {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000;
}

.order-status-modal-subtitle {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #999;
    margin-top: 2px;
    letter-spacing: 0.04em;
}

.order-status-summary {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 16px 24px;
}

.order-status-items-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.order-status-item-line {
    font-size: 0.8rem;
    color: #444;
    font-weight: 500;
}

.order-status-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
}

.order-status-track {
    padding: 28px 24px 32px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.status-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.status-step.done,
.status-step.current {
    opacity: 1;
}

.status-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #ccc;
    flex-shrink: 0;
    transition: all 0.3s;
}

.status-step.done .status-step-icon {
    background: #000;
    border-color: #000;
    color: #fff;
}

.status-step.current .status-step-icon {
    background: #fff;
    border-color: #000;
    border-width: 2.5px;
    color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.status-step-info {
    padding-top: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.status-step-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
}

.status-step.current .status-step-label {
    color: #000;
}

.status-step-desc {
    font-size: 0.73rem;
    color: #888;
    font-weight: 500;
}

.status-connector {
    width: 2px;
    height: 28px;
    background: #ddd;
    margin-left: 18px;
    transition: background 0.3s;
}

.status-connector.done {
    background: #000;
}

/* ===================== PERFIL DO CLIENTE ===================== */

.profile-modal-content {
    max-width: 460px;
    width: 100%;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.profile-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 20px;
    background: #000;
    color: #fff;
    flex-shrink: 0;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.profile-header-info span:first-child {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-header-info span:last-child {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-modal-header .close-btn {
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

.profile-modal-header .close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.profile-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.profile-nav-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 14px 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: -1px;
}

.profile-nav-btn:hover {
    color: #555;
}

.profile-nav-btn.active {
    color: #000;
    border-bottom-color: #000;
}

.profile-tab {
    display: none;
    overflow-y: auto;
    flex: 1;
    background: #fff;
}

.profile-tab.active {
    display: block;
}

.profile-section {
    padding: 24px 28px 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 24px;
}

.profile-section:last-of-type {
    border-bottom: none;
}

.profile-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 14px 0;
}

.profile-section .form-group {
    margin-bottom: 10px;
}

.profile-section input[type="email"],
.profile-section input[type="password"],
.profile-section input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #111;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.profile-section input:focus {
    border-color: #000;
    background: #fff;
}

.profile-section input::placeholder {
    color: #bbb;
    font-weight: 600;
}

.profile-section .auth-submit-btn {
    margin-top: 6px;
}

.profile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 56px);
    margin: 20px 28px 24px;
    padding: 13px;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c0392b;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.profile-logout-btn:hover {
    background: #fff5f5;
    border-color: #c0392b;
}

/* Pedidos */
.orders-list {
    padding: 20px 28px 28px;
}

.order-card {
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-date {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
}

.order-total {
    font-size: 0.9rem;
    font-weight: 800;
    color: #000;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-item-line {
    font-size: 0.78rem;
    color: #555;
    font-weight: 500;
}

.order-status-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #f5f5f5;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.order-status-btn:hover {
    background: #ebebeb;
    border-color: #bbb;
}

.order-status-btn i {
    font-size: 0.9rem;
}

.orders-empty {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.orders-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* ===================== Auth no Carrinho ===================== */
.cart-auth-box {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.cart-auth-box p {
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #666;
}

.btn-primary-outline {
    background: transparent;
    border: 2px solid #000;
    color: #000;
    padding: 12px 20px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: #000;
    color: #fff;
}

.cart-auth-box.logged-in {
    text-align: left;
    background: #fff;
}

.cart-auth-box.logged-in p {
    margin-bottom: 5px;
    font-weight: 400;
    color: #333;
    font-size: 0.9rem;
}

/* Shipping Section */
.shipping-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.shipping-option:last-child { border-bottom: none; }

.shipping-option input[type="radio"] { flex-shrink: 0; accent-color: #111; }

.shipping-option-info { flex: 1; }

.shipping-option-name {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.shipping-option-eta {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
}

.shipping-option-price {
    font-size: 0.85rem;
    font-weight: 900;
    color: #111;
    white-space: nowrap;
}

.shipping-loading {
    font-size: 0.78rem;
    color: #888;
    text-align: center;
    padding: 10px 0;
}

.shipping-error {
    font-size: 0.75rem;
    color: #c00;
    text-align: center;
    padding: 8px 0;
}

.text-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
}

/* ===================== MODAL DETALHE DO PRODUTO ===================== */

.product-detail-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
}

.product-detail-modal.active {
    display: flex;
}

.pdm-inner {
    background: #fff;
    width: 92%;
    max-width: 900px;
    max-height: 92vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    position: relative;
}

.pdm-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(0,0,0,0.07);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}
.pdm-close:hover { background: rgba(0,0,0,0.15); }

/* Gallery */
.pdm-gallery {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdm-main-img {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    cursor: zoom-in;
}

.pdm-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s, transform 0.05s linear;
    transform-origin: 50% 50%;
    will-change: transform;
}

.pdm-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #eee;
    justify-content: center;
    flex-shrink: 0;
}

.pdm-thumb {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.65;
}
.pdm-thumb:hover, .pdm-thumb.active { border-color: #000; opacity: 1; }

/* Details */
.pdm-details {
    width: 340px;
    flex-shrink: 0;
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pdm-category {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pdm-name {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.pdm-price {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.pdm-installments {
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 20px;
}

.pdm-description {
    font-size: 0.82rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 24px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.pdm-size-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pdm-size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pdm-size-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1.5px solid #ccc;
    background: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pdm-size-btn:hover:not(:disabled) { border-color: #000; }
.pdm-size-btn.selected { border-color: #000; background: #000; color: #fff; }
.pdm-size-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.pdm-add-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}
.pdm-add-btn:hover:not(:disabled) { background: #222; }
.pdm-add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Mobile */
@media (max-width: 680px) {
    .product-detail-modal {
        align-items: flex-end;
    }
    .pdm-inner {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        height: 92vh;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        overflow-y: auto;
    }
    .pdm-gallery {
        height: 55vw;
        min-height: 200px;
        max-height: 260px;
        flex: none;
        flex-shrink: 0;
    }
    .pdm-main-img img {
        object-fit: contain;
    }
    .pdm-details {
        width: 100%;
        padding: 16px 20px 30px;
        flex: 1;
        overflow-y: visible;
    }
    .pdm-close {
        top: 12px;
        right: 12px;
        background: rgba(255,255,255,0.9);
    }
    .pdm-name { font-size: 0.9rem; }
}

/* Tornar imagem e nome do card clicáveis */
.product-image-container { cursor: pointer; }
.product-info h3 { cursor: pointer; text-decoration: none; }
.product-info h3:hover { text-decoration: underline; }

/* ── Brand Sections ─────────────────────────────────────────── */
.brand-nav-selector {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.brand-nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 18px 0;
}

@media (max-width: 768px) {
    .brand-nav-pills {
        justify-content: flex-start;
        padding: 14px 0;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .brand-nav-pills::-webkit-scrollbar {
        display: none;
    }
    .brand-nav-pills .brand-filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.brand-section {
    margin-bottom: 60px;
}

.brand-banner-wrap {
    width: 100%;
    height: calc(100vh - 100px);
    line-height: 0;
}

.brand-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.brand-product-grid {
    padding-top: 24px;
    padding-bottom: 8px;
}

/* ── Ver Coleção Completa Button ────────────────────────────── */
.ver-colecao-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 16px 24px;
    background: transparent;
    border: 1px solid #222;
    color: #111;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ver-colecao-btn:hover {
    background: #111;
    color: #fff;
}

.ver-colecao-count {
    font-weight: 400;
    opacity: 0.55;
    margin-left: 8px;
    letter-spacing: 1px;
}

.recolher-btn {
    border-color: #999;
    color: #666;
}

.recolher-btn:hover {
    background: #666;
    color: #fff;
    border-color: #666;
}

/* ── Brand Filter Pills ─────────────────────────────────────── */
.brand-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0 16px;
}

.brand-filter-pill {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: transparent;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.brand-filter-pill:hover,
.brand-filter-pill.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

@media (max-width: 768px) {
    .brand-filter-pills {
        gap: 6px;
        padding: 16px 0 12px;
    }
    .brand-filter-pill {
        padding: 8px 14px;
        font-size: 0.62rem;
    }
}
