:root {
    /* --- Colores de Marca: Azules Vibrantes y Alto Contraste --- */
    --primary-color: #007BFF;   /* Azul primario vibrante (ej. botones, enlaces, elementos interactivos) */
    --primary-dark: #0056B3;    /* Azul más oscuro para hover y active */
    --primary-light: #6BB5FF;   /* Azul más claro para sutiles acentos o gradientes */
    --secondary-color: #6C757D; /* Gris medio, buen contraste para texto secundario */
    /* --- Fondos y Superficies --- */
    --bg-light: #FFFFFF;        /* Blanco puro para tarjetas y módulos */
    --bg-page: #F4F7FB;         /* Azul muy claro, casi blanco (sensación de cristal, buen contraste) */
    --bg-dark: #343A40;         /* Gris oscuro casi negro, para texto o fondos sutiles */

    /* --- Colores de Texto (¡MÁXIMO CONTRASTE!) --- */
    --text-primary: #212529;    /* Negro muy oscuro (casi puro) para títulos y texto principal */
    --text-secondary: #495057;  /* Gris oscuro para descripciones, con excelente contraste */
    --text-light: #F8F9FA;      /* Blanco roto para texto sobre fondos oscuros (header, botones) */
    --text-placeholder: #ADB5BD; /* Gris medio para placeholders, suficiente contraste */

    /* --- Bordes y Sombras --- */
    --border-color: #E9ECEF;    /* Gris muy claro para bordes sutiles */
    --shadow-sm: rgba(0, 0, 0, 0.05) 0px 1px 3px 0px;
    --shadow-md: rgba(0, 0, 0, 0.1) 0px 4px 8px -2px, rgba(0, 0, 0, 0.05) 0px 2px 4px -2px;
    --shadow-lg: rgba(0, 0, 0, 0.15) 0px 10px 20px -5px, rgba(0, 0, 0, 0.08) 0px 5px 10px -5px;
    --shadow-inset: rgba(0, 0, 0, 0.05) 0px 2px 4px inset;

    /* --- Tipografía --- */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* --- Espaciado --- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* --- Variables Específicas de Componentes --- */
    --border-radius-base: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 12px;
    --button-padding: 0.75em 1.5em;
    --input-height: 48px;

    /* Variables de Grid */
    --grid-gap: var(--space-lg);
    --sidebar-width-desktop: 280px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

/* --- Sección del Encabezado --- */
.header_layshane_tienda {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    justify-content: center;
    color: var(--text-light);
    user-select: none;
    position: relative;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: var(--space-xl) 0 var(--space-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.header_layshane_tienda::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.25) 100%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.header_layshane_tienda > * {
    position: relative;
    z-index: 1;
}

.header_layshane_tienda h1 {
    width: 100%;
    margin-bottom: var(--space-sm);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    color: var(--text-light);
}

.text_category {
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: var(--space-md);
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.9;
}

/* --- Layout Principal --- */
.contenido_layshane_items {
    display: grid;
    margin: var(--space-xl) auto;
    grid-template-columns: var(--sidebar-width-desktop) 1fr;
    gap: var(--grid-gap);
    max-width: 1440px;
    padding: 0 var(--space-lg);
    align-items: start;
}

/* Sección de Categorías (Sidebar) */
.contenido_layshane_items section {
    grid-column: 1 / 2;
    order: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: sticky;
    top: var(--space-lg);
    align-self: start;
    padding-bottom: var(--space-lg);
}

/* Sección de Productos */
.contenido_layshane_items .caja_de_productos_en_lista {
    grid-column: 2 / 3;
    order: 2;
    padding: 0;
}

/* --- Contenedor de Búsqueda y Filtros --- */
.search-filter-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    justify-content: space-between;
    flex-wrap: wrap;
    padding: var(--space-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-md);
    width: 100%;
}

/* Estilos de la Barra de Búsqueda */
.lui-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form_search_layshane {
    position: relative;
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    height: var(--input-height);
}

.form_search_layshane .fancy-bg {
    position: absolute;
    width: 100%;
    inset: 0;
    border-radius: 50px;
    height: 100%;
    z-index: 0;
    background: var(--bg-page);
    pointer-events: none;
    box-shadow: var(--shadow-inset);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form_search_layshane .form_search_shell {
    width: 100%;
    cursor: text;
    padding: 0.5em var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.form_search_layshane .search {
    fill: var(--text-secondary);
    position: absolute;
    left: var(--space-md);
    transition: fill 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.form_search_layshane svg {
    width: 20px;
    height: 20px;
    display: block;
}

.form_search_layshane .close-btn {
    border: none;
    right: var(--space-sm);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    position: absolute;
    z-index: 2;
    cursor: pointer;
    font-size: 1.2em;
}
.form_search_layshane .close-btn:hover {
    background-color: var(--text-primary);
}


.form_search_layshane .input {
    color: var(--text-primary);
    width: 100%;
    background: none;
    border: none;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    font-size: 1em;
    height: 100%;
    position: relative;
    z-index: 1;
    line-height: 1;
    font-family: var(--font-body);
}

.form_search_layshane .input:focus {
    outline: none;
}

.form_search_layshane .input::placeholder {
    color: var(--text-placeholder);
    opacity: 0.9;
}

.form_search_layshane .input:focus ~ .fancy-bg {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
    background: var(--bg-light);
}

.form_search_layshane .input:focus ~ .search {
    fill: var(--primary-color);
}

.form_search_layshane .input:valid ~ .close-btn {
    opacity: 1;
    visibility: visible;
}

/* Estilos de Filtros */
.espacio_para_filtrar_y_ordenar {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    width: auto;
    margin-left: auto;
}

.espacio_para_filtrar_y_ordenar:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.dropdown_market_stylin_widget {
    position: relative;
    display: flex;
    align-items: center;
}

.m_widget_head {
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-base);
    color: var(--text-primary);
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.m_widget_head:hover {
    background-color: var(--bg-page);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 0;
    background: var(--bg-light);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    z-index: 1000;
    min-width: 200px;
    transform-origin: top;
    animation: fadeIn 0.3s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
    border: 1px solid var(--border-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu.show {
    display: block;
}

.product-sort-slider {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-sort-slider li {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.product-sort-slider .sort-option-btn {
    appearance: none;
    border: 0;
    width: 100%;
    text-align: left;
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-sort-slider li:hover .sort-option-btn,
.product-sort-slider .sort-option-btn:focus-visible {
    background-color: var(--bg-page);
    color: var(--text-primary);
}

.product-sort-slider .sort-option-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.product-sort-slider li.active .sort-option-btn,
.product-sort-slider .sort-option-btn.is-active {
    font-weight: 600;
    color: var(--text-light);
    background-color: var(--primary-color);
}

.product-sort-slider li.active:hover .sort-option-btn,
.product-sort-slider .sort-option-btn.is-active:hover {
    background-color: var(--primary-dark);
}

.dropdown_en_lista_view_productos {
    right: 0 !important;
    left: auto !important;
}

/* --- Estilos de la Lista de Categorías --- */
.category-sidebar-container {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
    width: 100%;
    display: block;
}

.category-sidebar-container h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.more_its {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.more_its li {
    margin-bottom: var(--space-xs);
    display: block;
}

.more_its li:last-child {
    margin-bottom: 0;
}

.more_its li a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: var(--border-radius-base);
    background-color: var(--bg-page);
    line-height: 1.2;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.more_its li a:hover {
    background-color: var(--border-color);
    color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* This is the rule for the active category */
.more_its li a.active,
.more_its li.active a {
    background-color: var(--primary-color)!important;
    color: var(--text-light)!important;
    font-weight: 600!important;
    box-shadow: var(--shadow-md)!important;
    transform: translateX(0)!important;
    border-color: var(--primary-color)!important;
}

.more_its li a.active:hover,
.more_its li.active a:hover {
    background-color: var(--primary-dark)!important;
    transform: translateX(0)!important;
}

/* New/Adjusted rules to target your specific HTML structure for category icons and text */
.more_its li a figure.carousel__item__image {
    display: block;
    width: 24px;  /* Set a fixed size for the icon placeholder */
    height: 24px; /* Set a fixed size for the icon placeholder */
    background-size: cover; /* Ensure background image covers the area */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent repeating */
    flex-shrink: 0; /* Prevents shrinking */
    border-radius: 4px; /* Slightly rounded corners for the icon box */
    /* You might want to add a subtle border or background color here if figures don't have images */
}

.more_its li a .carousel__description {
    display: flex; /* Ensure description container uses flex to align its content */
    align-items: center; /* Vertically align the title */
    flex-grow: 1; /* Allow description to take available space */
}

.more_its li a .carousel__description .carousel__title {
    font-size: 1em; /* Standard font size for category name */
    font-weight: 500;
    margin: 0; /* Remove default h3 margin */
    line-height: 1.2; /* Adjust line height for better spacing */
    color: inherit; /* Inherit color from parent 'a' tag */
    display: block; /* Ensure the title is treated as a block for proper display */
    /* If the title text is too long and causes issues, you might need: */
    /* white-space: nowrap; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
}


/* --- Contenedor de la Lista de Productos --- */
.wo_market .market_bottom .productos_en_cuadros {
    display: grid;
    width: 100%;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    gap: var(--grid-gap);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: var(--space-2xl);
}

.wo_market .market_bottom .productos_en_cuadros .product {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wo_market .market_bottom .productos_en_cuadros .product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.wo_market .market_bottom .productos_en_cuadros .product .product-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wo_market .market_bottom .productos_en_cuadros .product .product-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.wo_market .market_bottom .productos_en_cuadros .product:hover .product-image img {
    transform: scale(1.05);
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-light);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    overflow: hidden;
    padding: var(--space-md);
}

.wo_market .market_bottom .productos_en_cuadros .product .product-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    opacity: 0;
    background-color: color-mix(in srgb, var(--primary-dark) 85%, transparent);
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.4, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.wo_market .market_bottom .productos_en_cuadros .product:hover .product-links {
    opacity: 1;
}

.wo_market .market_bottom .productos_en_cuadros .product-links .action-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-base);
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.wo_market .market_bottom .productos_en_cuadros .product-links .action-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .product-by {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-weight: 500;
    display: grid;
    gap: 8px;
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .product-by a {
    color: var(--secondary-color);
    font-weight: 500;
}

.product-condition-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-condition-pill,
.product-stock-pill,
.product-warranty-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.product-condition-pill {
    color: color-mix(in srgb, var(--primary-dark) 84%, #0f172a);
    background: color-mix(in srgb, var(--primary-light) 26%, #fff 74%);
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
}

.product-stock-pill {
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--bg-page) 80%, #fff 20%);
    border: 1px solid color-mix(in srgb, var(--border-color) 92%, transparent);
}

.product-warranty-pill {
    color: color-mix(in srgb, var(--success, #16a34a) 82%, #0f172a 18%);
    background: color-mix(in srgb, var(--success, #16a34a) 10%, #fff 90%);
    border: 1px solid color-mix(in srgb, var(--success, #16a34a) 24%, transparent);
}

.product-condition-note {
    font-size: 0.74rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .wow_main_prod_foot {
    text-align: end;
    position: relative;
    z-index: 9;
    padding-top: var(--space-sm);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .wow_main_prod_foot .btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .wow_main_prod_foot .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .wow_main_prod_foot .btn svg {
    margin: 0;
    width: 22px;
    height: 22px;
    fill: var(--text-light);
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .product-title {
    margin-bottom: var(--space-xs);
    min-height: 2.6em;
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .product-title .titulos_prodf {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: initial;
    word-break: break-word !important;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.15em;
    line-height: 1.3;
}

.wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .product-price {
    font-weight: 700;
    font-size: 1.6em;
    text-align: left;
    margin: var(--space-sm) 0 var(--space-xs);
    color: var(--primary-color);
}

/* Variaciones del Producto */
.product .color-variaciones {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

.product .color-variaciones .color-miniatura-trigger {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.product .color-variaciones .color-miniatura-trigger:hover {
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.product .color-variaciones .color-miniatura-trigger.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 40%, transparent);
    transform: scale(1.1);
}

.product .color-variaciones .color-miniatura {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Visualización del Precio */
.product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.product-price .precio-normal {
    font-size: 0.9em;
    color: var(--secondary-color);
    text-decoration: line-through;
    font-weight: 400;
    opacity: 0.8;
}

.product-price .precio-oferta {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
}

.product-price .precio-unico {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3em;
}


/* --- Botón "Cargar Más" --- */
.load-produts {
    text-align: center;
    padding: var(--space-xl) 0;
}

.load-produts .load-more button {
    padding: var(--button-padding);
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    letter-spacing: 0.8px;
    font-size: 1.05em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.load-produts .load-more button:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* --- Estilos de Estado Vacío --- */
.productos_en_cuadros:has(.empty_state) {
    grid-template-columns: 1fr !important;
}

.empty_state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2em;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-lg);
    grid-column: 1 / -1;
    min-height: 300px;
    line-height: 1.5;
}

.empty_state svg {
    width: 80px;
    height: 80px;
    fill: var(--secondary-color);
    margin-bottom: var(--space-md);
}

.empty_state p {
    max-width: 400px;
    margin-top: var(--space-sm);
    color: var(--text-secondary);
}


/* --- Ajustes Responsivos --- */

/* Escritorios Grandes / Pantallas Anchas */
@media (min-width: 1600px) {
    .contenido_layshane_items {
        max-width: 1800px;
        grid-template-columns: 320px 1fr;
        gap: var(--space-2xl);
    }
    .wo_market .market_bottom .productos_en_cuadros {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .wo_market .market_bottom .productos_en_cuadros .product .product-image {
        height: 320px;
    }
}

/* Tablet y Escritorios Pequeños */
@media (max-width: 1200px) {
    .contenido_layshane_items {
        grid-template-columns: 240px 1fr;
        gap: var(--space-xl);
    }
    .wo_market .market_bottom .productos_en_cuadros {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .wo_market .market_bottom .productos_en_cuadros .product .product-image {
        height: 240px;
    }
    .product .color-variaciones .color-miniatura-trigger {
        width: 32px;
        height: 32px;
    }
}

/* Diseño Móvil (cuando la barra lateral se colapsa) */
@media (max-width: 992px) {
    .contenido_layshane_items {
        grid-template-columns: 1fr;
        padding: 0 var(--space-md);
        gap: var(--space-xl);
    }

    .contenido_layshane_items section,
    .contenido_layshane_items .caja_de_productos_en_lista {
        grid-column: 1 / -1;
        order: unset;
        position: static;
        top: auto;
        align-self: auto;
    }

    /* Búsqueda/Filtro */
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: var(--space-md);
        border-radius: var(--border-radius-lg);
    }
    .form_search_layshane,
    .espacio_para_filtrar_y_ordenar {
        width: 100%;
        margin-bottom: var(--space-md);
        margin-left: unset;
    }
    .espacio_para_filtrar_y_ordenar:last-child {
        margin-bottom: 0;
    }

    /* Categorías en Móvil (Scroll Horizontal) */
    .category-sidebar-container {
        width: 100%;
        padding: var(--space-md);
        border-radius: var(--border-radius-lg);
    }
    .category-sidebar-container h3 {
        text-align: left;
        font-size: 1.2em;
        margin-bottom: var(--space-md);
    }
    .more_its {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-sm);
        gap: var(--space-sm);
        justify-content: flex-start;
    }
    .more_its::-webkit-scrollbar {
        height: 6px;
    }
    .more_its::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 3px;
    }
    .more_its::-webkit-scrollbar-track {
        background: var(--border-color);
        border-radius: 3px;
    }

    .more_its li {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .more_its li a {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9em;
        white-space: nowrap;
        background-color: var(--bg-page);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-weight: 500;
        box-shadow: var(--shadow-sm);
        gap: var(--space-xs);
    }
    .more_its li a:hover {
        background-color: var(--border-color);
        transform: none;
    }
    .more_its li a.active {
        background-color: var(--primary-color);
        color: var(--text-light);
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
        transform: none;
    }
    .more_its li a.active:hover {
        background-color: var(--primary-dark);
    }

    /* Cuadrícula de Productos en Móvil */
    .wo_market .market_bottom .productos_en_cuadros {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - var(--space-sm)), 1fr));
        gap: var(--space-md);
    }
    .wo_market .market_bottom .productos_en_cuadros .product .product-image {
        height: 200px;
    }
}

/* Teléfonos Más Pequeños */
@media (max-width: 600px) {
    .header_layshane_tienda h1 {
        font-size: 1.5em;
        letter-spacing: 0;
    }
    .text_category {
        font-size: 0.85em;
        letter-spacing: 1.5px;
    }

    .contenido_layshane_items {
        padding: 0 var(--space-sm);
        margin: var(--space-xl) auto;
    }

    .search-filter-container {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }
    .form_search_layshane {
        height: 44px;
    }
    .form_search_layshane .input {
        padding-left: 36px;
        padding-right: 36px;
        font-size: 0.95em;
    }
    .form_search_layshane .search, .form_search_layshane svg {
        width: 18px;
        height: 18px;
    }
    .form_search_layshane .close-btn {
        width: 24px;
        height: 24px;
        font-size: 1em;
    }
    .m_widget_head {
        padding: 0.6em 1em;
        font-size: 0.95em;
    }

    .category-sidebar-container h3 {
        font-size: 1.1em;
        margin-bottom: var(--space-md);
    }
    .more_its {
        gap: var(--space-xs);
        padding-bottom: var(--space-xs);
    }
    .more_its li a {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85em;
    }

    .wo_market .market_bottom .productos_en_cuadros {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .wo_market .market_bottom .productos_en_cuadros .product .product-image {
        height: 180px;
    }
    .wo_market .market_bottom .productos_en_cuadros .product .product_info {
        padding: var(--space-sm);
    }
    .wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .product-title .titulos_prodf {
        font-size: 1.05em;
    }
    .wo_market .market_bottom .productos_en_cuadros .product .product_info.wow_main_mkt_prod .product-price {
        font-size: 1.4em;
    }
    .product .color-variaciones .color-miniatura-trigger {
        width: 30px;
        height: 30px;
    }
    .load-produts .load-more button {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }
    .empty_state {
        padding: var(--space-xl);
        font-size: 1em;
    }
    .empty_state svg {
        width: 60px;
        height: 60px;
    }
}
@media (max-width: 360px) {
    .contenido_layshane_items {
        padding: 0 var(--space-xs);
        margin: var(--space-lg) auto;
    }

    .search-filter-container {
        gap: var(--space-xs);
        padding: var(--space-xs);
    }

    .form_search_layshane,
    .espacio_para_filtrar_y_ordenar {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .dropdown_market_stylin_widget,
    .m_widget_head {
        width: 100%;
    }

    .m_widget_head {
        justify-content: space-between;
    }

    .dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        min-width: 0;
    }

    .wo_market .market_bottom .productos_en_cuadros {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm);
    }

    .wo_market .market_bottom .productos_en_cuadros .product .product-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 220px) {
    .form_search_layshane {
        height: 40px;
    }

    .form_search_layshane .input {
        font-size: 0.82rem;
        padding-left: calc(var(--space-md) + 14px);
        padding-right: calc(var(--space-md) + 14px);
    }

    .more_its {
        gap: 5px;
    }

    .more_its li a {
        white-space: normal;
        text-wrap: balance;
        min-height: 32px;
        padding: 6px 8px;
        line-height: 1.2;
    }

    .m_widget_head {
        padding: 7px 9px;
        font-size: 0.82rem;
    }
}

@media (max-width: 170px) {
    .search-filter-container,
    .category-sidebar-container {
        padding: 6px;
    }

    .wo_market .market_bottom .productos_en_cuadros .product .product_info {
        padding: 8px;
    }
}
