/* ============================================
   Desarmaduría - Estilos Públicos
   Paleta: negro/gris + naranja/amarillo (automotriz)
   ============================================ */

:root {
    --dark: #1a1a1a;
    --dark-2: #2a2a2a;
    --dark-3: #333;
    --gray: #666;
    --gray-light: #999;
    --light: #f5f5f5;
    --white: #fff;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-light: rgba(245, 158, 11, 0.1);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; color: var(--dark); background: var(--light); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── Top Bar ── */
.top-bar { background: var(--dark); padding: 0.4rem 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-left { display: flex; align-items: center; gap: 1.5rem; }
.top-item { color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.3rem; transition: color var(--transition); }
a.top-item:hover { color: var(--accent); }

/* ── Main Nav ── */
.main-nav { background: var(--white); padding: 0.75rem 0; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; }
.logo-img { height: 110px; width: auto; object-fit: contain; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--dark); font-weight: 500; font-size: 0.9375rem; transition: color var(--transition); padding: 0.5rem 0; }
.nav-link:hover { color: var(--accent); }

.nav-dropdown { position: relative; }
.nav-dropdown-btn { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 0.5rem 0; z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.9rem; transition: background var(--transition); }
.nav-dropdown-menu a:hover { background: var(--accent-light); color: var(--accent); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #25d366; color: var(--white); padding: 0.5rem 1.25rem;
    border-radius: var(--radius); font-weight: 600; font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: #20bd5a; transform: translateY(-1px); }

/* ── Hero Section (Home) ── */
.hero {
    background: linear-gradient(rgba(15, 15, 25, 0.75), rgba(15, 15, 25, 0.8)), url('/assets/img/hero-bg.png') center/cover no-repeat;
    padding: 5rem 0 4rem;
    text-align: center;
}
.hero-title { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 0.5rem; text-shadow: 0 2px 15px rgba(0,0,0,0.4); }
.hero-title span { color: var(--accent); }
.hero-subtitle { color: rgba(255,255,255,0.7); font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: 2rem; }

/* ── Search Box ── */
.search-box {
    max-width: 700px; margin: 0 auto; display: flex;
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.search-box input {
    flex: 1; border: none; padding: 1rem 1.25rem; font-size: 1rem; outline: none;
    min-width: 0;
}
.search-box button {
    background: var(--accent); color: var(--white); padding: 1rem 1.5rem;
    font-weight: 600; font-size: 1rem; transition: background var(--transition);
    display: flex; align-items: center; gap: 0.4rem; white-space: nowrap;
}
.search-box button:hover { background: var(--accent-hover); }

/* ── Category Grid ── */
.section { padding: 3rem 0; }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--dark);
    text-align: center; margin-bottom: 0.5rem;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px; background: var(--accent);
    margin: 0.5rem auto 0; border-radius: 2px;
}
.section-subtitle { text-align: center; color: var(--gray); font-size: 1rem; margin-bottom: 2rem; }

.cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem; max-width: 900px; margin: 0 auto;
}
.cat-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 1rem;
    text-align: center; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.cat-card-icon {
    width: 56px; height: 56px; border-radius: 50%; background: var(--accent-light);
    color: var(--accent); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem; font-size: 1.5rem;
}
.cat-card-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.cat-card-count { font-size: 0.75rem; color: var(--gray-light); margin-top: 0.25rem; }

/* ── Product Grid ── */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem;
}
.product-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img {
    width: 100%; height: 200px; object-fit: cover; background: #eee;
}
.product-card-body { padding: 1rem; }
.product-card-cat { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.product-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.3; }
.product-card-compat { font-size: 0.8rem; color: var(--gray); margin-bottom: 0.5rem; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; }
.product-card-price { font-size: 1.25rem; font-weight: 800; color: var(--accent); }

