/* ============================================
   IMPRIME TU SERVILLETA - TIENDA CSS
   iPos-specific styles
   ============================================ */

/* ========== INDEX SECTIONS SPACING ========== */
section[class^="section-"] {
    padding: var(--section-padding);
}

/* ========== iPos NAVIGATION (replaces generic nav selectors from styles.css) ========== */

/* Override header container from space-between to work with 4 children */
header .container {
    justify-content: flex-start;
    gap: 0;
}

/* Menu wrapper - push to right of logo */
.nav-menus-wrap {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Inner menu container from menu.html */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Each menu item wrapper */
.nav-item-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Menu links - replicate original nav a styles */
.nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 8px 0;
}
.nav-link:hover {
    color: var(--color-cyan);
}

/* Dropdown arrow */
.nav-link .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
    display: inline-block;
}
.nav-item-wrap:hover > .nav-link .dropdown-arrow {
    transform: rotate(180deg);
}

/* Regular dropdown submenu */
.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    min-width: 220px;
    z-index: 200;
}
.nav-submenu.dropdown-content {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 16px 50px rgba(0,0,0,0.14);
    padding: 8px;
}
.nav-submenu-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    margin-bottom: 2px;
}
.nav-submenu-link:hover {
    background: var(--color-bg-cyan);
    color: var(--color-cyan);
}

/* Show dropdowns on hover */
.nav-item-wrap:hover > .nav-submenu,
.nav-item-wrap:hover > .nav-mega-menu {
    display: block;
}

/* Mega menu - override trigger for iPos wrapper (original uses .nav-dropdown:hover) */
.nav-item-wrap > .nav-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    min-width: 480px;
    z-index: 200;
}
.nav-item-wrap > .nav-mega-menu .nav-mega-menu-inner-wrap {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.14);
    overflow: hidden;
    position: relative;
}
.nav-item-wrap > .nav-mega-menu .nav-mega-menu-inner-wrap::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-white);
}
.nav-item-wrap > .nav-mega-menu .mega-menu-inner {
    display: flex;
    width: 100%;
}
.nav-item-wrap > .nav-mega-menu .mega-menu-col {
    flex: 1;
    padding: 24px 28px;
}
.nav-item-wrap > .nav-mega-menu .mega-menu-col:first-child {
    border-right: 1px solid var(--color-border);
}
.nav-item-wrap > .nav-mega-menu .mega-menu-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    padding-bottom: 0;
}
.nav-item-wrap > .nav-mega-menu .mega-menu-col a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 8px;
    margin-bottom: 2px;
    text-decoration: none;
}
.nav-item-wrap > .nav-mega-menu .mega-menu-col a::after { display: none; }
.nav-item-wrap > .nav-mega-menu .mega-menu-col:first-child a:hover {
    background: var(--color-bg-cyan);
    color: var(--color-cyan);
}
.nav-item-wrap > .nav-mega-menu .mega-menu-col:last-child a:hover {
    background: var(--color-bg-pink);
    color: var(--color-magenta);
}
.mega-menu-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 8px;
    margin-bottom: 2px;
    text-decoration: none;
}
.mega-menu-link:hover {
    background: var(--color-bg-cyan);
    color: var(--color-cyan);
}

/* Nav icons group (search, account, wishlist, cart) */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 24px;
}
.nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
    color: var(--color-text-light);
    text-decoration: none;
}
.nav-icon:hover {
    background: var(--color-bg-warm);
    color: var(--color-cyan);
}
.nav-icon svg {
    width: 20px;
    height: 20px;
}

/* Cart/wishlist badge */
.nav-icon .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--color-magenta);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}
.mobile-overlay.active {
    display: block;
}

/* iPos Mobile menu panel */
.nav-menu-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    z-index: 201;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 60px 24px 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.mobile-menu-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
    padding: 4px 8px;
    z-index: 1;
}
.nav-menu-mobile .dl-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-menu-mobile .dl-menu > li {
    border-bottom: 1px solid var(--color-border);
}
.nav-menu-mobile .dl-menu > li > a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-display);
    transition: color 0.2s;
}
.nav-menu-mobile .dl-menu > li > a:hover {
    color: var(--color-cyan);
}
.nav-menu-mobile .dl-submenu {
    list-style: none;
    padding: 0 0 8px 16px;
    margin: 0;
    border-left: 2px solid var(--color-cyan);
}
.nav-menu-mobile .dl-submenu a {
    display: block;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 0;
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-family: var(--font-body);
}
.nav-menu-mobile .dl-submenu a:hover {
    color: var(--color-cyan);
}

