@import url(root.css);
@import url('https://solargentinotv.com.ar/assets/fonts/Gilroy/Gilroy.css');

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

html,
body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 18px;
}

.producto {
    border: none;
    border-radius: var(--radius);
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 6px rgb(0 0 0 / 52%), 0 8px 20px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    min-width: 0;
}

button.btn {
    color: #fff;
    background: #ff7600;
    border: none !important;
    display: block;
    margin: 1em auto;
    width: 90%;
    max-width: 260px;
    padding: 0 1em;
    height: 3em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
}

button.btn:hover {
    color: #000;
    background: #f8bb12;
    font-weight: 700;
}

.categoria {
    font-weight: 300;
    color: #ff7600;
}

/* =========================
   HEADER
   ========================= */
.pp-header {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 10px 18px;
    border-bottom: 3px solid var(--brand);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.pp-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pp-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}

.pp-name {
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .2px;
    font-size: 1.2em;
    color: #ff7600;
}

.pp-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--brand);
    border-radius: 6px;
    padding: 8px 12px;
    background: #fafafa;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.pp-search-bar input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-weight: 700;
    font-size: 15px;
    color: #ff7600;
}

::placeholder {
    color: #ff7600;
    background: #fff;
}

.pp-search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    opacity: 1;
    flex-shrink: 0;
}

.pp-nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.pp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: .15s;
    white-space: nowrap;
    font-size: 13px;
}

.pp-link:hover {
    background: rgba(0, 0, 0, .04);
    color: #000;
}

.pp-link-text {
    font-weight: 800;
    font-size: 12px;
    color: #ff7600;
    line-height: 1.1;
    text-align: center;
    margin-left: 0;
}

.pp-link i {
    font-size: 17px;
    opacity: .8;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-weight: 900;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: border .18s, background .18s, color .18s;
    white-space: nowrap;
}

.btn-login:hover {
    border: 1.5px solid var(--brand);
    background: var(--brand);
    color: #fff;
}

/* =========================
   NAV
   ========================= */
.main-navbar {
    background: #f7f7f7;
    border-bottom: 3px solid var(--brand);
    position: relative;
    z-index: 40;
}

.nav-items {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 56px;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
}

.nav-item {
    position: relative;
    flex: 0 0 auto;
}

.nav-item>a,
.nav-trigger-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    color: #ff7600;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item>a:hover,
.nav-trigger-btn:hover,
.nav-item.active>a,
.nav-trigger-btn.active {
    background: rgba(0, 0, 0, .05);
    color: #000;
}

.nav-item-about>a {
    color: var(--brand-2) !important;
    font-weight: 900;
}

.nav-item-about>a:hover {
    background: rgba(255, 197, 47, 0.16);
    color: var(--brand) !important;
}

.nav-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 18px;
    width: 340px;
    max-width: min(340px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 9999;
    height: 379px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-dropdown-panel.show {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>a,
.dropdown-submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: 900;
    padding: 10px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #ff7600;
    background: transparent;
    border: none;
    text-align: left;
}

.dropdown-submenu>a:hover,
.dropdown-submenu-trigger:hover {
    background: rgba(0, 0, 0, .04);
    color: #000;
}

.submenu {
    display: none;
    padding-left: 8px;
    margin-bottom: 6px;
}

.dropdown-submenu:hover>.submenu,
.dropdown-submenu.active>.submenu {
    display: block;
}

.submenu a,
.submenu-all {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 1px;
    white-space: normal;
}

.submenu a:hover,
.submenu-all:hover {
    background: rgba(0, 0, 0, .04);
    color: #000;
}

.submenu-all {
    color: var(--brand-2);
    font-weight: 900;
}

.dropdown-submenu:hover>a,
.dropdown-submenu:hover>.dropdown-submenu-trigger {
    color: #000;
}

.submenu-arrow {
    font-size: 18px;
    line-height: 1;
    margin-left: 8px;
}

/* =========================
   GRID DE PRODUCTOS
   ========================= */
.productos-grid {
    width: 100%;
    max-width: 1760px;
    margin: 32px auto 40px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0px 4px rgb(0 0 0 / 61%);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    outline: .25px solid var(--brand);
}

.card:hover {
    transform: scale(1.05);
    border-color: var(--brand);
    box-shadow: 0 8px 18px rgb(0 0 0 / 16%);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    transition: filter .18s;
}

.card:hover img {
    filter: brightness(0.97) saturate(1.13);
}

.info {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
    height: 100%;
    text-align: justify;
}

.nombre {
    order: 1;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 2px;
    overflow-wrap: anywhere;
}

.cat {
    order: 2;
    font-size: 11px;
    color: var(--brand);
    font-weight: 700;
}

.desc {
    order: 3;
    font-size: 12px;
    color: #666;
    line-height: 1.35;
    overflow-wrap: anywhere;
    display: block;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#loader {
    text-align: center;
    margin: 60px 0 30px 0;
    font-weight: 600;
    color: #999;
}

/* =========================
   DROPCART
   ========================= */
.dropcart-container,
.pp-cart {
    position: relative;
}

.pp-cart-trigger {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #ff7600;
    margin-left: 0;
    white-space: nowrap;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
}

.dropcart {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: min(380px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.dropcart.show,
.dropcart.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropcart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.dropcart-header strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand);
}

.dropcart-close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--brand);
    padding: 4px 6px;
    border-radius: 8px;
    font-weight: 900;
}

