﻿:root {
    --background-color: #f9f9f9;
    --default-color: #212529;
    --heading-color: #6d9965;
    --accent-color: #6ec05e;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --ink: #1a1a2e;
    --paper: #f5f0e8;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --surface: #ffffff;
    --muted: #7a7068;
    --danger: #c0392b;
    --soft: #f4f2ee;
    --border: #e4ddd3;
    --accent: #c8a96e;
    --accent-light: #f0e6d2;
    --muted: #8a8a8a;
}


body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



.main-wrapper {
    flex: 1;
    padding: 40px;
}

html {
    font-size: 14px;
}

h5 {
    color: var(--heading-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bg-success-custom {
    background-color: var(--heading-color) !important;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

.navbar-brand {
    padding-top: 0;
}

.alert-custom {
    position: fixed;
    right: 0;
    top: 0;
    left: 0;
    z-index: 1031;
    height: 65px;
    width: 100%;
    padding: 10px;
    background-color: #6ec05e;
    color: #fff;
}

.alert-error {
    position: fixed;
    right: 0;
    top: 0;
    left: 0;
    z-index: 1031;
    height: 65px;
    width: 100%;
    padding: 10px;
    background-color: #f11010;
    color: #fff;
}

.btn-add-to-cart {
    background-color: #26ba4f;
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.custom-btn-group {
    display: flex;
    flex-wrap: wrap;
}

    .custom-btn-group.flex-end .btn {
        margin: .25rem 0 .25rem .25rem;
    }

    .custom-btn-group.flex-end {
        justify-content: flex-end;
    }

.card-img-top {
    object-fit: contain;
}

/*Spinner*/
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-text {
    font-size: 1.2rem;
    color: #198754; /* Bootstrap success green */
    font-weight: 500;
}

/*Pagination*/
.active > .page-link {
    color: white !important;
}

.active > .page-link, .page-link.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/*home page*/
.jumbotron {
    background-color: var(--background-color);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* Cart summary*/
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.price-quantity td {
    min-width: 50px;
    border-width: 0;
    border-style: solid;
    border-color: transparent #ddd #ddd;
    background-color: #fff;
    padding: 0;
    color: #4b4848
}

    .price-quantity td.unit-price {
        white-space: nowrap;
    }

.price-quantity .product-quantity div.up {
    background: url('../images/vote-up.png') no-repeat 50% 50%;
    width: 50px;
    height: 25px;
    border: 0;
    cursor: pointer;
}

.price-quantity .product-quantity div.down {
    background: url('../images/vote-down.png') no-repeat 50% 50%;
    width: 50px;
    height: 25px;
    border: 0;
    cursor: pointer;
}

.price-quantity td.quantity input {
    width: 50px;
    text-align: center;
}


/* ─── Checkout card and terms ─── */
.cart th {
    border-width: 1px 1px 0;
    border-style: solid;
    border-color: #ddd;
    background-color: #f6f6f6;
    padding: 10px;
    white-space: nowrap;
    font-weight: normal;
}

.cart td {
    min-width: 50px;
    border-width: 1px;
    border-style: solid;
    border-color: transparent #ddd #ddd;
    background-color: #fff;
    padding: 20px;
    color: #4b4848
}

.cart label {
    display: none;
}

.cart td.unit-price {
    white-space: nowrap;
}

.cart td.subtotal {
    white-space: nowrap;
}


.cart .product-quantity div.up {
    background: url('../images/vote-up.png') no-repeat 50% 50%;
    width: 50px;
    height: 25px;
    border: 0;
    cursor: pointer;
}

.cart .product-quantity div.down {
    background: url('../images/vote-down.png') no-repeat 50% 50%;
    width: 50px;
    height: 25px;
    border: 0;
    cursor: pointer;
}

.cart td.quantity input {
    width: 50px;
    text-align: center;
}

.shopping-cart-page .common-buttons {
    margin: 0 0 60px;
    background-color: #f6f6f6;
    padding: 20px;
    font-size: 0;
    text-align: right;
}

.shopping-cart-page .common-buttons {
    margin: 0 0 60px;
    background-color: #f6f6f6;
    padding: 20px;
    font-size: 0;
}

    .shopping-cart-page .common-buttons button {
        display: inline-block;
        min-width: 180px;
        margin: 5px;
        border: 0;
        background-color: var(--accent-color);
        padding: 10px 20px;
        font-size: 15px;
        color: #fff;
    }

    .shopping-cart-page .common-buttons .continue-shopping-button {
        display: inline-block;
        min-width: 180px;
        margin: 5px;
        border: 0;
        background-color: var(--accent-color);
        padding: 10px 20px;
        font-size: 15px;
        text-align: center;
        color: #fff;
    }

    .shopping-cart-page .common-buttons .clear-cart-button {
        display: inline-block;
        min-width: 180px;
        margin: 5px;
        border: 0;
        background-color: var(--accent-color);
        padding: 10px 20px;
        font-size: 15px;
        text-align: center;
        color: #fff;
    }

a {
    cursor: pointer;
}

.cart-footer {
    margin: 0 0 50px;
    border-top: 1px solid #ddd;
}

    .cart-footer::after {
        content: "";
        display: block;
        clear: both;
    }

@media (min-width: 1367px) {
    .cart-footer .totals {
        width: 395px;
        margin: 0;
    }
}

@media (min-width: 769px) {
    .cart-footer .totals {
        float: right;
        width: 45%;
        margin: 0 2.5%;
    }
}

.cart-footer .totals {
    width: 350px;
    max-width: 100%;
    margin: 0 auto 50px;
    background-color: #f9f9f9;
    padding: 10px;
}

@media (min-width: 1367px) {
    .cart-footer .totals {
        width: 395px;
        margin: 0;
    }
}

@media (min-width: 769px) {
    .cart-footer .totals {
        float: right;
        width: 45%;
    }
}

.cart-footer .total-info {
    margin: 0 0 20px;
    border-bottom: 1px solid #ddd;
    padding: 5px 30px 15px;
}

.cart-total td {
    width: 50%;
    padding: 5px 0;
    text-align: right;
}

    .cart-total td:first-child {
        text-align: left;
    }

.cart-footer .checkout-buttons {
    padding: 0 10px;
}

@media (min-width: 769px) {
    .cart-footer .checkout-buttons {
        text-align: right;
    }
}

.cart-footer .checkout-button {
    display: inline-block;
    min-width: 160px;
    border: 0;
    background-color: var(--accent-color);
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
}


.cart-card {
    background: var(--surface);
    border: 1px solid #ddd6c8;
    border-radius: 4px;
    padding: 2.5rem 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

    .cart-card h2 {
        font-family: 'Playfair Display', serif;
        font-size: 1.6rem;
        margin-bottom: 1.8rem;
        color: var(--ink);
        border-bottom: 2px solid var(--gold);
        padding-bottom: .6rem;
    }

/* ─── Terms row ─── */
.terms-of-service {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.4rem;
}

    .terms-of-service input[type="checkbox"] {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #bbb;
        border-radius: 3px;
        cursor: pointer;
        flex-shrink: 0;
        position: relative;
        transition: border-color .2s, background .2s;
    }

        .terms-of-service input[type="checkbox"]:checked {
            background: var(--gold);
            border-color: var(--gold);
        }

            .terms-of-service input[type="checkbox"]:checked::after {
                content: '';
                position: absolute;
                top: 2px;
                left: 5px;
                width: 6px;
                height: 10px;
                border: 2px solid #fff;
                border-top: none;
                border-left: none;
                transform: rotate(45deg);
            }

    .terms-of-service label {
        font-size: .92rem;
        color: var(--ink);
        cursor: pointer;
    }

a.read {
    font-size: .82rem;
    color: var(--gold);
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: .01em;
}

    a.read:hover {
        color: #a07830;
    }

/* ─── Checkout button ─── */
.checkout-buttons {
    margin-top: .5rem;
}

.checkout-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: .85rem 1.5rem;
    background: var(--ink);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: background .2s, transform .1s;
    cursor: pointer;
}

    .checkout-button:hover {
        background: #2d2d4e;
    }

    .checkout-button:active {
        transform: translateY(1px);
    }

    .checkout-button.disabled {
        background: #ccc;
        color: #888;
        cursor: not-allowed;
        pointer-events: none;
    }

/* ─── Overlay ─── */
.tos-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    padding: 1rem;
}

    .tos-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

/* ─── Modal box ─── */
.tos-modal {
    background: var(--surface);
    border-radius: 6px;
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    transform: translateY(20px) scale(.97);
    transition: transform .3s cubic-bezier(.22,.68,0,1.2);
    overflow: hidden;
}

.tos-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.6rem 2rem 1.2rem;
    border-bottom: 1px solid #ede8e0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: var(--ink);
    color: #fff;
}

    .modal-header h3 {
        /*font-family: 'Playfair Display', serif;*/
        font-size: 1.1rem;
        line-height: 1.3;
        color: var(--gold-light);
    }

    .modal-header p {
        font-size: .78rem;
        opacity: .65;
        margin-top: .25rem;
        font-weight: 300;
    }

.modal-close {
    background: none;
    border: none;
    color: #fff;
    opacity: .6;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    padding: .2rem;
    flex-shrink: 0;
    transition: opacity .15s;
}

    .modal-close:hover {
        opacity: 1;
    }

.modal-body {
    padding: 1.6rem 2rem;
    overflow-y: auto;
    flex: 1;
    font-size: .875rem;
    line-height: 1.75;
    color: #3a3530;
}

    .modal-body h4 {
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        font-size: 1rem;
        color: var(--ink);
        margin: 1.2rem 0 .4rem;
    }

        .modal-body h4:first-child {
            margin-top: 0;
        }

    .modal-body p {
        margin-bottom: .6rem;
        color: var(--muted);
    }

    .modal-body li {
        margin-bottom: .6rem;
        color: var(--muted);
    }

/* ─── Modal footer ─── */
.modal-footer {
    padding: 1.2rem 2rem;
    border-top: 1px solid #ede8e0;
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: flex-end;
    background: #faf8f4;
}

.btn-decline {
    background: none;
    border: 1px solid #ccc;
    color: var(--muted);
    padding: .65rem 1.4rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    transition: border-color .15s, color .15s;
}

    .btn-decline:hover {
        border-color: var(--danger);
        color: var(--danger);
    }

.btn-accept {
    background: var(--gold);
    border: none;
    color: var(--ink);
    padding: .65rem 1.6rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background .15s, transform .1s;
}

    .btn-accept:hover {
        background: #b8903c;
    }

    .btn-accept:active {
        transform: scale(.97);
    }

/* scroll hint */
.scroll-hint {
    font-size: .75rem;
    color: #bbb;
    margin-right: auto;
    font-style: italic;
}


/* ─── Product cart ─── */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    }

/*footer*/
.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    position: relative !important;
    margin-top: 30px;
}

.light-background {
    --background-color: #f8f4f6;
    --surface-color: #ffffff;
}

.footer .footer-main {
    padding: 40px 0 20px;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

    .footer .footer-main .footer-widget {
        margin-bottom: 30px;
    }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

.footer .footer-main .footer-widget .logo {
    display: inline-block;
    margin-bottom: 20px;
}

    .footer .footer-main .footer-widget .logo span {
        color: var(--heading-color);
        font-size: 26px;
        font-weight: 700;
        letter-spacing: 0.5px;
        font-family: var(--heading-font);
    }

.footer .footer-main .footer-widget p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.footer .footer-main .social-links h5 {
    margin-bottom: 15px;
}

.footer .footer-main .footer-widget h5 {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.footer .footer-main .social-links .social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .footer .footer-main .social-links .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background-color: color-mix(in srgb, var(--default-color), transparent 90%);
        color: var(--default-color);
        font-size: 16px;
        transition: all 0.3s ease;
    }

.footer .footer-main .footer-widget h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

    .footer .footer-main .footer-widget h4::after {
        content: "";
        position: absolute;
        width: 40px;
        height: 3px;
        background-color: var(--accent-color);
        bottom: 0;
        left: 0;
    }

.footer .footer-main .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer .footer-main .footer-links li::before {
        content: "→";
        position: absolute;
        left: -8px;
        top: 0;
        color: var(--accent-color);
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .footer .footer-main .footer-links li {
        margin-bottom: 12px;
        position: relative;
        padding-left: 15px;
    }

    .footer .footer-main .footer-links a {
        color: color-mix(in srgb, var(--default-color), transparent 30%);
        transition: all 0.3s ease;
    }

.footer .footer-main .footer-contact .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

    .footer .footer-main .footer-contact .contact-item i {
        color: var(--accent-color);
        font-size: 18px;
        margin-right: 12px;
        margin-top: 3px;
    }

    .footer .footer-main .footer-contact .contact-item span {
        color: color-mix(in srgb, var(--default-color), transparent 30%);
        line-height: 1.5;
    }

/*administartor login*/

.form-fields {
    position: relative;
    border-top: 1px solid #e6e6e6;
    background-color: #f9f9f9;
    padding: 30px 15px;
}


/*Checkout*/
.checkout-form {
    background: var(--soft);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--accent-color);
    }

.section-num {
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
}

label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* Delivery method cards */

.delivery-card {
    position: relative;
    cursor: pointer;
}

    .delivery-card input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.delivery-card-inner {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 14px;
    background: white;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.delivery-card input:checked + .delivery-card-inner {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.2);
}

.delivery-card-inner .icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.delivery-card-inner .card-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
}

.delivery-card-inner .card-sub {
    font-size: 0.73rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Address block */
.address-block {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--ink);
}
