/**
 * LojaVirtual - Main Stylesheet
 * CSS Profissional Completo para E-commerce
 * Classes alinhadas com os views PHP
 */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4e73df;
    --primary-dark: #3a5bc7;
    --primary-light: #eef2ff;
    --secondary: #858796;
    --success: #1cc88a;
    --danger: #e74a3b;
    --warning: #f6c23e;
    --info: #36b9cc;
    --dark: #2d2d2d;
    --light: #f8f9fc;
    --white: #ffffff;
    --border: #e3e6f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all .3s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============================================================
   TOP BAR  (layout: .top-bar)
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
    overflow: hidden;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }
.top-bar-left span, .top-bar-right a, .top-bar-right span { font-size: 12px; }
.top-bar-right .separator { color: #555; margin: 0 6px; }
.top-bar-center { overflow: hidden; white-space: nowrap; }
.top-bar-marquee {
    display: inline-flex;
    gap: 60px;
    animation: marquee 25s linear infinite;
}
.top-bar-marquee span { color: var(--warning); font-weight: 500; white-space: nowrap; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-200%); } }

/* ============================================================
   HEADER  (layout: .main-header)
   ============================================================ */
.main-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.main-header.header-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.1); }

.header-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
}
.logo-icon i { font-size: 28px; }
.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Search */
.header-search { flex: 1; max-width: 600px; position: relative; }
.search-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #eee;
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
}
.search-input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(78,115,223,.15); }
.search-input-group input {
    flex: 1;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    background: transparent;
}
.search-btn {
    width: 44px;
    height: 42px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 25px 25px 0;
    transition: var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--dark);
    transition: background .15s;
}
.suggestion-item:hover { background: var(--light); }
.suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.suggestion-name { display: block; font-size: 13px; font-weight: 500; }
.suggestion-price { font-size: 12px; color: var(--primary); font-weight: 700; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-action-item { position: relative; }
.action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 11px;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}
.action-link:hover { background: var(--light); color: var(--primary); }
.action-link i { font-size: 22px; }
.action-text { font-size: 11px; white-space: nowrap; }
.cart-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.badge-bounce { animation: badgeBounce .3s ease; }
@keyframes badgeBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

