/* =========================================================
   SHOP / TIENDA
   EL RINCÓN DE SHIWA
========================================================= */


/* =========================================================
   CONTENEDOR GENERAL
========================================================= */

.shop-page {
    background: #1b0b23;
    color: #f7edf8;
    overflow: hidden;
}

.shop-page .container {
    width: min(1200px, 92%);
    margin: 0 auto;
}


/* =========================================================
   HERO TIENDA
========================================================= */

.shop-hero {
    position: relative;
    padding: 100px 0 90px;
    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(100, 55, 120, 0.22),
            transparent 65%
        ),
        #1b0b23;

    overflow: hidden;
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.shop-eyebrow,
.shop-page .section-kicker {
    display: block;

    color: #d4af37;

    font-family: "Great Vibes", cursive;
    font-size: 22px;

    letter-spacing: 1px;
}

.shop-hero h1 {
    margin: 15px 0 20px;

    color: #f0d36a;

    font-family: "Great Vibes", cursive;
    font-size: clamp(55px, 7vw, 90px);
    font-weight: 400;

    line-height: 1;
}

.shop-hero p {
    max-width: 760px;
    margin: 25px auto 0;

    color: #f7edf8;

    font-family: "Cormorant Garamond", serif;
    font-size: 21px;
    line-height: 1.7;
}


/* =========================================================
   SEPARADORES
========================================================= */

.shop-divider,
.shop-page .section-line {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin: 25px auto;
}

.shop-divider::before,
.shop-divider::after,
.shop-page .section-line::before,
.shop-page .section-line::after {
    content: "";

    width: 90px;
    height: 1px;

    background: rgba(212, 175, 55, 0.65);
}

.shop-divider span,
.shop-page .section-line span {
    margin: 0 15px;

    color: #d4af37;

    font-size: 16px;
}


/* =========================================================
   SECCIONES
========================================================= */

.shop-categories-section,
.shop-products-section {
    padding: 90px 0;
}

.shop-categories-section {
    background: #21102a;
}

.shop-products-section {
    background: #1b0b23;
}


/* =========================================================
   TÍTULOS DE SECCIÓN
========================================================= */

.shop-section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.shop-section-heading h2 {
    margin: 12px 0;

    color: #f0d36a;

    font-family: "Great Vibes", cursive;
    font-size: clamp(40px, 5vw, 62px);
    font-weight: 400;
}


/* =========================================================
   CATEGORÍAS
========================================================= */

.shop-categories-grid {
    width: 100%;
}

.shop-categories-grid ul.products {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 25px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}

.shop-categories-grid ul.products::before,
.shop-categories-grid ul.products::after {
    display: none !important;
}

.shop-categories-grid li.product-category {
    float: none !important;
    width: auto !important;

    margin: 0 !important;

    background: #291433;

    border: 1px solid rgba(212, 175, 55, 0.35);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;

    overflow: hidden;
}

.shop-categories-grid li.product-category:hover {
    transform: translateY(-6px);

    border-color: #d4af37;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35);
}

.shop-categories-grid
li.product-category a {
    display: block;

    color: #f7edf8;

    text-decoration: none;
}

.shop-categories-grid
li.product-category img {
    display: block;

    width: 100% !important;
    height: 230px !important;

    object-fit: cover;

    margin: 0 !important;
}

.shop-categories-grid
li.product-category h2 {
    margin: 0 !important;
    padding: 20px 15px 5px;

    color: #f0d36a;

    font-family: "Great Vibes", cursive;
    font-size: 30px;
    font-weight: 400;

    text-align: center;
}

.shop-categories-grid
li.product-category .count {
    display: block;

    padding: 0 15px 20px;

    color: #d9cbdc;

    font-family: "Cormorant Garamond", serif;
    font-size: 17px;

    text-align: center;
}


