@font-face {
    font-family: 'TT Chocolates';
    src: url('fonts/TT-Chocolates-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* ============================================================
   IT-INVERSA Webshop — style.css
   Diseño clásico modernizado (basado en la estructura original)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --acento:       #e74c3c;
    --acento-h:     #c0392b;
    --texto:        #333333;
    --texto-suave:  #888888;
    --fondo:        #fcfcfc;
    --blanco:       #ffffff;
    --borde:        #eaeaea;
    --header-top:   #f4f4f4;
    --header-mid:   #ffffff;
    --btn-success:  #5cb85c;
    --btn-info:     #5bc0de;
    --btn-danger:   #d9534f;
    --btn-dark:     #333333;
}

body {
    font-family: 'TT Chocolates', sans-serif;
    background-color: var(--fondo);
    color: var(--texto);
    font-size: 14px;
    letter-spacing: 0.01em;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--acento); }

/* ── HEADER TOP ────────────────────────────────────────────── */
.header-top {
    background-color: var(--header-top);
    border-bottom: 1px solid var(--borde);
    padding: 8px 0;
    font-size: 12px;
}
.header-top .container {
    max-width: 1200px; margin: 0 auto; padding: 0 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.contactinfo { display: flex; gap: 20px; color: var(--texto-suave); }
.contactinfo a { display: flex; align-items: center; gap: 5px; }
.contactinfo i { color: var(--acento); }

.top-right {
    display: flex; align-items: center; gap: 20px;
}
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: var(--texto-suave); transition: color .2s; }
.social-icons a:hover { color: var(--acento); }

/* ── CARRITO POPUP FLOTANTE — AMIGABLE ────────────────────────── */
.cart-overlay {
    display: none;
    position: fixed; inset: 0;
    background: transparent;
    z-index: 9998;
}
.cart-dropdown-wrap.open .cart-overlay { display: block; }

.cart-menu {
    position: fixed;
    top: 76px; right: 18px;
    width: 340px;
    max-height: 80vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.08);
    z-index: 9999;
    display: flex; flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.23,1,0.32,1);
}
.cart-dropdown-wrap.open .cart-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@media (max-width: 500px) {
    .cart-menu { right: 8px; left: 8px; width: auto; }
}

