﻿/* =========================================================
   Hot Buying & Inventory Transactions
   Primary: #309a63
========================================================= */

#buyingPage {
    background: #f5faf7;
}

#buyingPage *,
#buyingPage *::before,
#buyingPage *::after {
    box-sizing: border-box;
}


/* =========================================================
   Hero
========================================================= */

.buying-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 88% 26%,
            rgba(105, 205, 151, 0.20),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #174d33 0%,
            #23784c 48%,
            #309a63 100%
        );
}

.buying-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 58px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.buying-hero .blog-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.buying-hero .blog-hero-inner > span,
.buying-hero .blog-hero-inner h1,
.buying-hero .blog-hero-inner p {
    color: #ffffff;
}

.buying-hero .blog-hero-inner > span {
    color: #c7f3da;
}

.buying-hero .blog-hero-inner p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.84);
}

.buying-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.buying-hero-primary,
.buying-hero-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.buying-hero-primary {
    border-color: #ffffff;
    background: #ffffff;
    color: #23784c;
    box-shadow: 0 12px 28px rgba(8, 48, 28, 0.20);
}

.buying-hero-secondary {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.buying-hero-primary:hover,
.buying-hero-secondary:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.buying-hero-primary:hover {
    background: #effaf4;
    color: #185d3a;
}

.buying-hero-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}


/* =========================================================
   Advantages
========================================================= */

.buying-advantages {
    width: 100%;
    padding: 34px 0 0;
}

.buying-advantages-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #cfe3d7;
    border-radius: 17px;
    background: #173f2c;
    box-shadow: 0 18px 40px rgba(27, 91, 57, 0.15);
}

.buying-advantage {
    position: relative;
    min-width: 0;
    min-height: 132px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 22px;
}

.buying-advantage:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    right: 0;
    bottom: 25px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.buying-advantage-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(115, 232, 166, 0.42);
    border-radius: 14px;
    background: rgba(48, 154, 99, 0.14);
    color: #68d497;
    font-size: 22px;
}

.buying-advantage > div:last-child {
    min-width: 0;
}

.buying-advantage h2 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.buying-advantage p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 21px;
}


/* =========================================================
   Tabs and Content
========================================================= */

.buying-content {
    width: 100%;
    padding: 34px 0 66px;
}

.buying-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #b9dfc9;
}

.buying-tab-btn {
    min-height: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 23px;
    border: none;
    border-radius: 9px 9px 0 0;
    outline: none;
    background: transparent;
    color: #365246;
    font-size: 15px;
    line-height: 25px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.buying-tab-btn:hover,
.buying-tab-btn.active {
    background: #bdf7d2;
    color: #17643d;
}

.buying-tab-btn i {
    font-size: 15px;
}

.buying-tab-panel {
    display: none;
}

.buying-tab-panel.active {
    display: block;
    animation: buyingFadeIn 0.26s ease;
}

@keyframes buyingFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buying-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 18px;
}

.buying-section-head > div {
    max-width: 850px;
}

.buying-section-head span {
    display: block;
    margin-bottom: 6px;
    color: #309a63;
    font-size: 12px;
    line-height: 20px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.buying-section-head h2 {
    margin: 0;
    color: #17251e;
    font-size: 27px;
    line-height: 38px;
    font-weight: 800;
}

.buying-section-head p {
    margin: 8px 0 0;
    color: #65776d;
    font-size: 14px;
    line-height: 24px;
}

.buying-section-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #309a63;
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    text-decoration: none;
}

.buying-section-link:hover {
    color: #185d3a;
    text-decoration: none;
}


/* =========================================================
   Hot Model Table
========================================================= */

.buying-hot-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #d6e7dd;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 13px 32px rgba(48, 154, 99, 0.08);
}

.buying-hot-table {
    width: 100%;
    min-width: 1060px;
    border-spacing: 0;
    border-collapse: separate;
}

.buying-hot-table th {
    padding: 14px 13px;
    border-bottom: 1px solid #d9e8df;
    background: #edf4f0;
    color: #17251e;
    font-size: 13px;
    line-height: 22px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.buying-hot-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #e5eee9;
    background: #ffffff;
    color: #42564c;
    font-size: 13px;
    line-height: 22px;
    vertical-align: middle;
}

.buying-hot-table tbody tr:nth-child(even) td {
    background: #fafcfb;
}

.buying-hot-table tbody tr:hover td {
    background: #eef8f2;
}

.buying-hot-table tbody tr:last-child td {
    border-bottom: none;
}

.buying-hot-table th:nth-child(1) {
    width: 200px;
}

.buying-hot-table th:nth-child(2) {
    width: 160px;
}

.buying-hot-table th:nth-child(3) {
    width: 250px;
}

.buying-hot-table th:nth-child(4) {
    width: 125px;
}

