/* =========================================================
   GREEN VERGES
   CHECKOUT PAGE
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8f4;
    color: #1d2b1b;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    width: 100%;
    height: 80px;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    background: #ffffff;

    border-bottom: 1px solid #e8ece4;
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    height: 80px;

    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    width: 56px;
    height: 56px;

    object-fit: contain;
}

.brand span {
    color: #1d2b1b;

    font-size: 1.25rem;
    font-weight: 700;
}


/* NAVIGATION */

.nav-links {
    display: flex;
    align-items: center;

    gap: 34px;
}

.nav-links a {
    color: #263523;

    font-size: 0.9rem;
    font-weight: 600;

    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #527147;
}

.nav-links .nav-cart {
    padding: 11px 22px;

    background: #1d2b1b;
    color: #ffffff;

    border-radius: 30px;
}

.nav-links .nav-cart:hover {
    background: #527147;
    color: #ffffff;
}


/* MOBILE BUTTON */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    color: #1d2b1b;

    font-size: 1.25rem;

    cursor: pointer;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;

    position: fixed;

    top: 80px;
    left: 0;

    width: 100%;

    z-index: 999;

    padding: 12px 20px;

    background: #ffffff;

    border-bottom: 1px solid #e5e9e1;

    box-shadow: 0 15px 30px rgba(29, 43, 27, 0.08);
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
}

.mobile-menu a {
    padding: 15px 5px;

    color: #1d2b1b;

    font-size: 0.95rem;
    font-weight: 600;

    border-bottom: 1px solid #edf0eb;
}

.mobile-menu a:last-child {
    border-bottom: none;
}


/* =========================================================
   CHECKOUT INTRO
   ========================================================= */

.checkout-intro {
    padding-top: 80px;

    background: #f5f1e7;
}

