﻿
.product-detail-modal {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(22, 69, 49, .20);
}

.product-detail-modal .modal-body {
    padding: 35px;
}


.product-modal-close {
    position: absolute;
    z-index: 10;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    padding: 9px;
    border-radius: 50%;
    background-color: #f1f7f3;
    opacity: 1;
}


.product-modal-image {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    border-radius: 20px;
    background: radial-gradient( circle at center, #ffffff, #eff8f2 );
}


    .product-modal-image img {
        width: 100%;
        height: 360px;
        object-fit: contain;
    }


.product-modal-content {
    padding: 10px 10px 10px 5px;
}


.modal-product-category {
    display: block;
    margin-bottom: 8px;
    color: #087849;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}


.product-modal-content h2 {
    margin: 0 0 14px;
    color: #17392b;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}


.modal-product-description {
    margin-bottom: 25px;
    color: #6e7c74;
    font-size: 13px;
    line-height: 1.7;
}


.modal-product-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}


    .modal-product-info > div {
        padding: 13px 8px;
        text-align: center;
        border-radius: 12px;
        background: #f3f9f5;
        border: 1px solid #e0eee5;
    }


    .modal-product-info span {
        display: block;
        margin-bottom: 4px;
        color: #849088;
        font-size: 9px;
        text-transform: uppercase;
    }


    .modal-product-info strong {
        color: #087849;
        font-size: 14px;
    }


.modal-product-meta {
    padding: 17px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #fbfcfb;
    border: 1px solid #edf1ee;
}


    .modal-product-meta p {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 0 10px;
        color: #758078;
        font-size: 12px;
    }


        .modal-product-meta p:last-child {
            margin-bottom: 0;
        }


    .modal-product-meta strong {
        color: #23372d;
    }


.modal-cart-btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    background: #087849;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s;
}


    .modal-cart-btn:hover {
        background: #05613a;
        transform: translateY(-2px);
    }


@media(max-width:767px) {

    .product-detail-modal .modal-body {
        padding: 25px 18px;
    }

    .product-modal-image {
        min-height: 280px;
    }

        .product-modal-image img {
            height: 240px;
        }

    .modal-product-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-modal-content h2 {
        font-size: 24px;
    }
}

.product-page-hero {
    width: 100%;
    overflow: hidden;
}

    .product-page-hero img {
        display: block;
        width: 100%;
        height: auto;
    }


/* ==================================================
   PRODUCT SECTION
================================================== */

.product-list-section {
    padding: 65px 25px 80px;
    background: radial-gradient(circle at 5% 10%, rgba(221, 243, 225, .55), transparent 23%), linear-gradient( 135deg, #f9fdf9, #ffffff 50%, #fffdf8 );
}


.product-container {
    width: 100%;
    max-width: 1450px;
    margin: auto;
}


/* ==================================================
   HEADER
================================================== */

.product-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}


.product-kicker {
    display: block;
    margin-bottom: 7px;
    color: #087849;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
}


.product-list-header h2 {
    margin: 0;
    color: #12382a;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}


    .product-list-header h2 span {
        color: #d39b20;
    }


.product-list-header p {
    margin: 9px 0 0;
    color: #748078;
    font-size: 13px;
    line-height: 1.6;
}


/* ==================================================
   SEARCH
================================================== */

.product-search {
    position: relative;
    width: 270px;
    flex-shrink: 0;
}


    .product-search i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #087849;
    }


    .product-search input {
        width: 100%;
        height: 44px;
        padding: 0 15px 0 42px;
        border: 1px solid #dce8e0;
        border-radius: 25px;
        outline: none;
        background: #fff;
        color: #263c31;
        font-size: 12px;
        transition: .25s;
    }


        .product-search input:focus {
            border-color: #087849;
            box-shadow: 0 0 0 3px rgba(8,120,73,.08);
        }


/* ==================================================
   CATEGORY FILTER
================================================== */

.product-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: none;
    flex-wrap: wrap;
}


    .product-filters::-webkit-scrollbar {
        display: none;
    }


.product-filter {
    flex: 0 0 auto;
    min-height: 37px;
    padding: 0 16px;
    border: 1px solid #dce9e1;
    border-radius: 25px;
    background: #fff;
    color: #5f7167;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}


    .product-filter:hover,
    .product-filter.active {
        background: #087849;
        border-color: #087849;
        color: #fff;
    }


/* ==================================================
   PRODUCT GRID
================================================== */

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}


/* ==================================================
   CARD
================================================== */

.product-list-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(8,120,73,.09);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(26,77,55,.07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}


    .product-list-card:hover {
        transform: translateY(-6px);
        border-color: rgba(8,120,73,.18);
        box-shadow: 0 18px 38px rgba(26,77,55,.13);
    }


/* ==================================================
   PRODUCT IMAGE
================================================== */

