/**
 * ThaBeauty - Clone E-commerce
 * CSS Principal - Design Premium Idêntico ao Original
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-orange: #111111;
    --primary-orange-dark: #000000;
    --primary-green: #ff3f86;
    --primary-green-dark: #e12f73;
    /* Aliases usados pelo JS/HTML (mantém compatibilidade) */
    --primary-color: #111111;
    --secondary-color: #ff3f86;
    --error-color: #E74C3C;
    --warning-color: #F39C12;
    --text-dark: #000000;
    --text-medium: #666666;
    --text-light: #999999;
    --text-white: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-light: #E5E5E5;
    --border-medium: #CCCCCC;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --container-max: 1140px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-white);
    max-width: 100svw;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 220ms ease;
}

body.is-ready {
    opacity: 1;
}

/* Loader de transição de páginas */
.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.page-loader.is-active {
    opacity: 1;
    pointer-events: all;
}

.page-loader .spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(0,0,0,0.12);
    border-top-color: var(--primary-color);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    body { transition: none; }
    .page-loader { transition: none; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* Toque mais "premium" no mobile */
a, button { -webkit-tap-highlight-color: transparent; }

button:active,
.btn:active,
a.button:active {
    transform: scale(0.99);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== HEADER ==================== */
.announcement-bar {
    background: var(--bg-white);
    color: var(--primary-orange);
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
}

.announcement-bar a {
    color: var(--primary-orange);
    text-decoration: none;
}

header {
    background: var(--primary-orange);
    position: sticky !important;
    width: 100svw;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

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

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box input {
    outline: none;
    width: 100%;
    padding: 10px 40px 10px 15px;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    fill: white;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: rgba(255, 255, 255, 0.5);
    border-right-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.5);
    border-left-color: rgba(255, 255, 255, 0.5);
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
}

.search-box input::placeholder {
    color: rgb(255, 255, 255, 0.5);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: white;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-white);
    position: relative;
    transition: background var(--transition-fast);
}

.header-icons a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-icons svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -12px;
    right: 0px;
    background: white;
    color: black;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.nav-list li a {
    display: block;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-list li a:hover {
    color: var(--primary-orange);
    background: rgba(230, 126, 34, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ==================== BANNER SLIDER ==================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

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

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-arrow:hover {
    background: var(--text-white);
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background: var(--text-white);
    transform: scale(1.2);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.section-title p {
    font-size: 14px;
    color: var(--text-medium);
}

/* ==================== PRODUCT GRID ==================== */
.products-grid {
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

/* ==================== PRODUCT CARD ==================== */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid var(--border-light);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-green);
    color: var(--text-white);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 5;
}

.product-badge.sale {
    background: #E74C3C;
}

.product-badge.new {
    background: var(--primary-orange);
}

.product-image {
    position: relative;
    width: 100%;
    height: 189.09px;
    background: var(--bg-light);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform var(--transition-normal);
}

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

.product-image.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8e8e8 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
}

.product-name a:hover {
    color: var(--primary-orange);
}

.product-price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
}

.original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

.discount-badge {
    display: inline-block;
    background: var(--primary-green);
    color: var(--text-white);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

.btn-buy {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-orange);
    color: var(--text-white);
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-buy:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
}

/* ==================== CART SIDEBAR ==================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1999;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

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

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--primary-orange);
    color: var(--text-white);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 5px;
    transition: transform var(--transition-fast);
}

.cart-close:hover {
    transform: rotate(90deg);
}

.cart-close svg {
    width: 24px;
    height: 24px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-medium);
}

.cart-empty svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 16px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-medium);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

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

.qty-value {
    font-size: 14px;
    font-weight: 500;
    min-width: 25px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
}

.cart-item-remove:hover {
    color: #E74C3C;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.cart-subtotal span:last-child {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 20px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-green);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cart-checkout-btn:hover {
    background: var(--primary-green-dark);
}

.cart-continue {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: var(--text-medium);
    font-size: 13px;
    cursor: pointer;
}

.cart-continue:hover {
    color: var(--primary-orange);
}

/* ==================== CHECKOUT PAGE ==================== */
.checkout-page {
    padding: 40px 0;
    background: var(--bg-light);
    min-height: 100vh;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.checkout-main {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.checkout-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.checkout-steps {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.checkout-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.checkout-step::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border-light);
}

.checkout-step:last-child::after {
    display: none;
}

.checkout-step.active::after {
    background: var(--primary-green);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
}

.checkout-step.active .step-number,
.checkout-step.completed .step-number {
    background: var(--primary-green);
    color: var(--text-white);
}

.step-label {
    font-size: 12px;
    color: var(--text-medium);
}

.checkout-step.active .step-label {
    color: var(--text-dark);
    font-weight: 500;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.shipping-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shipping-option:hover {
    border-color: var(--primary-orange);
}

.shipping-option.selected {
    border-color: var(--primary-green);
    background: rgba(39, 174, 96, 0.05);
}

.shipping-option input {
    display: none;
}

.shipping-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.shipping-option.selected .shipping-radio {
    border-color: var(--primary-green);
}

.shipping-option.selected .shipping-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
}

.shipping-info {
    flex: 1;
}

.shipping-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.shipping-time {
    font-size: 12px;
    color: var(--text-medium);
}

.shipping-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
}

.shipping-price.paid {
    color: var(--text-dark);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-method {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--primary-orange);
}

.payment-method.selected {
    border-color: var(--primary-green);
    background: rgba(39, 174, 96, 0.05);
}

.payment-method input {
    display: none;
}

.payment-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
}

.payment-icon svg {
    width: 100%;
    height: 100%;
}

.payment-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.payment-method.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-method.disabled .payment-label::after {
    content: ' (Indisponível)';
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light);
}

