/* =====================================================
   FRESH FLOWER PAGE
===================================================== */


/* =====================================================
   IMPORTANT
   NAVBAR IS CONTROLLED BY main.css
   DO NOT STYLE NAVBAR HERE
===================================================== */


/* =====================================================
   HERO
===================================================== */

.fresh-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/fresh5.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;
}


.fresh-hero-content {
    width: 100%;
    max-width: 750px;

    margin: 0 auto;
}


.fresh-small-title {
    color: #443C36;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;

    margin: 0 0 15px;
}


.fresh-hero h1 {
    font-family: Georgia, serif;

    font-size: 55px;
    font-weight: 700;

    line-height: 1.1;

    color: #222222;

    margin: 0 0 18px;
}


.fresh-hero h1 span {
    color: #443C36;
}


.fresh-hero-content > p:not(.fresh-small-title) {
    max-width: 650px;

    margin: 0 auto;

    color: #333333;

    font-size: 15px;

    line-height: 1.7;
}


/* =====================================================
   MAIN SECTION
===================================================== */

.fresh-section {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 55px 0 80px;
}


/* =====================================================
   SEARCH
===================================================== */

.fresh-search {
    width: 100%;

    display: flex;
    justify-content: center;

    margin: 0 0 30px;
}


.fresh-search-wrapper {
    width: 100%;
    max-width: 650px;

    position: relative;

    display: flex;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 50px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}


/* =====================================================
   SEARCH INPUT
===================================================== */

.fresh-search-wrapper input {
    width: 100%;
    min-width: 0;

    height: 50px;

    padding: 0 25px;

    border: none;
    outline: none;

    background: transparent;

    color: #333333;

    font-family: inherit;
    font-size: 14px;

    border-radius: 50px 0 0 50px;
}


.fresh-search-wrapper input::placeholder {
    color: #aaaaaa;
}


/* =====================================================
   SEARCH BUTTON
===================================================== */

.fresh-search-wrapper 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;
}


.fresh-search-wrapper button:hover {
    background: #443C36;
}


/* =====================================================
   SEARCH RESULT DROPDOWN
===================================================== */

.fresh-search-results {
    width: 100%;
    max-height: 350px;

    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    z-index: 100;

    display: none;

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.10);
}


.fresh-search-results.show {
    display: block;
}


/* =====================================================
   SEARCH RESULT ITEM
===================================================== */

.fresh-search-result-item {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 12px 15px;

    color: #222222;

    text-decoration: none;

    border-bottom: 1px solid #eeeeee;

    transition: 0.2s ease;
}


.fresh-search-result-item:last-child {
    border-bottom: none;
}


.fresh-search-result-item:hover {
    background: #F5F0E8;
}


.fresh-search-result-item img {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 8px;
}


.fresh-search-result-item div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.fresh-search-result-item strong {
    color: #222222;

    font-family: Georgia, serif;

    font-size: 14px;
}


.fresh-search-result-item span {
    color: #443C36;

    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   SEARCH STOCK STATUS
===================================================== */

.fresh-search-result-item small {
    color: #a95353;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.3;
}


/* =====================================================
   NO SEARCH RESULT
===================================================== */

.fresh-no-result {
    padding: 20px;

    text-align: center;

    color: #777777;

    font-size: 13px;
}


/* =====================================================
   FILTER
===================================================== */

.fresh-filters {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin: 0 auto 50px;
}


.fresh-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;

    text-decoration: none;

    font-size: 13px;

    white-space: nowrap;

    cursor: pointer;

    transition: 0.3s ease;
}


.fresh-filter-btn:hover {
    background: #A9B5A0;

    color: #ffffff;

    border-color: #A9B5A0;
}


.fresh-filter-btn.active {
    background: #A9B5A0;

    color: #ffffff;

    border-color: #A9B5A0;
}


/* =====================================================
   PRODUCT GRID
===================================================== */

.fresh-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

    align-items: stretch;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.fresh-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;
}


.fresh-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.fresh-image {
    width: 100%;
    height: 280px;

    position: relative;

    flex-shrink: 0;

    overflow: hidden;

    background: #fafafa;

    border-bottom: 1px solid #eeeeee;
}


.fresh-image a {
    width: 100%;
    height: 100%;

    display: block;

    overflow: hidden;

    text-decoration: none;
}


.fresh-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    margin: 0;
    padding: 0;

    border: none;

    transition: transform 0.3s ease;
}


.fresh-image a:hover img {
    transform: scale(1.03);
}


/* =====================================================
   STOCK BADGE
===================================================== */

.fresh-stock-badge {
    position: absolute;

    left: 14px;
    bottom: 14px;

    z-index: 5;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 6px 11px;

    border-radius: 20px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.3px;

    line-height: 1;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);
}


/* OUT OF STOCK */

.fresh-stock-badge.out {
    background:
        rgba(34, 34, 34, 0.90);
}


/* LOW STOCK */

.fresh-stock-badge.low {
    background:
        rgba(169, 181, 160, 0.94);
}


/* =====================================================
   PRODUCT INFO
===================================================== */

