/* =====================================================
   SHOP PAGE
===================================================== */


/* =====================================================
   SHOP HERO
===================================================== */

.shop-hero {
    min-height: 350px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 55px 20px;

    background:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.94),
            rgba(255, 255, 255, 0.78) 58%,
            rgba(255, 255, 255, 0.16)
        ),
        url("images/bouquet2.png");

    background-color: #F5F0E8;
    background-size: cover, auto 122%;
    background-position: center, right 6% center;
    background-repeat: no-repeat, no-repeat;

    border-bottom: 1px solid #eeeeee;
}


.shop-hero-content {
    width: 100%;
    max-width: 750px;

    margin: 0 auto;
}


.shop-small-title {
    color: #443C36;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;

    margin: 0 0 15px;
}


.shop-hero h1 {
    font-family: Georgia, serif;

    font-size: 55px;
    font-weight: 700;

    line-height: 1.1;

    color: #222222;

    margin: 0 0 18px;
}


.shop-hero h1 span {
    color: #443C36;
}


.shop-hero-content > p:last-child {
    max-width: 650px;

    margin: 0 auto;

    color: #333333;

    font-size: 15px;

    line-height: 1.7;
}


/* =====================================================
   SHOP SECTION
===================================================== */

.shop-section {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 55px 0 80px;
}


/* =====================================================
   SEARCH
===================================================== */

.shop-search {
    width: 100%;
    max-width: 650px;

    margin: 0 auto 30px;
}


.search-wrapper {
    width: 100%;

    position: relative;

    display: flex;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 50px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}


.shop-search input {
    width: 100%;
    min-width: 0;

    height: 50px;

    flex: 1;

    padding: 0 25px;

    border: none;
    outline: none;

    background: transparent;

    color: #333333;

    font-family: inherit;
    font-size: 14px;

    border-radius: 50px 0 0 50px;
}


.shop-search input::placeholder {
    color: #aaaaaa;
}


.shop-search button {
    min-width: 120px;
    height: 50px;

    flex-shrink: 0;

    padding: 0 24px;

    border: none;

    background: #A9B5A0;

    color: #ffffff;

    border-radius: 0 50px 50px 0;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;

    transition: 0.3s ease;
}


.shop-search button:hover {
    background: #443C36;
}


/* =====================================================
   SEARCH RESULTS
===================================================== */

.search-results {
    display: none;

    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    width: 100%;
    max-height: 380px;

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.10);

    z-index: 500;
}


.search-result-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 12px 15px;

    color: #333333;

    text-decoration: none;

    border-bottom: 1px solid #eeeeee;

    transition: 0.2s ease;
}


.search-result-item:last-child {
    border-bottom: none;
}


.search-result-item:hover {
    background: #F5F0E8;
}


.search-result-item img {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    object-fit: cover;
    object-position: center;

    border-radius: 8px;
}


.search-result-item div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.search-result-item strong {
    color: #222222;

    font-family: Georgia, serif;

    font-size: 14px;
}


.search-result-item span {
    color: #443C36;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* OUT OF STOCK INSIDE SEARCH */

.search-result-item small {
    color: #a95353;

    font-size: 10px;
    font-weight: 600;
}


.search-empty {
    padding: 20px;

    text-align: center;

    color: #777777;

    font-size: 13px;
}


/* =====================================================
   FILTER
===================================================== */

.shop-filters {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin: 0 auto 50px;
}


.filter-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 45px;

    padding: 0 24px;

    background: #ffffff;

    color: #333333;

    border: 1px solid #dddddd;

    border-radius: 30px;

    font-size: 13px;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition: 0.3s ease;
}


.filter-btn:hover {
    background: #A9B5A0;

    color: #ffffff;

    border-color: #A9B5A0;
}


.filter-btn.active {
    background: #A9B5A0;

    color: #ffffff;

    border-color: #A9B5A0;
}


/* =====================================================
   PRODUCT GRID
===================================================== */

.shop-product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;

    align-items: stretch;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.shop-product-card {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    overflow: hidden;

    transition: 0.3s ease;
}


.shop-product-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.shop-product-image {
    width: 100%;
    height: 280px;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #fafafa;

    border-bottom: 1px solid #eeeeee;

    overflow: hidden;
}


/* =====================================================
   CLICKABLE IMAGE
===================================================== */

.shop-product-image > a {
    display: block;

    width: 100%;
    height: 100%;

    text-decoration: none;
}


.product-image-box {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fafafa;
}


.product-image-box .product-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    margin: 0;
    padding: 0;

    border: none;

    transition: transform 0.3s ease;
}


.shop-product-image > a:hover .product-image {
    transform: scale(1.03);
}


/* =====================================================
   PRODUCT BADGE
===================================================== */

.product-badge {
    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 5;

    padding: 6px 12px;

    background: #A9B5A0;

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.5px;

    border-radius: 20px;
}


/* =====================================================
   OUT OF STOCK BADGE
===================================================== */

.stock-badge-shop {
    position: absolute;

    left: 15px;
    bottom: 15px;

    z-index: 6;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 7px 12px;

    border-radius: 20px;

    background: rgba(34, 34, 34, 0.90);

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.3px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);
}


/* =====================================================
   WISHLIST
===================================================== */

.wishlist-btn {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #eeeeee;

    border-radius: 50%;

    background: #ffffff;

    color: #777777;

    font-size: 21px;

    cursor: pointer;

    transition: 0.3s ease;
}


