/* ============================================================
   Smart Guardian - E-commerce de Equipamentos de Segurança
   CSS Principal - Inspirado no template Trickster
   ============================================================ */

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #E63946;
    --primary-dark: #C1121F;
    --primary-light: #F4A261;
    --secondary: #1a1a2e;
    --secondary-light: #16213e;
    --accent: #0f3460;
    --dark: #111111;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #999999;
    --border-color: #e5e5e5;
    --bg-light: #f8f9fa;
    --bg-lighter: #fafafa;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --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 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 15px 50px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

/* ========== UTILITY CLASSES ========== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding { padding: 60px 0; }
.section-padding-sm { padding: 40px 0; }

.text-primary { color: var(--primary) !important; }
.text-dark { color: var(--dark) !important; }
.text-muted { color: var(--light-gray) !important; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }

.bg-primary { background-color: var(--primary) !important; }
.bg-dark { background-color: var(--secondary) !important; }
.bg-light { background-color: var(--bg-light) !important; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,102,0,0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border-color: var(--border-color);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--white);
}
.btn-white:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.btn-icon-sm { width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 13px; }

/* ========== TOP BAR ========== */
.top-bar {
    background-color: var(--secondary);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a {
    color: rgba(255,255,255,0.8);
}
.top-bar-left a:hover { color: var(--primary); }
.top-bar-left i { margin-right: 5px; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.8);
}
.top-bar-right a:hover { color: var(--primary); }

/* ========== HEADER / NAVBAR ========== */
.header-main {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-main.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
}

.logo-text span { color: var(--primary); }

.logo-tagline {
    font-size: 11px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 560px;
}

.search-form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}

.search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    background: transparent;
}

.search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 22px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
}

.search-form button:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    color: var(--dark-gray);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-primary);
}

.header-action:hover {
    color: var(--primary);
    background: rgba(255,102,0,0.05);
}

.header-action i { font-size: 22px; margin-bottom: 2px; }

.header-action span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.header-action .badge-count {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ========== MEGA MENU / NAV ========== */
.nav-bar {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-bar .container {
    display: flex;
    align-items: stretch;
}

.nav-categories-trigger {
    background: var(--primary);
    color: var(--white);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    position: relative;
    border: none;
    font-family: var(--font-primary);
}

.nav-categories-trigger:hover { background: var(--primary-dark); }

.nav-categories-trigger i:last-child { margin-left: auto; }

.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-categories-trigger:hover .mega-menu-container,
.mega-menu-container:hover,
.mega-menu-container.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-list { padding: 8px 0; }

.mega-menu-item {
    position: relative;
}

.mega-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--dark-gray);
    font-size: 14px;
    transition: var(--transition-fast);
}

.mega-menu-item > a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

.mega-menu-item > a i { font-size: 12px; color: var(--light-gray); }

.mega-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 240px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mega-menu-item:hover .mega-submenu {
    opacity: 1;
    visibility: visible;
}

.mega-submenu a {
    display: block;
    padding: 8px 20px;
    color: var(--dark-gray);
    font-size: 13px;
    transition: var(--transition-fast);
}

.mega-submenu a:hover {
    color: var(--primary);
    background: var(--bg-light);
    padding-left: 24px;
}

/* Mobile Nav Close Button (hidden on desktop) */
.mobile-nav-close {
    display: none;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mobile-menu-close i,
.mobile-menu-close .fas,
.mobile-menu-close .fa-times {
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.mobile-menu-close:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .mobile-menu-close {
        display: flex;
    }
}

/* Main Nav Links */
.main-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.main-nav a i { margin-right: 6px; }

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 4px;
}

