/* ================================================
   D'CRéNEO SHOP - ESTILOS EXACTOS SEGéšN REFERENCIA
   Reconstruccié³n completa para match visual perfecto
================================================ */

/* VARIABLES BASE */
:root {
    --shop-beige-bg: #EAE5D5;
    --shop-cream-light: #F5F0E8;
    --shop-white-warm: #FDFCFA;
    --shop-text-dark: #2C2420;
    --shop-text-gray: #8B8580;
    --shop-badge-yellow: #ff9100;
    --shop-badge-dark: #1A1A1A;
}

/* FONDO GENERAL DE TODA LA PéGINA */
body.shop-page,
.dc-shop-page {
    background-color: var(--shop-beige-bg) !important;
    min-height: 100vh;
}

/* ================================================
   1) BARRA LATERAL VERTICAL FIJA (PILL/CAPSULE)
================================================ */
.shop-sidebar-pill {
    position: fixed;
    left: 0;
    top: 40px;
    height: 90vh;
    background: var(--dc-beige-light);
    border-radius: 0 20px 20px 0;
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 10px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.shop-sidebar-pill .pill-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-sidebar-pill .pill-logo img {
    max-width: 100%;
    height: auto;
}

.shop-sidebar-pill .pill-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    transform: rotate(90deg);
    /* Rotacié³n 90Â° para esté©tica editorial */
}

.shop-sidebar-pill .pill-hamburger span {
    width: 20px;
    height: 2px;
    background: var(--shop-text-dark);
    transition: all 0.3s ease;
}

.shop-sidebar-pill .pill-hamburger:hover span {
    background: var(--shop-badge-yellow);
}

.shop-sidebar-pill .pill-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-sidebar-pill .pill-icons a,
.shop-sidebar-pill .pill-icons button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--shop-text-dark);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.shop-sidebar-pill .pill-icons a:hover,
.shop-sidebar-pill .pill-icons button:hover {
    opacity: 1;
    color: var(--shop-badge-yellow);
}

/* AJUSTE DEL CONTENIDO PRINCIPAL PARA LA BARRA LATERAL */
@media (min-width: 992px) {
    .shop-main-wrapper {
        margin-left: 130px;
    }
}

/* ================================================
   2) HEADER "TIENDA"
================================================ */
.shop-page-header {
    text-align: center;
    padding: 80px 0 60px;
}

.shop-page-header h1 {
    font-family: 'Archivo', sans-serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--shop-text-dark);
    margin: 0 0 12px 0;
    letter-spacing: -1px;
}

.shop-page-header .subtitle {
    font-size: 16px;
    color: var(--shop-text-gray);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ================================================
   3) LAYOUT: SIDEBAR FILTROS + CONTENIDO
================================================ */
.shop-layout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================================
   A) SIDEBAR DE FILTROS (columna izquierda)
================================================ */
.shop-filters-sidebar {
    padding-right: 40px;
}

.filter-block {
    margin-bottom: 50px;
}

.filter-block-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--shop-text-dark);
    margin-bottom: 20px;
}

/* Categoré­as con bullets circulares */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    cursor: pointer;
}

.category-item .radio-bullet {
    width: 16px;
    height: 16px;
    border: 2px solid #D0C8C0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.category-item:hover .radio-bullet {
    border-color: var(--shop-text-dark);
}

.category-item.active .radio-bullet {
    border-color: var(--shop-text-dark);
}

.category-item.active .radio-bullet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--shop-text-dark);
    border-radius: 50%;
}

.category-item .category-name {
    font-size: 15px;
    color: var(--shop-text-dark);
    flex: 1;
}

.category-item .category-count {
    font-size: 14px;
    color: var(--shop-text-gray);
}

/* Separador */
.filter-separator {
    height: 1px;
    background: #E0D8D0;
    margin: 30px 0;
}

/* Filtro de precio FUNCIONAL */
.price-filter-wrapper {
    margin-top: 20px;
}

.price-filter-range {
    position: relative;
    height: 4px;
    background: #E0D8D0;
    border-radius: 2px;
    margin-bottom: 20px;
}

.price-range-min,
.price-range-max {
    position: absolute;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    top: 0;
}