.stock-badge { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; text-transform: uppercase; }
.stock-ok { background: rgba(34,197,94,0.1); color: #16a34a; }
.stock-low { background: rgba(245,158,11,0.1); color: #d97706; }
.stock-out { background: rgba(239,68,68,0.1); color: #dc2626; }

.no-image { width: 100%; height: 200px; background: #e5e5e5; display: flex; align-items: center; justify-content: center; color: var(--gray-light); font-size: 0.85rem; }

/* ── Filters Sidebar ── */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.filters { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.filter-title { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 0.4rem; }
.filter-group select,
.filter-group input {
    width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #ddd; border-radius: var(--radius);
    font-size: 0.9rem; background: var(--white); transition: border-color var(--transition);
}
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--accent); }
.filter-btn {
    width: 100%; background: var(--accent); color: var(--white); padding: 0.75rem;
    border-radius: var(--radius); font-weight: 700; transition: background var(--transition);
}
.filter-btn:hover { background: var(--accent-hover); }
.filter-clear { display: block; text-align: center; color: var(--gray); font-size: 0.85rem; margin-top: 0.75rem; transition: color var(--transition); }
.filter-clear:hover { color: var(--danger); }

.filters-mobile-btn {
    display: none; width: 100%; background: var(--dark); color: var(--white);
    padding: 0.75rem; border-radius: var(--radius); font-weight: 600; margin-bottom: 1rem;
    justify-content: center; align-items: center; gap: 0.5rem;
}

/* ── Product Detail ── */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.detail-gallery { position: relative; }
.detail-main-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); background: #eee; }
.detail-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.detail-img-zoom {
    position: relative;
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: none;
    cursor: zoom-in;
}
.detail-img-zoom .detail-main-img { display: block; width: 100%; }
.zoom-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}
.detail-img-zoom:hover .zoom-hint { opacity: 1; }

.detail-thumb {
    width: 70px;
    height: 70px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    background: none;
    flex-shrink: 0;
    transition: border-color var(--transition);
}
.detail-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-thumb.active, .detail-thumb:hover { border-color: var(--accent); }

/* Lightbox producto */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.product-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}
.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox-close:hover { background: var(--accent); }
.lightbox-img-wrap {
    background: #f3f4f6;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.lightbox-info { padding: 1.5rem 2rem; }
.lightbox-title { font-size: 1.35rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.lightbox-price { font-size: 1.5rem; font-weight: 900; color: var(--accent); margin-bottom: 1rem; }
.lightbox-desc { font-size: 0.95rem; color: var(--gray); line-height: 1.7; }
@media (max-width: 768px) {
    .lightbox-content { grid-template-columns: 1fr; }
    .lightbox-info { padding: 1rem 1.5rem; }
}
.detail-info { }
.detail-cat { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.detail-title { font-size: 1.75rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.detail-price { font-size: 2rem; font-weight: 900; color: var(--accent); margin-bottom: 1rem; }
.detail-desc { color: var(--gray); line-height: 1.7; margin-bottom: 1.5rem; }
.detail-compat-title { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.detail-compat-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.compat-tag { font-size: 0.75rem; font-weight: 600; background: var(--accent-light); color: var(--accent-hover); padding: 0.3rem 0.75rem; border-radius: 20px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.detail-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #25d366; color: var(--white); padding: 1rem 2rem;
    border-radius: var(--radius); font-weight: 700; font-size: 1.1rem;
    transition: background var(--transition), transform var(--transition);
    border: none; cursor: pointer; text-decoration: none;
}
.detail-cta:hover { background: #20bd5a; transform: translateY(-2px); }
.detail-cta-reservar { background: var(--accent); }
.detail-cta-reservar:hover { background: var(--accent-hover); }

.btn-back {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--white); color: var(--dark); padding: 0.5rem 1rem;
    border-radius: var(--radius); font-weight: 600; font-size: 0.85rem;
    box-shadow: var(--shadow); border: 1px solid #e5e7eb;
    transition: all var(--transition); text-decoration: none;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-3px); }

/* ── Buttons (public) ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.75rem 1.25rem; border-radius: var(--radius); font-weight: 700;
    font-size: 0.9rem; transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--dark); border: 1px solid #ddd; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Modal Reserva */
.reserva-modal {
    position: fixed; inset: 0; z-index: 10001;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.reserva-modal.open { opacity: 1; visibility: visible; }
.reserva-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6); cursor: pointer;
}
.reserva-modal-box {
    position: relative; background: var(--white); border-radius: var(--radius-lg);
    padding: 1.5rem; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.reserva-modal-close {
    position: absolute; top: 0.75rem; right: 0.75rem;
    width: 36px; height: 36px; border: none; background: #f3f4f6;
    border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer;
    color: var(--gray); transition: background 0.2s;
}
.reserva-modal-close:hover { background: #e5e7eb; color: var(--dark); }
.reserva-modal-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; }
.reserva-modal-producto { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-bottom: 1.25rem; }
.reserva-modal .form-group { margin-bottom: 1rem; }
.reserva-modal .form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.reserva-modal .form-group input {
    width: 100%; padding: 0.7rem; border: 1px solid #ddd; border-radius: var(--radius); font-size: 1rem;
}
.reserva-modal-msg { font-size: 0.9rem; margin-bottom: 1rem; min-height: 1.4em; }
.reserva-msg-ok { color: var(--success); font-weight: 600; }
.reserva-msg-error { color: var(--danger); font-weight: 500; }
.reserva-modal-btns {
    display: flex; gap: 0.75rem; margin-top: 1rem;
}
#reservaSubmitBtn {
    flex: 1;
    display: inline-flex !important; align-items: center; justify-content: center;
    background: #22c55e !important; color: #fff !important;
    font-size: 1.05rem !important; font-weight: 800 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.5rem !important; border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
    transition: all 0.2s ease;
    -webkit-appearance: none;
}
#reservaSubmitBtn:hover {
    background: #16a34a !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}
#reservaCancelBtn {
    flex: 0 0 auto;
    display: inline-flex !important; align-items: center; justify-content: center;
    background: #ef4444 !important; color: #fff !important;
    font-size: 0.95rem !important; font-weight: 700 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.5rem !important; border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    transition: all 0.2s ease;
    -webkit-appearance: none;
}
#reservaCancelBtn:hover {
    background: #dc2626 !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; border-radius: var(--radius); font-weight: 600;
    font-size: 0.9rem; transition: all var(--transition);
}
.pagination a { background: var(--white); color: var(--dark); box-shadow: var(--shadow); }
.pagination a:hover { background: var(--accent); color: var(--white); }
.pagination .current { background: var(--accent); color: var(--white); }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: 2rem; }
.footer-title { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-brand-name {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    margin-bottom: 1rem;
    line-height: 1;
}
.footer-brand-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.footer-brand-sub {
    font-size: 1rem;
    font-weight: 700;
    color: #f97316;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 0.15rem;
}
.footer-brand-name:hover .footer-brand-main { color: #f97316; }
.footer-brand-name:hover .footer-brand-sub { color: #fff; }
.footer-desc { font-size: 0.875rem; line-height: 1.6; }
.footer-dev { font-size: 0.75rem; margin-top: 0.75rem; color: rgba(255,255,255,0.4); }
.footer-dev a { color: rgba(255,255,255,0.6); text-decoration: underline; transition: color 0.2s; }
.footer-dev a:hover { color: #fff; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a, .footer-links span { font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.brand-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.brand-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s;
}
.brand-item:hover img { opacity: 1; }
.brand-item span {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    text-align: center;
}
.brand-item:hover span { color: rgba(255,255,255,0.8); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding: 1rem 0; text-align: center; font-size: 0.8rem; }

/* ── Floating Socials ── */
.floating-socials {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.float-btn svg { width: 24px; height: 24px; }

.float-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.float-whatsapp { background: #25d366; animation: floatBounce 3s ease-in-out infinite; }
.float-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); animation: floatBounce 3s ease-in-out 0.4s infinite; }
.float-tiktok { background: #010101; animation: floatBounce 3s ease-in-out 0.8s infinite; }

.float-map {
    background: #4285f4;
    border-radius: 25px;
    width: auto;
    padding: 0 16px;
    gap: 6px;
    animation: floatBounce 3s ease-in-out 1.2s infinite;
}

.float-map svg { width: 20px; height: 20px; stroke: #fff; fill: none; }

.float-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Intranet Float ── */
.float-intranet {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a1a2e;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.float-intranet:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(217,119,6,0.35);
}

/* ── Shipping Carousel ── */
.shipping-carousel {
    display: inline-block;
    overflow: hidden;
    max-width: 280px;
    vertical-align: middle;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.shipping-track {
    display: inline-flex;
    gap: 0;
    white-space: nowrap;
    animation: scrollShipping 12s linear infinite;
}

.shipping-brand {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0 6px;
}

.shipping-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.6rem;
    padding: 0 2px;
}

@keyframes scrollShipping {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Flash Messages ── */
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; font-size: 0.9rem; }
.flash-success { background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid rgba(34,197,94,0.2); }
.flash-error { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.open { display: block; }
    .filters-mobile-btn { display: flex; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-actions { flex-direction: column; }
    .detail-cta { width: 100%; justify-content: center; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .brands-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
}

@media (max-width: 768px) {
    .floating-socials { right: 10px; gap: 10px; }
    .float-btn { width: 44px; height: 44px; }
    .float-btn svg { width: 20px; height: 20px; }
    .float-map { padding: 0 12px; }
    .float-label { font-size: 0.7rem; }
    .shipping-carousel { max-width: 180px; }
    .hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); flex-direction: column; padding: 1rem;
        box-shadow: var(--shadow-lg); gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 0.75rem 0; border-bottom: 1px solid #eee; width: 100%; }
    .nav-dropdown-menu { position: static; box-shadow: none; padding-left: 1rem; }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-cta { width: 100%; justify-content: center; margin-top: 0.5rem; }
    .main-nav { position: relative; }

    .top-right { display: none; }
    .top-bar-inner { justify-content: center; }
    .top-left { width: 100%; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
    .top-item-email { display: none; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.75rem; }
    .cat-card { padding: 1rem 0.5rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-card-img { height: 150px; }
    .no-image { height: 150px; }
}

@media (max-width: 480px) {
    .search-box { flex-direction: column; border-radius: var(--radius); }
    .search-box button { justify-content: center; }
    .products-grid { grid-template-columns: 1fr; }
    .detail-main-img { height: 280px; }
    .detail-title { font-size: 1.25rem; }
    .detail-price { font-size: 1.5rem; }
    .detail-cta { padding: 0.85rem 1.25rem; font-size: 1rem; }
    .detail-cta svg { width: 20px; height: 20px; flex-shrink: 0; }
}
