/* =========================================================
   BIIO ENERGY
   SHOP PAGE
========================================================= */

.shop-page {
    background: #f5faf8;
    padding: 90px 5%;
}


.shop-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.shop-page-header {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 55px;
}


.shop-section-label {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #20b83d;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}


.shop-section-label span {
    width: 38px;
    height: 2px;

    flex: 0 0 38px;

    border-radius: 10px;

    background: #20b83d;
}


.shop-page-header h1 {
    margin: 20px 0 0;

    color: #06344d;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.04;

    font-weight: 800;

    letter-spacing: -3px;
}


.shop-page-header h1 span {
    display: block;
    color: #20b83d;
}


.shop-page-header > p {
    max-width: 550px;

    margin: 0;

    color: #627683;

    font-size: 15px;

    line-height: 1.8;
}



/* =========================================================
   LAYOUT
========================================================= */

.shop-layout {
    display: grid;

    grid-template-columns:
        270px minmax(0, 1fr);

    gap: 35px;

    align-items: start;
}



/* =========================================================
   SIDEBAR
========================================================= */

.shop-sidebar {
    position: sticky;

    top: 25px;

    padding: 25px;

    border:
        1px solid rgba(6, 52, 77, 0.08);

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 10px 35px rgba(6, 52, 77, 0.05);
}


.filter-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(6, 52, 77, 0.08);
}


.filter-header h3 {
    margin: 0;

    color: #06344d;

    font-size: 17px;

    font-weight: 800;
}


.clear-filter {
    color: #20b83d;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;
}


.clear-filter:hover {
    color: #06344d;
}



/* =========================================================
   FILTER GROUP
========================================================= */

.filter-group {
    padding: 23px 0;

    border-bottom:
        1px solid rgba(6, 52, 77, 0.07);
}


.filter-group:last-of-type {
    border-bottom: 0;
}


.filter-group h4 {
    margin: 0 0 15px;

    color: #06344d;

    font-size: 13px;

    font-weight: 800;
}



/* =========================================================
   SEARCH
========================================================= */

.filter-search {
    position: relative;
}


.filter-search i {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #81929b;

    font-size: 14px;
}


.filter-search input {
    width: 100%;

    height: 43px;

    padding:
        0 12px 0 38px;

    border:
        1px solid rgba(6, 52, 77, 0.12);

    border-radius: 8px;

    outline: none;

    color: #06344d;

    font-family: inherit;

    font-size: 12px;

    background: #fafdfb;
}


.filter-search input:focus {
    border-color: #20b83d;

    background: #fff;
}



/* =========================================================
   CHECKBOX
========================================================= */

.filter-check {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 12px;

    cursor: pointer;
}


.filter-check:last-child {
    margin-bottom: 0;
}


.filter-check input {
    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: #20b83d;

    cursor: pointer;
}


.filter-check span {
    flex: 1;

    color: #617580;

    font-size: 12px;

    line-height: 1.4;
}


.filter-check em {
    color: #9aa9b0;

    font-size: 10px;

    font-style: normal;
}



/* =========================================================
   PRICE
========================================================= */

.price-inputs {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 7px;
}


.price-inputs span {
    color: #9aa9b0;
}


.price-inputs input {
    width: 100%;

    height: 40px;

    padding: 0 10px;

    border:
        1px solid rgba(6, 52, 77, 0.12);

    border-radius: 7px;

    outline: none;

    color: #06344d;

    font-family: inherit;

    font-size: 11px;
}


.price-inputs input:focus {
    border-color: #20b83d;
}


.price-filter-btn,
.apply-filter-button {
    width: 100%;

    min-height: 40px;

    margin-top: 13px;

    border: 0;

    border-radius: 8px;

    background: #06344d;

    color: #fff;

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.price-filter-btn:hover,
.apply-filter-button:hover {
    background: #20b83d;

    transform: translateY(-1px);
}


.apply-filter-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 20px;

    background: #20b83d;
}


.apply-filter-button i {
    font-size: 13px;
}



/* =========================================================
   TOOLBAR
========================================================= */