/* Responsive - hide desktop menu on mobile, show hamburger */
@media (max-width: 1024px) {
    .nav-menus-wrap {
        display: none !important;
    }
    .nav-icons {
        margin-left: auto;
    }
}
@media (max-width: 480px) {
    .nav-icons {
        gap: 0;
    }
    .nav-icon {
        width: 36px;
        height: 36px;
    }
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.97);
    z-index: 1300;
    display: none;
    flex-direction: column;
}
.search-overlay.open {
    display: flex;
}
.search-overlay-header {
    padding: 24px 40px;
    border-bottom: 1px solid var(--color-border);
}
.search-overlay-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.search-overlay-icon {
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.search-overlay-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.25rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: transparent;
}
.search-overlay-input::placeholder {
    color: var(--color-text-muted);
}
.search-overlay-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.search-overlay-close:hover {
    color: var(--color-dark);
}
.search-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* ========== CART DRAWER ========== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    display: none;
    transition: opacity 0.3s;
}
.cart-drawer-overlay.open {
    display: block;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.cart-drawer.open {
    right: 0;
}
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.cart-drawer-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0;
}
.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark);
    padding: 0;
    line-height: 1;
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.cart-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cart-drawer-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.cart-drawer-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-drawer-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-drawer-item-info {
    flex: 1;
    min-width: 0;
}
.cart-drawer-item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-drawer-item-variant {
    font-size: 0.8rem;
    color: #6b7280;
}
.cart-drawer-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-cyan);
}
.cart-drawer-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}
.cart-drawer-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.cart-drawer-item-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-drawer-item-qty button:hover {
    background: #f3f4f6;
}
.cart-drawer-item-qty input {
    width: 36px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-body);
    background: transparent;
}
.cart-drawer-item-remove {
    color: #9ca3af;
    transition: color 0.2s;
}
.cart-drawer-item-remove:hover {
    color: #ef4444;
}
.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    gap: 1rem;
    height: 100%;
}
.cart-drawer-empty h4 {
    color: var(--color-dark);
    font-size: 1rem;
}

/* ========== WISHLIST DRAWER ========== */
.wishlist-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    display: none;
}
.wishlist-drawer-overlay.open {
    display: block;
}
.wishlist-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.wishlist-drawer.open {
    right: 0;
}

/* ========== MOBILE MENU (dl-menu for iPos) ========== */
.dl-menuwrapper {
    position: relative;
}
.dl-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dl-menu li {
    position: relative;
}
.dl-menu li a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s, color 0.2s;
}
.dl-menu li a:hover {
    background: rgba(0,74,173,0.05);
    color: var(--color-cyan);
}
.dl-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9fafb;
}
.dl-submenu li a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}
.dl-submenu .dl-submenu li a {
    padding-left: 3.5rem;
    font-size: 0.85rem;
}
.dl-menu .dl-back {
    display: none;
}

/* ========== PRODUCT LIST PAGE ========== */
.page-banner {
    background: linear-gradient(135deg, var(--color-cyan), #0066cc);
    padding: 3rem 0;
    text-align: center;
}
.page-banner h1 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 0.5rem;
}
.page-banner .breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0;
}
.page-banner .breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.page-banner .breadcrumb a:hover {
    color: #fff;
}

/* Breadcrumb <li> support (backend output) */
.breadcrumb li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
}
.breadcrumb li + li::before {
    content: '\203A';
    color: var(--color-text-muted);
    font-size: 14px;
}
.breadcrumb li:last-child {
    font-weight: 600;
    color: var(--color-text);
}

.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}
@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Filters */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}
@media (max-width: 768px) {
    .filter-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1100;
        border-radius: 0;
        overflow-y: auto;
        padding-top: 4rem;
    }
    .filter-sidebar.active {
        display: block;
    }
}
.filter-section {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}
.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--color-dark);
}
.filter-link {
    display: block;
    padding: 0.375rem 0;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.filter-link:hover, .filter-link.active {
    color: var(--color-cyan);
    font-weight: 600;
}
.filter-link.subcate {
    padding-left: 1rem;
    font-size: 0.825rem;
}
.filter-link.subcate2 {
    padding-left: 2rem;
    font-size: 0.8rem;
}
button.filter-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem;
    background: var(--color-cyan);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    button.filter-toggle {
        display: block;
    }
}