.card-form {
    display: none;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-top: 15px;
}

.card-form.active {
    display: block;
}

/* Order Summary */
.order-summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.order-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.order-item-qty {
    font-size: 12px;
    color: var(--text-medium);
}

.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.order-totals {
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.order-row.total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-light);
}

.order-row.total span:last-child {
    color: var(--primary-green);
}

.order-row .free {
    color: var(--primary-green);
    font-weight: 600;
}

.checkout-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-green);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 20px;
}

.checkout-submit:hover {
    background: var(--primary-green-dark);
}

.checkout-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-medium);
}

.security-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary-green);
}

/* ==================== PIX PAGE ==================== */
.pix-page {
    padding: 40px 0;
    background: radial-gradient(1200px 800px at 20% 0%, rgba(255,63,134,0.10), transparent 55%),
                radial-gradient(900px 600px at 90% 10%, rgba(17,17,17,0.06), transparent 50%),
                var(--bg-light);
    min-height: 100vh;
}

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

.pix-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    animation: fadeUp 420ms ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pix-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pix-brand .pix-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(230,126,34,0.12);
    color: var(--primary-orange-dark);
}

.pix-meta {
    margin: 18px 0 18px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    background: rgba(255,255,255,0.6);
}

.pix-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-medium);
}

.pix-meta-row strong {
    font-size: 14px;
    color: var(--text-dark);
}

.pix-meta-row.total strong {
    font-size: 18px;
    color: var(--primary-green-dark);
}

.pix-timerbar {
    margin: 16px 0 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255,63,134,0.10);
    border: 1px solid rgba(230,126,34,0.18);
}

.pix-timerbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pix-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    overflow: hidden;
}

.pix-progress > div {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
    transition: width 500ms ease;
}

.pix-status.pill {
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(248,249,250,0.9);
}

.pix-status.pending {
    color: var(--text-medium);
}

.pix-status.paid {
    border-color: rgba(39,174,96,0.25);
    background: rgba(17,17,17,0.06);
    color: var(--primary-green-dark);
}

.pix-status.expired {
    border-color: rgba(231,76,60,0.25);
    background: rgba(231,76,60,0.10);
    color: var(--error-color);
}

.pix-qr-frame {
    margin: 18px auto 18px;
    width: fit-content;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.pix-qr-frame::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(230,126,34,0.25), rgba(39,174,96,0.25));
    filter: blur(10px);
    z-index: -1;
}

.pix-qr-skeleton {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.10), rgba(0,0,0,0.06));
    background-size: 200% 100%;
    animation: shimmer 1.2s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pix-qr-frame #qrcode {
    display: flex;
    justify-content: center;
}

.pix-qr-frame #qrcode img,
.pix-qr-frame #qrcode canvas {
    width: 220px !important;
    height: 220px !important;
    border-radius: 12px;
}

.pix-copy-field {
    align-items: center;
}

.pix-copy-input {
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(248,249,250,0.9);
}

.pix-copy-btn {
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.pix-copy-btn:active {
    transform: scale(0.98);
}

.pix-copy-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
}