.fresh-info {
    padding: 22px;

    display: flex;
    flex-direction: column;

    flex: 1;
}


/* =====================================================
   PRODUCT CATEGORY
===================================================== */

.fresh-category {
    color: #443C36;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    margin: 0 0 8px;
}


/* =====================================================
   PRODUCT NAME
===================================================== */

.fresh-info h3 {
    font-family: Georgia, serif;

    font-size: 19px;

    line-height: 1.4;

    color: #222222;

    min-height: 54px;

    margin: 0 0 8px;
}


.fresh-info h3 a {
    color: #222222;

    font-family: Georgia, serif;

    font-size: 19px;

    line-height: 1.4;

    text-decoration: none;

    transition: 0.3s ease;
}


.fresh-info h3 a:hover {
    color: #443C36;
}


/* =====================================================
   PRODUCT DESCRIPTION
===================================================== */

.fresh-description-text {
    min-height: 63px;

    color: #777777;

    font-size: 13px;

    line-height: 1.6;

    margin: 0 0 16px;
}


/* =====================================================
   PRODUCT BOTTOM
===================================================== */

.fresh-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: auto;

    padding-top: 14px;

    border-top: 1px solid #eeeeee;
}


/* =====================================================
   PRODUCT PRICE
===================================================== */

.fresh-price {
    color: #443C36;

    font-size: 18px;

    font-weight: 700;

    white-space: nowrap;
}


/* =====================================================
   PRODUCT ACTIONS
===================================================== */

.fresh-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    flex-shrink: 0;
}


.fresh-actions form {
    display: inline-flex;

    margin: 0;
    padding: 0;
}


/* =====================================================
   ADD TO CART BUTTON
===================================================== */

.fresh-add-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;
}


.fresh-add-btn:hover {
    background: #A9B5A0;
}


/* =====================================================
   ORDER NOW BUTTON
===================================================== */

.fresh-order-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;
}


.fresh-order-btn:hover {
    background: #443C36;
}


/* =====================================================
   DISABLED BUTTONS
===================================================== */

.fresh-add-btn:disabled,
.fresh-order-btn:disabled {
    background: #dddddd;

    color: #888888;

    cursor: not-allowed;

    opacity: 1;

    transform: none;
}


.fresh-add-btn:disabled:hover,
.fresh-order-btn:disabled:hover {
    background: #dddddd;

    color: #888888;

    transform: none;
}


/* =====================================================
   EMPTY PRODUCT STATE
===================================================== */

.fresh-empty {
    grid-column: 1 / -1;

    width: 100%;

    padding: 65px 25px;

    text-align: center;

    background: #F5F0E8;

    border: 1px solid #f0e5e9;

    border-radius: 14px;
}


.fresh-empty h3 {
    margin: 0 0 8px;

    color: #222222;

    font-family: Georgia, serif;

    font-size: 22px;
}


.fresh-empty p {
    margin: 0;

    color: #777777;

    font-size: 13px;
}


/* =====================================================
   CART COUNT ONLY
===================================================== */

.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;
}


/* =====================================================
   BACK TO SHOP
===================================================== */

.fresh-back {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 0 0 65px;

    text-align: center;
}


.fresh-back a {
    display: inline-block;

    color: #333333;

    font-size: 13px;

    text-decoration: none;

    padding-bottom: 5px;

    border-bottom: 1px solid #333333;

    transition: 0.3s ease;
}


.fresh-back a:hover {
    color: #443C36;

    border-color: #A9B5A0;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .fresh-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .fresh-hero {
        min-height: 300px;

        padding: 45px 20px;
    }


    .fresh-hero h1 {
        font-size: 40px;
    }


    .fresh-section {
        padding-top: 40px;
    }


    /* SEARCH */

    .fresh-search-wrapper {
        max-width: 100%;
    }


    .fresh-search-wrapper input {
        height: 48px;

        padding: 0 18px;

        font-size: 13px;
    }


    .fresh-search-wrapper button {
        min-width: 100px;

        height: 48px;

        padding: 0 15px;

        font-size: 13px;
    }


    /* FILTER */

    .fresh-filters {
        gap: 10px;

        margin-bottom: 40px;
    }


    .fresh-filter-btn {
        min-height: 42px;

        padding: 0 18px;

        font-size: 12px;
    }


    /* PRODUCT */

    .fresh-grid {
        grid-template-columns: 1fr;
    }


    .fresh-info h3 {
        min-height: auto;
    }


    .fresh-description-text {
        min-height: auto;
    }

}


/* =====================================================
   SMALL SCREEN PRODUCT BUTTON
===================================================== */

@media (max-width: 650px) {

    .fresh-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }


    .fresh-actions {
        width: 100%;
    }


    .fresh-actions form {
        flex: 1;
    }


    .fresh-add-btn,
    .fresh-order-btn {
        width: 100%;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 450px) {

    .fresh-section {
        width: 92%;
    }


    .fresh-hero h1 {
        font-size: 36px;
    }


    .fresh-filter-btn {
        padding: 0 14px;
    }

}