.price-range-min::-webkit-slider-thumb,
.price-range-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--shop-badge-yellow);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.price-range-min::-webkit-slider-thumb:hover,
.price-range-max::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.price-range-min::-moz-range-thumb,
.price-range-max::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--shop-badge-yellow);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.price-range-min::-moz-range-thumb:hover,
.price-range-max::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.price-range-track {
    position: absolute;
    height: 4px;
    background: var(--shop-badge-yellow);
    border-radius: 2px;
    pointer-events: none;
    transition: all 0.2s ease;
    top: 0;
}

.price-filter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display {
    font-size: 14px;
    color: var(--shop-text-gray);
    font-weight: 500;
}

.filter-button {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--shop-text-dark);
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:hover {
    color: var(--shop-badge-yellow);
    text-decoration-color: var(--shop-badge-yellow);
}

/* ================================================
   4) SHOP TOP BAR (barra superior de controles)
================================================ */
.shop-top-bar {
    background: var(--shop-cream-light);
    border-radius: 40px;
    padding: 18px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.shop-top-bar .view-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-filter-toggle {
    display: none;
}

.shop-top-bar .view-label {
    font-size: 14px;
    color: var(--shop-text-gray);
    margin-right: 5px;
}

.shop-top-bar .view-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--shop-text-gray);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-top-bar .view-icon.active,
.shop-top-bar .view-icon:hover {
    color: var(--shop-text-dark);
}

.shop-top-bar .results-count {
    font-size: 14px;
    color: var(--shop-text-gray);
}

.shop-top-bar .sort-select {
    min-width: 190px;
    height: 42px;
    padding: 0 34px 0 14px;
    border: 1px solid #d5ccc0;
    border-radius: 999px;
    background-color: #f6f1e8;
    background-image: linear-gradient(45deg, transparent 50%, #2b2b2b 50%), linear-gradient(135deg, #2b2b2b 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 10px) calc(50% - 1px);
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
    font-size: 13px;
    font-weight: 600;
    color: var(--shop-text-dark);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-top-bar .sort-select:hover,
.shop-top-bar .sort-select:focus {
    border-color: #b7aa98;
    box-shadow: 0 0 0 2px rgba(209, 158, 62, 0.14);
}

.sort-dropdown {
    position: relative;
    width: 190px;
    flex-shrink: 0;
}

.sort-dropdown .sort-select {
    width: 100%;
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #f8f3ea;
    border: 1px solid #d8cfc3;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 40;
    overflow: hidden;
    animation: dc-sort-in 0.2s ease;
}

.sort-option {
    width: 100%;
    border: none;
    background: transparent;
    color: #2c2420;
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.sort-option:hover {
    background: #efe7da;
}

.sort-option.active {
    background: #e5dac9;
    font-weight: 700;
}

@keyframes dc-sort-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   5) GRID DE PRODUCTOS
================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Card individual */
.product-card {
    background: transparent;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 3/4;
}

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

/* Badge */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 2;
}

.product-badge.discount {
    background: var(--shop-badge-yellow);
    color: #fff;
}

.product-badge.new {
    background: var(--shop-badge-dark);
    color: #fff;
}

/* HOVER EFFECTS - Bottom Bar + Right Icons */
.product-hover-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    color: #fff;
    padding: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    will-change: opacity, transform, background-color, color;
    border-radius: 0 0 20px 20px;
    z-index: 5;
    cursor: pointer;
}

.product-hover-actions.is-open {
    opacity: 1;
    transform: translateY(0);
    background: rgba(26, 26, 26, 0.98);
}

.dc-quick-buy-sizes {
    position: absolute;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    bottom: 68px;
    z-index: 7;
    background: rgba(245, 240, 232, 0.98);
    border: 1px solid rgba(44, 36, 32, 0.15);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    animation: dc-quick-buy-in 0.22s ease forwards;
}

.dc-quick-buy-sizes.is-closing {
    animation: dc-quick-buy-out 0.18s ease forwards;
    pointer-events: none;
}

.dc-quick-buy-sizes.is-add-to-cart {
    bottom: 16px;
}

.dc-quick-buy-size-btn {
    min-width: 42px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(44, 36, 32, 0.2);
    background: #fff;
    color: #2c2420;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0 10px;
    transition: all 0.2s ease;
}

.dc-quick-buy-sizes .product-hover-actions {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    width: 80%;
    max-width: 220px;
    min-width: 140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.dc-quick-hint,
.dc-quick-controls {
    width: 100%;
    flex-basis: 100%;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.22s ease, margin 0.22s ease;
}

.dc-quick-hint.is-visible,
.dc-quick-controls.is-visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 220px;
}

