/* =====================================================
   MAGALU 2026 - Estilos Globais
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --magalu-blue: #0086ff;
    --magalu-dark-blue: #0066cc;
    --magalu-green: #00a650;
    --magalu-yellow: #f7d100;
    --magalu-orange: #ff6f00;
    --magalu-red: #e53935;
    --magalu-gray: #666;
    --magalu-light-gray: #f5f5f5;
    --magalu-border: #e0e0e0;
    --magalu-text: #333;
    --magalu-text-light: #757575;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--magalu-light-gray);
    color: var(--magalu-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 420px;
    background: linear-gradient(180deg, var(--magalu-dark-blue) 0%, var(--magalu-dark-blue) 15%, #1a7fd4 40%, #7bb8e8 65%, #d6e6f2 85%, var(--magalu-light-gray) 100%);
    z-index: -1;
    pointer-events: none;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
    background: linear-gradient(180deg, var(--magalu-blue) 0%, var(--magalu-dark-blue) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    padding-top: 10px;
}

.header-top {
    padding: 12px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: -10px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header-logo-lu {
    height: 110px;
    margin-top: -20px;
}

.header-logo img {
    padding-top: 5px;
    height: 100px;
}

.header-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}

.header-location:hover {
    background: rgba(255,255,255,0.1);
}

.header-location i {
    font-size: 20px;
}

.header-location-text {
    display: flex;
    flex-direction: column;
}

.header-location-label {
    opacity: 0.8;
    font-size: 12px;
}

.header-location-value {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.header-search {
    flex: 1;
    max-width: 600px;
    min-width: 0;
}

.header-search-form {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.header-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
}

.header-search-input::placeholder {
    color: #999;
}

.header-search-btn {
    background: white;
    padding: 0 16px;
    color: var(--magalu-gray);
    transition: var(--transition);
}

.header-search-btn:hover {
    color: var(--magalu-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 8px 6px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 11px;
    min-width: 48px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    height: 56px;
    box-sizing: border-box;
}

.header-action:hover {
    background: rgba(255,255,255,0.1);
}

.header-action i {
    font-size: 26px;
    margin-bottom: 0;
    -webkit-text-stroke: 0.5px white;
}

.header-action span {
    display: none;
}

.user-dropdown-menu span {
    display: inline !important;
}

.header-action-login {
    flex-direction: row;
    gap: 8px;
    min-width: auto;
    padding: 8px 12px;
}

.header-action-login i {
    font-size: 18px;
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.header-action-login .login-greeting {
    display: block;
    text-align: left;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}


.header-action-cart {
    position: relative;
}

.header-cart-badge {
    position: absolute;
    top: 0;
    right: 8px;
    background: var(--magalu-yellow);
    color: var(--magalu-text);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Dropdown Menu */
.header-user-dropdown {
    position: relative;
    cursor: pointer;
    flex-direction: row;
    gap: 8px;
    min-width: auto;
}

.header-user-dropdown > i {
    font-size: 18px;
    margin-bottom: 0;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-user-dropdown .user-greeting {
    display: block;
    text-align: left;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.user-greeting strong {
    font-size: 13px;
    font-weight: 700;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: -12px;
    width: 260px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.header-user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 28px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.04));
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
    line-height: 1.3;
}

.dropdown-item:hover {
    background: #f8f8f8;
}

.dropdown-item i {
    width: 20px;
    color: #888;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item-main {
    font-weight: 600;
    font-size: 15px;
    justify-content: space-between;
    padding: 14px 20px;
    color: #222;
}

.dropdown-item-main i {
    color: #bbb;
    font-size: 12px;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.dropdown-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dropdown-logout {
    color: var(--magalu-blue);
    background: white;
    border: 2px solid var(--magalu-blue);
    border-radius: 8px;
    margin: 8px 16px 8px;
    padding: 12px 20px;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.dropdown-logout:hover {
    background: var(--magalu-blue);
    color: white;
}

.header-nav {
    background: #0050a000;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.header-nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-nav-item:nth-child(2) {
    margin-left: auto;
}

.header-nav-list::-webkit-scrollbar {
    display: none;
}

.header-nav-item a,
.header-nav-item span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.header-nav-item a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    border-bottom-color: white;
}

.header-nav-item a i.fa-chevron-down {
    font-size: 10px;
    opacity: 0.7;
}

.header-nav-item a i.fa-bars {
    font-size: 14px;
}

.header-nav-item.highlight a {
    color: #f7d100;
    font-weight: 700;
}

.header-nav-item.highlight a:hover {
    background: rgba(247,209,0,0.15);
    border-bottom-color: #f7d100;
}

/* Progress Bar (checkout) */
.header-progress {
    height: 4px;
    background: rgba(0,0,0,0.2);
}

.header-progress-bar {
    height: 100%;
    background: var(--magalu-green);
    transition: width 0.3s ease;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: white;
    border-top: 1px solid var(--magalu-border);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--magalu-text);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--magalu-text-light);
    font-size: 13px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--magalu-blue);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--magalu-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--magalu-gray);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--magalu-blue);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--magalu-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--magalu-text-light);
}

