/* =========================================================
   SOLAIVANAM SHOP
========================================================= */

.sv-shop-page {
    width: 100%;
    background: #f8f4e9;
    color: #123c2b;
    overflow: hidden;
}

/* =========================
   HERO
========================= */

.sv-shop-hero {
    width: 100%;
    padding: 70px 30px 65px;
    box-sizing: border-box;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(201,149,40,.08),
            transparent 45%
        ),
        #f8f4e9;
}

.sv-shop-hero-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    text-align: center;
}

.sv-eyebrow {
    margin-bottom: 18px;
    color: #b7892e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.sv-shop-hero h1 {
    margin: 0;
    color: #123c2b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.05;
}

.sv-shop-hero h1 em {
    color: #b7892e;
    font-style: normal;
}

.sv-heading-line {
    width: 75px;
    height: 2px;
    margin: 24px auto;
    background: #b7892e;
}

.sv-shop-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: #6e716a;
    font-size: 16px;
    line-height: 1.7;
}

/* =========================
   MAIN SHOP
========================= */

.sv-shop-container {
    width: min(1380px, calc(100% - 60px));
    margin: 0 auto;
    padding: 10px 0 80px;

    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 35px;

    box-sizing: border-box;
}

/* =========================
   SIDEBAR
========================= */

.sv-shop-sidebar {
    width: 100%;
}

.sv-filter-box,
.sv-shop-help {
    width: 100%;
    margin-bottom: 18px;
    padding: 22px;
    box-sizing: border-box;

    background: #fffdf8;
    border: 1px solid #e5dbc4;
    border-radius: 14px;
}

.sv-filter-box h3,
.sv-shop-help h3 {
    margin: 0 0 16px;

    color: #123c2b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.sv-category-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sv-category-list li {
    margin: 0 !important;
    padding: 0 !important;

    border-bottom: 1px solid #eee7d8;
}

.sv-category-list li:last-child {
    border-bottom: 0;
}

.sv-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 0;

    color: #45564d;
    font-size: 14px;
    text-decoration: none;
}

.sv-category-list a:hover {
    color: #b7892e;
}

.sv-category-list .sv-cat-children,
.sv-cat-list .sv-cat-children {
    margin: 0 0 6px;
    padding: 0 0 0 10px;
    list-style: none;
    border-left: 1px solid #eee7d8;
}

.sv-cat-item.is-current > a,
.sv-category-list .is-current > a {
    color: #123c2b;
    font-weight: 600;
}

.sv-shop-help p {
    margin: 0 0 18px;
    color: #74766f;
    font-size: 14px;
    line-height: 1.7;
}

.sv-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: 1px solid #123c2b;
    border-radius: 6px;

    color: #123c2b !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
}

/* =========================
   TOOLBAR
========================= */

.sv-shop-products {
    min-width: 0;
}

.sv-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.sv-result-count {
    color: #74766f;
    font-size: 14px;
}

.sv-shop-sort .woocommerce-ordering {
    margin: 0 !important;
}

.sv-shop-sort select {
    min-width: 190px;
    height: 42px;

    padding: 0 14px;

    border: 1px solid #ddd3bd;
    border-radius: 7px;

    background: #fffdf8;
    color: #123c2b;
}

/* =========================
   PRODUCT GRID
========================= */

.sv-shop-products ul.products {
    width: 100% !important;

    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.sv-shop-products ul.products::before,
.sv-shop-products ul.products::after {
    display: none !important;
}

/* =========================
   PRODUCT CARD
========================= */

.sv-product-card {
    width: auto !important;
    max-width: none !important;

    float: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #fffdf8;

    border: 1px solid #e6dcc7;
    border-radius: 14px;

    overflow: hidden;

    box-sizing: border-box;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.sv-product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(18,60,43,.12);
}

/* =========================
   PRODUCT IMAGE
========================= */

.sv-product-image {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #eee8d8;
}

.sv-product-image a {
    display: block !important;

    width: 100%;
    height: 100%;
}

.sv-product-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover !important;

    transition: transform .5s ease;
}