.shop-toolbar {
    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;

    padding:
        12px 18px;

    border:
        1px solid rgba(6, 52, 77, 0.07);

    border-radius: 12px;

    background: #fff;
}


.result-count {
    color: #71838d;

    font-size: 12px;
}


.result-count strong {
    color: #06344d;

    font-weight: 800;
}


.shop-sort {
    display: flex;

    align-items: center;

    gap: 10px;
}


.shop-sort label {
    color: #71838d;

    font-size: 11px;

    font-weight: 600;
}


.shop-sort select {
    min-width: 175px;

    height: 38px;

    padding: 0 12px;

    border:
        1px solid rgba(6, 52, 77, 0.12);

    border-radius: 7px;

    outline: none;

    color: #06344d;

    background: #fff;

    font-family: inherit;

    font-size: 11px;

    cursor: pointer;
}



/* =========================================================
   PRODUCT GRID
========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


.product-card {
    overflow: hidden;

    border:
        1px solid rgba(6, 52, 77, 0.07);

    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(6, 52, 77, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(6, 52, 77, 0.10);
}



/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image {
    position: relative;

    height: 235px;

    overflow: hidden;

    background: #f1f7f4;
}


.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.45s ease;
}


.product-card:hover .product-image img {
    transform: scale(1.05);
}


.product-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #20b83d;

    background:
        linear-gradient(
            135deg,
            #eaf9ed,
            #dcefe3
        );
}


.product-image-placeholder i {
    font-size: 48px;
}



/* =========================================================
   BADGE
========================================================= */

.product-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 3;

    padding:
        6px 10px;

    border-radius: 5px;

    background: #20b83d;

    color: #fff;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.product-badge.sale {
    background: #06344d;
}



/* =========================================================
   PRODUCT ACTIONS
========================================================= */

.product-actions {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 3;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.product-actions button {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);

    color: #06344d;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(6, 52, 77, 0.08);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.product-actions button:hover {
    background: #20b83d;

    color: #fff;
}


.product-actions i {
    font-size: 13px;
}



/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {
    padding: 22px;
}


.product-category {
    display: block;

    margin-bottom: 8px;

    color: #20b83d;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.product-info h3 {
    min-height: 46px;

    margin: 0;

    color: #06344d;

    font-size: 16px;

    line-height: 1.45;

    font-weight: 800;
}


.product-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 20px;

    padding-top: 17px;

    border-top:
        1px solid rgba(6, 52, 77, 0.07);
}


.product-price {
    color: #06344d;

    font-size: 16px;

    font-weight: 800;

    white-space: nowrap;
}


.old-price {
    display: block;

    margin-bottom: 2px;

    color: #a0adb3;

    font-size: 10px;

    font-weight: 600;

    text-decoration: line-through;
}


.add-cart {
    min-height: 38px;

    padding: 0 13px;

    border: 0;

    border-radius: 7px;

    background: #20b83d;

    color: #fff;

    font-family: inherit;

    font-size: 10px;

    font-weight: 800;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.add-cart:hover {
    background: #06344d;

    transform: translateY(-1px);
}



/* =========================================================
   EMPTY
========================================================= */

.shop-empty {
    padding: 90px 30px;

    text-align: center;

    border:
        1px solid rgba(6, 52, 77, 0.07);

    border-radius: 18px;

    background: #fff;
}


.shop-empty-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf9ed;

    color: #20b83d;
}


.shop-empty-icon i {
    font-size: 24px;
}


.shop-empty h3 {
    margin: 0;

    color: #06344d;

    font-size: 22px;

    font-weight: 800;
}


.shop-empty p {
    margin: 10px 0 20px;

    color: #71838d;

    font-size: 13px;
}


.shop-empty a {
    display: inline-flex;

    min-height: 40px;

    align-items: center;

    padding: 0 18px;

    border-radius: 7px;

    background: #20b83d;

    color: #fff;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;
}



/* =========================================================
   PAGINATION
========================================================= */

.shop-pagination {
    display: flex;

    justify-content: center;

    margin-top: 40px;
}


/*
|--------------------------------------------------------------------------
| Laravel Tailwind Pagination Override
|--------------------------------------------------------------------------
*/

.shop-pagination nav {
    display: flex;

    justify-content: center;
}