.dropcart-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropcart-items {
    max-height: 360px;
    overflow: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropcart-items .empty {
    margin: 0;
    text-align: center;
    color: var(--brand);
    padding: 28px 10px;
    font-size: 14px;
    font-weight: 800;
}

.dropcart-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    background: #fff;
}

.dropcart-item img,
.dropcart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dropcart-item-media {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.dropcart-item-info {
    min-width: 0;
}

.dropcart-title,
.dropcart-item-title {
    display: block;
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dropcart-item-title:hover {
    text-decoration: underline;
}

.dropcart-sub,
.dropcart-item-meta {
    margin: 0;
    color: var(--brand);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
}

.dropcart-price,
.dropcart-item-price {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}

.dropcart-qty {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.dropcart-qty button {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    font-weight: 900;
}

.dropcart-qty button.danger {
    border-color: rgba(239, 68, 68, .35);
    color: #ef4444;
}

.dropcart-item-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: #b91c1c;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 8px;
}

.dropcart-item-remove:hover {
    background: rgba(185, 28, 28, 0.08);
}

.dropcart-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
    padding: 14px 16px 16px;
}

.dropcart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--brand);
    font-weight: 950;
}

.dropcart-total span {
    font-size: 14px;
}

.dropcart-total strong {
    font-size: 18px;
    font-weight: 800;
}

.dropcart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-ghost,
.btn-primary,
.dropcart-actions .btn-ghost,
.dropcart-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    padding: 0 14px;
}

.btn-ghost,
.dropcart-actions .btn-ghost {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--brand);
}

.btn-ghost:hover,
.dropcart-actions .btn-ghost:hover {
    background: #f3f4f6;
}

.btn-primary,
.dropcart-actions .btn-primary {
    border: none;
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover,
.dropcart-actions .btn-primary:hover {
    opacity: .92;
}

/* =========================
   FOOTER
   ========================= */
.pp-footer {
    margin-top: auto;
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border-top: 3px solid var(--brand);
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.pp-footer p {
    margin: 6px 0;
}

.footer-links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-btn {
    padding: 8px 16px;
    border: 2px solid var(--brand);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
    transition: all .18s ease;
}

.footer-btn:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 118, 0, .25);
}

/* =========================
   MOBILE MENU
   ========================= */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    display: none;
    z-index: 9999;
    border-top: 3px solid var(--brand);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, .10);
}

.mobile-item {
    color: var(--brand);
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    transform: translateY(100%);
    transition: .35s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    font-size: 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 950;
}

.mobile-menu-header button {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.mobile-search {
    padding: 15px;
}

.mobile-search input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
}

#mobileMenuContent .nav-items {
    flex-direction: column;
    gap: 7px;
    padding: 0 12px;
    min-height: auto;
    height: auto;
    align-items: stretch;
    overflow: visible;
    white-space: normal;
}

#mobileMenuContent .nav-item {
    width: 100%;
}

#mobileMenuContent .nav-item>a,
#mobileMenuContent .nav-trigger-btn,
#mobileMenuContent .dropdown-submenu-trigger {
    width: 100%;
    justify-content: space-between;
}

#mobileMenuContent .dropdown-menu,
#mobileMenuContent .nav-dropdown-panel,
#mobileMenuContent .submenu {
    position: static;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    display: none !important;
    background: transparent;
    padding: 0;
    height: auto;
    overflow: visible;
}

#mobileMenuContent .dropdown-submenu:hover .submenu,
#mobileMenuContent .dropdown-submenu.active .submenu {
    display: block !important;
}