/* ─ Header compact */
.cart-header-drawer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
    background: #fff; flex-shrink: 0;
}
.cart-hdr-left { display: flex; align-items: center; gap: 8px; }
.cart-hdr-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: #fee2e2; border: 1px solid #fca5a5;
    display: flex; align-items: center; justify-content: center;
}
.cart-hdr-icon i { color: var(--acento); font-size: 14px; }
.cart-hdr-title { font-size: 14px; font-weight: 500; color: #1a1a2e; }
.cart-hdr-count {
    background: #e74c3c; color: #fff; font-size: 10px; font-weight: 500;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.close-cart {
    background: #f5f5f5; border: none; color: #999;
    width: 28px; height: 28px; border-radius: 7px;
    cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.close-cart:hover { background: #ffe5e5; color: #e74c3c; }

/* ─ Items scrollable */
.cart-items-container { flex: 1; overflow-y: auto; min-height: 80px; }
.cart-items-container::-webkit-scrollbar { width: 3px; }
.cart-items-container::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

.cart-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; text-align: center;
}
.cart-empty-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #f9f9f9; border: 2px dashed #e5e5e5;
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.cart-empty-icon i { font-size: 24px; color: #ccc; }
.cart-empty-state p { font-size: 13px; font-weight: 500; color: #666; margin: 0 0 4px; }
.cart-empty-state small { font-size: 11px; color: #bbb; }

/* ─ Cart item row */
.cart-item-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.cart-item-row:hover { background: #fafbff; }

.cart-item-img {
    width: 48px; height: 48px; border-radius: 8px;
    object-fit: contain; background: #f8f9fa;
    border: 1px solid #eee; flex-shrink: 0;
}
.cart-item-thumb {
    width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
    background: #f5f7fa; border: 1px solid #eee;
    display: flex; align-items: center; justify-content: center;
}
.cart-item-thumb i { font-size: 18px; color: #ccc; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name {
    font-size: 11.5px; font-weight: 500; color: #222; line-height: 1.3; margin-bottom: 5px;
    display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cart-item-subtotal { font-size: 13px; font-weight: 500; color: #e74c3c; }

.cart-qty-ctrl {
    display: inline-flex; align-items: center;
    background: #f5f7fa; border: 1px solid #e8e8e8; border-radius: 6px; overflow: hidden;
}
.cart-qty-btn {
    background: none; border: none; cursor: pointer; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #666; transition: all 0.15s;
}
.cart-qty-btn:hover { background: #1a1a2e; color: #fff; }
.cart-qty-num {
    width: 26px; text-align: center; border: none;
    border-left: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8;
    background: #fff; outline: none; height: 24px;
    font-size: 11px; font-weight: 500; color: #333;
    -moz-appearance: textfield; appearance: textfield;
}
.cart-qty-num::-webkit-outer-spin-button,
.cart-qty-num::-webkit-inner-spin-button { -webkit-appearance: none; }

.cart-item-remove {
    background: none; border: none; cursor: pointer;
    color: #ddd; font-size: 15px; padding: 2px 3px;
    border-radius: 4px; transition: all 0.15s; flex-shrink: 0;
}
.cart-item-remove:hover { color: #e74c3c; background: #fff2f2; }

/* ─ Footer */
.cart-footer {
    flex-shrink: 0; padding: 12px 14px; border-top: 1px solid #f0f0f0;
    background: #fafafa; display: flex; flex-direction: column; gap: 10px;
}
.cart-footer-meta {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #aaa; font-weight: 500;
    padding-bottom: 8px; border-bottom: 1px dashed #eee;
}
.cart-footer-total {
    display: flex; align-items: center; justify-content: space-between;
}
.cart-footer-total .lbl { font-size: 12px; color: #888; font-weight: 500; }
.cart-footer-total .amt { font-size: 20px; font-weight: 500; color: #1a1a2e; }

.cart-footer-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.cart-btn-cerrar {
    border: 1px solid #e0e0e0; background: #f8f9fa; color: #777;
    border-radius: 9px; font-size: 13px; font-weight: 500; padding: 11px 8px;
    cursor: pointer; transition: all 0.2s; font-family: 'TT Chocolates', sans-serif;
    display: flex; align-items: center; justify-content: center;
}
.cart-btn-cerrar:hover { border-color: #ccc; background: #eee; color: #444; }

.cart-btn-pedido {
    border: none; cursor: pointer; border-radius: 9px;
    padding: 11px 10px; font-size: 13px; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff; box-shadow: 0 3px 12px rgba(231,76,60,0.28);
    transition: all 0.2s; font-family: 'TT Chocolates', sans-serif;
}
.cart-btn-pedido:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(231,76,60,0.38); }
.cart-btn-pedido:disabled { opacity: 0.7; transform: none; cursor: wait; }

.cart-btn-wa {
    width: 100%; border: none; cursor: pointer; border-radius: 9px;
    padding: 10px; font-size: 12px; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: linear-gradient(135deg, #25d366 0%, #20ba5c 100%);
    color: #fff; text-decoration: none;
    box-shadow: 0 2px 10px rgba(37,211,102,0.22); transition: all 0.2s;
    font-family: 'TT Chocolates', sans-serif;
}
.cart-btn-wa:hover { filter: brightness(1.06); color: #fff; }

.cart-btn-vaciar {
    width: 100%; border: none; cursor: pointer;
    padding: 7px; font-size: 11px; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    background: transparent; color: #ccc; transition: all 0.2s;
    font-family: 'TT Chocolates', sans-serif;
}
.cart-btn-vaciar:hover { color: #e74c3c; }

/* Botón Flotante Principal (FAB) */
.cart-fab {
    position: fixed; bottom: 110px; right: 30px;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--acento), var(--acento-h));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; border: none;
    box-shadow: 0 6px 20px rgba(231,76,60,0.45), 0 2px 6px rgba(0,0,0,0.12);
    z-index: 9997; transition: transform 0.25s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.2s;
}
.cart-fab:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(231,76,60,0.55); }
.cart-badge {
    position: absolute; top: -5px; left: -5px;
    background: var(--btn-danger); color: #fff; font-size: 11px; font-weight: 500;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; box-shadow: 0 2px 6px rgba(217,83,79,0.4);
}
@keyframes pop-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}
.cart-badge.pop { animation: pop-badge 0.4s ease; }


/* ── HEADER MIDDLE ─────────────────────────────────────────── */
.header-middle {
    background-color: var(--header-mid); padding: 20px 0;
    border-bottom: 1px solid var(--borde);
}
.header-middle .container {
    max-width: 1200px; margin: 0 auto; padding: 0 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; flex-direction: column; }
.logo-area h1 { font-size: 28px; font-weight: 500; color: var(--texto); margin: 0; letter-spacing: -1px; }
.logo-area h1 span { color: var(--acento); }
.logo-area p { font-size: 11px; color: var(--texto-suave); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.shop-menu { display: flex; gap: 20px; align-items: center; font-size: 14px; font-weight: 500; }
.shop-menu a.active { color: var(--acento); }

.login-form-inline {
    display: flex; gap: 10px; align-items: center;
}
.login-form-inline input {
    padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; width: 150px; font-size: 13px; outline:none;
}
.login-form-inline input:focus { border-color: var(--acento); }
.login-form-inline button {
    padding: 6px 15px; background: var(--btn-dark); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px;
}
.login-form-inline button:hover { background: var(--acento); }
.user-logged { font-size: 13px; display: flex; align-items: center; gap: 15px; }

/* ── SECCIÓN BUSCADOR Y MENU ───────────────────────────────── */
.search-bar-section {
    background: #fdfdfd; padding: 15px 0; border-bottom: 1px solid var(--borde);
}
.search-bar-section .container {
    max-width: 1200px; margin: 0 auto; padding: 0 15px;
    display: flex; gap: 20px; align-items: center;
}
.openbtn {
    background: #666363; color: white; border: none; padding: 10px 15px;
    cursor: pointer; font-size: 14px; border-radius: 4px; transition: background .2s;
}
.openbtn:hover { background: var(--acento); }
.searchbar {
    display: flex; align-items: center; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; background: #fff;
}
.search_input {
    border: none; padding: 8px 12px; width: 250px; outline: none; font-size: 14px;
}
.search_icon {
    padding: 8px 15px; background: #f9f9f9; color: #555; cursor: pointer; border-left: 1px solid #ccc;
}
.search_icon:hover { color: var(--acento); }

/* ── SIDEBAR (Menu Departamentos) ──────────────────────────── */
.sidebar {
    height: 100%; width: 0; position: fixed; z-index: 200; top: 0; left: 0;
    background-color: #111; overflow-x: hidden; padding-top: 60px; transition: 0.3s;
}
.sidebar .closebtn {
    position: absolute; top: 0; right: 25px; font-size: 36px; color: #818181; cursor: pointer;
}
.sidebar .closebtn:hover { color: #fff; }
.sidebar a.dept-link {
    padding: 10px 10px 10px 32px; text-decoration: none; font-size: 16px; color: #818181; display: block; transition: 0.2s;
}
.sidebar a.dept-link:hover { color: #f1f1f1; background: #222; }

/* ── GRID PRODUCTOS ────────────────────────────────────────── */
.main-content {
    max-width: 1200px; margin: 40px auto; padding: 0 15px; transition: margin-left .3s;
}
.section-title {
    text-align: center; font-size: 24px; color: var(--texto); font-weight: 500; margin-bottom: 30px; text-transform: uppercase;
}
.videos-home-section {
    max-width: 1200px;
    margin: 8px auto 24px;
    padding: 0 15px;
}
.videos-home-head {
    text-align: center;
    margin-bottom: 22px;
}
.videos-home-kicker {
    display: inline-flex;
    align-items: center;
    background: #fff1ed;
    color: #d94841;
    border: 1px solid #ffd2ca;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.videos-home-head h2 {
    font-size: 34px;
    line-height: 1.05;
    color: #1f2937;
    margin-bottom: 10px;
}
.videos-home-head p {
    max-width: 760px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}
.videosSwiper {
    padding: 6px 4px 42px;
}
.video-slide-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border: 1px solid #ececec;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    height: 100%;
}
.video-card-player {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: #111827;
    cursor: pointer;
}
.video-card-thumb-wrap,
.video-card-frame-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
}
.video-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-card-player:hover .video-card-play {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}
.video-card-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-card-body {
    padding: 18px 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.video-card-body h3 {
    font-size: 18px;
    color: #111827;
    line-height: 1.25;
}
.video-card-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}
.video-card-link:hover {
    background: #111827;
    color: #fff;
}
.videosSwiper .swiper-button-prev,
.videosSwiper .swiper-button-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    border: 1px solid #ececec;
}
.videosSwiper .swiper-button-prev::after,
.videosSwiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}
.videosSwiper .swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
}
.videosSwiper .swiper-pagination-bullet-active {
    background: var(--acento);
}
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 20px;
}
.product-card {
    background: #fff; border: 1px solid var(--borde); padding: 15px; text-align: center;
    border-radius: 4px; transition: box-shadow .2s; position: relative; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.product-card img {
    max-width: 100%; height: 120px; object-fit: contain; margin-bottom: 15px;
}
.product-info { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.p-codigo { font-size: 11px; font-weight: bold; color: var(--texto); }
.p-nombre { font-size: 12px; color: var(--texto-suave); margin: 5px 0 10px; line-height: 1.4; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 15px; border-radius: 6px; border: none; font-size: 14px; font-weight: 500;
    text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }

.btn-xs { font-size: 11px; padding: 4px 8px; border-radius: 4px; border: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-bottom: 5px; cursor: default; }
.btn-info { background: var(--btn-info); color: #fff !important; }
.btn-success { background: var(--btn-success); color: #fff !important; }
.btn-secondary { background: #999; color: #fff !important; }
.btn-danger { background: var(--btn-danger); color: #fff !important; cursor: pointer; }
.btn-danger:hover { background: #c9302c; }
.btn-dark { background: var(--btn-dark); color: #fff !important; cursor: pointer; }
.btn-dark:hover { background: #111; }

.add-to-cart-area { margin-top: 10px; display: flex; align-items: center; gap: 5px; }
.add-to-cart-area input { width: 50px; text-align: center; padding: 5px; border: 1px solid #ccc; border-radius: 3px; font-size: 12px; outline: none; }
.add-btn { flex: 1; background: var(--acento); color: #fff; border: none; padding: 6px; border-radius: 3px; font-size: 12px; font-weight: bold; cursor: pointer; transition: background .2s; }
.add-btn:hover { background: var(--acento-h); }
.add-btn.disabled { background: #ccc; cursor: not-allowed; }

.btn-login-card { display: block; background: #e0e0e0; color: #555; padding: 6px; border-radius: 3px; font-size: 11px; margin-top: 10px; font-weight: bold; text-align: center; }
.btn-login-card:hover { background: #ccc; }

/* ── CONTROLES DE CANTIDAD CARRITO ────────────────────────── */
.ws-cant-control { display: inline-flex; align-items: center; background: #fff; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.btn-cant { background: #f5f5f5; color: #333; border: none; padding: 6px 12px; cursor: pointer; transition: background 0.2s; font-size: 12px; display: flex; align-items: center; justify-content: center; width: 30px; }
.btn-cant:hover { background: #e0e0e0; color: var(--acento); }
.input-cant { width: 45px; text-align: center; border: none; border-left: 1px solid #ccc; border-right: 1px solid #ccc; padding: 6px 0; font-size: 13px; font-weight: 500; outline: none; -moz-appearance: textfield; appearance: textfield; }
.input-cant::-webkit-outer-spin-button, .input-cant::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Error box inline */
.error-inline { color: #d9534f; font-size: 11px; background: #fdf7f7; padding: 4px 8px; border: 1px solid #d9534f; border-radius: 3px; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
    background: #222; color: #aaa; padding: 40px 0 20px; font-size: 13px; margin-top: 50px;
}
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; text-align: center; }
.footer .logo-area h1 { color: #fff; margin-bottom: 10px; }

/* ════ CUADRÍCULA DESKTOP — SIEMPRE CENTRADA ═══════════════════════════════════ */
.product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 22px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.product-grid .product-card {
    flex: 0 0 220px !important;
    max-width: 220px !important;
    width: 220px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    border-radius: 10px !important;
    transition: box-shadow 0.25s, transform 0.2s !important;
}
.product-grid .product-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.10) !important;
    transform: translateY(-2px) !important;
}

/* Expandir contenedor principal del grid para que entren 5 tarjetas en Desktop */
.main-content.container { max-width: 1450px !important; width: 100% !important; }

/* ════ OPTIMIZACIÓN MÓVIL EXTREMA (MODO APP NATIVA) ═════════════════════════════════════ */
@media (max-width: 768px) {
    .videos-home-head h2 { font-size: 28px; }
    .video-card-body { padding: 16px; align-items: flex-start; flex-direction: column; }
    .video-card-link { width: 100%; justify-content: center; }
    .videosSwiper .swiper-button-prev,
    .videosSwiper .swiper-button-next { width: 42px; height: 42px; top: 42%; }

    /* Header Top & Middle */
    .header-top .container { flex-direction: column; gap: 10px; text-align: center; }
    .header-middle .container { flex-direction: column; gap: 15px; text-align: center; justify-content: center !important; }
    .header-middle .logo-area { margin-bottom: 5px; flex-direction: column; align-items: center; }
    .header-middle .logo-area img { max-width: 180px !important; margin: 0 auto; display: block; }
    .header-middle .logo-area div { border-left: none !important; padding-left: 0 !important; margin-top: 5px; text-align: center; border-top: 2px solid #e74c3c; padding-top: 5px; }
    
    .shop-menu { justify-content: center; width: 100%; flex-wrap: wrap; margin-bottom: 10px; gap: 15px; }
    .login-container, .login-form-inline { width: 100%; justify-content: center; flex-direction: column; gap: 10px; }
    .login-form-inline input { width: 100% !important; /* Touch friendly */ padding: 10px; }
    .login-form-inline button { width: 100%; padding: 12px; font-weight: bold; }
    
    /* Buscador full-width */
    .search-bar-section .container { flex-direction: column !important; width: 100% !important; padding: 0 15px !important; gap: 12px; }
    .openbtn { width: 100% !important; height: 50px !important; }
    .searchbar { width: 100% !important; height: 50px !important; margin: 0 !important; display: flex !important; box-sizing: border-box; }
    .searchbar input { width: 100% !important; font-size: 16px !important; } /* 16px evita zoom forzado en iOS */
    
    /* Hero Slider */
    .hero-section { padding: 10px !important; }
    .heroSwiper { height: 220px !important; border-radius: 8px !important; }
    .heroSwiper img { object-fit: cover !important; }
    
    /* Product Grid: 2 Tarjetas por fila centradas */
    .product-grid { gap: 10px !important; justify-content: center !important; padding: 0 5px !important; }
    .product-grid .product-card { 
        flex: 0 0 calc(50% - 8px) !important; 
        max-width: calc(50% - 8px) !important; 
        width: calc(50% - 8px) !important; 
        padding: 10px !important;
        margin: 0 !important;
    }
    
    .product-card img { height: 110px !important; max-height: 110px !important; object-fit: contain; }
    .p-codigo { font-size: 10px !important; }
    .p-nombre { font-size: 11px !important; height: 32px !important; line-height: 1.4 !important; overflow: hidden; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    
    .btn-xs { font-size: 10px !important; padding: 6px 6px !important; }
    
    /* Botones de carrito colapsados Verticalmente (Regla de Dedo Gordo) */
    .add-to-cart-area { flex-direction: column !important; gap: 5px !important; margin-top: 5px !important; }
    .add-to-cart-area input { width: 100% !important; padding: 8px !important; font-size: 16px !important; box-sizing: border-box; }
    .add-to-cart-area button { width: 100% !important; padding: 12px !important; font-size: 13px !important; }
    
    /* Paginación Touch-Friendly */
    .pagination-wrap { gap: 8px !important; margin-top: 25px !important; }
    .pagination-wrap .page-btn { padding: 12px 16px !important; font-size: 14px !important; }
    
    /* Mega Footer Colapsado */
    .footer-vip .container { flex-direction: column !important; text-align: center !important; gap: 40px !important; }
    .footer-col { width: 100% !important; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .footer-col img { margin: 0 auto 15px auto !important; }
    .footer-col ul li { justify-content: center !important; text-align: center !important; align-items: center !important; display: flex; flex-direction: column; }
    .footer-col ul li span { text-align: center; }
    .footer-col h4 { border-bottom-width: 2px !important; }
}

/* Teléfonos Miniatura (iPhone 5/SE - max 360px) */
@media (max-width: 360px) {
    .product-grid .product-card { 
        flex: 0 0 100% !important; 
        max-width: 100% !important; 
        width: 100% !important; 
    }
    .product-card img { height: 160px !important; max-height: 160px !important; }
}