.shop-pagination nav > div:first-child {
    display: none;
}


.shop-pagination nav > div:last-child > span,
.shop-pagination nav > div:last-child > a {
    display: flex;

    align-items: center;

    gap: 6px;
}


.shop-pagination a,
.shop-pagination span {
    min-width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border:
        1px solid rgba(6, 52, 77, 0.10);

    border-radius: 7px;

    background: #fff;

    color: #06344d;

    font-size: 11px;

    text-decoration: none;
}


.shop-pagination a:hover {
    border-color: #20b83d;

    background: #20b83d;

    color: #fff;
}


.shop-pagination span[aria-current="page"] span {
    border-color: #20b83d;

    background: #20b83d;

    color: #fff;
}



/* =========================================================
   MOBILE FILTER
========================================================= */

.mobile-filter-button {
    display: none;

    width: 100%;

    min-height: 46px;

    margin-bottom: 20px;

    border: 0;

    border-radius: 9px;

    background: #06344d;

    color: #fff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}


.mobile-filter-button i {
    margin-right: 7px;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1150px) {

    .shop-layout {
        grid-template-columns:
            240px minmax(0, 1fr);
    }


    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

    .shop-page {
        padding: 70px 6%;
    }


    .shop-page-header {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .shop-layout {
        grid-template-columns: 1fr;
    }


    .mobile-filter-button {
        display: block;
    }


    .shop-sidebar {
        position: fixed;

        top: 0;
        left: 0;

        z-index: 9999;

        width: min(330px, 88vw);

        height: 100vh;

        overflow-y: auto;

        border-radius: 0;

        transform:
            translateX(-105%);

        transition:
            transform 0.3s ease;
    }


    .shop-sidebar.open {
        transform:
            translateX(0);
    }

}


@media (max-width: 600px) {

    .shop-page {
        padding: 55px 5%;
    }


    .shop-page-header {
        margin-bottom: 35px;
    }


    .shop-page-header h1 {
        font-size: 40px;

        letter-spacing: -1.8px;
    }


    .shop-page-header > p {
        font-size: 13px;
    }


    .shop-toolbar {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }


    .shop-sort {
        width: 100%;
    }


    .shop-sort select {
        flex: 1;

        min-width: 0;
    }


    .product-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .product-image {
        height: 250px;
    }


    .product-info {
        padding: 20px;
    }


    .product-bottom {
        align-items: flex-start;

        flex-direction: column;
    }


    .add-cart {
        width: 100%;
    }

}


/* =========================================================
   CART TOAST
   ========================================================= */

.cart-toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(380px, calc(100% - 30px));

    pointer-events: none;
}

.cart-toast {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding: 16px 18px;

    border: 1px solid #e6eeee;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 18px 45px rgba(7, 59, 76, 0.15);

    pointer-events: auto;

    animation: cartToastIn 0.35s ease forwards;
}

.cart-toast.success {
    border-left: 4px solid #35d04a;
}

.cart-toast.error {
    border-left: 4px solid #e53935;
}

.cart-toast-icon {
    flex-shrink: 0;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(53, 208, 74, 0.12);

    color: #35d04a;

    font-size: 14px;
    font-weight: 800;
}

.cart-toast.error .cart-toast-icon {
    background: rgba(229, 57, 53, 0.10);
    color: #e53935;
}

.cart-toast-content {
    flex: 1;
}

.cart-toast-title {
    margin: 0 0 3px;

    color: #073b4c;

    font-size: 13px;
    font-weight: 800;
}

.cart-toast-message {
    margin: 0;

    color: #718286;

    font-size: 12px;
    line-height: 1.5;
}

.cart-toast-close {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    color: #9aa8aa;

    cursor: pointer;

    font-size: 17px;
}

.cart-toast-close:hover {
    color: #073b4c;
}

@keyframes cartToastIn {

    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes cartToastOut {

    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(35px);
    }

}

.cart-toast.removing {
    animation: cartToastOut 0.3s ease forwards;
}


@media (max-width: 600px) {

    .cart-toast-container {
        top: 15px;
        right: 15px;
        width: calc(100% - 30px);
    }

}