.intro-container {
    width: 100%;
    max-width: 1400px;

    min-height: 440px;

    margin: 0 auto;

    padding: 70px 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.intro-copy {
    max-width: 720px;
}

.intro-label {
    display: block;

    margin-bottom: 20px;

    color: #527147;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.22em;
}

.intro-copy h1 {
    color: #1d2b1b;

    font-size: clamp(4rem, 8vw, 7.5rem);

    line-height: 0.88;

    letter-spacing: -0.065em;

    font-weight: 700;
}

.intro-copy h1 span {
    color: #527147;
}

.intro-copy p {
    max-width: 500px;

    margin-top: 28px;

    color: #6d756a;

    font-size: 1rem;
}


/* =========================================================
   INTRO ART
   ========================================================= */

.intro-art {
    width: 330px;
    height: 330px;

    position: relative;

    flex-shrink: 0;
}

.art-circle {
    width: 210px;
    height: 210px;

    position: absolute;

    top: 60px;
    left: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #527147;

    box-shadow:
        0 30px 70px rgba(29, 43, 27, 0.18);
}

.art-circle span {
    color: #ffffff;

    font-size: 3rem;
    font-weight: 700;

    letter-spacing: -0.05em;
}

.art-ring {
    position: absolute;

    border: 1px solid rgba(82, 113, 71, 0.35);

    border-radius: 50%;
}

.art-ring-one {
    width: 290px;
    height: 290px;

    top: 20px;
    left: 20px;
}

.art-ring-two {
    width: 250px;
    height: 250px;

    top: 40px;
    left: 40px;

    border-style: dashed;
}


/* =========================================================
   FLASH MESSAGES
   ========================================================= */

.flash-container {
    width: 100%;
    max-width: 1250px;

    margin: 25px auto 0;

    padding: 0 30px;
}

.flash-message {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 16px;

    margin-bottom: 10px;

    border-radius: 8px;

    font-size: 0.88rem;
    font-weight: 600;
}

.flash-icon {
    width: 25px;
    height: 25px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

.flash-message.success {
    background: #e7efdf;
    color: #315127;
}

.flash-message.success .flash-icon {
    background: #527147;
    color: #ffffff;
}

.flash-message.error,
.flash-message.danger {
    background: #f7e5e3;
    color: #8a3029;
}

.flash-message.error .flash-icon,
.flash-message.danger .flash-icon {
    background: #a9443b;
    color: #ffffff;
}

.flash-message.warning {
    background: #f7eed8;
    color: #725a1d;
}

.flash-message.info {
    background: #e7edf1;
    color: #31546c;
}


/* =========================================================
   MAIN CHECKOUT
   ========================================================= */

.checkout-main {
    width: 100%;

    padding: 75px 30px 110px;
}

.checkout-form {
    width: 100%;
}

.checkout-grid {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        390px;

    align-items: start;

    gap: 60px;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.checkout-left {
    display: flex;
    flex-direction: column;

    gap: 65px;
}

.checkout-section {
    padding-bottom: 55px;

    border-bottom: 1px solid #dfe5db;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    margin-bottom: 32px;
}

.section-number {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e7efdf;
    color: #527147;

    font-size: 0.75rem;
    font-weight: 700;
}

.section-heading > div:last-child > span {
    display: block;

    margin-bottom: 5px;

    color: #527147;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.17em;
}

.section-heading h2 {
    color: #1d2b1b;

    font-size: 1.55rem;

    line-height: 1.2;

    letter-spacing: -0.02em;
}


/* =========================================================
   FORM
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 9px;

    color: #263523;

    font-size: 0.82rem;
    font-weight: 700;
}

.form-group label small {
    margin-left: 5px;

    color: #969d91;

    font-size: 0.72rem;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 13px 2px;

    border: none;

    border-bottom: 1px solid #bdc7b9;

    border-radius: 0;

    outline: none;

    background: transparent;

    color: #1d2b1b;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.form-group input,
.form-group select {
    height: 50px;
}

.form-group textarea {
    min-height: 105px;

    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a3aaa0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #527147;

    background: rgba(231, 239, 223, 0.22);
}


/* =========================================================
   DELIVERY OPTIONS
   ========================================================= */

.delivery-options {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.delivery-option {
    min-height: 110px;

    padding: 18px;

    position: relative;

    display: flex;
    align-items: center;

    gap: 14px;

    border: 1px solid #d8dfd4;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.2s ease;
}

.delivery-option:hover {
    border-color: #527147;

    transform: translateY(-2px);
}

.delivery-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.delivery-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0f4ec;

    color: #527147;
}

.delivery-text {
    display: flex;
    flex-direction: column;

    padding-right: 25px;
}

.delivery-text strong {
    color: #1d2b1b;

    font-size: 0.92rem;
}

.delivery-text span {
    margin-top: 3px;

    color: #7a8275;

    font-size: 0.75rem;

    line-height: 1.4;
}

.delivery-check {
    width: 22px;
    height: 22px;

    position: absolute;

    top: 15px;
    right: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #cbd4c6;

    border-radius: 50%;

    color: transparent;

    font-size: 0.65rem;
}

.delivery-option:has(input:checked) {
    border-color: #527147;

    background: #f5f8f2;
}

.delivery-option:has(input:checked) .delivery-check {
    border-color: #527147;

    background: #527147;

    color: #ffffff;
}


/* =========================================================
   DELIVERY DETAILS
   ========================================================= */

.delivery-details {
    display: flex;

    flex-direction: column;

    gap: 25px;

    margin-top: 30px;
}

.delivery-details.hidden {
    display: none;
}


/* =========================================================
   PICKUP
   ========================================================= */

.pickup-message {
    display: none;

    align-items: flex-start;

    gap: 15px;

    margin-top: 30px;

    padding: 20px;

    background: #e7efdf;

    border-left: 3px solid #527147;
}

.pickup-message.visible {
    display: flex;
}

.pickup-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #527147;

    color: #ffffff;
}

.pickup-message strong {
    color: #1d2b1b;

    font-size: 0.9rem;
}

.pickup-message p {
    margin-top: 3px;

    color: #687263;

    font-size: 0.8rem;
}

.notes-group {
    margin-top: 30px;
}


/* =========================================================
   SECURITY
   ========================================================= */

.security-note {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 20px 0;
}

.security-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e7efdf;

    color: #527147;
}

.security-note strong {
    display: block;

    color: #263523;

    font-size: 0.82rem;
}

.security-note p {
    margin-top: 2px;

    color: #858d80;

    font-size: 0.75rem;
}


/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.order-summary {
    position: sticky;

    top: 110px;

    padding: 32px;

    background: #1d2b1b;

    color: #ffffff;

    box-shadow:
        0 25px 60px rgba(29, 43, 27, 0.14);
}

.summary-heading {
    padding-bottom: 25px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-heading span {
    display: block;

    margin-bottom: 7px;

    color: #9db091;

    font-size: 0.67rem;
    font-weight: 700;

    letter-spacing: 0.17em;
}

.summary-heading h2 {
    color: #ffffff;

    font-size: 1.55rem;

    letter-spacing: -0.025em;
}


/* ITEMS */

.summary-items {
    display: flex;
    flex-direction: column;

    gap: 18px;

    padding: 20px 0;
}

.summary-item {
    display: grid;

    grid-template-columns:
        55px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;
}

.summary-image {
    width: 55px;
    height: 55px;

    overflow: hidden;

    background: #e7efdf;
}

.summary-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.summary-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e7efdf;

    color: #527147;

    font-size: 0.75rem;
    font-weight: 700;
}

.summary-product {
    min-width: 0;
}

.summary-product h3 {
    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.summary-product span {
    display: block;

    margin-top: 2px;

    color: #9daa97;

    font-size: 0.7rem;
}

.summary-price {
    color: #ffffff;

    font-size: 0.78rem;

    white-space: nowrap;
}


/* =========================================================
   TOTALS
   ========================================================= */

.summary-totals {
    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 6px 0;

    color: #aeb9a8;

    font-size: 0.78rem;
}

.summary-row strong {
    color: #ffffff;
}

.summary-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.summary-total span {
    color: #ffffff;

    font-size: 0.9rem;
}

.summary-total strong {
    color: #dce8d6;

    font-size: 1.45rem;
}


/* =========================================================
   PLACE ORDER
   ========================================================= */

.place-order-button {
    width: 100%;

    min-height: 55px;

    margin-top: 10px;

    padding: 15px 20px;

    border: none;

    background: #ffffff;

    color: #1d2b1b;

    display: flex;

    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    font-size: 0.86rem;
    font-weight: 700;

    transition:
        background 0.25s ease,
        transform 0.2s ease;
}

.place-order-button:hover {
    background: #e7efdf;

    transform: translateY(-2px);
}

.back-to-cart {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    color: #9daa97;

    font-size: 0.75rem;

    transition: color 0.25s ease;
}

.back-to-cart:hover {
    color: #ffffff;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;

    background: #1d2b1b;

    color: #ffffff;
}


/* FOOTER MAIN */

.footer-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 70px 40px;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1.4fr
        1fr;

    gap: 60px;
}


/* BRAND */

.footer-brand a {
    display: inline-flex;

    align-items: center;
}

.footer-brand img {
    width: 65px;
    height: 65px;

    object-fit: contain;
}

.footer-brand span {
    color: #ffffff;

    font-size: 1.4rem;
    font-weight: 700;
}

.footer-brand p {
    max-width: 230px;

    margin-top: 18px;

    color: #aeb9a8;

    font-size: 0.85rem;

    line-height: 1.7;
}


/* FOOTER COLUMNS */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-column h3 {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

.footer-column a,
.footer-column p {
    margin-bottom: 10px;

    color: #aeb9a8;

    font-size: 0.82rem;

    line-height: 1.6;

    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: #ffffff;
}


/* SOCIAL */

.footer-social {
    display: flex;

    align-items: center;

    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;

    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 50%;

    color: #ffffff;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.footer-social a:hover {
    background: #527147;

    border-color: #527147;
}


/* FOOTER BOTTOM */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 20px 40px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p {
    color: #899585;

    font-size: 0.72rem;
}

.footer-bottom a {
    color: #aeb9a8;

    font-size: 0.72rem;

    transition: color 0.25s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .navbar-container {
        padding: 0 25px;
    }

    .intro-container {
        padding: 60px 40px;
    }

    .checkout-main {
        padding-left: 25px;
        padding-right: 25px;
    }

    .checkout-grid {
        grid-template-columns:
            minmax(0, 1fr)
            340px;

        gap: 35px;
    }

    .footer-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .footer-bottom-inner {
        padding-left: 25px;
        padding-right: 25px;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 850px) {

    .nav-links {
        gap: 20px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: relative;

        top: auto;

        order: -1;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .navbar,
    .navbar-container {
        height: 70px;
    }

    .navbar-container {
        padding: 0 20px;
    }

    .brand img {
        width: 50px;
        height: 50px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: flex;

        align-items: center;
        justify-content: center;
    }


    /* INTRO */

    .checkout-intro {
        padding-top: 70px;
    }

    .intro-container {
        min-height: 350px;

        padding: 55px 20px;

        display: block;
    }

    .intro-copy h1 {
        font-size: clamp(3.6rem, 17vw, 5.5rem);
    }

    .intro-copy p {
        max-width: 380px;

        margin-top: 22px;
    }

    .intro-art {
        display: none;
    }


    /* MAIN */

    .checkout-main {
        padding: 55px 20px 80px;
    }

    .checkout-grid {
        gap: 45px;
    }

    .checkout-left {
        gap: 45px;
    }

    .checkout-section {
        padding-bottom: 40px;
    }


    /* FORM */

    .form-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* DELIVERY */

    .delivery-options {
        grid-template-columns: 1fr;
    }


    /* SUMMARY */

    .order-summary {
        padding: 25px;
    }


    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr;

        padding: 55px 25px;

        gap: 35px;
    }

    .footer-brand p {
        max-width: 300px;
    }

    .footer-links {
        flex-wrap: wrap;

        gap: 15px 25px;
    }

    .footer-bottom-inner {
        padding: 18px 25px;

        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .intro-container {
        min-height: 320px;

        padding-top: 45px;
        padding-bottom: 45px;
    }

    .intro-copy h1 {
        font-size: 3.5rem;
    }

    .intro-copy p {
        font-size: 0.9rem;
    }

    .checkout-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-number {
        width: 36px;
        height: 36px;
    }

    .section-heading h2 {
        font-size: 1.25rem;
    }

    .order-summary {
        padding: 22px;
    }

    .summary-heading h2 {
        font-size: 1.35rem;
    }

    .footer-links {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .navbar-container {
        padding: 0 15px;
    }

    .intro-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .intro-copy h1 {
        font-size: 3.1rem;
    }

    .checkout-main {
        padding-left: 13px;
        padding-right: 13px;
    }

    .order-summary {
        padding: 20px;
    }

}