.dc-quick-hint.is-hidden,
.dc-quick-controls.is-hidden {
    opacity: 0;
    transform: translateY(6px);
    max-height: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

@keyframes dc-quick-buy-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dc-quick-buy-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
}

.dc-quick-buy-size-btn:hover {
    background: #2c2420;
    border-color: #2c2420;
    color: #fff;
}

.dc-quick-buy-no-stock {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b8178;
    padding: 6px 0;
}

.product-hover-actions:hover {
    background: var(--shop-badge-yellow);
    color: #fff;
}

.product-card:hover .product-hover-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-hover-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 6;
}

.product-card:hover .product-hover-icons {
    opacity: 1;
}

.product-hover-icon {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

.product-hover-icon:hover {
    background: var(--shop-badge-yellow);
    color: #fff;
    transform: scale(1.1);
}

.product-hover-icon:hover .product-hover-cart-icon {
    filter: brightness(0) invert(1);
}

/* Wishlist active heart */
.product-hover-icon.dc-wishlist-active {
    background: var(--shop-badge-yellow);
    color: #fff !important;
    animation: dc-heart-pulse 0.4s ease;
}

.product-hover-icon.dc-wishlist-active i {
    color: #fff !important;
}

.product-hover-cart-icon {
    width: 13px;
    height: auto;
    transform: translateY(1px);
    transition: filter 0.3s ease;
}

.product-hover-icon.dc-cart-active {
    background: var(--shop-badge-yellow);
    color: #fff !important;
}

.product-hover-icon.dc-cart-active .product-hover-cart-icon {
    filter: brightness(0) invert(1);
}

.product-list-icon-btn.dc-wishlist-active {
    border-color: var(--shop-badge-yellow);
    background: transparent;
    animation: dc-heart-pulse 0.4s ease;
}

.product-list-icon-btn.dc-wishlist-active i {
    color: var(--shop-badge-yellow) !important;
}

@keyframes dc-heart-pulse {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.25);
    }

    60% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* Info del producto */
.product-card-info {
    text-align: center;
}

.product-card-title {
    font-family: 'Archivo', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--shop-text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-price {
    margin-bottom: 8px;
}

.product-card-price .current-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--shop-text-dark);
    margin-right: 8px;
}

.product-card-price .old-price {
    font-size: 15px;
    color: var(--shop-text-gray);
    text-decoration: line-through;
}

.product-card-rating {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.product-card-rating i {
    font-size: 12px;
    color: #E0D8D0;
}

.product-card-rating i.filled {
    color: #F5A623;
}

/* ================================================
   LIST VIEW (#tab2)
================================================ */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-list-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: transparent;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.product-list-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.product-list-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

.product-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-list-title {
    font-family: 'Archivo', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--shop-text-dark);
    margin-bottom: 12px;
}

.product-list-title a {
    color: inherit;
    text-decoration: none;
}

.product-list-price {
    margin-bottom: 12px;
}

.product-list-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--shop-text-dark);
    margin-right: 10px;
}

.product-list-price .old-price {
    font-size: 16px;
    color: var(--shop-text-gray);
    text-decoration: line-through;
}

.product-list-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
}

.product-list-rating i {
    font-size: 13px;
    color: #E0D8D0;
}

.product-list-rating i.filled {
    color: #F5A623;
}

.product-list-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--shop-text-gray);
    margin-bottom: 20px;
}

.product-list-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.product-list-add-btn {
    background: var(--shop-text-dark);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-list-add-btn:hover {
    background: var(--shop-badge-yellow);
}

.product-list-add-btn.dc-list-add-btn.is-active {
    background: var(--shop-badge-yellow);
    color: #fff;
}

.dc-list-quick-panel {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(44, 36, 32, 0.14);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 18px rgba(44, 36, 32, 0.08);
    animation: dc-list-quick-in 0.2s ease;
}

.dc-list-quick-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dc-list-quick-hint {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: #2c2420;
}

.dc-list-quick-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dc-list-quick-qty {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    color: #2c2420;
}

.dc-list-confirm-btn {
    margin-left: 8px;
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
}

@keyframes dc-list-quick-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-list-icon-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid #D0C8C0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-list-icon-btn:hover {
    background: var(--shop-text-dark);
    color: #fff;
    border-color: var(--shop-text-dark);
}