.pix-steps {
    text-align: left;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.pix-steps h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pix-step {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-medium);
    font-size: 13px;
}

.pix-step .n {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: var(--text-dark);
    background: rgba(0,0,0,0.06);
}

.pix-help {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-light);
}

/* Toasts */
.toast-host {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 6000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: none;
    background: rgba(17,17,17,0.92);
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.is-out {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

.toast-success { background: rgba(39,174,96,0.92); }
.toast-error { background: rgba(231,76,60,0.92); }
.toast-info { background: rgba(17,17,17,0.92); }

.pix-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.pix-icon svg {
    width: 100%;
    height: 100%;
}

.pix-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pix-subtitle {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.pix-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.pix-qr {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    display: inline-block;
    margin-bottom: 25px;
}

.pix-qr img {
    width: 200px;
    height: 200px;
}

.pix-copy {
    margin-bottom: 25px;
}

.pix-copy-label {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.pix-copy-field {
    display: flex;
    gap: 10px;
}

.pix-copy-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-dark);
    background: var(--bg-light);
}

.pix-copy-btn {
    padding: 12px 20px;
    background: var(--primary-green);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.pix-copy-btn:hover {
    background: var(--primary-green-dark);
}

.pix-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.pix-timer svg {
    width: 20px;
    height: 20px;
    color: var(--primary-orange);
}

.pix-timer span {
    font-size: 14px;
    color: var(--text-dark);
}

.pix-timer strong {
    color: var(--primary-orange);
}

.pix-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-medium);
}

.pix-status.checking::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pix-status.checking i { display: none; }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== SUCCESS PAGE ==================== */
.success-page {
    padding: 60px 0;
    background: var(--bg-light);
    min-height: 100vh;
}

.success-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon svg {
    width: 50px;
    height: 50px;
    color: var(--text-white);
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.success-message {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-order-number {
    display: inline-block;
    padding: 15px 30px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.success-order-number span {
    font-size: 13px;
    color: var(--text-medium);
    display: block;
    margin-bottom: 5px;
}

.success-order-number strong {
    font-size: 20px;
    color: var(--primary-orange);
}

.success-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-orange);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.success-btn:hover {
    background: var(--primary-orange-dark);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--text-white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background: var(--primary-orange);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.footer-payment img {
    height: 24px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    color: var(--text-white);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .logo {
        order: 2;
        flex: 1;
        text-align: center;
    }

    .logo img {
        height: 44px;
        margin: 0 auto;
    }

    .search-box {

        order: 4;
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }

    .mobile-menu-btn {
        display: flex;
        order: 1;
    }

    .header-icons {
        order: 3;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: var(--shadow-md);
    }

    .nav-list {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-list li a {
        padding: 12px 20px;
        border-radius: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 12px;
        min-height: 32px;
    }

    .current-price {
        font-size: 16px;
    }

    .original-price {
        font-size: 11px;
    }

    .btn-buy {
        padding: 10px 15px;
        font-size: 12px;
    }

    .section {
        padding: 5px 0;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-main {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .header-icons a {
        width: 36px;
        height: 36px;
    }

    .products-grid {
        gap: 10px;
    }

    .product-info {
        padding: 10px;
    }

    .discount-badge {
        display: none;
    }

    .pix-card {
        padding: 25px 20px;
    }

    .pix-qr img {
        width: 160px;
        height: 160px;
    }

    .pix-amount {
        font-size: 26px;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: var(--text-white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 9999;
}

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

.toast.success {
    background: var(--primary-green);
}

.toast.error {
    background: #E74C3C;
}

/* ===== PRODUTO (produto.html) - ajustes visuais ===== */

/* Layout base do produto */
.product-page {
    padding: 24px 0 40px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

/* Em desktop: galeria + detalhes lado a lado */
@media (min-width: 900px) {
    .product-layout {
        grid-template-columns: 520px 1fr;
        gap: 30px;
    }
}

/* Galeria: somente 1 imagem */
.product-gallery.single {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.product-gallery.single .main-image {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.product-gallery.single .main-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
    padding: 18px;
}

/* Detalhes */
.product-details.improved {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

@media (min-width: 900px) {
    .product-details.improved {
        padding: 22px;
    }
}

.product-title {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Rating */
.product-rating.improved {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 14px;
}

.product-rating.improved .rating-count {
    font-size: 13px;
    color: var(--text-medium);
}

/* Estrelas amarelas (sem depender do FontAwesome) */
.stars-yellow {
    display: inline-flex;
    gap: 2px;
    font-size: 14px;
    line-height: 1;
}

.stars-yellow,
.stars-yellow * {
    color: #f5b301 !important;
}

/* Preço */
.product-price.improved {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 14px;
}

.product-price.improved .price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-price.improved .current-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.product-price.improved .original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price.improved .discount-badge {
    background: #eaf7ef;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* Parcelamento */
.installments.improved {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 16px;
}

/* Linha de compra (quantidade + botão lado a lado) */
.buy-row {
    display: flex;
    margin: 10px 0 18px;
}

@media (min-width: 520px) {
    .buy-row {
        grid-template-columns: 170px 1fr;
        align-items: stretch;
    }
}

/* Quantidade */
.qty-box {
    display: flex;
    gap: 4px;
    border-right: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-medium);
    border-right: none;
    overflow: hidden;
    background: var(--bg-white);
    height: 48px;
}

.qty-box input {
    border: none;
    outline: none;
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
    width: 100%;
}

.qty-btn {
    border: none;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    transition: background var(--transition-fast);
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Botão comprar maior */
.btn-buy-large {
    height: 48px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Frete (sem popup) */
.shipping-calc.improved {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.shipping-calc.improved h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.input-group.improved {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 10px;
    align-items: center;
}

@media (max-width: 360px) {
    .input-group.improved {
        grid-template-columns: 1fr;
    }
}

.input-group.improved input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    outline: none;
}

.input-group.improved input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
}

.input-group.improved button {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-orange);
    color: var(--text-white);
    font-weight: 800;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.input-group.improved button:hover {
    background: var(--primary-orange-dark);
}

/* Resultado do frete */
.shipping-results {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ship-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.ship-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ship-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

.ship-time {
    font-size: 12px;
    color: var(--text-medium);
}

.ship-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
}

.ship-price.free {
    color: var(--primary-green);
}

/* Descrição */
.product-description.improved {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.product-description.improved h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.product-description.improved p {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: 10px;
}

/* Footer em acordeão (base — se quiser, depois a gente “fecha” mobile-only) */
.footer.footer-accordion {
    background: var(--primary-orange);
    color: var(--text-white);
}

.footer-acc-container {
    padding: 26px 0 18px;
}

.footer-acc-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    border: none;
    background: transparent;
    color: var(--text-white);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.footer-acc-icon {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.footer-acc-panel {
    display: none;
    padding: 0 10px 12px;
}

.footer-acc-panel.open {
    display: block;
}

.footer-acc-panel a {
    display: block;
    padding: 10px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-acc-panel a:last-child {
    border-bottom: none;
}

.footer-pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
}

.footer-pay-pill {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-white);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.footer-acc-bottom {
    margin-top: 16px;
    padding: 14px 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.footer-acc-bottom p {
    margin: 4px 0;
}

.star {
    font-size: 1.5rem;
    line-height: 1;
}

.star.on {
    color: #f5b301;
}

.rating-count {
    margin-left: 1rem;
}

.stars-row {
    display: flex;
    align-items: center;
}

/* ===== Microinterações premium ===== */
.reveal-stagger .product-card {
    opacity: 0;
    transform: translateY(10px);
    animation: none;
}
.reveal-stagger .product-card.reveal-in {
    animation: cardReveal 420ms cubic-bezier(.2,.9,.2,1) both;
}
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-count.is-bump {
    animation: bump 260ms cubic-bezier(.2,.9,.2,1);
}
@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Cart drawer: transição suave sem 'display: none' */
.cart-sidebar {
    display: flex !important;
    right: 0 !important;
    transform: translateX(110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease, visibility 0s linear 260ms;
}
.cart-sidebar.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
}

.cart-overlay {
    transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.cart-overlay.active {
    transition: opacity 220ms ease;
}

/* Botão comprar: feedback */
.btn-buy {
    position: relative;
    overflow: hidden;
    transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn-buy:active { transform: translateY(1px) scale(0.99); }

/* Layout mais denso para home "Todos os produtos" */
.products-grid--dense {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.section-title--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.link-more {
    font-size: 13px;
    color: var(--text-medium);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 180ms ease, color 180ms ease;
}
.link-more:hover { color: var(--text-dark); border-color: rgba(0,0,0,0.22); }