.buying-hot-table th:nth-child(5) {
    width: 110px;
}

.buying-hot-table th:nth-child(6) {
    width: 160px;
}

.buying-part-cell strong {
    color: #17251e;
    font-size: 14px;
    font-weight: 700;
}

.buying-spec-cell {
    max-width: 250px;
    color: #66776e;
    word-break: break-word;
}

.buying-quantity-total {
    color: #309a63 !important;
    font-weight: 800;
}

.buying-row-qty {
    width: 76px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #cfe0d6;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: #17251e;
    font-size: 13px;
    line-height: 34px;
    text-align: center;
}

.buying-row-qty:focus {
    border-color: #309a63;
    box-shadow: 0 0 0 3px rgba(48, 154, 99, 0.10);
}

.buying-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.buying-action-buy,
.buying-action-sell {
    min-width: 58px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0d6;
    border-radius: 7px;
    font-size: 13px;
    line-height: 32px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.buying-action-buy {
    background: #309a63;
    border-color: #309a63;
    color: #ffffff;
}

.buying-action-sell {
    background: #ffffff;
    border-color: #309a63;
    color: #309a63;
}

.buying-action-buy:hover,
.buying-action-sell:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.buying-action-buy:hover {
    border-color: #185d3a;
    background: #185d3a;
    color: #ffffff;
}

.buying-action-sell:hover {
    background: #eef8f2;
    color: #185d3a;
}

.buying-hot-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.buying-hot-table-wrap::-webkit-scrollbar-track {
    background: #edf5f0;
}

.buying-hot-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #94c9aa;
}

.buying-hot-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #309a63;
}


/* =========================================================
   Transaction Cards
========================================================= */

.buying-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.buying-record-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d7e5dd;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 11px 28px rgba(48, 154, 99, 0.07);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.buying-record-card:hover {
    border-color: #a9d3ba;
    box-shadow: 0 15px 34px rgba(48, 154, 99, 0.12);
    transform: translateY(-3px);
}

.buying-record-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 18px;
    background: #edf1ef;
}

.buying-record-customer {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.buying-country-code {
    min-width: 34px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 5px;
    background: #309a63;
    color: #ffffff;
    font-size: 11px;
    line-height: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.buying-record-customer strong {
    color: #17251e;
    font-size: 14px;
    line-height: 22px;
    font-weight: 700;
}

.buying-record-ref {
    color: #309a63;
    font-size: 12px;
    line-height: 20px;
}

.buying-record-head time {
    flex: 0 0 auto;
    color: #557167;
    font-size: 12px;
    line-height: 20px;
}

.buying-record-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px 0;
}

.buying-record-status,
.buying-record-method {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 19px;
    font-weight: 700;
}

.buying-record-status.is-review {
    background: #fff5dc;
    color: #9a6500;
}

.buying-record-status.is-progress {
    background: #e9f4ff;
    color: #246ba0;
}

.buying-record-status.is-complete {
    background: #e8f8ef;
    color: #26784d;
}

.buying-record-method {
    border: 1px solid #d4e4db;
    background: #ffffff;
    color: #65766d;
}

.buying-record-body {
    min-height: 180px;
    padding: 17px 18px 19px;
}

.buying-record-body h3 {
    margin: 0 0 11px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #d9e6df;
    color: #52665c;
    font-size: 13px;
    line-height: 22px;
    font-weight: 600;
}

.buying-record-items {
    max-height: 164px;
    margin: 0;
    padding: 0 5px 0 0;
    overflow-y: auto;
    list-style: none;
}

.buying-record-items li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 78px;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #edf2ef;
}

.buying-record-items li:last-child {
    border-bottom: none;
}

.buying-record-items span {
    overflow: hidden;
    color: #17251e;
    font-size: 13px;
    line-height: 21px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buying-record-items em {
    overflow: hidden;
    color: #718179;
    font-size: 12px;
    line-height: 20px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buying-record-items strong {
    color: #309a63;
    font-size: 12px;
    line-height: 20px;
    text-align: right;
    white-space: nowrap;
}

.buying-record-items::-webkit-scrollbar {
    width: 5px;
}

.buying-record-items::-webkit-scrollbar-track {
    background: #edf4f0;
}

.buying-record-items::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #9ecdb2;
}

.buying-record-file-only {
    min-height: 95px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #bcd9c8;
    border-radius: 10px;
    background: #f5faf7;
    color: #65766d;
    font-size: 13px;
    line-height: 22px;
}

.buying-record-file-only i {
    color: #309a63;
    font-size: 23px;
}

.buying-record-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 18px;
    border-top: 1px solid #e4ece7;
    background: #fafcfb;
}

.buying-record-footer > span {
    color: #7a8981;
    font-size: 11px;
    line-height: 19px;
}