.dropdown-menu { border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
.dropdown-item { padding: 8px 16px; font-size: 13px; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider { margin-bottom: 0; }
.hero-slide {
    min-height: 450px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 550px; color: #fff; }
.hero-title { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; margin-bottom: 12px; line-height: 1.15; }
.hero-subtitle { font-size: 1.1rem; margin-bottom: 24px; opacity: .9; }
.btn-hero, .btn.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    background: #fff;
    color: var(--dark);
    border: none;
    transition: var(--transition);
    text-decoration: none;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); color: var(--dark); }

.hero-default { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.hero-default::before { display: none; }
.hero-default-2 { background: linear-gradient(135deg, var(--info) 0%, var(--primary) 100%); }
.hero-default-2::before { display: none; }

.hero-swiper .swiper-pagination-bullet { width: 12px; height: 12px; background: rgba(255,255,255,.5); }
.hero-swiper .swiper-pagination-bullet-active { background: #fff; width: 30px; border-radius: 6px; }
.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next {
    width: 46px; height: 46px; background: rgba(255,255,255,.2); border-radius: 50%; backdrop-filter: blur(4px);
}
.hero-swiper .swiper-button-prev::after, .hero-swiper .swiper-button-next::after { font-size: 18px; color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
section.section-categories,
section.section-products,
section.section-offers,
section.promo-banners,
.section-categories,
.section-products,
.section-offers,
.promo-banners { padding: 50px 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-header-left { display: flex; flex-direction: column; }
.section-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--dark); }
.section-subtitle { color: var(--secondary); font-size: 13px; margin-top: 4px; }
.section-link { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.section-header-right { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--dark);
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}
.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.category-name { font-size: 13px; font-weight: 600; color: var(--dark); margin: 0; }
.category-count { font-size: 11px; color: var(--secondary); }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.products-grid.list-view { grid-template-columns: 1fr; }
.products-grid.list-view .product-card { flex-direction: row; }
.products-grid.list-view .product-image-link { width: 200px; flex-shrink: 0; aspect-ratio: 1; }
.products-grid.list-view .product-info { flex: 1; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-badges .badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    line-height: 1;
}
.badge-sale { background: #e74a3b; }
.badge-new { background: #36b9cc; }
.badge-bestseller { background: #f6c23e; color: #333; }
.badge-outofstock { background: #858796; }
.badge-freeship { background: #1cc88a; }

.product-actions {
    position: absolute;
    top: 10px;
    right: -50px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}
.product-card:hover .product-actions { right: 10px; }
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #666;
}
.action-btn:hover { background: var(--primary); color: #fff; }

.product-image-link { display: block; overflow: hidden; aspect-ratio: 1; }
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-image { transform: scale(1.06); }

.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 11px; color: var(--secondary); text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: 13px; font-weight: 600; margin: 4px 0 6px; line-height: 1.35; }
.product-name a { color: var(--dark); }
.product-name a:hover { color: var(--primary); }

.product-rating { display: flex; align-items: center; gap: 3px; margin-bottom: 6px; }
.product-rating i { color: #f6c23e; font-size: 12px; }
.rating-count { font-size: 11px; color: var(--secondary); }

.product-price { margin-bottom: 4px; }
.price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
}
.price-sale, .price-current { font-size: 18px; font-weight: 700; color: var(--dark); }
.price-sale { color: var(--danger); }

.product-installments { font-size: 11px; color: var(--secondary); margin-bottom: 4px; }
.product-pix-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 10px;
    background: #e8f5e9;
    padding: 4px 8px;
    border-radius: 6px;
}
.pix-icon i { color: #1cc88a; font-size: 14px; }
.pix-value { font-weight: 700; color: #1cc88a; }
.pix-label { color: #666; font-size: 11px; }

.product-buy-actions { margin-top: auto; }
.btn-add-cart {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-out-of-stock { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: var(--radius); background: #f5f5f5; color: #999; font-size: 13px; cursor: not-allowed; }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-icon { font-size: 2rem; }
.promo-card.promo-pix { background: #e8f5e9; }
.promo-card.promo-pix .promo-icon { color: #1cc88a; }
.promo-card.promo-shipping { background: #e3f2fd; }
.promo-card.promo-shipping .promo-icon { color: #36b9cc; }
.promo-card.promo-installments { background: #f3e5f5; }
.promo-card.promo-installments .promo-icon { color: #6c5ce7; }
.promo-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.promo-text p { font-size: 12px; color: var(--secondary); margin: 0; }

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.countdown-timer { display: flex; align-items: center; gap: 6px; }
.countdown-item {
    background: var(--danger);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
}
.countdown-value { display: block; font-size: 20px; font-weight: 800; line-height: 1; }
.countdown-label { font-size: 9px; text-transform: uppercase; opacity: .8; }
.countdown-sep { font-size: 20px; font-weight: 700; color: var(--danger); }
.countdown-ended { color: var(--secondary); font-weight: 600; }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-page { padding: 30px 0 60px; }
.products-page .row { --bs-gutter-x: 28px; }
.products-page-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 4px; }
.products-count { font-size: 13px; color: var(--secondary); }

.products-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.products-info { flex: 1; }
.products-controls { display: flex; align-items: center; gap: 10px; }
.sort-select { width: auto; min-width: 160px; font-size: 13px; border-radius: var(--radius); }
.view-mode { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.view-btn {
    width: 38px; height: 36px; border: none; background: #fff; color: #999; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--primary); color: #fff; }

.subcategory-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
}
.subcategory-chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-count { font-size: 10px; background: var(--light); padding: 2px 6px; border-radius: 10px; color: var(--secondary); }

.no-products {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
}
.no-products-icon i { font-size: 4rem; color: #ddd; }
.no-products h3 { margin: 20px 0 8px; }
.no-products p { color: var(--secondary); margin-bottom: 20px; }

/* Pagination */
.pagination-wrapper { display: flex; justify-content: center; margin-top: 30px; }
.pagination .page-link {
    border-radius: var(--radius);
    margin: 0 3px;
    font-size: 13px;
    font-weight: 500;
    min-width: 38px;
    text-align: center;
    color: var(--dark);
    border-color: var(--border);
}
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail-section { padding: 20px 0 60px; }

.product-gallery { position: sticky; top: 90px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.gallery-image-wrapper { position: relative; aspect-ratio: 1; }
.gallery-image { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform .3s ease; }
.gallery-zoom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-main:hover .gallery-zoom { opacity: 1; }

.gallery-thumbs { margin-top: 10px; }
.gallery-thumbs .swiper-slide {
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: .6;
    height: 70px;
}
.gallery-thumbs .swiper-slide-thumb-active { border-color: var(--primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { background: #fff; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.product-meta-top { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.product-meta-top span { font-size: 11px; background: var(--light); padding: 3px 10px; border-radius: 20px; color: var(--secondary); font-weight: 500; }
.product-detail-name { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.product-detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.product-detail-rating i { color: #f6c23e; font-size: 16px; }
.review-count, .separator, .sku { font-size: 13px; color: var(--secondary); }

.product-detail-price {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.price-was { color: var(--secondary); font-size: 14px; margin-bottom: 4px; }
.price-was span { text-decoration: line-through; }
.price-highlight { font-size: 2rem; font-weight: 800; color: var(--dark); }
.price-economy { font-size: 13px; color: var(--success); font-weight: 600; margin-top: 4px; }

.price-pix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    background: #e8f5e9;
    border-radius: var(--radius);
}
.pix-badge { background: #1cc88a; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.pix-price { font-size: 20px; font-weight: 800; color: #1cc88a; }
.pix-saving { font-size: 11px; color: #27ae60; }

.price-installments { font-size: 14px; color: var(--secondary); margin-top: 8px; }
.btn-see-installments { border: none; background: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 0; margin-top: 4px; }
.btn-see-installments:hover { text-decoration: underline; }

.product-variation { margin-bottom: 16px; }
.variation-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: block; }
.variation-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variation-option input { display: none; }
.variation-option span, .variation-option label {
    display: inline-block;
    padding: 6px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.variation-option input:checked + span,
.variation-option input:checked + label { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.variation-color input { display: none; }
.color-circle {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.variation-color input:checked + .color-circle { border-color: var(--primary); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }

.product-quantity { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.product-quantity label { font-size: 13px; font-weight: 600; }
.quantity-selector { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 38px; height: 38px; border: none; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 16px; }
.qty-btn:hover { background: var(--light); }
.qty-input { width: 50px; height: 38px; border: none; text-align: center; font-size: 14px; font-weight: 600; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-info { font-size: 12px; }

.product-detail-actions { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-add-to-cart { flex: 1; min-width: 200px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; }
.btn-buy-now { flex: 0 1 auto; padding: 12px 24px; background: var(--success); border: none; color: #fff; border-radius: var(--radius); font-weight: 600; transition: var(--transition); }
.btn-buy-now:hover { background: #17a673; color: #fff; }
.btn-wishlist, .btn-share { width: 46px; height: 46px; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; transition: var(--transition); font-size: 18px; color: #666; display: flex; align-items: center; justify-content: center; }
.btn-wishlist:hover { border-color: var(--danger); color: var(--danger); }
.btn-share:hover { border-color: var(--primary); color: var(--primary); }

.product-shipping-calc {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.product-shipping-calc h6 { font-size: 14px; margin-bottom: 10px; }
.shipping-input-group { display: flex; gap: 8px; }
.cep-link { font-size: 11px; color: var(--primary); margin-top: 4px; display: block; }
.shipping-results { margin-top: 10px; }
.shipping-option {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 4px;
    font-size: 13px;
}

.product-share { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.product-share span { font-size: 13px; color: var(--secondary); }
.share-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; color: #666; font-size: 16px; text-decoration: none; }
.share-btn:hover { background: var(--primary); color: #fff; }

.product-tabs { background: #fff; border-radius: var(--radius-lg); padding: 0; box-shadow: var(--shadow-sm); overflow: hidden; margin-top: 30px; }
.product-tabs .nav-tabs { border-bottom: 2px solid var(--border); padding: 0 24px; }
.product-tabs .nav-link { padding: 16px 20px; font-weight: 600; font-size: 14px; color: var(--secondary); border: none; }
.product-tabs .nav-link.active { color: var(--primary); border-bottom: 3px solid var(--primary); }
.tab-content { padding: 24px; }
.product-description { font-size: 14px; line-height: 1.8; }
.product-specs .table td:first-child { font-weight: 600; width: 200px; color: var(--secondary); }

.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-date { font-size: 12px; color: var(--secondary); }
.review-title { font-size: 14px; margin: 4px 0; }
.review-comment { font-size: 13px; color: #555; margin: 0; }

/* ============================================================
   CART
   ============================================================ */
.cart-section { padding: 20px 0 60px; }
.page-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }

.cart-items-container { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-header-row {
    display: flex;
    padding: 12px 16px;
    background: var(--light);
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cart-item { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-col-product { flex: 2; display: flex; gap: 12px; align-items: center; }
.cart-col-price { flex: 1; }
.cart-col-qty { flex: 1; }
.cart-col-total { flex: 1; }
.cart-col-actions { flex: 0 0 40px; }

.cart-item-image { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h5 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-item-info h5 a { color: var(--dark); text-decoration: none; }
.cart-item-variation, .cart-item-sku { font-size: 11px; color: var(--secondary); display: block; }
.cart-item .price-was { font-size: 12px; color: #999; text-decoration: line-through; display: block; }
.price-now, .cart-item-total { font-size: 14px; font-weight: 700; }

.btn-remove-item { width: 36px; height: 36px; border: none; background: none; color: #ccc; cursor: pointer; border-radius: 50%; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.btn-remove-item:hover { color: var(--danger); background: #ffeaea; }

.cart-bottom-actions { margin-top: 16px; }

.cart-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    position: sticky;
    top: 90px;
}
.summary-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.coupon-section, .shipping-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.shipping-section h6 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.summary-values { padding-top: 8px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.summary-total { font-size: 18px; font-weight: 800; padding-top: 12px; border-top: 2px solid var(--border); margin-top: 8px; }

.summary-pix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: var(--radius);
    margin-top: 12px;
    font-size: 13px;
}
.summary-security { margin-top: 16px; }
.summary-security p { font-size: 12px; color: var(--secondary); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

.cart-empty { text-align: center; padding: 80px 20px; background: #fff; border-radius: var(--radius-lg); }
.cart-empty-icon i { font-size: 5rem; color: #ddd; }
.cart-empty h3 { margin: 16px 0 8px; }
.cart-empty p { color: var(--secondary); margin-bottom: 20px; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-section { padding: 20px 0 60px; }
.checkout-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
}
.checkout-card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

.payment-methods-checkout { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.payment-method-option input { display: none; }
.payment-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.payment-method-option input:checked + .payment-method-card { border-color: var(--primary); background: var(--primary-light); }
.payment-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.payment-icon.pix { background: #e8f5e9; color: #1cc88a; }
.payment-icon.boleto { background: #fff3cd; color: #f6c23e; }
.payment-icon.credit { background: #e3f2fd; color: #4e73df; }
.payment-icon.debit { background: #fce4ec; color: #e74a3b; }
.payment-info strong { display: block; font-size: 14px; }
.payment-info span { font-size: 12px; color: var(--secondary); }
.payment-discount { color: var(--success) !important; font-weight: 600; }
.payment-total { font-weight: 700 !important; color: var(--dark) !important; }

.card-fields { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 12px; background: var(--light); }

.checkout-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    position: sticky;
    top: 90px;
}
.checkout-items-list { max-height: 300px; overflow-y: auto; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.checkout-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.checkout-item img { width: 50px; height: 50px; border-radius: var(--radius); object-fit: cover; }
.checkout-item-info { flex: 1; }
.checkout-item-info .item-name { font-size: 12px; font-weight: 500; display: block; }
.checkout-item-info .item-qty { font-size: 11px; color: var(--secondary); }
.checkout-item .item-price { font-size: 13px; font-weight: 700; }

.checkout-security { margin-top: 16px; text-align: center; }
.checkout-security p { font-size: 12px; color: var(--secondary); display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 4px; }

/* Saved addresses */
.saved-addresses { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.address-option { cursor: pointer; }
.address-option input[type="radio"] { display: none; }
.address-card {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.address-option input:checked + .address-card { border-color: var(--primary); background: var(--primary-light); }
.address-card strong { display: block; margin-bottom: 2px; }
.address-card span { display: block; font-size: 12px; color: var(--secondary); }

/* Checkout shipping options */
.checkout-shipping-options { margin-top: 12px; }
.shipping-checkout-option { transition: var(--transition); }
.shipping-checkout-option:hover { background: var(--light); }

/* ============================================================
   CHECKOUT SUCCESS
   ============================================================ */
.checkout-success { padding: 60px 0; }
.success-content { max-width: 600px; margin: 0 auto; text-align: center; }
.success-icon i { font-size: 5rem; color: var(--success); }
.success-code { font-size: 18px; margin: 16px 0; }

.payment-result-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 24px 0;
    text-align: center;
}
.pix-qrcode { margin: 16px 0; }
.pix-qrcode img { width: 200px; height: 200px; border-radius: var(--radius); }
.pix-code-copy, .boleto-code { display: flex; gap: 8px; max-width: 500px; margin: 12px auto; }
.pix-code-copy input, .boleto-code input { flex: 1; font-size: 11px; }

.order-summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin: 24px 0; text-align: left; }
.order-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.order-totals { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.total-final { font-weight: 800; font-size: 18px; border-top: 2px solid var(--border); margin-top: 8px; padding-top: 8px; }

.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ============================================================
   AUTH (LOGIN / REGISTER)
   ============================================================ */
.auth-section { padding: 60px 0; }
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 { font-family: var(--font-heading); font-size: 1.6rem; }
.auth-header p { color: var(--secondary); font-size: 13px; margin-top: 4px; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: #fff; padding: 0 12px; font-size: 12px; color: var(--secondary); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; }
.auth-link { font-size: 12px; }
.toggle-password { cursor: pointer; }

/* ============================================================
   ACCOUNT / USER PAGES
   ============================================================ */
.account-section { padding: 20px 0 60px; }
.account-sidebar { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.account-user-info { text-align: center; padding: 24px 16px 16px; border-bottom: 1px solid var(--border); }
.account-user-info .user-avatar i { font-size: 4rem; color: var(--primary); }
.account-user-info h5 { font-size: 14px; margin: 8px 0 2px; }
.account-user-info small { font-size: 11px; }

.account-nav { padding: 8px 0; }
.account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
}
.account-nav-item:hover { background: var(--light); color: var(--primary); }
.account-nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; border-left: 3px solid var(--primary); }

.account-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; }
.account-card-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

.order-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--light); flex-wrap: wrap; gap: 8px; }
.order-code { font-weight: 700; font-size: 14px; }
.order-date { font-size: 12px; color: var(--secondary); margin-left: 12px; }
.order-card-body { padding: 12px 16px; }
.order-meta { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.order-card-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }

.order-timeline {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}
.order-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border);
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 8px;
    text-align: center;
}
.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}
.timeline-step.completed .timeline-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline-step.current .timeline-dot { border-color: var(--primary); animation: pulse 1.5s infinite; }
.timeline-step span { font-size: 11px; font-weight: 600; color: var(--secondary); }
.timeline-step.completed span { color: var(--success); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(78,115,223,.4); } 50% { box-shadow: 0 0 0 8px rgba(78,115,223,0); } }

.order-totals-detail { background: var(--light); border-radius: var(--radius); padding: 16px; }

.address-card-detail { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; position: relative; }
.address-card-detail.default { border-color: var(--primary); }
.address-card-detail h6 { margin-bottom: 8px; }
.address-card-detail p { font-size: 13px; color: #555; }
.address-actions { margin-top: 8px; }

/* ============================================================
   TRACKING
   ============================================================ */
.tracking-section { padding: 60px 0; }
.tracking-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px; }
.tracking-form { max-width: 500px; margin: 0 auto 30px; }
.tracking-result { border-top: 1px dashed var(--border); padding-top: 24px; }
.tracking-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

.timeline-step-detail { display: flex; align-items: center; gap: 16px; padding: 16px 0; position: relative; }
.timeline-step-detail::before { content: ''; position: absolute; left: 20px; top: 50px; width: 2px; height: calc(100% - 20px); background: var(--border); }
.timeline-step-detail:last-child::before { display: none; }
.timeline-step-detail.completed::before { background: var(--success); }
.timeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--secondary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.timeline-step-detail.completed .timeline-icon { background: var(--success); color: #fff; }
.timeline-step-detail.current .timeline-icon { background: var(--primary); color: #fff; }
.timeline-info strong { display: block; font-size: 14px; }
.timeline-info span { font-size: 12px; color: var(--secondary); }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-section { padding: 100px 0; text-align: center; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; opacity: .2; }
.error-section h2 { margin-top: -10px; font-size: 1.8rem; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.page-breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb { margin: 0; font-size: 12px; }
.breadcrumb-item a { color: var(--secondary); }
.breadcrumb-item.active { color: var(--dark); font-weight: 500; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    animation: slideInRight .3s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Toast container */
.toast-container { z-index: 9999 !important; }

/* ============================================================
   FOOTER  (footer.php: .site-footer)
   ============================================================ */
.site-footer { margin-top: auto; }

.footer-newsletter { background: var(--primary); padding: 40px 0; color: #fff; }
.newsletter-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.newsletter-text h4 { margin-bottom: 4px; font-size: 18px; }
.newsletter-text p { opacity: .8; font-size: 13px; margin: 0; }
.newsletter-form { flex: 1; max-width: 400px; }
.newsletter-form .input-group { display: flex; }
.newsletter-form input[type="email"] {
    flex: 1;
    border: none;
    padding: 10px 16px;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
}
.newsletter-form .btn-primary { border-radius: 0 8px 8px 0; white-space: nowrap; }
.newsletter-message { margin-top: 8px; font-size: 13px; }

.footer-benefits {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}
.benefit-item { display: flex; align-items: center; gap: 12px; text-align: left; }
.benefit-item > i { font-size: 2rem; color: var(--primary); flex-shrink: 0; }
.benefit-item strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.benefit-item span { font-size: 11px; color: var(--secondary); }

.footer-main { background: #2d2d2d; color: #ccc; padding: 40px 0; }
.footer-section { margin-bottom: 16px; }
.footer-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-about { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-contact p { font-size: 13px; margin-bottom: 6px; }
.footer-contact i { margin-right: 6px; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 16px;
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #999; font-size: 13px; }
.footer-links a:hover { color: #fff; }

.payment-methods { margin-bottom: 16px; }
.payment-group { margin-bottom: 10px; }
.payment-label { display: block; font-size: 12px; color: #999; margin-bottom: 6px; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-icon {
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    font-size: 11px;
    color: #ccc;
}
.security-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.security-badge {
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    font-size: 11px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-bottom { background: #1a1a1a; padding: 16px 0; font-size: 12px; color: #666; }
.copyright { margin: 0; }
.powered-by { margin: 0; }

/* ============================================================
   BACK TO TOP + WHATSAPP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37,211,102,.35);
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ============================================================
   MOBILE MENU DRAWER  (layout: .mobile-menu-drawer)
   ============================================================ */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: left .3s ease;
    box-shadow: 5px 0 20px rgba(0,0,0,.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-menu-drawer.open { left: 0; }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-title { font-weight: 700; font-size: 16px; }
.mobile-menu-close { border: none; background: none; font-size: 20px; cursor: pointer; color: var(--dark); padding: 4px; }
.mobile-menu-body { flex: 1; padding: 0; }
.mobile-search { padding: 16px 20px; }
.mobile-search form { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mobile-search input { flex: 1; border: none; padding: 8px 12px; font-size: 14px; outline: none; }
.mobile-search button { border: none; background: var(--primary); color: #fff; padding: 8px 12px; cursor: pointer; }

.mobile-nav { padding: 0; }
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}
.mobile-nav-item:hover { background: var(--light); color: var(--primary); }
.mobile-nav-item.has-children { justify-content: space-between; }
.mobile-nav-item .toggle-children { font-size: 12px; transition: transform .2s; }
.mobile-nav-category { }
.mobile-nav-children { display: none; background: var(--light); padding: 0 0 0 20px; }
.mobile-nav-children.open { display: block; }
.mobile-nav-children a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
}
.mobile-nav-children a:hover { color: var(--primary); }

.mobile-menu-footer {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
}
.mobile-menu-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--dark);
    text-decoration: none;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1999;
}
.mobile-menu-overlay.show { display: block; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary) !important; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.status-pendente { background: #fff3cd; color: #856404; }
.status-processando { background: #cce5ff; color: #004085; }
.status-enviado { background: #d1ecf1; color: #0c5460; }
.status-entregue { background: #d4edda; color: #155724; }
.status-cancelado { background: #f8d7da; color: #721c24; }
.status-pago { background: #d4edda; color: #155724; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .top-bar .col-md-4:first-child,
    .top-bar-left, .top-bar-right { display: none; }
    .top-bar-center { text-align: center; }

    .header-wrapper { flex-wrap: wrap; gap: 10px; }
    .header-search { order: 10; max-width: 100%; flex-basis: 100%; }
    .action-text { display: none; }

    .hero-title { font-size: 1.8rem; }
    .hero-slide { min-height: 300px; }

    .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .category-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .category-name { font-size: 11px; }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .cart-item { flex-wrap: wrap; gap: 10px; }
    .cart-col-product { flex: 0 0 100%; }
    .cart-col-price, .cart-col-qty, .cart-col-total { flex: 1; }

    .product-detail-actions { flex-direction: column; }
    .btn-add-to-cart { min-width: 100%; }

    .newsletter-wrapper { flex-direction: column; text-align: center; }
    .newsletter-form { max-width: 100%; }

    .account-sidebar { margin-bottom: 20px; }
}

@media (max-width: 575.98px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 10px; }
    .product-name { font-size: 12px; }
    .price-sale, .price-current { font-size: 15px; }
    .product-pix-price { font-size: 11px; padding: 3px 6px; }
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.2rem; }
    .btn-hero { padding: 10px 24px; font-size: 13px; }
    .auth-card { padding: 24px 16px; }
    .checkout-card { padding: 16px; }
}

/* Wishlist grid */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.wishlist-item-wrapper { position: relative; }
.wishlist-item-wrapper .remove-wishlist { margin-top: 8px; width: 100%; }