/* Filter Select Dropdowns */
.filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-dark);
    background: #fff;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
}
.filter-select:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.15);
}
.filter-sidebar .filter-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-dark);
}
.btn-apply-filters {
    padding: 0.6rem 1rem;
    background: var(--color-cyan);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-apply-filters:hover {
    opacity: 0.9;
}
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.products-toolbar .filter-select,
.products-toolbar select {
    width: auto;
    min-width: 180px;
}
.products-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
/* Price Slider */
.filter-sidebar .filtro_slider {
    margin-top: 0.5rem;
}
.filter-sidebar #amount {
    font-weight: 600;
    color: var(--color-cyan) !important;
    font-size: 0.85rem;
}
/* Sidebar close button (mobile) */
@media (max-width: 768px) {
    .filter-sidebar > button:first-child {
        display: block !important;
        z-index: 10;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.product-card-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
}
.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}
.product-card:hover .product-card-image {
    transform: scale(1.05);
}
.product-badge-sale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-magenta);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.product-badge-stock {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #ef4444;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.product-card-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-category {
    font-size: 0.75rem;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--color-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-prices {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.price-compare {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.85rem;
}
.price-current {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-cyan);
}

/* ========== PRODUCT DETAIL ========== */
.product-detail-section {
    padding: 2rem 0 3rem;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Product Info (index cards) */
.product-info {
    padding: 0;
}
.product-info .product-brand {
    font-size: 0.85rem;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.product-info h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 1rem;
    color: var(--color-dark);
    line-height: 1.3;
}
/* Product detail price (ficha) */
.product-detail-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.product-detail-price-current {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-cyan);
}
.product-detail-price-compare {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
}

/* Product card price (catalogo) */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.product-price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-cyan);
}
.product-price-compare {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: #9ca3af;
}
.product-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Variant Selector */
.variant-selector {
    margin-bottom: 1.25rem;
}
.variant-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
    display: block;
    margin-bottom: 0.5rem;
}
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.variant-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-dark);
}
.variant-btn:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}
.variant-btn.active {
    border-color: var(--color-cyan);
    background: var(--color-cyan);
    color: #fff;
}
.variant-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity */
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.quantity-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
}
.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.quantity-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.quantity-control button:hover {
    background: #f3f4f6;
}
.quantity-control input {
    width: 48px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    background: transparent;
}


/* ========== CART PAGE ========== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}
.cart-summary {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}
.cart-summary h3 {
    font-family: var(--font-display);
    margin: 0 0 1rem;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #6b7280;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0;
    border-top: 2px solid var(--color-dark);
    margin-top: 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.75rem;
    }
}
.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-info h4 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
}
.cart-item-price {
    font-weight: 700;
    color: var(--color-cyan);
}
.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.5rem;
    transition: color 0.2s;
}
.cart-item-remove:hover {
    color: #ef4444;
}
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}
.cart-empty h3 {
    color: var(--color-dark);
    margin: 1rem 0;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.pagination-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination-link:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}
.pagination-link.active {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    color: #fff;
}
.pagination-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== FORMS (iPos) ========== */
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.375rem;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-dark);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(0,74,173,0.1);
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}
.form-row {
    display: block;
    margin-bottom: 1rem;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
.checkout-form-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.checkout-form-section h3 {
    font-family: var(--font-display);
    margin: 0 0 1.5rem;
    font-size: 1.2rem;
}

/* ========== LOGIN / ACCOUNT ========== */
.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .login-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== BLOG ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}
@media (max-width: 768px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== SOCIAL ICONS ========== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0;
}
.social-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.social-icon .social-icon-name {
    font-size: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}