/* ================= SVG ICONS GLOBAL ================= */
.mobile-item img,
.pp-link img,
.pp-cart-trigger img,
.pp-search-btn img,
.btn-login img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(53%) sepia(51%) saturate(3605%) hue-rotate(359deg) brightness(100%) contrast(110%);
}

.pp-link,
.pp-cart-trigger,
.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-item:active {
    transform: scale(0.96);
}

/* ===== ACCOUNT DROPDOWN ===== */
.account-dropdown {
    position: relative;
}

.account-trigger {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    color: #ff7600;
    font-weight: 700;
    margin-right: 0;
    margin-left: 0;
}

.account-trigger img {
    width: 22px;
    height: 22px;
    order: 2;
    filter: brightness(0) saturate(100%) invert(53%) sepia(51%) saturate(3605%) hue-rotate(359deg) brightness(100%) contrast(110%);
}

.account-menu {
    position: absolute;
    top: 104%;
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
    min-width: 180px;
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 50;
    border: 2px solid #ff7600;
    color: #ff7600;
    font-weight: 700;
}

.account-dropdown:hover .account-menu {
    display: flex;
}

.account-menu a,
.account-menu button {
    background: none;
    border: none;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    width: 100%;
    color: #ff7600;
}

.account-menu img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(53%) sepia(51%) saturate(3605%) hue-rotate(359deg) brightness(100%) contrast(110%);
}

.account-menu a:hover,
.account-menu button:hover {
    background: #ff7600;
    color: #fff;
}

.account-menu a:hover img,
.account-menu button:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(2%) hue-rotate(159deg) brightness(105%) contrast(100%);
}

.account-trigger:hover,
.account-dropdown:hover .account-trigger,
.pp-link:hover .pp-link-text,
.pp-cart-trigger:hover>span:first-child {
    color: #000 !important;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1600px) {
    .productos-grid {
        max-width: 1560px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 0 20px;
        gap: 18px;
    }
}

@media (max-width: 1280px) {

    .container,
    .productos-grid {
        max-width: 100%;
    }

    .pp-header {
        grid-template-columns: 180px minmax(0, 1fr) auto;
        gap: 14px;
        padding: 10px 14px;
    }

    .pp-search-bar {
        max-width: 100%;
        margin: 0;
    }

    .pp-nav-links {
        gap: 8px;
    }

    .pp-link {
        padding: 8px;
    }

    .pp-link-text {
        margin-left: 0;
        font-size: 11px;
    }

    .pp-cart-trigger {
        margin-left: 0;
    }

    .productos-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 0 18px;
        gap: 16px;
    }

    .card {
        min-height: 345px;
    }

    .card img {
        height: 180px;
    }
}

@media (max-width: 992px) {
    .pp-header {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 12px;
        padding: 12px 14px;
    }

    .pp-logo-link {
        justify-content: center;
    }

    .pp-search-bar {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .pp-nav-links,
    .main-navbar {
        display: none;
    }

    .mobile-bottom-bar {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        left: 0;
        right: 0;
        padding: 0;
        overflow: hidden;
    }

    .mobile-item {
        min-height: 68px;
        padding: 8px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: #fff;
        color: var(--brand);
        font-size: 11px;
        line-height: 1.1;
        text-align: center;
        border-right: 1px solid rgba(0, 0, 0, .08);
    }

    .mobile-item:last-child {
        border-right: none;
    }

    .mobile-item img {
        width: 23px;
        height: 23px;
    }

    .mobile-item:hover,
    .mobile-item:active {
        background: rgba(0, 0, 0, .04);
        transform: none;
    }

    .mobile-menu {
        padding-bottom: 82px;
    }

    main {
        padding-bottom: 92px;
    }

    .productos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        padding: 0 14px;
        margin: 24px auto;
    }

    .card {
        min-height: 310px;
    }

    .card img {
        height: 160px;
    }

    .dropcart {
        position: fixed;
        top: auto;
        right: 12px;
        left: 12px;
        bottom: 74px;
        width: auto;
        max-width: none;
        border-radius: 18px;
    }

    .dropcart-items {
        max-height: min(50vh, 420px);
    }

    .pp-footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        padding: 0 12px;
    }

    .card {
        min-height: 290px;
    }

    .card img {
        height: 150px;
    }
}

