@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&display=swap');

* {
    font-family: "Alegreya Sans SC", sans-serif !important; 
}
body {
    margin: 0;
    background-color:#4B352A;
    color: #333;
}

.main-content-edredon {
    padding: 40px 20px;
    max-width: 1300px;
    margin: 10dvh auto; 
}

.subcategories-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.subcategory-item {
    text-align: center;
    width: 160px;
    text-decoration: none;
    color: #4B352A;
    transition: transform 0.2s ease-in-out;
}

.subcategory-item:hover {
    transform: translateY(-5px);
}

.subcategory-item .image-circle-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    background-color: #f0f0f0;
}

.subcategory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.subcategory-item .subcategory-name {
    font-size: 0.95em;
    font-weight: 500;
}

.page-title-edredon {
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 3em;
    text-align: center;
    color: #4B352A;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 50px;
}

.seccion-edredon2 {
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.size-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 10px 0;
}

.size-filters a,
.size-filters span {
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 0.95em;
    color: #555;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.size-filters a:hover,
.size-filters a.active {
    background-color: #f0f0f0;
    color: #333;
}

.main-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 15px 0;
    border-bottom: 1px solid #F1EFEC; 
}

.filter-button {
    font-family: "Alegreya Sans SC", sans-serif;
    background-color: transparent;
    border: 1px solid #ccc;
    color: #555;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover {
    background-color: #f7f7f7;
    border-color: #bbb;
}

.filter-button svg {
    width: 14px;
    height: 14px;
    fill: #555;
}

.characteristics-dropdown {
    position: relative;
}

.characteristics-dropdown button {
    font-family: "Alegreya Sans SC", sans-serif;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #555;
    padding: 8px 25px 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    position: relative;
}

.characteristics-dropdown button::after {
    content: '▼';
    font-size: 0.7em;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.product-grid-edredon2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.product-image-container {
    position: relative;
    background-color: #f7f7f7;
}

.product-image-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.1; 
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 15px 20px 20px;
}

.product-brand {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.product-name {
    font-size: 1em;
    font-weight: 500;
    color: #4B352A;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.5em; 
}

.product-price {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #444;
}

.product-price .current-price {
    font-weight: bold;
    color: #222;
    font-size: 1.1em;
}

.product-info * {
    text-decoration: none !important;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}


@media (max-width: 992px) {
    .product-grid-edredon2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .main-filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding-bottom: 20px;
    }
    .characteristics-dropdown button {
        width: 100%;
        text-align: left;
    }
    .product-grid-edredon2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) { 
    .product-grid-edredon2 {
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 0.95em;
    }
    .product-price .current-price {
        font-size: 1em;
    }
}
