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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --accent: #1a1a1a;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

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

/* HEADER - RESPONSIVO */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cart-container {
    position: relative;
}

.cart-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 12px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-btn:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.cart-count {
    background: var(--white);
    color: var(--black);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    flex: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: #f0f0f0;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-img-placeholder {
    width: 100%;
    height: 80vh;
    background: linear-gradient(45deg, #333 25%, transparent 25%), 
                linear-gradient(-45deg, #333 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #333 75%), 
                linear-gradient(-45deg, transparent 75%, #333 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 20px;
    margin: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-img-placeholder::before {
    content: 'Imagem Hero';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255,255,255,0.3);
}

/* FILTROS */
.filters {
    padding: 5rem 0;
    background: rgba(255,255,255,0.02);
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.filter-slider {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.15rem 0.75rem;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-arrow:hover {
    background: var(--white);
    color: var(--black);
}

.filter-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* CATÁLOGO */
.catalog {
    padding: 5rem 0 10rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255,255,255,0.3);
}

.product-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f4f4f4;
    transition: all 0.6s ease;
}

.product-card:hover .product-image img.front {
    transform: scale(1.1) translateY(-20px);
}

.product-card:hover .product-image img.back {
    opacity: 1;
    transform: scale(1.05);
}

.product-image img.back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.product-tag {
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PAGINAÇÃO DO CATÁLOGO */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn,
.page-arrow {
    min-width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-arrow:hover:not(:disabled),
.page-btn.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.page-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-counter {
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* CARRINHO LATERAL */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(420px, 90vw);
    height: 100vh;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(30px);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-500);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255,255,255,0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-details {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: var(--white);
    color: var(--black);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.05);
}

.quantity {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.remove-item {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.remove-item:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-total.final {
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    padding: 1.5rem 2rem;
}

.checkout-btn {
    width: 100%;
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-500);
    color: var(--gray-900);
}

/* MODAL PRODUTO - ADAPTATIVO PC/MOBILE */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    padding-top: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(10px);
}

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

.product-modal .modal-content {
    width: 100%;
    max-width: 1200px;
    background: rgba(20,20,20,0.98);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.product-gallery {
    flex: 1;
    min-width: 0;
    position: relative;
}

.gallery-main {
    height: 100%;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f4f4f4;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.thumb-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: #f4f4f4;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumb-img.active {
    opacity: 1;
    border: 2px solid var(--white);
    transform: scale(1.05);
}

.product-modal .product-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
    background: linear-gradient(135deg, var(--white), #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-category {
    color: var(--gray-400);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.product-stock {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.stock-delivery {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
    color: var(--gray-300);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stock-delivery {
        display: flex;
        margin-left: 0;
        margin-top: 0.45rem;
    }
}

.option-group {
    margin-bottom: 2rem;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--gray-300);
}

.size-buttons,
.color-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-btn {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn.active,
.size-btn:hover:not(.disabled) {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

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

.color-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn.active {
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.color-btn.black { background: #000; }
.color-btn.white { background: #fff; }
.color-btn.gray { background: #666; }

.color-btn.off-white { background: #f7f7df; }
.color-btn.amarelo-ouro { background: #f2d400; }
.color-btn.vermelha { background: #bf001f; }
.color-btn.saara { background: #b7b68b; }
.color-btn.azul-marinho { background: #002d4d; }
.color-btn.verde-musgo { background: #1d4f2d; }
.color-btn.vinho { background: #68143f; }
.color-btn.roxo { background: #65307e; }
.color-btn.marrom { background: #554535; }
.color-btn.off-white,
.color-btn.white { border-color: rgba(0,0,0,0.15); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.color-btn.off-white.active,
.color-btn.white.active { border-color: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,0.3), inset 0 0 0 1px rgba(0,0,0,0.12); }


.product-description {
    color: var(--gray-400);
    line-height: 1.7;
    margin: 2rem 0;
    font-size: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.add-cart-btn,
.buy-now-btn {
    flex: 1;
    padding: 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-cart-btn {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
}

.add-cart-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
}

.add-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.buy-now-btn {
    background: var(--white);
    color: var(--black);
}

.buy-now-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.buy-now-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* DESKTOP - Modal horizontal */
@media (min-width: 769px) {
    .product-modal .modal-content {
        flex-direction: row;
        max-height: 90vh;
        height: 90vh;
    }

    .product-gallery {
        height: 100%;
    }

    .gallery-thumbs {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }

    .product-modal .product-info {
        width: 500px;
        flex: 0 0 500px;
        padding: 3rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* MOBILE - Modal vertical otimizado */
@media (max-width: 768px) {
    .product-modal {
        padding: 0.5rem;
        padding-top: 90px;
    }

    .product-modal .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 20px;
        flex-direction: column;
        margin-top: 1rem;
    }

    .product-gallery {
        height: 50vh;
        min-height: 300px;
    }

    .gallery-thumbs {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        gap: 8px;
        padding: 1rem 1rem 0.5rem;
        background: linear-gradient(transparent, rgba(0,0,0,0.9));
        z-index: 10;
    }

    .thumb-img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .product-modal .product-info {
        flex: 1;
        padding: 1.5rem 1.25rem;
        min-height: 400px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-price {
        font-size: 1.75rem;
    }

    .product-actions {
        margin-top: 1.5rem;
    }

    .add-cart-btn,
    .buy-now-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* MODAL PAGAMENTO - NOVA INTERFACE */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    display: flex;
}

.payment-modal {
    background: rgba(20,20,20,0.98);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-300);
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.form-group input::placeholder {
    color: var(--gray-500);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.payment-option input:checked + span + .payment-icon {
    background: var(--white);
    color: var(--black);
}

.payment-option input {
    margin: 0;
    accent-color: var(--white);
}

.payment-option span {
    font-weight: 600;
    flex: 1;
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.order-summary {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.order-summary h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.order-summary div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.order-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1.2rem;
}

.order-total span {
    font-weight: 600;
}

.order-total strong {
    font-size: 1.5rem;
    color: var(--white);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* RESPONSIVO PERFEITO */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .nav {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 1rem 2rem;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        width: 100%;
        margin: 0;
    }
    
    .hero-img-placeholder {
        height: 50vh;
        margin: 0;
    }
    
    .filter-slider {
        max-width: 100%;
        gap: 0.5rem;
    }

    .filter-buttons {
        gap: 0.75rem;
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        flex: 0 0 auto;
    }

    .filter-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.7rem;
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-modal {
        padding: 0.5rem;
        padding-top: 100px;
    }
    
    .modal-content {
        max-height: 98vh;
        border-radius: 16px;
    }
    
    .product-gallery {
        height: 40vh;
    }
    
    .product-info {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 0 0.5rem;
    }
    
    .product-card { border-radius: 12px; }
    .product-image { height: 150px; }
    .product-info { padding: 0.7rem; }
    .product-title { font-size: 0.78rem; margin-bottom: 0.3rem; }
    .product-price { font-size: 0.9rem; margin: 0.3rem 0 0.2rem; }
    .product-tag { font-size: 0.58rem; letter-spacing: 0.4px; }
    .pagination { gap: 0.45rem; margin-top: 2rem; }
    .page-btn, .page-arrow { min-width: 38px; height: 38px; border-radius: 10px; }
    .page-counter { width: 100%; text-align: center; margin-left: 0; }
    
    .section-title {
        font-size: 2rem;
    }

    .filter-slider {
        gap: 0.35rem;
    }

    .filter-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.45rem;
    }

    .filter-btn {
        padding: 9px 16px;
        font-size: 0.82rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .remove-item {
        order: -1;
    }
}
/* LOGO SACRED */
.logo img { height: 48px; max-width: 150px; object-fit: contain; }
.hero-logo { display: block; width: min(520px, 90vw); max-height: 260px; object-fit: contain; margin: 0 0 1.5rem; filter: drop-shadow(0 12px 28px rgba(255,255,255,0.12)); }
.hero-img-placeholder { background: transparent !important; display: flex; align-items: center; justify-content: center; }
.hero-img-placeholder::before { display: none !important; content: none !important; }
.hero-brand-img { width: min(680px, 92%); height: auto; object-fit: contain; filter: drop-shadow(0 20px 45px rgba(255,255,255,0.14)); }
@media (max-width: 768px) { .logo img { height: 38px; max-width: 120px; } .hero-logo { margin: 0 auto 1rem; width: min(360px, 90vw); } .hero-brand-img { width: min(420px, 95%); } }

/* =========================================================
   CORREÇÕES MOBILE - mantêm o PC sem alterações
   ========================================================= */
@media (max-width: 768px) {
    /* Header mobile com menu arrastável e carrinho fixo/visível */
    .header {
        padding: 0.65rem 0;
    }

    .header .container {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
        padding: 0 0.75rem;
        width: 100%;
    }

    .logo {
        min-width: 0;
        flex-shrink: 0;
    }

    .logo img {
        height: 34px;
        max-width: 95px;
        object-fit: contain;
    }

    .nav {
        min-width: 0;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1.15rem;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.45rem 0.25rem;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        font-size: 0.82rem;
        line-height: 1;
    }

    .cart-container {
        justify-self: end;
        flex-shrink: 0;
        z-index: 5;
    }

    .cart-btn {
        width: 46px;
        height: 46px;
        padding: 9px;
        justify-content: center;
        gap: 4px;
    }

    .cart-btn svg {
        width: 21px;
        height: 21px;
        flex-shrink: 0;
    }

    .cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.68rem;
    }

    /* Carrinho lateral não fica cortado no mobile */
    .cart-sidebar {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
        border-left: none;
    }

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

    /* Modal do produto mobile: nada fica em cima da foto */
    .product-modal {
        padding: 0.5rem;
        padding-top: 78px;
        align-items: flex-start;
    }

    .product-modal .modal-content {
        width: 100%;
        max-width: 96vw;
        max-height: calc(100vh - 90px);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 0;
        border-radius: 18px;
    }

    .product-gallery {
        height: auto !important;
        min-height: 0 !important;
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        position: relative;
    }

    .gallery-main {
        height: 42vh;
        min-height: 270px;
        max-height: 430px;
        flex: 0 0 auto;
    }

    .gallery-thumbs {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        background: rgba(12,12,12,0.98) !important;
        padding: 0.8rem 1rem;
        gap: 0.7rem;
        z-index: auto;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .thumb-img {
        width: 58px;
        height: 58px;
    }

    .product-modal .product-info {
        min-height: auto !important;
        height: auto;
        overflow: visible;
        padding: 1.25rem 1.1rem 1.35rem;
        flex: 0 0 auto;
    }

    .product-options,
    .option-group,
    .size-buttons,
    .color-buttons {
        position: static !important;
        z-index: auto !important;
    }

    .option-group {
        margin-bottom: 1.25rem;
    }

    .option-group label {
        margin-bottom: 0.7rem;
    }

    .size-buttons,
    .color-buttons {
        gap: 0.65rem;
    }

    .size-btn,
    .color-btn {
        width: 44px;
        height: 44px;
    }

    .product-description {
        margin: 1.25rem 0;
        font-size: 0.95rem;
    }

    .product-actions {
        display: flex;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .add-cart-btn,
    .buy-now-btn {
        min-height: 58px;
        padding: 0.9rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .logo img {
        height: 30px;
        max-width: 78px;
    }

    .nav {
        gap: 0.95rem;
    }

    .nav-link {
        font-size: 0.78rem;
    }

    .cart-btn {
        width: 42px;
        height: 42px;
    }

    .gallery-main {
        height: 38vh;
        min-height: 250px;
    }
}


/* CORES EXTRAS DO CATÁLOGO */
.color-btn.amarelo-neon { background: #ffff2a; }
.color-btn.laranja { background: #ff5a00; }
.color-btn.azul-royal { background: #203f8f; }
.color-btn.azul-celeste { background: #18a8de; }
.color-btn.verde-bandeira { background: #008f4f; }
.color-btn.cinza-claro { background: #9e9e9e; }
.color-btn.chumbo { background: #4a4f54; }
.color-btn.areia { background: #ae9878; }
.color-btn.pink { background: #d31667; }
.color-btn.rosa-bebe { background: #f1cad8; }
.color-btn.amarelo-neon,
.color-btn.amarelo-ouro,
.color-btn.off-white,
.color-btn.rosa-bebe { border-color: rgba(0,0,0,0.18); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10); }
.color-btn.amarelo-neon.active,
.color-btn.amarelo-ouro.active,
.color-btn.off-white.active,
.color-btn.rosa-bebe.active { border-color: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,0.3), inset 0 0 0 1px rgba(0,0,0,0.12); }

.coming-soon-message {
    grid-column: 1 / -1;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--white);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 24px;
}


/* =========================================================
   AJUSTE FINAL MOBILE: modal e paginação sem precisar zoom
   ========================================================= */
.page-dots {
    color: var(--gray-500);
    font-weight: 800;
    padding: 0 0.15rem;
    min-width: 18px;
    text-align: center;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        touch-action: manipulation;
    }

    .product-modal {
        inset: 0;
        padding: 72px 0 0 0 !important;
        overflow: hidden !important;
    }

    .product-modal.active {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .product-modal .modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100dvh - 72px) !important;
        max-height: calc(100dvh - 72px) !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        z-index: 50;
    }

    .product-gallery {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .gallery-main {
        width: 100% !important;
        height: 48dvh !important;
        min-height: 330px !important;
        max-height: 520px !important;
        background: #050505 !important;
    }

    .gallery-main img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
    }

    .gallery-thumbs {
        position: static !important;
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0.75rem 0.9rem !important;
        background: #0f0f0f !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }

    .product-modal .product-info {
        width: 100% !important;
        flex: 0 0 auto !important;
        padding: 1rem 1rem 1.25rem !important;
        overflow: visible !important;
    }

    .product-actions {
        position: sticky;
        bottom: 0;
        background: rgba(20,20,20,0.98);
        padding-top: 0.75rem;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
        z-index: 20;
    }

    .pagination {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) 48px !important;
        gap: 0.5rem !important;
        align-items: center !important;
        padding: 0 0.75rem !important;
        overflow: hidden !important;
    }

    .page-numbers {
        min-width: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.35rem !important;
        overflow: hidden !important;
    }

    .page-btn,
    .page-arrow {
        min-width: 44px !important;
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }

    .page-counter {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0.25rem 0 0 !important;
        text-align: center;
        font-size: 0.88rem;
    }
}

@media (max-width: 420px) {
    .gallery-main {
        height: 46dvh !important;
        min-height: 300px !important;
    }

    .product-modal .modal-content {
        height: calc(100dvh - 68px) !important;
        max-height: calc(100dvh - 68px) !important;
    }

    .product-modal {
        padding-top: 68px !important;
    }

    .page-btn,
    .page-arrow {
        min-width: 42px !important;
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }
}

/* RODAPÉ / CONTATO */
.footer {
    background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(0,0,0,1) 45%);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 5rem 1.25rem 2.5rem;
    text-align: center;
}
.footer-container { max-width: 900px; }
.footer-logo {
    width: min(260px, 70vw);
    height: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 12px 28px rgba(255,255,255,0.12));
}
.footer h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.footer-subtitle {
    color: var(--gray-400);
    margin-bottom: 2rem;
    font-size: 1rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 210px;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    border: 1px solid rgba(255,255,255,0.16);
}
.footer-btn.whatsapp { background: #25D366; color: #07150b; }
.footer-btn.instagram { background: rgba(255,255,255,0.08); color: var(--white); }
.footer-btn:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.45); }
.footer-copy { color: var(--gray-500); font-size: 0.9rem; line-height: 1.7; }
@media (max-width: 768px) {
    .footer { padding: 4rem 1rem 2rem; }
    .footer-links { flex-direction: column; align-items: stretch; max-width: 330px; margin-left: auto; margin-right: auto; }
    .footer-btn { width: 100%; min-width: 0; }
}

/* =========================================================
   CORES CORRIGIDAS - Loja Sacred
   Ordem: branca, preta, offwhite, amarelo canário, amarelo ouro,
   laranja, vermelha, azul marinho, azul royal, azul turquesa,
   verde musgo, verde bandeira, cinza mescla, cinza chumbo,
   caramelo, saara, marrom, vinho, roxo, pink, rosa bebê
   ========================================================= */
.color-btn.branca { background: #ffffff !important; }
.color-btn.preta { background: #000000 !important; }
.color-btn.offwhite { background: #fbfbdc !important; }
.color-btn.amarelo-canario { background: #fff72b !important; }
.color-btn.amarelo-ouro { background: #e9c900 !important; }
.color-btn.laranja { background: #ff5a00 !important; }
.color-btn.vermelha { background: #bd001f !important; }
.color-btn.azul-marinho { background: #002f4f !important; }
.color-btn.azul-royal { background: #1d3f8f !important; }
.color-btn.azul-turquesa { background: #1ba4d8 !important; }
.color-btn.verde-musgo { background: #1f4f2b !important; }
.color-btn.verde-bandeira { background: #008f4f !important; }
.color-btn.cinza-mescla { background: #9e9e9e !important; }
.color-btn.cinza-chumbo { background: #4a4f54 !important; }
.color-btn.caramelo { background: #ad9879 !important; }
.color-btn.saara { background: #b9b88f !important; }
.color-btn.marrom { background: #514233 !important; }
.color-btn.vinho { background: #68143f !important; }
.color-btn.roxo { background: #65307e !important; }
.color-btn.pink { background: #d31667 !important; }
.color-btn.rosa-bebe { background: #f1cad8 !important; }

.color-btn.branca,
.color-btn.offwhite,
.color-btn.amarelo-canario,
.color-btn.amarelo-ouro,
.color-btn.rosa-bebe {
    border-color: rgba(0,0,0,0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
}

.color-btn.branca.active,
.color-btn.offwhite.active,
.color-btn.amarelo-canario.active,
.color-btn.amarelo-ouro.active,
.color-btn.rosa-bebe.active {
    border-color: var(--white) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3), inset 0 0 0 1px rgba(0,0,0,0.12) !important;
}

/* ===== ABAS SEPARADAS SACRED ===== */
.page-section { display: none; min-height: 100vh; padding-top: 78px; }
.page-section.active-page { display: block; }
#home.page-section { padding-top: 0; }
.sacred-home-hero { padding-left: max(20px, calc((100vw - 1400px) / 2 + 20px)); padding-right: max(20px, calc((100vw - 1400px) / 2 + 20px)); gap: 2rem; }
.hero-eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--gray-300); text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 800; margin-bottom: 1rem; }
.section-kicker.center { display: flex; justify-content: center; }
.section-title.left { text-align: left; margin-bottom: 1.5rem; }
.home-sheep-wrap { display: flex; align-items: center; justify-content: center; min-height: 70vh; background: radial-gradient(circle, rgba(255,255,255,.13), transparent 55%); border-radius: 32px; }
.home-sheep-art { width: min(420px, 86vw); max-height: 72vh; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(255,255,255,.12)); }
.brand-story, .art-showcase, .contact-hero { padding: 6rem 0; background: var(--black); }
.story-grid, .contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.story-copy p, .contact-note { color: var(--gray-300); font-size: 1.05rem; margin-bottom: 1rem; max-width: 760px; }
.story-card, .contact-card { min-height: 340px; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; box-shadow: var(--shadow); }
.story-card strong { font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: -3px; }
.story-card span, .contact-card p { color: var(--gray-300); letter-spacing: 1px; }
.art-showcase { background: rgba(255,255,255,.025); }
.art-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem; }
.art-card { min-height: 430px; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; background: rgba(255,255,255,.055); padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; }
.art-card img { width: min(360px, 90%); align-self: center; margin: auto 0 1rem; object-fit: contain; filter: drop-shadow(0 20px 45px rgba(255,255,255,.12)); }
.art-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.art-card p { color: var(--gray-300); }
.text-art { justify-content: center; text-align: center; }
.text-art span { display: block; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: .9; margin-bottom: 2rem; color: rgba(255,255,255,.95); text-shadow: 0 12px 30px rgba(255,255,255,.08); }
.contact-page .footer { padding: 2rem 0 3rem; }
.contact-card h3 { font-size: 2rem; margin-bottom: 1rem; }
#catalog.page-section .filters { padding-top: 4rem; }
.nav-link.active { opacity: 1; }
@media (max-width: 900px) {
  .story-grid, .contact-grid, .art-grid { grid-template-columns: 1fr; }
  .sacred-home-hero { flex-direction: column; text-align: center; padding-top: 110px; }
  .section-title.left { text-align: center; }
  .home-sheep-wrap { min-height: 420px; width: 100%; }
}
@media (max-width: 768px) {
  .page-section { padding-top: 72px; }
  #home.page-section { padding-top: 0; }
  .brand-story, .art-showcase, .contact-hero { padding: 4rem 0; }
  .art-card { min-height: 330px; }
  .home-sheep-art { width: min(300px, 86vw); }
}

/* Descrições das estampas com quebras de linha preservadas */
.product-description {
    white-space: pre-line;
}

/* Ajustes finais Sacred: logo no hero, card de marca e inspirações */
.home-sheep-wrap .hero-brand-img {
    width: min(620px, 90%);
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 22px 50px rgba(255,255,255,0.16));
}
.story-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}
.story-logo-img {
    width: min(360px, 90%);
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 16px 36px rgba(255,255,255,0.14));
}
.art-card.featured img {
    width: 100%;
    height: 330px;
    object-fit: contain;
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    padding: 1rem;
}
.art-card p {
    white-space: normal;
}
@media (max-width: 768px) {
    .home-sheep-wrap .hero-brand-img { width: min(420px, 94%); max-height: 300px; }
    .story-logo-img { width: min(280px, 90%); }
    .art-card.featured img { height: 260px; }
}

/* ===== AJUSTES CHECKOUT MOBILE + CUPOM/FRETE ===== */
.coupon-box {
    margin: 1.5rem 0 1.25rem;
}

.coupon-box label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-300);
}

.coupon-row {
    display: flex;
    gap: 0.75rem;
}

.coupon-row input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
}

.coupon-row input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.coupon-row button {
    flex: 0 0 auto;
    border: none;
    border-radius: 12px;
    padding: 0 1.1rem;
    background: var(--white);
    color: var(--black);
    font-weight: 800;
    cursor: pointer;
}

.coupon-message {
    display: block;
    min-height: 1.25rem;
    margin-top: 0.55rem;
    font-weight: 700;
    color: var(--gray-400);
}

.coupon-message.success { color: #6ee7a8; }
.coupon-message.error { color: #ff7b7b; }

#paymentOrderItems {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.order-item-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    align-items: start;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0 !important;
}

.order-item-name,
.order-item-meta {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.order-item-name {
    font-weight: 700;
    color: var(--white);
}

.order-item-meta {
    grid-column: 1 / -1;
    color: var(--gray-400);
    font-size: 0.88rem;
}

.order-item-price {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
    font-weight: 800;
    color: var(--white);
}

.summary-line {
    display: flex !important;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.45rem 0 !important;
    color: var(--gray-300);
}

.summary-line strong {
    white-space: nowrap;
    color: var(--white);
}

.discount-line strong {
    color: #6ee7a8;
}

@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-start;
        padding: 0.65rem;
        padding-top: 80px;
        overflow-y: auto;
    }

    .payment-modal {
        width: 100%;
        max-width: 96vw;
        max-height: calc(100vh - 95px);
        padding: 1.35rem;
        border-radius: 20px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .payment-modal h3 {
        font-size: 1.45rem;
        padding-right: 3rem;
    }

    .order-summary {
        padding: 1rem;
        margin: 1.25rem 0;
        overflow: hidden;
    }

    .order-item-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-item-price {
        grid-column: 1;
        grid-row: auto;
        white-space: normal;
        font-size: 0.95rem;
    }

    .order-item-meta {
        font-size: 0.82rem;
    }

    .coupon-row {
        flex-direction: column;
        gap: 0.6rem;
    }

    .coupon-row button {
        width: 100%;
        padding: 0.95rem 1rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 56px;
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.2;
    }

    .order-total strong {
        font-size: 1.75rem;
        white-space: nowrap;
    }
}