/* ================================================
   6) PLACEHOLDERS (788x1000)
================================================ */
.product-placeholder {
    background: #E8E0D8;
    border-radius: 20px;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-text-gray);
    font-size: 14px;
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1540px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px;
    }

    .dc-quick-buy-sizes {
        left: 16px;
        right: 16px;
        bottom: 74px;
        padding: 12px;
        gap: 10px;
    }

    .dc-quick-buy-size-btn {
        min-width: 52px;
        height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .shop-sidebar-pill {
        display: none;
    }

    .shop-filters-column {
        display: none;
    }

    .shop-main-wrapper {
        margin-left: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-page-header h1 {
        font-size: 42px;
    }

    .product-hover-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .dc-quick-buy-sizes {
        bottom: 64px;
    }

    .dc-quick-buy-sizes.is-add-to-cart {
        bottom: 10px;
    }

    .product-hover-icons {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .shop-top-bar {
        border-radius: 18px;
        padding: 14px 16px;
        margin-bottom: 18px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .shop-top-bar .view-controls,
    .shop-top-bar .sort-select {
        flex-shrink: 0;
    }

    .shop-top-bar .results-count {
        min-width: 0;
        text-align: center;
        line-height: 1.25;
        margin: 0;
        font-size: 12px;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sort-dropdown {
        justify-self: end;
        width: min(34vw, 132px);
        max-width: min(34vw, 132px);
    }

    .sort-dropdown .sort-select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: 1px solid #d5ccc0;
        border-radius: 999px;
        color: var(--shop-text-dark);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 8px 14px;
    }

    .mobile-filter-toggle.active {
        border-color: var(--shop-badge-yellow);
        color: var(--shop-badge-yellow);
    }

    .mobile-filters-panel {
        background: var(--shop-cream-light);
        border-radius: 16px;
        padding: 18px 16px;
        margin-bottom: 20px;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .mobile-filters-panel .filter-block-title {
        font-size: 13px;
        letter-spacing: 1.3px;
    }

    .mobile-filters-panel .category-list {
        margin-bottom: 0;
    }

    .mobile-filters-panel .filter-separator {
        margin: 20px 0;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-top-bar {
        gap: 8px;
        padding: 12px 12px;
    }

    .shop-top-bar .results-count {
        font-size: 12px;
        white-space: normal;
    }

    .shop-top-bar .sort-select {
        min-width: 112px;
        max-width: min(34vw, 132px);
        width: min(34vw, 132px);
        font-size: 11px;
        font-weight: 600;
        text-align: left;
        height: 36px;
        line-height: 34px;
        padding: 0 24px 0 10px;
        border: 1px solid #d5ccc0;
        border-radius: 999px;
        background-color: #f6f1e8;
        color: var(--shop-text-dark);
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, #2b2b2b 50%), linear-gradient(135deg, #2b2b2b 50%, transparent 50%);
        background-position: calc(100% - 12px) calc(50% - 1px), calc(100% - 8px) calc(50% - 1px);
        background-size: 4px 4px, 4px 4px;
        background-repeat: no-repeat;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sort-dropdown {
        position: relative;
        width: min(34vw, 132px);
        max-width: min(34vw, 132px);
        flex-shrink: 0;
    }

    .sort-dropdown .sort-select {
        width: 100%;
        max-width: 100%;
    }

    .sort-dropdown-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        width: 190px;
        background: #f8f3ea;
        border: 1px solid #d8cfc3;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 40;
        overflow: hidden;
    }

    .sort-option {
        width: 100%;
        border: none;
        background: transparent;
        color: #2c2420;
        text-align: left;
        padding: 10px 12px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
    }

    .sort-option:hover {
        background: #efe7da;
    }

    .sort-option.active {
        background: #e5dac9;
        font-weight: 700;
    }

    .shop-top-bar .sort-select option {
        color: #2c2420;
        background: #f8f3ea;
        font-size: 12px;
        font-weight: 500;
    }

    .shop-page-header h1 {
        font-size: 36px;
    }

    .shop-layout-container {
        padding: 0 20px;
    }
}

/* Fix para botones de eliminar en carrito/wishlist */
.cartmini__remove_btn {
    position: absolute;
    top: 10px;
    right: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: transparent;
    color: #222;
    padding: 0;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cartmini__remove_btn:hover {
    color: #ff9100;
    transform: rotate(90deg);
}