.footer-payments {
    display: flex;
    gap: 8px;
}

.footer-payments img {
    height: 24px;
    opacity: 0.7;
}

/* =====================================================
   CARDS E PRODUTOS
   ===================================================== */

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-6px);
    border-color: rgba(0,134,255,0.15);
}

.product-card-image {
    aspect-ratio: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,134,255,0.03);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-card-image::after {
    opacity: 1;
}

.product-card-image img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-seller {
    font-size: 11px;
    color: var(--magalu-text-light);
    margin-bottom: 6px;
}

.product-card-seller span {
    color: var(--magalu-blue);
    font-weight: 600;
}

.product-card-title {
    font-size: 13px;
    line-height: 1.4;
    color: var(--magalu-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.product-card:hover .product-card-title {
    color: var(--magalu-blue);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.product-card-stars {
    color: #f5a623;
    font-size: 11px;
    letter-spacing: -1px;
}

.product-card-rating span {
    font-size: 11px;
    color: var(--magalu-text-light);
}

.product-card-price {
    margin-top: auto;
}

.product-card-price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.product-card-price-pix {
    font-size: 22px;
    font-weight: 800;
    color: var(--magalu-text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.product-card-price-pix small {
    font-size: 11px;
    font-weight: 500;
    color: var(--magalu-green);
    margin-left: 4px;
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-card-price-card {
    font-size: 12px;
    color: var(--magalu-text-light);
    margin-top: 4px;
}

.product-card-installments {
    font-size: 12px;
    color: var(--magalu-text-light);
    margin-top: 2px;
}

.product-card-free-shipping {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--magalu-green);
    font-weight: 600;
    margin-top: 10px;
    background: #e8f5e9;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* =====================================================
   RECOMMENDATION CARDS (Magalu-style)
   ===================================================== */

.rec-cards-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.rec-card {
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

.rec-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.rec-card-header {
    margin-bottom: 12px;
}

.rec-card-header strong {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.rec-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    margin-bottom: 14px;
    overflow: hidden;
}

.rec-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rec-card-info {
    margin-top: auto;
}

.rec-card-name {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin-bottom: 6px;
}

.rec-card-delivery {
    font-size: 12px;
    color: var(--magalu-blue);
}

.rec-card-delivery.free {
    color: var(--magalu-green);
    font-weight: 600;
}

@media (max-width: 1200px) {
    .rec-cards-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .rec-cards-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rec-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .rec-card-image {
        height: 220px;
    }
    .rec-card-image img {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .rec-cards-row {
        grid-template-columns: 1fr;
    }
    .rec-card-image {
        height: 260px;
    }
    .rec-card-image img {
        max-height: 260px;
    }
}

/* =====================================================
   BOTÕES
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--magalu-green);
    color: white;
}

.btn-primary:hover {
    background: #00b857;
}

.btn-secondary {
    background: white;
    color: var(--magalu-blue);
    border: 2px solid var(--magalu-blue);
}

.btn-secondary:hover {
    background: var(--magalu-blue);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--magalu-blue);
    border: 1px solid var(--magalu-border);
}

.btn-outline:hover {
    border-color: var(--magalu-blue);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* =====================================================
   FORMULÁRIOS
   ===================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--magalu-text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--magalu-border);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--magalu-blue);
    box-shadow: 0 0 0 3px rgba(0,134,255,0.1);
}

.form-input.error {
    border-color: var(--magalu-red);
}

.form-error {
    font-size: 12px;
    color: var(--magalu-red);
    margin-top: 4px;
}

/* =====================================================
   CHECKOUT STEPS
   ===================================================== */

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    background: white;
    border-bottom: 1px solid var(--magalu-border);
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
    position: relative;
}

.checkout-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 32px);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--magalu-border);
}

.checkout-step.active:not(:last-child)::after,
.checkout-step.completed:not(:last-child)::after {
    background: var(--magalu-green);
}

.checkout-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--magalu-light-gray);
    border: 2px solid var(--magalu-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.checkout-step.active .checkout-step-icon {
    background: var(--magalu-green);
    border-color: var(--magalu-green);
    color: white;
}

.checkout-step.completed .checkout-step-icon {
    background: var(--magalu-green);
    border-color: var(--magalu-green);
    color: white;
}

.checkout-step-label {
    font-size: 12px;
    color: var(--magalu-text-light);
}

.checkout-step.active .checkout-step-label {
    color: var(--magalu-green);
    font-weight: 600;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */

.main-content {
    padding: 15px 0 24px 0;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title a {
    font-size: 14px;
    color: var(--magalu-blue);
    font-weight: 500;
}

/* =====================================================
   GRID DE PRODUTOS
   ===================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   BANNERS
   ===================================================== */

.banner-slider {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.banner-slider img {
    width: 100%;
    display: block;
}

.categories-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 0;
    margin-bottom: 24px;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    min-width: 100px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card i {
    font-size: 28px;
    color: var(--magalu-blue);
    margin-bottom: 8px;
}

.category-card span {
    font-size: 12px;
    color: var(--magalu-text);
    text-align: center;
    white-space: nowrap;
}

/* =====================================================
   RESPONSIVO
   ===================================================== */

@media (max-width: 992px) {
    .header-location {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 12px;
    }
}

/* Hamburger menu - hidden on desktop */
.header-hamburger {
    display: none;
    background: none;
    color: white;
    font-size: 24px;
    padding: 4px;
    flex-shrink: 0;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-menu-panel {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 3000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 16px rgba(0,0,0,0.2);
}

.mobile-menu-panel.open {
    left: 0;
}

.mobile-menu-header {
    background: var(--magalu-blue);
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-close {
    background: none;
    color: white;
    font-size: 22px;
    padding: 4px;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
}

.mobile-menu-user i {
    font-size: 24px;
    color: var(--magalu-blue);
}

.mobile-menu-nav {
    padding: 8px 0;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.mobile-menu-nav a:hover {
    background: #f5f5f5;
}

.mobile-menu-nav a i {
    width: 20px;
    text-align: center;
    color: var(--magalu-blue);
}

.mobile-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

@media (max-width: 768px) {
    .header-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-panel {
        display: block;
    }
    
    .header-top {
        padding: 8px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .header-logo-text {
        font-size: 22px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .header-logo-lu {
        display: none;
    }
    
    .header-location {
        display: none;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 0;
    }
    
    .header-search input {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .header-actions {
        margin-left: auto;
        gap: 2px;
    }

    .header-action {
        min-width: auto;
        padding: 6px 8px;
        height: auto;
        font-size: 0;
    }
    
    .header-action span,
    .header-action-login .login-greeting {
        display: none;
    }

    .header-action i {
        font-size: 22px;
        margin-bottom: 0;
    }

    .header-action-login {
        flex-direction: column;
        gap: 0;
        padding: 6px 8px;
    }

    .header-action-login i {
        font-size: 22px;
        width: auto;
        height: auto;
        border: none;
        margin-top: 0px;
    }

    .header-action-cart .header-cart-badge {
        top: -2px;
        right: 0;
    }

    /* User dropdown on mobile: icon only, circle border */
    .header-user-dropdown {
        flex-direction: column;
        gap: 0;
        min-width: auto;
        padding: 6px 8px;
        height: auto;
    }

    .header-user-dropdown > i {
        font-size: 22px;
        width: auto;
        height: auto;
        border: none;
    }

    .header-user-dropdown .user-greeting {
        display: none;
    }
    
    .header-nav {
        display: none;
    }
    
    .user-dropdown-menu {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 70vh;
        overflow-y: auto;
        transform: translateY(100%);
    }
    
    .header-user-dropdown:hover .user-dropdown-menu {
        transform: translateY(0);
    }
    
    .user-dropdown-menu::before {
        display: none;
    }

    .checkout-step {
        padding: 0 8px;
    }
    
    .checkout-step-label {
        font-size: 9px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .main-content {
        padding: 16px 0;
    }
    
    .page-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .footer {
        padding: 32px 0 16px;
        margin-top: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .product-card-image img {
        max-height: 140px;
    }
    
    .product-card-price-pix {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-action {
        padding: 6px;
    }
    
    .header-action i {
        font-size: 20px;
    }
    
    .header-actions {
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-old-price {
        font-size: 11px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-installments {
        font-size: 11px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .container {
        padding: 0 8px;
    }
}

/* =====================================================
   UTILIDADES
   ===================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-green { color: var(--magalu-green); }
.text-blue { color: var(--magalu-blue); }
.text-gray { color: var(--magalu-text-light); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 18px; }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.bg-white { background: white; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: var(--shadow-sm); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* =====================================================
   LOADING
   ===================================================== */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.loading i {
    font-size: 32px;
    color: var(--magalu-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert/Info boxes */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-warning {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    color: #8d6e00;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid var(--magalu-green);
    color: #2e7d32;
}

.alert-info {
    background: #e3f2fd;
    border: 1px solid var(--magalu-blue);
    color: #1565c0;
}

.alert i {
    font-size: 20px;
}

/* =====================================================
   CUPOM TAG
   ===================================================== */

.cupom-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: var(--magalu-green);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.cupom-tag i {
    font-size: 12px;
}