.buying-record-footer > span i {
    margin-right: 5px;
    color: #309a63;
}

.buying-record-footer a {
    flex: 0 0 auto;
    color: #309a63;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
}

.buying-record-footer a:hover {
    color: #185d3a;
}

.buying-pagination {
    margin-top: 26px;
}


/* =========================================================
   Empty State
========================================================= */

.buying-empty-state {
    padding: 58px 25px;
    border: 1px solid #d6e6dc;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.buying-empty-state > i {
    margin-bottom: 15px;
    color: #309a63;
    font-size: 40px;
}

.buying-empty-state h3 {
    margin: 0;
    color: #17251e;
    font-size: 19px;
    line-height: 29px;
}

.buying-empty-state p {
    max-width: 520px;
    margin: 9px auto 0;
    color: #697a70;
    font-size: 14px;
    line-height: 24px;
}


/* =========================================================
   Bottom CTA
========================================================= */

.buying-bottom-cta {
    width: 100%;
    padding: 0 0 72px;
}

.buying-bottom-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    padding: 38px 42px;
    overflow: hidden;
    border: 1px solid #cfe3d7;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 92% 75%,
            rgba(48, 154, 99, 0.13),
            transparent 25%
        ),
        #ffffff;
    box-shadow: 0 17px 42px rgba(48, 154, 99, 0.10);
}

.buying-bottom-cta-inner > div:first-child {
    max-width: 820px;
}

.buying-bottom-cta-inner span {
    display: block;
    margin-bottom: 7px;
    color: #309a63;
    font-size: 12px;
    line-height: 20px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.buying-bottom-cta-inner h2 {
    margin: 0;
    color: #17251e;
    font-size: 27px;
    line-height: 38px;
    font-weight: 800;
}

.buying-bottom-cta-inner p {
    margin: 10px 0 0;
    color: #65776d;
    font-size: 14px;
    line-height: 24px;
}

.buying-bottom-actions {
    flex: 0 0 220px;
    display: grid;
    gap: 10px;
}

.buying-bottom-primary,
.buying-bottom-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #309a63;
    border-radius: 9px;
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.buying-bottom-primary {
    background: #309a63;
    color: #ffffff;
}

.buying-bottom-secondary {
    background: #ffffff;
    color: #309a63;
}

.buying-bottom-primary:hover,
.buying-bottom-secondary:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.buying-bottom-primary:hover {
    background: #185d3a;
    border-color: #185d3a;
    color: #ffffff;
}

.buying-bottom-secondary:hover {
    background: #eef8f2;
    color: #185d3a;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1100px) {

    .buying-advantages-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .buying-advantage:nth-child(2)::after {
        display: none;
    }

    .buying-advantage:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .buying-record-grid {
        gap: 15px;
    }

    .buying-record-items li {
        grid-template-columns: minmax(0, 1fr) 85px 70px;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {

    .buying-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .buying-hero-primary,
    .buying-hero-secondary {
        width: 100%;
    }

    .buying-advantages {
        padding-top: 24px;
    }

    .buying-advantages-inner {
        grid-template-columns: 1fr;
        border-radius: 13px;
    }

    .buying-advantage {
        min-height: 0;
        padding: 19px 17px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .buying-advantage:last-child {
        border-bottom: none;
    }

    .buying-advantage::after {
        display: none;
    }

    .buying-content {
        padding: 26px 0 48px;
    }

    .buying-tabs {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .buying-tab-btn {
        min-width: 190px;
        flex: 1 0 auto;
        padding-right: 17px;
        padding-left: 17px;
        font-size: 14px;
    }

    .buying-section-head {
        display: block;
    }

    .buying-section-head h2 {
        font-size: 23px;
        line-height: 33px;
    }

    .buying-section-link {
        margin-top: 11px;
    }

    .buying-hot-table {
        min-width: 960px;
    }

    .buying-record-grid {
        grid-template-columns: 1fr;
    }

    .buying-record-body {
        min-height: 0;
    }

    .buying-bottom-cta {
        padding-bottom: 48px;
    }

    .buying-bottom-cta-inner {
        display: block;
        padding: 28px 22px;
        border-radius: 15px;
    }

    .buying-bottom-cta-inner h2 {
        font-size: 23px;
        line-height: 33px;
    }

    .buying-bottom-actions {
        width: 100%;
        margin-top: 22px;
    }

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {

    .buying-record-head {
        align-items: flex-start;
    }

    .buying-record-customer {
        flex-wrap: wrap;
    }

    .buying-record-ref {
        width: 100%;
        padding-left: 43px;
    }

    .buying-record-items li {
        grid-template-columns: minmax(0, 1fr) 66px;
    }

    .buying-record-items em {
        display: none;
    }

    .buying-record-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}