/* =========================================================
   BARRA DE PRODUCTOS
========================================================= */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 35px;

    color: #f7edf8;

    font-family: "Cormorant Garamond", serif;
}

.shop-toolbar .woocommerce-result-count {
    margin: 0;

    color: #d9cbdc;

    font-size: 18px;
}

.shop-toolbar .woocommerce-ordering {
    margin: 0;
}

.shop-toolbar select {
    min-width: 190px;

    padding: 10px 35px 10px 12px;

    background: #291433;
    color: #f7edf8;

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
}

.shop-toolbar select:focus {
    outline: none;
    border-color: #d4af37;
}


/* =========================================================
   GRID DE PRODUCTOS
========================================================= */

.shop-products-section ul.products {
    display: grid !important;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 35px 25px;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}

.shop-products-section ul.products::before,
.shop-products-section ul.products::after {
    display: none !important;
}


/* =========================================================
   TARJETA PRODUCTO
========================================================= */

.shop-products-section
ul.products
li.product {
    float: none !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 0 25px !important;

    background: #291433;

    border: 1px solid rgba(212, 175, 55, 0.30);

    text-align: center;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.shop-products-section
ul.products
li.product:hover {
    transform: translateY(-7px);

    border-color: #d4af37;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   IMAGEN PRODUCTO
========================================================= */

.shop-products-section
ul.products
li.product
.woocommerce-loop-product__link {
    display: block;

    color: inherit;

    text-decoration: none;
}

.shop-products-section
ul.products
li.product
img {
    display: block;

    width: 100% !important;
    height: 330px !important;

    margin: 0 0 20px !important;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.shop-products-section
ul.products
li.product:hover
img {
    transform: scale(1.03);
}


/* =========================================================
   NOMBRE PRODUCTO
========================================================= */

.shop-products-section
ul.products
li.product
.woocommerce-loop-product__title {
    margin: 5px 15px 10px !important;

    color: #f0d36a !important;

    font-family: "Great Vibes", cursive !important;

    font-size: 32px !important;
    font-weight: 400 !important;

    line-height: 1.1;
}


/* =========================================================
   PRECIO
========================================================= */

.shop-products-section
ul.products
li.product
.price {
    display: block;

    margin: 8px 15px 18px;

    color: #f7edf8 !important;

    font-family: "Cormorant Garamond", serif !important;

    font-size: 21px !important;
}

.shop-products-section
ul.products
li.product
.price del {
    color: #a995aa !important;
}

.shop-products-section
ul.products
li.product
.price ins {
    color: #f0d36a !important;

    text-decoration: none;
}


/* =========================================================
   BOTÓN AÑADIR AL CARRITO
========================================================= */

.shop-products-section
ul.products
li.product
.add_to_cart_button {
    display: inline-block;

    margin: 0 auto !important;
    padding: 11px 25px !important;

    background: linear-gradient(
        135deg,
        #c89b28,
        #f0d36a
    ) !important;

    color: #1b0b23 !important;

    border: 1px solid #f0d36a !important;
    border-radius: 0 !important;

    font-family: "Cormorant Garamond", serif !important;

    font-size: 18px !important;
    font-weight: 600 !important;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.shop-products-section
ul.products
li.product
.add_to_cart_button:hover {
    background: #f7df82 !important;

    color: #1b0b23 !important;

    transform: translateY(-2px);
}


/* =========================================================
   ETIQUETA OFERTA
========================================================= */

.shop-products-section
ul.products
li.product
.onsale {
    top: 15px !important;
    right: 15px !important;
    left: auto !important;

    min-width: auto !important;
    min-height: auto !important;

    margin: 0 !important;
    padding: 7px 12px !important;

    background: #d4af37 !important;

    color: #1b0b23 !important;

    border-radius: 0 !important;

    font-family: "Cormorant Garamond", serif !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    line-height: 1;
}


/* =========================================================
   PRODUCTO AGOTADO
========================================================= */

.shop-products-section
ul.products
li.product
.out-of-stock {
    color: #d9cbdc !important;
}


/* =========================================================
   PAGINACIÓN
========================================================= */

.shop-pagination {
    margin-top: 60px;

    text-align: center;
}

.shop-pagination
.woocommerce-pagination ul {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 8px;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;

    list-style: none;
}

.shop-pagination
.woocommerce-pagination ul li {
    border: none !important;
}

.shop-pagination
.woocommerce-pagination a,
.shop-pagination
.woocommerce-pagination span {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 10px;

    box-sizing: border-box;

    background: #291433;

    color: #f7edf8;

    border: 1px solid rgba(212, 175, 55, 0.35);

    font-family: "Cormorant Garamond", serif;
    font-size: 18px;

    text-decoration: none;
}

.shop-pagination
.woocommerce-pagination
.current {
    background: #d4af37 !important;

    color: #1b0b23 !important;

    border-color: #d4af37 !important;
}

.shop-pagination
.woocommerce-pagination a:hover {
    background: #d4af37;

    color: #1b0b23;
}


/* =========================================================
   SIN PRODUCTOS
========================================================= */

.shop-no-products {
    max-width: 650px;

    margin: 0 auto;
    padding: 70px 30px;

    text-align: center;

    background: #291433;

    border: 1px solid rgba(212, 175, 55, 0.35);
}

.shop-no-products > span {
    display: block;

    margin-bottom: 15px;

    color: #d4af37;

    font-size: 25px;
}

.shop-no-products h2 {
    margin: 0 0 15px;

    color: #f0d36a;

    font-family: "Great Vibes", cursive;
    font-size: 50px;
    font-weight: 400;
}

.shop-no-products p {
    margin: 0;

    color: #f7edf8;

    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

    .shop-hero {
        padding: 80px 0 70px;
    }

    .shop-categories-grid ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-products-section ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-products-section
    ul.products
    li.product
    img {
        height: 300px !important;
    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width: 600px) {

    .shop-page .container {
        width: calc(100% - 30px);
    }

    .shop-hero {
        padding: 65px 0 55px;
    }

    .shop-eyebrow,
    .shop-page .section-kicker {
        font-size: 18px;
    }

    .shop-hero h1 {
        font-size: 55px;
    }

    .shop-hero p {
        font-size: 18px;
        line-height: 1.6;
    }

    .shop-categories-section,
    .shop-products-section {
        padding: 65px 0;
    }

    .shop-section-heading {
        margin-bottom: 35px;
    }

    .shop-section-heading h2 {
        font-size: 43px;
    }

    .shop-divider::before,
    .shop-divider::after,
    .shop-page .section-line::before,
    .shop-page .section-line::after {
        width: 55px;
    }


    /* CATEGORÍAS */

    .shop-categories-grid ul.products {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .shop-categories-grid
    li.product-category
    img {
        height: 250px !important;
    }


    /* BARRA */

    .shop-toolbar {
        flex-direction: column;

        align-items: stretch;

        gap: 15px;
    }

    .shop-toolbar .woocommerce-result-count {
        text-align: center;
    }

    .shop-toolbar .woocommerce-ordering {
        width: 100%;
    }

    .shop-toolbar select {
        width: 100%;
    }


    /* PRODUCTOS */

    .shop-products-section ul.products {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .shop-products-section
    ul.products
    li.product
    img {
        height: auto !important;

        aspect-ratio: 1 / 1;
    }

    .shop-products-section
    ul.products
    li.product
    .woocommerce-loop-product__title {
        font-size: 31px !important;
    }

    .shop-products-section
    ul.products
    li.product
    .price {
        font-size: 20px !important;
    }


    /* PAGINACIÓN */

    .shop-pagination {
        margin-top: 40px;
    }

    .shop-pagination
    .woocommerce-pagination ul {
        flex-wrap: wrap;
    }

}