.product-list-image {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    overflow: hidden;
    background: radial-gradient( circle at center, #ffffff, #f1f8f3 );
}


    .product-list-image img {
        display: block;
        max-width: 100%;
        max-height: 215px;
        object-fit: contain;
        transition: transform .35s ease;
    }


.product-list-card:hover
.product-list-image img {
    transform: scale(1.06);
}


/* category badge */

.product-tag {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(8,120,73,.10);
    color: #087849;
    font-size: 9px;
    font-weight: 800;
}


/* ==================================================
   CONTENT
================================================== */

.product-list-content {
    padding: 17px 18px 18px;
    border-top: 1px solid #edf2ee;
}


    .product-list-content > span {
        display: block;
        margin-bottom: 6px;
        color: #9b8a57;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 1.3px;
    }


    .product-list-content h3 {
        min-height: 42px;
        margin: 0 0 15px;
        color: #203a2e;
        font-size: 15px;
        font-weight: 750;
        line-height: 1.4;
    }


/* ==================================================
   FOOTER
================================================== */

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


.product-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #087849;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}


    .product-details i {
        transition: transform .2s;
    }


    .product-details:hover i {
        transform: translateX(4px);
    }


/* Cart */

.product-cart {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef7f1;
    color: #087849;
    cursor: pointer;
    transition: .25s;
}


    .product-cart:hover {
        background: #087849;
        color: #fff;
    }


/* ==================================================
   FILTER HIDDEN
================================================== */

.product-list-card.product-hidden {
    display: none;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1200px) {

    .product-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 850px) {

    .product-list-section {
        padding: 50px 18px 65px;
    }


    .product-list-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .product-search {
        width: 100%;
    }


    .product-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .product-list-header h2 {
        font-size: 32px;
    }
}


@media (max-width: 520px) {

    .product-list-section {
        padding: 40px 14px 55px;
    }


    .product-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }


    .product-list-image {
        height: 190px;
        padding: 18px;
    }


        .product-list-image img {
            max-height: 155px;
        }


    .product-list-content {
        padding: 13px;
    }


        .product-list-content h3 {
            font-size: 13px;
        }


    .product-details {
        font-size: 10px;
    }


    .product-cart {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================
   BOOTSTRAP 5 - MODAL ONLY
========================================== */

.modal {
    --bs-modal-zindex: 1055;
    --bs-modal-width: 500px;
    --bs-modal-padding: 1rem;
    --bs-modal-margin: 0.5rem;
    --bs-modal-bg: #fff;
    --bs-modal-border-color: rgba(0, 0, 0, 0.175);
    --bs-modal-border-width: 1px;
    --bs-modal-border-radius: 0.5rem;
    --bs-modal-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-modal-zindex);
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}


/* ==========================================
   MODAL DIALOG
========================================== */

.modal-dialog {
    position: relative;
    width: auto;
    margin: var(--bs-modal-margin);
    pointer-events: none;
}


/* Fade animation */

.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}


@media (prefers-reduced-motion: reduce) {

    .modal.fade .modal-dialog {
        transition: none;
    }
}


.modal.show .modal-dialog {
    transform: none;
}


.modal.modal-static .modal-dialog {
    transform: scale(1.02);
}


/* ==========================================
   CENTERED MODAL
========================================== */

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - var(--bs-modal-margin) * 2);
}


/* ==========================================
   MODAL CONTENT
========================================== */

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #212529;
    pointer-events: auto;
    background-color: var(--bs-modal-bg);
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: var(--bs-modal-border-radius);
    outline: 0;
}


/* ==========================================
   MODAL HEADER
========================================== */

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}


.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}


/* ==========================================
   MODAL BODY
========================================== */

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--bs-modal-padding);
}


/* ==========================================
   MODAL FOOTER
========================================== */

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}


/* ==========================================
   BACKDROP
========================================== */

.modal-backdrop {
    --bs-backdrop-zindex: 1050;
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-backdrop-zindex);
    width: 100vw;
    height: 100vh;
    background-color: var(--bs-backdrop-bg);
}


    .modal-backdrop.fade {
        opacity: 0;
    }


    .modal-backdrop.show {
        opacity: var(--bs-backdrop-opacity);
    }


/* ==========================================
   FADE
========================================== */

.fade {
    transition: opacity 0.15s linear;
}


    .fade:not(.show) {
        opacity: 0;
    }


@media (prefers-reduced-motion: reduce) {

    .fade {
        transition: none;
    }
}


/* ==========================================
   MODAL SIZES
========================================== */

@media (min-width: 576px) {

    .modal {
        --bs-modal-margin: 1.75rem;
        --bs-modal-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }


    .modal-dialog {
        max-width: var(--bs-modal-width);
        margin-right: auto;
        margin-left: auto;
    }


    .modal-sm {
        --bs-modal-width: 300px;
    }
}


@media (min-width: 992px) {

    .modal-lg,
    .modal-xl {
        --bs-modal-width: 800px;
    }
}


@media (min-width: 1200px) {

    .modal-xl {
        --bs-modal-width: 1140px;
    }
}


/* ==========================================
   BODY WHEN MODAL OPEN
========================================== */

body.modal-open {
    overflow: hidden;
}


/* ==========================================
   BOOTSTRAP CLOSE BUTTON
========================================== */

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: #000;
    border: 0;
    border-radius: 0.375rem;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M.293 1.707a1 1 0 0 1 1.414-1.414L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
    opacity: 0.5;
    cursor: pointer;
}


    .btn-close:hover {
        color: #000;
        opacity: 0.75;
    }


    .btn-close:focus {
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        opacity: 1;
    }