.sv-product-card:hover
.sv-product-image img {
    transform: scale(1.04);
}

/* =========================
   SALE
========================= */

.sv-sale-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 3;

    padding: 7px 12px;

    border-radius: 20px;

    background: #d98c58;

    color: #fff;

    font-size: 12px;
    font-weight: 700;
}

/* =========================
   PRODUCT CONTENT
========================= */

.sv-product-card-body {
    padding: 18px;
}

.sv-product-category {
    margin-bottom: 7px;

    color: #a27c2b;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sv-product-title {
    min-height: 48px;

    margin: 0 0 9px !important;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 19px !important;
    font-weight: 500;

    line-height: 1.35;
}

.sv-product-title a {
    color: #173f2d !important;
    text-decoration: none !important;
}

.sv-product-price {
    min-height: 26px;

    margin-bottom: 16px;

    font-size: 16px;
}

.sv-product-price del {
    margin-right: 6px;
    color: #a5a39c;
}

.sv-product-price ins {
    color: #a77b22;

    font-weight: 700;

    text-decoration: none;
}

/* =========================
   CART + BUY NOW
========================= */

.sv-product-actions {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 8px;
}

.sv-product-actions a {
    min-width: 0;
    min-height: 42px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    padding: 8px 6px !important;

    border: 0 !important;
    border-radius: 6px !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    letter-spacing: .6px;

    line-height: 1.1;

    text-align: center;

    text-decoration: none !important;

    box-shadow: none !important;
}

.sv-cart-button {
    background: #0f3d2c !important;
    color: #fff !important;
}

.sv-cart-button:hover {
    background: #174f3a !important;
    color: #fff !important;
}

.sv-buy-button {
    background: #c99528 !important;
    color: #fff !important;
}

.sv-buy-button:hover {
    background: #aa7d20 !important;
    color: #fff !important;
}

.sv-view-product {
    grid-column: 1 / -1;

    background: #0f3d2c !important;
    color: #fff !important;
}

/* =========================
   PAGINATION
========================= */

.sv-shop-pagination {
    margin-top: 40px;
}

.sv-shop-pagination ul {
    display: flex !important;

    justify-content: center;

    gap: 7px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.sv-shop-pagination li {
    margin: 0 !important;
    padding: 0 !important;
}

.sv-shop-pagination a,
.sv-shop-pagination span {
    min-width: 40px;
    height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dfd5c0;
    border-radius: 6px;

    background: #fffdf8;

    color: #123c2b;

    text-decoration: none;
}

.sv-shop-pagination .current {
    background: #0f3d2c;
    border-color: #0f3d2c;
    color: #fff;
}

/* =========================
   DIVI OVERRIDE
========================= */

body.woocommerce-shop #main-content .container,
body.tax-product_cat #main-content .container,
body.tax-product_tag #main-content .container {
    width: 100% !important;
    max-width: 100% !important;

    padding: 0 !important;
}

body.woocommerce-shop #left-area,
body.tax-product_cat #left-area,
body.tax-product_tag #left-area {
    width: 100% !important;

    float: none !important;

    padding: 0 !important;
}

body.woocommerce-shop #sidebar,
body.tax-product_cat #sidebar,
body.tax-product_tag #sidebar {
    display: none !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1100px) {

    .sv-shop-products ul.products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .sv-shop-container {
        grid-template-columns: 1fr;

        width: calc(100% - 40px);
    }
}

@media (max-width: 600px) {

    .sv-shop-hero {
        padding: 50px 20px;
    }

    .sv-shop-container {
        width: calc(100% - 30px);

        padding-bottom: 50px;
    }

    .sv-shop-toolbar {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .sv-shop-products ul.products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .sv-product-card-body {
        padding: 13px;
    }

    .sv-product-title {
        min-height: 42px;

        font-size: 15px !important;
    }

    .sv-product-actions a {
        min-height: 38px;

        font-size: 9px !important;
    }
}

@media (max-width: 420px) {

    .sv-shop-products ul.products {
        grid-template-columns: 1fr;
    }

    .sv-product-actions {
        grid-template-columns:
            1fr 1fr;
    }
}