/* Icon replacement via data-network */
.social-icon[data-network="facebook"]::before { content: "f"; font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.social-icon[data-network="instagram"]::before { content: "\1F4F7"; font-size: 0.9rem; }
.social-icon[data-network="twitter"]::before { content: "\1D54F"; font-size: 0.9rem; font-weight: 700; }
.social-icon[data-network="tiktok"]::before { content: "\266A"; font-size: 1rem; }
.social-icon[data-network="youtube"]::before { content: "\25B6"; font-size: 0.8rem; }
.social-icon[data-network="pinterest"]::before { content: "P"; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.social-icon[data-network="linkedin"]::before { content: "in"; font-size: 0.8rem; font-weight: 700; }

.social-icon--top {
    width: 28px;
    height: 28px;
    background: none;
    color: var(--color-dark);
    font-size: 0;
}
.social-icon--top:hover {
    color: var(--color-cyan);
    background: none;
}

/* ========== SLIDER RANGE (Price Filter) ========== */
#slider-range, #slider-range-2 {
    margin: 0.5rem 0 1rem;
}
#amount, #amount-2 {
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-cyan);
    background: transparent;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ========== AVAILABILITY PER STORE ========== */
.disponibilidad_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}
.disponibilidad_table td {
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

/* ========== COOKIES BAR ========== */
.cookies_btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

/* ========== UTILITY ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--color-cyan);
    color: #fff;
    border-color: var(--color-cyan);
}
.btn-primary:hover {
    background: #003d8f;
    border-color: #003d8f;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}
.btn-outline:hover {
    background: var(--color-cyan);
    color: #fff;
}

/* ========== PRODUCT TOOLBAR ========== */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.products-toolbar select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-dark);
    background: #fff;
    outline: none;
}
.products-count {
    font-size: 0.9rem;
    color: #6b7280;
}

/* ========== FOOTER (iPos additions) ========== */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social .social-icon {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
}
.footer-social .social-icon:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.footer-selectors {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 16px 0;
}
.footer-selectors select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--font-body);
    cursor: pointer;
}
.footer-selectors select option {
    background: var(--color-cyan);
    color: #fff;
}
/* Footer bottom link */
.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: #fff;
}
/* Payment icons in iPos use images rendered by FormasPagoBottomXX */
footer .payment-icon img {
    height: 20px;
    width: auto;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========== OVERRIDE for iPos formulario float issue (Rule 37) ========== */
.index-formulario-section input,
.index-formulario-section textarea,
.index-formulario-section select {
    float: none !important;
}

/* ========== HERO SLIDER (iPos slideshow) ========== */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-cyan) 50%, var(--color-bg-warm) 100%);
}
.move-slides-wrap {
    position: relative;
    width: 100%;
    height: 500px;
}
.move-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}
.move-slide.active {
    opacity: 1;
    z-index: 1;
}
.move-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 3rem 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    color: #fff;
    z-index: 2;
}
.slide-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 700px;
}
.slide-content p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    line-height: 1.6;
}
.slide-content .btn {
    display: inline-flex;
    box-shadow: 0 4px 14px rgba(0,174,239,0.3);
}
.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}
.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .move-slides-wrap {
        height: 350px;
    }
    .slide-content {
        padding: 2rem 1.5rem 2rem;
    }
    .slide-content h2 {
        font-size: 1.5rem;
    }
    .slide-content p {
        font-size: 0.95rem;
    }
}

/* ========== CONTACT PAGE (paper style) ========== */
.contact-page-section {
    padding: 3rem 0 4rem;
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}
.contact-page-info {
    padding: 0;
}
.contact-page-info .overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-cyan);
    margin-bottom: 1rem;
}
.contact-page-info h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.contact-page-info h2 em {
    color: var(--color-cyan);
    font-style: italic;
}
.contact-page-info > p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-detail-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    background: rgba(0,174,239,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-detail-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.125rem;
    color: var(--color-dark);
}
.contact-detail-item a,
.contact-detail-item span {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: none;
}
.contact-detail-item a:hover {
    color: var(--color-cyan);
}
/* Contact form box */
.contact-form-box {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.contact-form-box .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.contact-form-box .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}
.contact-form-box .form-group:last-child {
    margin-bottom: 0;
}
.contact-form-box .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-dark);
}
.contact-form-box .form-group input,
.contact-form-box .form-group select,
.contact-form-box .form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-white);
    transition: border-color 0.3s;
    outline: none;
    box-sizing: border-box;
}
.contact-form-box .form-group input:focus,
.contact-form-box .form-group select:focus,
.contact-form-box .form-group textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(0,174,239,0.1);
}
.contact-form-box .form-group textarea {
    resize: vertical;
    min-height: 100px;
}
@media (max-width: 768px) {
    .contact-form-box .form-row {
        grid-template-columns: 1fr;
    }
}

