/* ============================================
   BLACK GROUP - DISEÑO PREMIUM + MOBILE FIRST
   ============================================ */

:root {
    --gold: #c9a04a;
    --gold-light: #e5c178;
    --gold-dark: #a3823a;
    --bg-dark: #0a0a0c;
    --bg-card: #141416;
    --bg-elevated: #1a1a1e;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(201, 160, 74, 0.25);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --shadow-gold: 0 4px 24px rgba(201, 160, 74, 0.15);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --footer-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: none;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER - Sticky + Glass
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 6px 12px 6px 6px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201, 160, 74, 0.08) 0%, transparent 100%);
    border: 1px solid var(--border-gold);
    transition: var(--transition);
    flex-shrink: 0;
}

.brand:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-gold);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Buscador */
.search-container {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 12px 16px 12px 44px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.12);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-input:focus + .search-icon {
    color: var(--gold);
}

/* Botón Admin */
.btn-admin {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-admin:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 160, 74, 0.08);
}

/* ============================================
   FOOTER TIKTOK STYLE (FIJO)
   ============================================ */

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(16, 16, 18, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid var(--border-subtle);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    height: calc(var(--footer-height) + env(safe-area-inset-bottom, 0px));
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    height: var(--footer-height);
    padding: 0 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    min-width: 64px;
    flex: 1;
    max-width: 90px;
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item.active {
    color: var(--gold);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 0 0 4px 4px;
}

.nav-item i {
    font-size: 1.35rem;
    transition: var(--transition);
}

.nav-item span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Badge carrito */
.cart-badge {
    position: absolute;
    top: 2px;
    right: 12px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #0a0a0c;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.45);
}

/* ============================================
   HERO
   ============================================ */

.hero-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px 12px;
}

.hero-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: 28px 22px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
}

.hero-badge.promo {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.hero-title {
    font-size: clamp(1.9rem, 7vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
    max-width: 480px;
}

.hero-description .accent {
    color: #34d399;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0a0c;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.05);
}

.hero-image-container {
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 340px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.promo-floating-badge {
    position: absolute;
    top: -10px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    z-index: 2;
}

/* ============================================
   SECCIONES Y FILTROS
   ============================================ */

.section-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

.view-all-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 18px;
}

.filters-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-pills {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 5px;
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-pill {
    padding: 9px 18px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0a0c;
}

.sort-select {
    padding: 11px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    min-width: 160px;
}

/* ============================================
   GRID DE PRODUCTOS
   ============================================ */

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:active {
    transform: scale(0.98);
}

.product-image-container {
    position: relative;
    height: 170px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 9999px;
}

.shipping-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(16, 185, 129, 0.92);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-info {
    padding: 12px;
}

.product-brand {
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.product-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
}

.product-price-original {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 4px;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 11px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0a0c;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-add-cart:active {
    transform: scale(0.95);
}

/* ============================================
   PÁGINA PRODUCTO
   ============================================ */

.product-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

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

.product-detail-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-gold);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-brand {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.detail-name {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
}

.detail-price-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.detail-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--gold);
}

.detail-price-original {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-description {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.shipping-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    margin-top: 6px;
}

.shipping-highlight i {
    font-size: 1.6rem;
    color: #34d399;
}

.shipping-highlight-title {
    font-weight: 700;
    color: #34d399;
    font-size: 0.95rem;
}

.shipping-highlight-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Estilos para productos relacionados */
.related-products-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(201, 160, 74, 0.5);
}

.related-product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    padding: 1rem;
}

.related-product-brand {
    font-size: 0.7rem;
    color: #c9a04a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.related-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-product-price .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c9a04a;
}

.related-product-price .original-price {
    font-size: 0.9rem;
    color: #666;
    text-decoration: line-through;
}

/* Responsive */
@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .related-product-image {
        height: 150px;
    }
}
/* ============================================
   CARRITO + CHECKOUT
   ============================================ */

.cart-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border-radius: 9999px;
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active {
    background: var(--gold);
    color: #0a0a0c;
}

.qty-value {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    font-size: 0.95rem;
}

.remove-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f87171;
    background: none;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 22px;
}

.checkout-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.checkout-subtitle {
    color: #34d399;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.checkout-summary {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.checkout-total-label {
    font-size: 1.05rem;
    font-weight: 700;
}

.checkout-total-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
}

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

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

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.12);
}

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

.btn-whatsapp {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 16px;
}

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

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* ============================================
   ESTADOS VACÍOS + TOAST
   ============================================ */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3.2rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.45;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.toast {
    position: fixed;
    top: 90px;
    right: 16px;
    left: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.35);
    animation: slide-in 0.3s ease-out, slide-out 0.3s ease-in 1.7s forwards;
}

@keyframes slide-in {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-out {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); opacity: 0; }
}

/* ============================================
   TABLET Y DESKTOP
   ============================================ */

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 0 20px 40px;
    }

    .product-image-container {
        height: 200px;
    }

    .product-name {
        font-size: 0.95rem;
    }

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

    .btn-add-cart {
        padding: 9px 14px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .header-inner {
        padding: 14px 20px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 28px 20px;
    }

    .hero-card {
        padding: 40px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 5vw, 3.6rem);
    }

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

    .product-detail-image {
        height: 460px;
    }

    .detail-name {
        font-size: 2.1rem;
    }

    .cart-grid {
        grid-template-columns: 1.6fr 1fr;
        gap: 32px;
    }

    .cart-item {
        padding: 18px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .toast {
        left: auto;
        right: 24px;
        max-width: 320px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Móvil muy pequeño */
@media (max-width: 380px) {
    .brand-text {
        display: none;
    }

    .btn-admin span {
        display: none;
    }

    .search-input {
        padding-left: 40px;
        font-size: 0.9rem;
    }

    .nav-item {
        min-width: 56px;
        padding: 6px 4px;
    }

    .nav-item span {
        font-size: 0.62rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}