/* =========================================================
   CASH & CARRY - MY ORDERS
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7f6;
    color: #17201c;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   HEADER
   ========================================================= */

.orders-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e4e8e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.orders-header-inner {
    max-width: 1400px;
    margin: auto;
    min-height: 76px;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* Logo */

.orders-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111;
}

.logo-box {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #11823b;
    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(17, 130, 59, 0.22);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.logo-text strong {
    font-size: 20px;
    color: #11823b;
}

.logo-text span {
    font-size: 11px;
    color: #777;
}


/* Header Buttons */

.orders-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cart-btn,
.back-home-btn {
    min-height: 40px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 8px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition: 0.25s ease;
}

.header-cart-btn {
    background: #f0f8f3;
    color: #11823b;
    border: 1px solid #d7eadf;
}

.header-cart-btn:hover {
    background: #11823b;
    color: #ffffff;
}

.back-home-btn {
    background: #11823b;
    color: #ffffff;
}

.back-home-btn:hover {
    background: #0c682f;
    transform: translateY(-1px);
}


/* =========================================================
   MAIN
   ========================================================= */

.orders-page {
    min-height: calc(100vh - 76px);
    padding: 30px 20px 60px;
}

.orders-container {
    max-width: 1200px;
    margin: auto;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.orders-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 25px;

    font-size: 13px;
    color: #777;
}

.orders-breadcrumb a {
    color: #11823b;
    text-decoration: none;
    font-weight: 600;
}

.orders-breadcrumb a:hover {
    text-decoration: underline;
}

.orders-breadcrumb strong {
    color: #333;
}


/* =========================================================
   HEADING
   ========================================================= */

.orders-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 28px;
}

.orders-heading h1 {
    margin: 0 0 7px;

    font-size: 32px;
    line-height: 1.2;

    color: #15201a;
}

.orders-heading p {
    margin: 0;

    font-size: 14px;
    color: #707873;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border-radius: 9px;

    background: #11823b;
    color: #ffffff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    transition: 0.25s ease;
}

.continue-shopping-btn:hover {
    background: #0c682f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 130, 59, 0.18);
}


/* =========================================================
   FILTER SECTION
   ========================================================= */

.orders-filter-section {
    background: #ffffff;

    border: 1px solid #e5e9e7;
    border-radius: 14px;

    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 25px;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.035);
}


/* Tabs */

.order-tabs {
    display: flex;
    align-items: center;
    gap: 5px;

    overflow-x: auto;
    scrollbar-width: none;
}

.order-tabs::-webkit-scrollbar {
    display: none;
}

.order-tab {
    border: none;
    background: transparent;

    color: #68716c;

    padding: 10px 14px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition: 0.2s ease;
}

.order-tab:hover {
    background: #f0f8f3;
    color: #11823b;
}

.order-tab.active {
    background: #11823b;
    color: #ffffff;
}


/* Search */

.order-search {
    width: 250px;
    min-width: 250px;

    height: 42px;

    display: flex;
    align-items: center;

    border: 1px solid #dce2df;
    border-radius: 8px;

    background: #ffffff;

    overflow: hidden;
}

.order-search:focus-within {
    border-color: #11823b;
    box-shadow: 0 0 0 3px rgba(17, 130, 59, 0.08);
}

.order-search input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    padding: 0 12px;

    font-size: 13px;
    color: #333;
}

.order-search input::placeholder {
    color: #9aa19d;
}

.order-search button {
    width: 44px;
    height: 100%;

    border: none;

    background: #f0f8f3;
    color: #11823b;

    cursor: pointer;

    font-size: 16px;

    transition: 0.2s ease;
}

.order-search button:hover {
    background: #11823b;
    color: #ffffff;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.section-title-row h2 {
    margin: 0;

    font-size: 20px;
    color: #202a25;
}

#orderCount {
    padding: 6px 11px;

    border-radius: 20px;

    background: #eaf6ef;
    color: #11823b;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   ORDERS LIST
   ========================================================= */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* =========================================================
   ORDER CARD
   ========================================================= */

.order-card {
    background: #ffffff;

    border: 1px solid #e4e9e6;
    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.035);

    transition: 0.25s ease;
}