@media (max-width: 650px) {
    .pp-header {
        padding: 10px;
        gap: 10px;
    }

    .container {
        padding: 0 10px;
    }

    .pp-logo-link {
        justify-content: flex-start;
    }

    .pp-name {
        font-size: 1.05em;
    }

    .pp-search-bar {
        padding: 8px 10px;
        gap: 8px;
    }

    .pp-search-bar input {
        font-size: 14px;
    }

    .mobile-item {
        min-height: 64px;
        font-size: 10px;
        padding: 8px 4px;
    }

    .mobile-item img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 560px) {
    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 10px;
    }

    .card {
        min-height: 260px;
    }

    .card img {
        height: 140px;
        padding: 10px;
    }

    .nombre {
        font-size: 13px;
    }

    .desc {
        font-size: 11px;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 500px) {
    .pp-header {
        padding: 10px 8px;
    }

    .pp-search-bar {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .dropcart {
        right: 8px;
        left: 8px;
        width: auto;
    }

    .mobile-bottom-bar {
        grid-template-columns: repeat(4, 1fr);
    }

    .mobile-item {
        min-height: 62px;
        padding: 8px 2px;
        font-size: 10px;
    }

    .mobile-item img {
        width: 21px;
        height: 21px;
    }

    .dropcart-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 180px;
    }
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-2);
}

@supports (-moz-appearance: none) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--brand) transparent;
    }
}

@-moz-document url-prefix() {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--brand) transparent;
    }
}

.verproducto-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    transition: .18s;
    width: 100%;
    box-shadow: 0 8px 18px rgba(255, 118, 0, .25);
    order: 4;
    margin-top: auto;
    align-self: center;
    text-align: center;
}

.verproducto-btn:hover {
    background: var(--brand-2);
    color: #000;
}

/* =========================
   DROPCART - CONTROLES COMO CHECKOUT
   (Pegar al final para que pise lo anterior)
   ========================= */

/* Wrapper de acciones (igual vibe que .checkout-item-actions) */
.dropcart-item-info .dropcart-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Pastillita de cantidad (igual a .checkout-qty) */
.dropcart-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff;
    margin-top: 8px;
}

/* Botones + / - (igual a .checkout-qty-btn)
   Incluyo también ".dropcart-qty button" por si te quedó algún HTML viejo */
.dropcart-qty-btn,
.dropcart-qty button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 118, 0, .10);
    color: var(--brand);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropcart-qty-btn:hover,
.dropcart-qty button:hover {
    background: var(--brand);
    color: #fff;
}

/* Valor cantidad (igual a .checkout-qty-value) */
.dropcart-qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    color: var(--brand);
}

/* Botón eliminar (igual a .checkout-remove-btn)
   Nota: aunque muestre "✕", lo deja con look de botón */
.dropcart-item-remove {
    border: none;
    background: transparent;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}

.dropcart-item-remove:hover {
    background: var(--brand);
    color: #fff;
}

/* Opcional: si querés que el ✕ se vea más “icono” y menos texto,
   descomentá estas 2 líneas */
/*
.dropcart-item-remove {
font-size:18px;
padding:4px 8px;
}
*/

/* =========================
   PRODUCT BADGES (CATÁLOGO)
   ========================= */

.card {
    position: relative;
}

/* contenedor de badges */
.card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

/* badge base */
.badge {
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    line-height: 1;
    letter-spacing: .3px;
}

/* tipos */
.badge-nuevo {
    background: #ff7600;
}

.badge-stock {
    background: #dc2626;
}

.badge-oferta {
    background: #16a34a;
}

.badge-custom {
    background: #111;
}

/* overlay cuando está sin stock */
.card.sin-stock {
    opacity: 0.65;
}

/* =========================
   PRECIO EN CARD
   ========================= */

.price-wrap {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-original {
    font-size: 12px;
    text-decoration: line-through;
    color: #888;
    font-weight: 700;
}

.price-final {
    font-size: 15px;
    font-weight: 900;
    color: #ff7600;
}

/* =========================
   BADGES PRODUCTOS (GRID)
   ========================= */

.card {
    position: relative;
}

/* Contenedor de badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

/* Estilo base badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 6px;
    letter-spacing: .4px;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

/* NUEVO */
.badge-nuevo {
    background: #ff7600;
}

/* SIN STOCK */
.badge-stock {
    background: #d32f2f;
}

/* DESCUENTO */
.badge-descuento {
    background: #2e7d32;
}

/* Opcional: efecto hover sutil */
.card:hover .badge {
    transform: translateY(-1px);
    transition: transform .18s ease;
}