/* Store selector dropdown (contact page) */
.store-selector-section {
    margin-bottom: 2rem;
}
.store-selector-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
#drp_tiendas_select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-dark);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}
#drp_tiendas_select:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(0,174,239,0.1);
}

/* ========== RELATED PRODUCTS (Ver producto button) ========== */
.product-card .product-detail-btn {
    display: block;
    padding: 0.625rem 1rem;
    border: 2px solid var(--color-cyan);
    border-radius: 8px;
    background: transparent;
    color: var(--color-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    text-decoration: none;
    text-align: center;
    margin-top: 0.75rem;
}
.product-card .product-detail-btn:hover {
    background: var(--color-cyan);
    color: #fff;
}

/* ========== VARIANT CARDS GRID (grouped variants) ========== */
.variant-cards-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.variant-cards-grid > div {
    flex: 1;
    min-width: 110px;
    max-width: 200px;
}
.variant-cards-grid .qty-option {
    height: 100%;
    margin-bottom: 0;
    padding: 12px 16px;
}
.variant-cards-grid .qty-option .qty-price {
    font-size: 16px;
}
.variant-cards-grid .qty-option .qty-label {
    font-size: 11px;
}
.variant-cards-grid .qty-option .product-detail-price-compare {
    font-size: 0.8rem;
}
.variant-cards-grid .variant-kueski {
    display: none;
}
.variant-cards-grid ~ #infoprod_none {
    display: none;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 480px) {
    .product-detail-grid {
        gap: 1rem;
    }
    .variant-cards-grid > div {
        min-width: 90px;
        max-width: none;
    }
    .variant-cards-grid .qty-option {
        padding: 10px 12px;
    }
    .variant-cards-grid .qty-option .qty-price {
        font-size: 14px;
    }
}

/* ========== FILE UPLOAD (Adjuntar imagen) ========== */
.adjuntar_archivo_opciones_area {
    height: auto !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
    margin: 1rem 0;
}
.adjuntar_archivo_opciones_area:hover {
    border-color: var(--color-cyan);
    background: var(--color-bg-cyan);
}
.adjuntar_archivo_opciones_area_boton {
    position: relative !important;
    background: none !important;
    border: none !important;
    color: var(--color-dark) !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    background-image: none !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: none;
}
.adjuntar_archivo_opciones_area_boton::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 48 48' stroke='%238E99A4' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M28 8H12a4 4 0 00-4 4v24a4 4 0 004 4h24a4 4 0 004-4V20M28 8l12 12M28 8v12h12'/%3E%3Cpath stroke-linecap='round' d='M16 28l4-4 3 3 5-5 8 8'/%3E%3Ccircle cx='18' cy='20' r='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.adjuntar_archivo_opciones_area_boton::after {
    content: "Arrastra tu archivo o haz clic para seleccionar\APNG, JPG, PDF hasta 10MB";
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
    line-height: 1.6;
    white-space: pre-line;
}
.adjuntar_archivo_opciones {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}
.imagen_vista_previa {
    height: 80px !important;
    margin: 0.5rem 0 !important;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    object-fit: cover;
}

/* ========== PRODUCT OPTIONS (backend-generated) ========== */
.opcion_area {
    margin-bottom: 1rem;
    border: none;
}
.product-option {
    margin-bottom: 0.5rem;
}
.product-option .option-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}
.product-option select,
.opcion_area select.selectOption,
.opcion_area select {
    width: 100%;
    padding: 0.6rem 2rem 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    transition: border-color 0.2s ease;
    outline: none;
}
.product-option select:focus,
.opcion_area select:focus {
    border-color: var(--color-dark);
}
.opcion_area input[type="text"],
.opcion_area input[type="number"],
.opcion_area input[type="date"],
.opcion_area textarea,
.option-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.2s ease;
    outline: none;
}
.opcion_area input[type="text"]:focus,
.opcion_area input[type="number"]:focus,
.opcion_area textarea:focus,
.option-input:focus {
    border-color: var(--color-dark);
}
/* Hide the legacy <br> and <hr> from generales fallback */
.opcion_area > br,
.opcion_area > hr {
    display: none;
}
/* Selector-producto from generales fallback */
.selector-producto {
    border: none;
    padding: 0;
}