.order-card:hover {
    border-color: #cbded2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}


/* Order Top */

.order-card-top {
    padding: 17px 20px;

    background: #fbfcfb;

    border-bottom: 1px solid #e9edeb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-info-item span {
    font-size: 11px;
    color: #8a918d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.order-info-item strong {
    font-size: 13px;
    color: #252d29;
}


/* Status */

.order-status {
    padding: 7px 12px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.order-status.placed {
    background: #fff5dc;
    color: #a96b00;
}

.order-status.shipped {
    background: #e9f2ff;
    color: #2465a7;
}

.order-status.delivered {
    background: #e8f7ee;
    color: #11823b;
}

.order-status.cancelled {
    background: #ffeded;
    color: #d33c3c;
}


/* =========================================================
   ORDER BODY
   ========================================================= */

.order-card-body {
    padding: 18px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* Products */

.order-products {
    display: flex;
    align-items: center;

    flex: 1;

    min-width: 0;
}

.order-product {
    width: 65px;
    height: 65px;

    border: 1px solid #e5e9e7;
    border-radius: 9px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    margin-right: -5px;

    position: relative;
    z-index: 1;
}

.order-product img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 5px;
}

.order-more-products {
    width: 65px;
    height: 65px;

    border-radius: 9px;

    background: #f0f8f3;

    border: 1px solid #d9eadf;

    color: #11823b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;

    position: relative;
    z-index: 0;
}


/* Order Product Details */

.order-product-details {
    margin-left: 20px;
}

.order-product-details h3 {
    margin: 0 0 5px;

    font-size: 14px;
    color: #202824;
}

.order-product-details p {
    margin: 0;

    font-size: 12px;
    color: #777f7b;

    line-height: 1.5;
}


/* =========================================================
   ORDER RIGHT SIDE
   ========================================================= */

.order-card-right {
    display: flex;
    align-items: center;

    gap: 25px;
}

.order-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 4px;
}

.order-total span {
    font-size: 11px;
    color: #858d88;
}

.order-total strong {
    font-size: 17px;
    color: #1d2922;
}


/* Buttons */

.order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-action-btn {
    min-height: 38px;

    padding: 0 13px;

    border-radius: 7px;

    border: 1px solid #d8e2dc;

    background: #ffffff;

    color: #11823b;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.order-action-btn:hover {
    background: #11823b;
    color: #ffffff;
    border-color: #11823b;
}

.order-action-btn.primary {
    background: #11823b;
    color: #ffffff;
    border-color: #11823b;
}

.order-action-btn.primary:hover {
    background: #0c682f;
}


/* =========================================================
   EMPTY ORDERS
   ========================================================= */

.empty-orders {
    background: #ffffff;

    border: 1px solid #e4e9e6;
    border-radius: 14px;

    padding: 70px 25px;

    text-align: center;

    display: none;
}

.empty-orders.show {
    display: block;
}

.empty-orders-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #eaf6ef;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
}

.empty-orders h2 {
    margin: 0 0 8px;

    font-size: 22px;
    color: #26302b;
}

.empty-orders p {
    max-width: 470px;

    margin: 0 auto 22px;

    color: #78817c;

    font-size: 14px;
    line-height: 1.7;
}

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 20px;

    background: #11823b;
    color: #ffffff;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s ease;
}

.shop-now-btn:hover {
    background: #0c682f;
}


/* =========================================================
   FOOTER
   ========================================================= */

.orders-footer {
    background: #15231b;
    color: #ffffff;

    margin-top: 30px;
}

.orders-footer-inner {
    max-width: 1200px;

    margin: auto;

    padding: 35px 20px;

    display: flex;
    justify-content: space-between;

    gap: 30px;
}

.orders-footer-inner strong {
    font-size: 19px;
}

.orders-footer-inner p {
    margin: 7px 0 0;

    color: #b7c0bb;

    font-size: 13px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #dce5df;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: #69d292;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    text-align: center;

    padding: 16px 20px;

    color: #aeb8b2;

    font-size: 12px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .orders-filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .order-tabs {
        width: 100%;
    }

    .order-search {
        width: 100%;
        min-width: 0;
    }

    .order-card-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-card-right {
        width: 100%;

        justify-content: space-between;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .orders-header-inner {
        min-height: 68px;
        padding: 0 14px;
    }

    .logo-box {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .logo-text span {
        display: none;
    }

    .orders-header-actions {
        gap: 6px;
    }

    .header-cart-btn,
    .back-home-btn {
        min-height: 36px;
        padding: 0 10px;

        font-size: 12px;
    }

    .header-cart-btn span {
        display: none;
    }


    .orders-page {
        padding: 20px 12px 40px;
    }

    .orders-breadcrumb {
        margin-bottom: 18px;
    }

    .orders-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .orders-heading h1 {
        font-size: 26px;
    }

    .continue-shopping-btn {
        width: 100%;
    }


    .orders-filter-section {
        padding: 10px;
        border-radius: 10px;
    }

    .order-tabs {
        gap: 2px;
    }

    .order-tab {
        padding: 8px 10px;
        font-size: 11px;
    }


    .section-title-row h2 {
        font-size: 18px;
    }


    .order-card {
        border-radius: 11px;
    }

    .order-card-top {
        padding: 14px;
        align-items: flex-start;
        flex-direction: column;
    }

    .order-info {
        width: 100%;
        gap: 15px;
    }

    .order-info-item strong {
        font-size: 12px;
    }


    .order-card-body {
        padding: 15px;
    }

    .order-products {
        width: 100%;
    }

    .order-product,
    .order-more-products {
        width: 52px;
        height: 52px;
    }

    .order-product-details {
        margin-left: 13px;
    }

    .order-product-details h3 {
        font-size: 13px;
    }

    .order-product-details p {
        font-size: 11px;
    }


    .order-card-right {
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
    }

    .order-total {
        align-items: flex-start;
    }

    .order-actions {
        width: 100%;
    }

    .order-action-btn {
        flex: 1;
        padding: 0 8px;
    }


    .orders-footer-inner {
        padding: 28px 15px;

        flex-direction: column;
    }

    .footer-links {
        gap: 14px;
    }

    .empty-orders {
        padding: 50px 18px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .orders-heading h1 {
        font-size: 23px;
    }

    .order-product,
    .order-more-products {
        width: 46px;
        height: 46px;
    }

    .order-product-details {
        margin-left: 10px;
    }

    .order-product-details h3 {
        font-size: 12px;
    }

    .order-action-btn {
        font-size: 11px;
    }

}