
:root {
    --green: #145638;
    --dark-green: #0b3523;
    --gold: #d9b746;
    --light-green: #eaf4e9;
    --bg: #f8faf6;
    --text: #26352c;
    --muted: #78847b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

/* TOPBAR */

.topbar {
    padding: 9px 0;
    background: var(--dark-green);
    color: #fff;
    font-size: 11px;
}

/* HEADER */

.main-header {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid #edf0e9;
}

.brand-logo {
    width: 235px;
    max-height: 75px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.header-action {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
}

.header-action > i {
    margin-bottom: 3px;
    font-size: 22px;
}

.header-action:hover,
.header-action.active-action {
    color: #a88919;
}

.count {
    position: absolute;
    top: -7px;
    right: -8px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark-green);
    font-size: 10px;
    font-weight: 700;
}

/* SEARCH */

.search-box {
    display: flex;
    overflow: hidden;
    border: 1px solid #dce5d8;
    border-radius: 8px;
    background: #f9fbf7;
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 11px 13px;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
}

.search-box button {
    padding: 0 17px;
    border: 0;
    background: var(--green);
    color: #fff;
    transition: 0.2s;
}

.search-box button:hover {
    background: var(--dark-green);
}

/* NAVBAR */

.navbar-custom {
    background: var(--green);
}

.navbar-custom .nav-link {
    padding: 14px 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: 0.2s;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    background: var(--gold);
    color: var(--dark-green);
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar-custom .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* PAGE BANNER */

.page-banner {
    padding: 48px 0;
    background:
        linear-gradient(90deg, rgba(9, 47, 32, 0.94),
        rgba(20, 86, 56, 0.82)),
        url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1500&q=80')
        center/cover no-repeat;
    color: #fff;
}

.banner-label {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 30px;
    background: var(--gold);
    color: var(--dark-green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.page-banner h1 {
    margin: 15px 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
}

.page-banner h1 span {
    color: var(--gold);
}

.page-banner p {
    margin: 0;
    color: #d8e5db;
    font-size: 12px;
    line-height: 1.9;
}

/* BREADCRUMB */

.breadcrumb-area {
    padding: 13px 0;
    border-bottom: 1px solid #e9eee6;
    background: #fff;
    font-size: 11px;
}

.breadcrumb-area a {
    color: var(--green);
}

.breadcrumb-area span {
    color: var(--muted);
}

/* CART SECTION */

.cart-section {
    padding: 42px 0 55px;
}

.cart-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.section-label {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cart-heading h2 {
    margin: 9px 0;
    color: var(--dark-green);
    font-size: 25px;
    font-weight: 800;
}

.cart-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.cart-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 30px;
    background: var(--gold);
    color: var(--dark-green);
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.continue-link {
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
}

.continue-link:hover {
    color: #a88919;
}

/* CART PANEL */

.cart-panel {
    overflow: hidden;
    border: 1px solid #e7ece4;
    border-radius: 12px;
    background: #fff;
}

.cart-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 22px;
    border-bottom: 1px solid #edf0e9;
}

.cart-panel-heading h5 {
    margin: 0;
    color: var(--dark-green);
    font-size: 15px;
    font-weight: 700;
}

.cart-panel-heading h5 i {
    color: var(--green);
}

.clear-btn {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #bd3d32;
    font-size: 11px;
    font-weight: 600;
}

.clear-btn:hover {
    color: #8f2119;
}

/* CART PRODUCT ROW */

.cart-item {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid #edf0e9;
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-product-image {
    display: grid;
    place-items: center;
    width: 115px;
    height: 115px;
    overflow: hidden;
    border: 1px solid #edf0e9;
    border-radius: 9px;
    background: #f7faf5;
    color: var(--green);
    font-size: 32px;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-details {
    min-width: 0;
}

.cart-category {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
}

.cart-product-details h5 {
    margin: 0 0 7px;
    color: var(--dark-green);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.unit-price {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 11px;
}

/* QUANTITY CONTROL */

.quantity-control {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dce5d8;
    border-radius: 6px;
    background: #fff;
}

.quantity-control button {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 0;
    background: var(--light-green);
    color: var(--dark-green);
    font-size: 17px;
    transition: 0.2s;
}

.quantity-control button:hover:not(:disabled) {
    background: var(--green);
    color: #fff;
}

.quantity-control button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.quantity-control span {
    display: grid;
    place-items: center;
    min-width: 37px;
    height: 31px;
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 700;
}

.remove-item {
    display: block;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #bd3d32;
    font-size: 10px;
    font-weight: 600;
}

.remove-item:hover {
    color: #8f2119;
}

.cart-item-total {
    align-self: start;
    padding-top: 5px;
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

/* ORDER SUMMARY */

.summary-card {
    position: sticky;
    top: 20px;
    padding: 25px 22px;
    border: 1px solid #e7ece4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(21, 61, 37, 0.04);
}

.summary-card h4 {
    margin: 0 0 7px;
    color: var(--dark-green);
    font-size: 20px;
    font-weight: 800;
}

.summary-subtitle {
    margin-bottom: 23px;
    color: var(--muted);
    font-size: 11px;
}

.summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
    color: #66736a;
    font-size: 12px;
}

.summary-line strong {
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.summary-line .discount-value {
    color: var(--green);
}

.summary-card hr {
    border-color: #e7ece4;
    opacity: 1;
}

.summary-line.grand-total {
    align-items: center;
    margin: 20px 0;
    color: var(--dark-green);
    font-size: 14px;
    font-weight: 700;
}

.summary-line.grand-total strong {
    color: var(--green);
    font-size: 20px;
    font-weight: 800;
}

.tax-note {
    margin: -7px 0 20px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

/* COUPON */

.coupon-section {
    margin: 20px 0;
    padding: 16px;
    border: 1px dashed #d7dfd3;
    border-radius: 9px;
    background: #f9fbf7;
}

.coupon-section label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark-green);
    font-size: 11px;
    font-weight: 700;
}

.coupon-input {
    display: flex;
    overflow: hidden;
    border: 1px solid #dce5d8;
    border-radius: 6px;
    background: #fff;
}

.coupon-input input {
    width: 0;
    min-width: 0;
    flex: 1;
    padding: 11px 9px;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
}

.coupon-input button {
    padding: 0 13px;
    border: 0;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.coupon-input button:hover {
    background: var(--dark-green);
}

.coupon-section small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 10px;
}

.coupon-section small strong {
    color: var(--green);
}

.coupon-message {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.6;
}

.coupon-message.success {
    color: var(--green);
}

.coupon-message.error {
    color: #bd3d32;
}

/* CHECKOUT */

.checkout-btn {
    display: block;
    width: 100%;
    padding: 14px 12px;
    border: 1px solid var(--green);
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: 0.25s;
}

.checkout-btn:hover {
    border-color: var(--dark-green);
    background: var(--dark-green);
    box-shadow: 0 5px 15px rgba(11, 53, 35, 0.15);
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.secure-note i {
    color: var(--green);
}

.back-shopping {
    display: block;
    margin-top: 17px;
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.back-shopping:hover {
    color: #a88919;
}

/* EMPTY CART */

.empty-state {
    padding: 45px 20px;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 85px;
    height: 85px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--green);
    font-size: 36px;
}

.empty-state h3 {
    color: var(--dark-green);
    font-size: 21px;
    font-weight: 800;
}

.empty-state p {
    max-width: 390px;
    margin: 12px auto 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

/* BUTTONS */

.btn-green {
    padding: 11px 18px;
    border: 1px solid var(--green);
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.btn-green:hover {
    background: var(--dark-green);
    color: #fff;
}

.btn-gold {
    padding: 12px 20px;
    border: 1px solid var(--gold);
    border-radius: 7px;
    background: var(--gold);
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.btn-gold:hover {
    border-color: #c5a22d;
    background: #efda83;
    color: var(--dark-green);
}

/* BENEFITS */

.cart-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding: 17px 12px;
    border: 1px solid #e7ece4;
    border-radius: 10px;
    background: #fff;
}

.cart-benefits > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.cart-benefits i {
    color: var(--green);
    font-size: 22px;
}

/* ALERT */

#cartNotice {
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* FOOTER */

.main-footer {
    padding: 45px 0 0;
    background: #092d1e;
    color: #fff;
}

.footer-logo {
    width: 225px;
    max-height: 85px;
    object-fit: contain;
}

.footer-about {
    max-width: 350px;
    margin-top: 16px;
    color: #c0d1c5;
    font-size: 11px;
    line-height: 1.9;
}

.footer-title {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact {
    color: #c0d1c5;
    font-size: 11px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact i {
    margin-right: 7px;
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    color: #fff;
    transition: 0.2s;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--dark-green);
}

.footer-bottom {
    margin-top: 30px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #c0d1c5;
    font-size: 10px;
}

/* TABLET */

@media (max-width: 991px) {
    .brand-logo {
        width: 200px;
    }

    .header-actions {
        gap: 17px;
    }

    .navbar-custom .nav-link {
        padding: 12px 10px;
    }

    .cart-section {
        padding: 32px 0 45px;
    }

    .summary-card {
        position: static;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .topbar {
        font-size: 9px;
    }

    .main-header {
        padding: 12px 0;
    }

    .brand-logo {
        width: 175px;
        max-height: 60px;
    }

    .header-actions {
        gap: 13px;
    }

    .header-action {
        font-size: 9px;
    }

    .header-action > i {
        font-size: 20px;
    }

    .search-box input {
        font-size: 11px;
    }

    .navbar-custom .nav-link {
        padding: 11px 12px;
        border-radius: 5px;
    }

    .page-banner {
        padding: 35px 0;
    }

    .cart-section {
        padding: 28px 0 38px;
    }

    .cart-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-bottom: 20px;
    }

    .cart-heading h2 {
        font-size: 21px;
    }

    .cart-item {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 13px;
    }

    .cart-product-image {
        width: 85px;
        height: 95px;
    }

    .cart-product-details h5 {
        font-size: 12px;
    }

    .cart-item-total {
        grid-column: 2;
        justify-self: start;
        padding-top: 0;
        font-size: 13px;
    }

    .cart-panel-heading {
        padding: 16px 13px;
    }

    .cart-panel-heading h5 {
        font-size: 13px;
    }

    .clear-btn {
        font-size: 10px;
    }

    .summary-card {
        padding: 22px 18px;
    }

    .cart-benefits {
        gap: 5px;
        padding: 15px 7px;
    }

    .cart-benefits > div {
        font-size: 9px;
    }

    .cart-benefits i {
        font-size: 20px;
    }

    .main-footer {
        padding-top: 32px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .brand-logo {
        width: 145px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-action {
        font-size: 8px;
    }

    .header-action > i {
        font-size: 18px;
    }

    .cart-heading h2 {
        font-size: 19px;
    }

    .cart-item {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
        padding: 13px 10px;
    }

    .cart-product-image {
        width: 70px;
        height: 80px;
    }

    .cart-product-details h5 {
        font-size: 11px;
    }

    .quantity-control button {
        width: 28px;
        height: 29px;
    }

    .quantity-control span {
        min-width: 32px;
        height: 29px;
    }

    .summary-card {
        padding: 19px 13px;
    }

    .summary-line.grand-total strong {
        font-size: 17px;
    }

    .cart-benefits > div {
        font-size: 8px;
    }
}