.wishlist-btn:hover {
    color: #443C36;

    border-color: #A9B5A0;
}


/* =====================================================
   PRODUCT INFO
===================================================== */

.shop-product-info {
    padding: 22px;

    display: flex;
    flex-direction: column;

    flex: 1;
}


.product-category {
    color: #443C36;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin: 0 0 8px;
}


/* =====================================================
   PRODUCT NAME
===================================================== */

.shop-product-info h3 {
    font-family: Georgia, serif;

    font-size: 19px;

    line-height: 1.4;

    color: #222222;

    margin: 0 0 8px;

    min-height: 54px;
}


.shop-product-info h3 a {
    color: #222222;

    font-family: Georgia, serif;

    font-size: 19px;

    line-height: 1.4;

    text-decoration: none;

    transition: 0.3s ease;
}


.shop-product-info h3 a:hover {
    color: #443C36;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.product-description {
    color: #777777;

    font-size: 13px;

    line-height: 1.6;

    min-height: 63px;

    margin: 0 0 16px;
}


/* =====================================================
   PRODUCT BOTTOM
===================================================== */

.shop-product-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: auto;

    padding-top: 14px;

    border-top: 1px solid #eeeeee;
}


/* =====================================================
   PRICE
===================================================== */

.shop-price {
    color: #443C36;

    font-size: 18px;

    font-weight: 700;

    white-space: nowrap;
}


/* =====================================================
   ACTIONS
===================================================== */

.shop-product-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    flex-shrink: 0;
}


.shop-product-actions form {
    display: inline-flex;

    margin: 0;
    padding: 0;
}


/* =====================================================
   ADD TO CART
===================================================== */

.add-cart-btn {
    height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 13px;

    border: none;

    border-radius: 7px;

    background: #222222;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    white-space: nowrap;

    transition: 0.3s ease;
}


.add-cart-btn:hover {
    background: #A9B5A0;
}


/* =====================================================
   DISABLED / OUT OF STOCK BUTTON
===================================================== */

.add-cart-btn:disabled {
    background: #dddddd;

    color: #888888;

    cursor: not-allowed;

    opacity: 1;
}


.add-cart-btn:disabled:hover {
    background: #dddddd;

    color: #888888;

    transform: none;
}


/* =====================================================
   ORDER NOW
===================================================== */

.order-now-btn {
    height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 13px;

    border: none;

    border-radius: 7px;

    background: #A9B5A0;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    white-space: nowrap;

    transition: 0.3s ease;
}


.order-now-btn:hover {
    background: #443C36;
}


/* =====================================================
   NO PRODUCTS
===================================================== */

.no-products {
    display: none;

    width: 100%;

    text-align: center;

    padding: 50px 20px;

    color: #777777;
}


.no-products h3 {
    color: #222222;

    font-family: Georgia, serif;

    font-size: 23px;

    margin: 0 0 8px;
}


.no-products p {
    color: #777777;

    font-size: 13px;

    margin: 0;
}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 60px;
}


.page-btn {
    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dddddd;

    border-radius: 50%;

    background: #ffffff;

    color: #555555;

    font-size: 13px;

    text-decoration: none;

    transition: 0.3s ease;
}


.page-btn:hover {
    background: #F5F0E8;

    border-color: #A9B5A0;

    color: #443C36;
}


.page-btn.active {
    background: #A9B5A0;

    border-color: #A9B5A0;

    color: #ffffff;
}


/* =====================================================
   CART COUNT ONLY
   NAVBAR IS CONTROLLED BY main.css
===================================================== */

.cart-btn {
    position: relative;
}


.cart-count {
    position: absolute;

    top: -7px;
    right: -8px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #A9B5A0;

    color: #ffffff;

    border-radius: 20px;

    font-size: 10px;
    font-weight: bold;

    line-height: 1;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .shop-product-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .shop-hero {
        min-height: 300px;

        padding: 45px 20px;
    }


    .shop-hero h1 {
        font-size: 40px;
    }


    .shop-section {
        width: 92%;

        padding: 40px 0 70px;
    }


    /* SEARCH */

    .search-wrapper {
        max-width: 100%;
    }


    .shop-search input {
        height: 48px;

        padding: 0 18px;

        font-size: 13px;
    }


    .shop-search button {
        min-width: 100px;

        height: 48px;

        padding: 0 15px;

        font-size: 13px;
    }


    /* FILTER */

    .shop-filters {
        gap: 10px;

        margin-bottom: 40px;
    }


    .filter-btn {
        min-height: 42px;

        padding: 0 18px;

        font-size: 12px;
    }


    /* PRODUCTS */

    .shop-product-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .shop-product-image {
        height: 280px;
    }


    .shop-product-info h3 {
        min-height: auto;
    }


    .product-description {
        min-height: auto;
    }

}


/* =====================================================
   SMALL MOBILE PRODUCT BUTTONS
===================================================== */

@media (max-width: 650px) {

    .shop-product-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }


    .shop-product-actions {
        width: 100%;
    }


    .shop-product-actions form {
        flex: 1;
    }


    .add-cart-btn,
    .order-now-btn {
        width: 100%;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 450px) {

    .shop-hero h1 {
        font-size: 36px;
    }


    .filter-btn {
        padding: 0 14px;
    }

}