.nav-right a {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Search Button (lupa - hidden on desktop) */
.mobile-search-btn {
    display: none;
}

/* Mobile Search Bar (dropdown abaixo do header) */
.mobile-search-bar {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.mobile-search-bar.open {
    display: block;
}

.mobile-search-bar .container {
    padding: 0 12px;
}

.mobile-search-bar .search-form {
    width: 100%;
}

.mobile-search-bar .search-form input {
    padding: 11px 16px;
    font-size: 14px;
    flex: 1;
    min-width: 0;
}

.mobile-search-bar .search-form button {
    padding: 11px 18px;
    flex-shrink: 0;
}

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

.hero-slide {
    display: none;
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
}

.hero-slide.active { display: flex; }

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
    padding: 60px 0;
    width: 100%;
}

.hero-slide-text {
    max-width: 550px;
    text-align: left;
}

.hero-slide-text .subtitle {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.hero-slide-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-slide-text p {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.hero-slider-arrow:hover {
    background: var(--primary);
}

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

/* ========== FEATURES BAR ========== */
.features-bar {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(255,102,0,0.1), rgba(255,102,0,0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 12px;
    color: var(--light-gray);
}

/* ========== SECTION HEADINGS ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

.section-header .view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-header .view-all:hover { gap: 10px; }

/* ========== CATEGORIES GRID ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-card-icon {
    background: var(--primary);
    color: var(--white);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-card .count {
    font-size: 13px;
    color: var(--light-gray);
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

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

.product-card-image {
    position: relative;
    padding-top: 100%;
    background: var(--bg-light);
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-new {
    background: var(--success);
    color: var(--white);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.badge-featured {
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.product-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-actions button,
.product-card-actions a {
    width: 38px;
    height: 38px;
    background: var(--white);
    color: var(--dark-gray);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.product-card-actions button:hover,
.product-card-actions a:hover {
    background: var(--primary);
    color: var(--white);
}

.product-card-body {
    padding: 18px;
}

.product-card-category {
    font-size: 12px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-card-title a:hover { color: var(--primary); }

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.product-card-rating i { font-size: 12px; color: var(--warning); }
.product-card-rating span { font-size: 12px; color: var(--light-gray); }

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

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

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

.price-discount {
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    background: rgba(40,167,69,0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.product-card-footer {
    padding: 0 18px 18px;
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
}

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

.btn-add-cart.out-of-stock {
    background: var(--light-gray);
    cursor: not-allowed;
}

/* ========== PRODUCT CAROUSEL ========== */
.products-carousel-wrapper {
    position: relative;
}

.products-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

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

.products-carousel .product-card {
    flex: 0 0 calc(25% - 18px);
    scroll-snap-align: start;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.carousel-nav.prev { left: -22px; }
.carousel-nav.next { right: -22px; }

/* ========== COOKIE CONSENT ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    color: var(--primary-light);
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cookie-banner-buttons .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cookie-banner-buttons .btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.cookie-banner-buttons .btn-primary {
    background: var(--primary);
    color: #fff;
}

.cookie-banner-buttons .btn-primary:hover {
    background: var(--primary-dark);
}

.cookie-banner-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.cookie-banner-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-banner-buttons .btn {
        flex: 1;
        text-align: center;
    }

    .cookie-banner-close {
        top: 10px;
        right: 10px;
    }
}

/* ========== PROMO BANNER ========== */
.promo-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    padding: 50px 0;
    text-align: center;
    color: var(--white);
}

.promo-banner h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

.promo-banner p {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
}

.promo-banner .highlight { color: var(--primary); }

/* ========== PRODUCT PAGE ========== */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a { color: var(--medium-gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

.product-detail { padding: 40px 0; }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 15px;
}

.product-gallery-main img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
}

.product-gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    opacity: 0.6;
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-info .product-category {
    font-size: 13px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info .product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.product-info .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.product-info .product-rating i { color: var(--warning); font-size: 15px; }
.product-info .product-rating span { font-size: 14px; color: var(--light-gray); }

.product-info .product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-info .product-price .current {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.product-info .product-price .old {
    font-size: 18px;
    color: var(--light-gray);
    text-decoration: line-through;
}

.product-info .product-price .discount-badge {
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.product-info .product-excerpt {
    font-size: 15px;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-meta {
    margin-bottom: 25px;
    font-size: 14px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-meta-item strong {
    min-width: 120px;
    color: var(--dark);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.stock-status.in-stock { color: var(--success); }
.stock-status.low-stock { color: var(--warning); }
.stock-status.out-of-stock { color: var(--danger); }

.product-quantity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-selector button {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector button:hover {
    background: var(--primary);
    color: var(--white);
}

.qty-selector input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary);
    outline: none;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.product-actions .btn { flex: 1; min-width: 200px; }

.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-share span { font-size: 14px; font-weight: 600; color: var(--dark); }

.product-share a {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    transition: var(--transition-fast);
}

.product-share a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Product Tabs */
.product-tabs {
    margin-top: 60px;
}

.product-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.product-tabs-nav button {
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--light-gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.product-tabs-nav button.active {
    color: var(--dark);
}

.product-tabs-nav button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.product-tab-content {
    display: none;
}

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

.product-tab-content .description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--medium-gray);
}

/* Reviews */
.reviews-list { margin-top: 20px; }

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.review-meta strong { font-size: 15px; color: var(--dark); display: block; }
.review-meta span { font-size: 12px; color: var(--light-gray); }

.review-rating { margin-bottom: 8px; }
.review-rating i { color: var(--warning); font-size: 13px; }

.review-text { font-size: 14px; line-height: 1.7; color: var(--medium-gray); }

/* ========== SIDEBAR FILTERS ========== */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.sidebar { position: sticky; top: 80px; align-self: start; }

.filter-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 14px;
    color: var(--medium-gray);
    transition: var(--transition-fast);
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--primary);
}

.filter-list a .count {
    font-size: 12px;
    color: var(--light-gray);
}

.price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
}

.price-range-inputs input:focus { border-color: var(--primary); }

/* ========== SHOP TOOLBAR ========== */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 12px 18px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.shop-toolbar .result-count {
    font-size: 14px;
    color: var(--medium-gray);
}

.shop-toolbar .result-count strong { color: var(--dark); }

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-primary);
    outline: none;
    background: var(--white);
    cursor: pointer;
}

/* Subcategory Filters */
.subcategory-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Categories Select Mobile (escondido no desktop) */
.categories-select-mobile {
    display: none;
}

/* ========== CART PAGE ========== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: var(--bg-light);
}

.cart-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--medium-gray);
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.cart-product-info .name {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.cart-product-info .sku {
    font-size: 12px;
    color: var(--light-gray);
}

.cart-summary {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: sticky;
    top: 80px;
}

.cart-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.cart-summary-row.total {
    border-top: 2px solid var(--dark);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.cart-summary-row.total .value { color: var(--primary); }
.cart-summary-row .label { color: var(--medium-gray); }
.cart-summary-row .value { font-weight: 600; color: var(--dark); }
.cart-summary-row .value.free { color: var(--success); font-weight: 700; }
.cart-summary-row .value.discount { color: var(--danger); }

.coupon-form {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.coupon-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    text-transform: uppercase;
}

.coupon-form input:focus { border-color: var(--primary); }

/* ========== CHECKOUT ========== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
}

.checkout-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* ========== CART DRAWER ========== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    box-shadow: var(--shadow-xl);
}

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

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-drawer-close {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.cart-drawer-close:hover {
    background: var(--danger);
    color: var(--white);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

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

.cart-drawer-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.cart-drawer-item-info { flex: 1; }

.cart-drawer-item-info .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.cart-drawer-item-info .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.cart-drawer-item-info .qty {
    font-size: 12px;
    color: var(--light-gray);
}

.cart-drawer-item .remove-btn {
    background: none;
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: var(--transition-fast);
}

.cart-drawer-item .remove-btn:hover { color: var(--danger); }

.cart-drawer-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-gray);
}

.cart-drawer-empty i { font-size: 48px; margin-bottom: 15px; display: block; }
.cart-drawer-empty p { font-size: 16px; }

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

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cart-drawer-total .value { color: var(--primary); }

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 13px;
}

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-md);
}

.auth-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--light-gray);
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--light-gray);
    font-size: 13px;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ========== ACCOUNT PAGE ========== */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.account-sidebar {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 80px;
    align-self: start;
}

.account-user {
    padding: 25px;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}

.account-user-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.account-user h4 { font-size: 16px; color: var(--white); }
.account-user p { font-size: 12px; color: rgba(255,255,255,0.6); }

.account-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--medium-gray);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.account-menu a:hover,
.account-menu a.active {
    color: var(--primary);
    background: rgba(255,102,0,0.05);
    padding-left: 24px;
}

.account-menu a i { width: 20px; text-align: center; }

.account-content {
    min-height: 400px;
}

.account-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
}

.account-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(40,167,69,0.1);
    color: var(--success);
    border: 1px solid rgba(40,167,69,0.2);
}

.alert-error {
    background: rgba(220,53,69,0.1);
    color: var(--danger);
    border: 1px solid rgba(220,53,69,0.2);
}

.alert-warning {
    background: rgba(255,193,7,0.1);
    color: #856404;
    border: 1px solid rgba(255,193,7,0.2);
}

.alert-info {
    background: rgba(23,162,184,0.1);
    color: var(--info);
    border: 1px solid rgba(23,162,184,0.2);
}

/* ========== STAR RATING ========== */
.star-rating { display: inline-flex; align-items: center; gap: 2px; }
.star-rating i { color: var(--warning); font-size: 14px; }
.star-rating .ms-1 { margin-left: 6px; font-size: 13px; color: var(--light-gray); }

/* ========== BADGE ========== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}
.bg-warning { background: var(--warning); color: #333; }
.bg-info { background: var(--info); color: #fff; }
.bg-primary { background: var(--primary); color: #fff; }
.bg-secondary { background: var(--medium-gray); color: #fff; }
.bg-success { background: var(--success); color: #fff; }
.bg-danger { background: var(--danger); color: #fff; }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--medium-gray);
    transition: var(--transition-fast);
}

.page-item .page-link:hover,
.page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ========== 404 PAGE ========== */
.page-404 {
    text-align: center;
    padding: 100px 0;
}

.page-404 h1 { font-size: 120px; color: var(--primary); line-height: 1; }
.page-404 h2 { font-size: 28px; margin-bottom: 15px; }
.page-404 p { color: var(--light-gray); margin-bottom: 30px; }

/* ========== LOADING SPINNER ========== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== TOAST NOTIFICATION ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .products-carousel .product-card { flex: 0 0 calc(33.333% - 16px); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 992px) {
    .top-bar-left { display: none; }
    .header-search { max-width: 400px; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slide-text h1 { font-size: 36px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* === GLOBAL OVERFLOW FIX === */
    html, body { overflow-x: hidden; }
    .container { padding: 0 12px; }

    /* === TOP BAR MOBILE === */
    .top-bar { font-size: 11px; padding: 6px 0; }
    .top-bar-right { gap: 8px; }

    /* === HEADER APP-STYLE === */
    .header-main { padding: 10px 0; }
    .header-main .container {
        flex-wrap: nowrap;
        gap: 10px;
    }

    /* Logo menor no mobile */
    .logo { gap: 8px; }
    .logo-icon { width: 34px; height: 34px; font-size: 16px; border-radius: 6px; }
    .logo-text { font-size: 16px; }
    .logo-tagline { font-size: 9px; letter-spacing: 0.5px; }

    /* Esconder busca desktop no mobile */
    .header-search { display: none; }

    /* Mostrar ícone de lupa e hamburger no mobile */
    .mobile-search-btn { display: flex !important; }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 8px;
        flex-shrink: 0;
    }
    .mobile-menu-toggle i { font-size: 20px; }

    /* Ações (icones) no lado direito */
    .header-actions {
        margin-left: auto;
        gap: 0;
        flex-shrink: 0;
    }
    .header-actions .header-action {
        padding: 6px 8px;
    }
    .header-actions .header-action span { display: none; }
    .header-actions .header-action i { font-size: 20px; margin-bottom: 0; }
    .header-action .badge-count {
        top: 0;
        right: 2px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    /* === NAV BAR MOBILE APP-STYLE === */
    .nav-bar {
        position: sticky;
        top: 0;
        z-index: 999;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
    }
    .nav-bar .container {
        flex-wrap: nowrap;
        gap: 0;
    }
    .nav-categories-trigger {
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
        white-space: nowrap;
    }
    .nav-categories-trigger i:last-child { display: none; }

    /* === MEGA MENU MOBILE === */
    .nav-categories-trigger:hover .mega-menu-container,
    .mega-menu-container:hover {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(100%) !important;
        pointer-events: none !important;
    }
    .mega-menu-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        border-radius: 0;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: var(--transition);
        pointer-events: none;
    }
    .mega-menu-container.mobile-open,
    .mega-menu-container.mobile-open:hover,
    .nav-categories-trigger:hover .mega-menu-container.mobile-open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
        pointer-events: auto !important;
    }
    .mega-menu-container.mobile-open .nav-categories-trigger span,
    .mega-menu-container.mobile-open .nav-categories-trigger i:last-child {
        display: none;
    }
    .mega-menu-list {
        padding: 70px 20px 20px 20px;
        overflow-y: auto;
        height: 100%;
    }
    .mega-menu-item > a {
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .mega-menu-item > a:hover {
        padding-left: 20px;
        background: var(--bg-light);
    }
    .mega-submenu {
        position: static;
        width: 100%;
        background: var(--bg-light);
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        display: none;
    }
    .mega-menu-item.open .mega-submenu {
        display: block;
    }
    .mega-submenu a {
        padding: 12px 30px;
        font-size: 14px;
    }
    .nav-bar .main-nav {
        display: none;
    }
    .nav-bar .main-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--secondary);
        z-index: 99999;
        box-shadow: var(--shadow-lg);
        padding-top: 60px;
        overflow-y: auto;
    }
    .nav-bar .main-nav.open a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
        color: #fff;
    }
    .nav-right {
        margin-left: auto;
    }
    .nav-right a {
        font-size: 12px;
        padding: 10px 14px;
        white-space: nowrap;
    }

    /* === HERO SLIDER MOBILE 1080x1080 === */
    .hero-slide { min-height: auto; height: 0; padding-bottom: 100%; aspect-ratio: 1/1; }
    .hero-slide-content { position: absolute; inset: 0; padding: 40px 20px; display: flex; align-items: center; }
    .hero-slide-text { max-width: 100%; padding: 0 20px; text-align: center; }
    .hero-slide-text .subtitle { font-size: 10px; padding: 3px 10px; margin-bottom: 12px; }
    .hero-slide-text h1 { font-size: 22px; margin-bottom: 10px; }
    .hero-slide-text p { font-size: 13px; margin-bottom: 18px; line-height: 1.5; }
    .hero-slide-text .btn { padding: 10px 20px; font-size: 12px; }
    .hero-slider-arrow { width: 36px; height: 36px; font-size: 14px; }
    .hero-slider-arrow.prev { left: 8px; }
    .hero-slider-arrow.next { right: 8px; }
    .hero-slider-nav { bottom: 15px; gap: 6px; }
    .hero-slider-dot { width: 8px; height: 8px; }

    /* === FEATURES BAR MOBILE === */
    .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature-item { padding: 12px; gap: 8px; }
    .feature-icon { width: 36px; height: 36px; font-size: 16px; }
    .feature-text h4 { font-size: 12px; }
    .feature-text p { font-size: 10px; }

    /* === MOBILE NAV CLOSE BUTTON === */
    .mobile-nav-close {
        display: flex;
        position: absolute;
        top: 12px;
        right: 12px;
        background: var(--primary);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 100000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    /* === BLOG GRID MOBILE === */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* === SUBCATEGORY FILTERS MOBILE === */
    .subcategory-filters {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 20px;
    }
    .subcategory-filters .btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 14px;
    }

    /* === CATEGORIES SELECT MOBILE === */
    .categories-select-mobile {
        display: block;
    }
    .categories-grid {
        display: none !important;
    }

    /* === PRODUCTS MOBILE === */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .products-carousel .product-card { flex: 0 0 calc(50% - 8px); }
    .product-card-image img { height: auto; }

    /* === SECTIONS === */
    .section-padding { padding: 30px 0; }
    .section-title { font-size: 20px; }
    .section-header { margin-bottom: 15px; }

    /* === CART DRAWER MOBILE === */
    .cart-drawer { width: 100%; right: -100%; }

    /* === CART PAGE MOBILE === */
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .cart-items-wrapper {
        overflow-x: hidden;
    }
    .cart-table {
        font-size: 13px;
        display: block;
    }
    .cart-table thead {
        display: none;
    }
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table tr {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 12px;
        background: #fff;
    }
    .cart-table td {
        padding: 8px 0;
        border: none;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .cart-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--dark);
        text-align: left;
        flex-shrink: 0;
    }
    .cart-table td[data-label=""]:before {
        display: none;
    }
    .cart-table td[data-label="Produto"] {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-table td[data-label="Produto"]:before {
        margin-bottom: 8px;
    }
    .cart-product-info {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }
    .cart-product-info img {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    .cart-product-info .name {
        font-size: 14px;
        line-height: 1.3;
    }

    /* === FOOTER MOBILE === */
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }

    /* === FORMS MOBILE === */
    .form-row { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .product-actions .btn { min-width: auto; }

    /* === PROMO BANNER === */
    .promo-banner h2 { font-size: 20px; }
    .promo-banner p { font-size: 13px; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .product-card-body { padding: 10px; }
    .product-card-footer { padding: 0 10px 10px; }
    .price-current { font-size: 15px; }
    .price-old { font-size: 11px; }
    .product-card-title { font-size: 12px; min-height: 32px; }
    .product-card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .btn-add-cart { font-size: 11px; padding: 8px; }
    .products-carousel .product-card { flex: 0 0 calc(65% - 8px); }
    .auth-card { padding: 20px; }
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .category-card { padding: 15px; }
    .category-card h3 { font-size: 12px; }
    .category-card-icon i { font-size: 22px; }
    .hero-slide { min-height: 220px; }
    .hero-slide-content { min-height: 220px; padding: 20px 0; }
    .hero-slide-text h1 { font-size: 18px; }
    .hero-slide-text p { font-size: 12px; }
    .logo-text { font-size: 15px; }
    .logo-icon { width: 30px; height: 30px; font-size: 14px; }
    .logo-tagline { font-size: 8px; }
}

/* ========== LAZY LOAD ========== */
img[data-src] { opacity: 0; transition: opacity 0.3s ease; }
img[data-src].loaded { opacity: 1; }

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}
