
/* =================================
   FLORIMOOD - ESTILOS GENERALES
================================= */

:root {
    --navy: #10294e;
    --red: #ff171e;
    --cream: #fffdf9;
    --pink: #fde8e8;
    --gray: #777777;
    --border: #e8e5e2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--navy);
}

button, input, select {
    font: inherit;
}

button, a {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =================================
   REDES SOCIALES
================================= */

.social-bar {
    height: 32px;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 17px;
    font-size: 17px;
}

.social-icons a:hover,
.footer-social a:hover {
    color: var(--red);
}

.currency {
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

/* =================================
   HEADER
================================= */

.header {
    min-height: 90px;
    padding: 15px 3%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    justify-content: flex-end;
}

.country,
.delivery {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
}

.delivery {
    display: flex;
    gap: 8px;
    align-items: center;
}

.delivery span {
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 20px;
    padding: 5px 12px;
}

.logo img {
    display: block;
    width: 600px;
    height: 170px;
    max-height: none;
    object-fit: contain;
}
.search-box {
    height: 42px;
    width: 210px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: #fff;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: var(--navy);
}

.icon-button {
    border: none;
    background: transparent;
    color: #050505;
    font-size: 20px;
    padding: 8px;
    position: relative;
}

#cartCount {
    position: absolute;
    top: -2px;
    right: -3px;
    background: var(--red);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
}

/* =================================
   NAVEGACIÓN
================================= */

.navigation {
    min-height: 48px;
    padding: 7px 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    background: white;
}

.menu-button,
.promotion-button {
    color: var(--red);
    background: white;
    border: 1px solid var(--red);
    border-radius: 30px;
    padding: 7px 15px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--red);
}

.promotion-button {
    font-size: 13px;
}

/* =================================
   CONTENIDO Y FILTROS
================================= */

.main-container {
    display: grid;
    grid-template-columns: 205px 1fr;
    gap: 30px;
    padding: 25px 3%;
    min-height: 600px;
}

.filters {
    padding-top: 10px;
}

.filters h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.filter-group {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.filter-group > label:first-child {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: white;
    color: var(--navy);
    font-size: 12px;
}

.filter-group input[type="range"] {
    width: 100%;
    accent-color: var(--red);
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 8px;
}

.check-label {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 12px;
    margin: 8px 0;
}

.check-label input {
    accent-color: var(--red);
}

/* =================================
   ENCABEZADO DEL CATÁLOGO
================================= */

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
}

.breadcrumb {
    font-size: 11px;
    color: var(--gray);
}

.catalog-header h1 {
    font-size: 29px;
    margin-top: 12px;
    color: var(--navy);
}

.catalog-header p {
    color: var(--gray);
    font-size: 12px;
    margin-top: 5px;
}

.sort-filter {
    padding: 9px 12px;
    border: 1px solid var(--red);
    border-radius: 20px;
    background: white;
    color: var(--red);
    font-size: 11px;
}

/* =================================
   TARJETAS DE PRODUCTOS
================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.product-card {
    background: white;
    border: 1px solid #eeeae7;
    border-radius: 13px;
    overflow: hidden;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(16, 41, 78, .09);
}

/* =====================================
   ESPACIOS PERSONALIZABLES DE IMÁGENES
===================================== */

.product-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8eeee;
    position: relative;
}

.product-image-wrap .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Espacio cuando todavía no hay fotografía */

.product-image-wrap.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7eeee;
}

.product-image-wrap.image-placeholder::after {
    content: attr(data-slot);
    color: #b9a5a5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}


.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #f8eeee;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    min-height: 38px;
}

.product-price {
    color: var(--red);
    font-size: 17px;
    font-weight: 700;
    margin: 7px 0;
}

.product-details {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 10px;
    color: #555;
    margin-bottom: 12px;
}

.rating {
    color: #f0a800;
}

.availability {
    color: #15833b;
}

.add-button {
    width: 100%;
    background: white;
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 30px;
    padding: 8px 5px;
    font-size: 11px;
    font-weight: 700;
    transition: .2s;
}

.add-button:hover {
    background: var(--red);
    color: white;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

/* =================================
   FOOTER
================================= */

.footer {
    background: var(--pink);
    padding: 35px 3%;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    gap: 25px;
}

.footer-column {
    border-right: 1px solid rgba(16, 41, 78, .2);
    padding-right: 20px;
}

.footer-column:last-child {
    border: none;
}

.footer-logo {
    width: 180px;
    max-height: 65px;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-column h3 {
    font-size: 14px;
    margin-bottom: 18px;
}

.footer-column p,
.footer-column > a {
    display: block;
    font-size: 11px;
    line-height: 1.8;
    margin-bottom: 9px;
}

.footer-column p i {
    margin-right: 7px;
}

.footer-column > a:hover {
    color: var(--red);
}

.brand-column p {
    max-width: 240px;
}

.brand-column .footer-social {
    display: flex;
    gap: 16px;
    margin-top: 15px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 700;
}

.copyright {
    background: #f8dcdc;
    text-align: center;
    padding: 13px;
    font-size: 11px;
}

/* =================================
   RESPONSIVE - TABLETS
================================= */

@media (max-width: 1000px) {

    .header {
        grid-template-columns: 1fr auto;
    }

    .header-left {
        display: none;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .header-right {
        grid-column: 2;
    }

    .nav-links {
        gap: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =================================
   RESPONSIVE - CELULARES
================================= */

@media (max-width: 650px) {

    .header {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px;
    }

    .logo img {
        width: 280px;
        max-height: 85px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .search-box {
        flex: 1;
    }

    .navigation {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .nav-links {
        display: none;
    }

    .main-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }

    .filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .filters h3 {
        grid-column: 1 / -1;
    }

    .filter-group {
        padding: 8px 0;
    }

    .catalog-header {
        align-items: flex-start;
        gap: 10px;
    }

    .catalog-header h1 {
        font-size: 24px;
    }

    .catalog-header p {
        max-width: 200px;
    }

    .sort-filter {
        max-width: 145px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 11px;
    }

    .product-price {
        font-size: 15px;
    }

    .product-details {
        font-size: 9px;
        gap: 5px;
    }

    .add-button {
        font-size: 10px;
    }

    .footer {
        grid-template-columns: repeat(2, 1fr);
        padding: 25px 15px;
        gap: 20px;
    }

    .footer-column {
        border: none;
        padding: 0;
    }

    .brand-column {
        grid-column: 1 / -1;
    }

    .footer-logo {
        width: 160px;
    }
}

@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filters {
        grid-template-columns: 1fr;
    }
}
