.checkout-page .main-nav {
    display: none;
}

/* SIGN IN / JOIN button */
.auth-trigger {
    background: none;
    border: none;
    font-weight: 700;
    color: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.auth-trigger:hover {
    opacity: 0.75;
}

/* Bag icon */
.bag-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 700;
}

.bag-svg {
    width: 20px;
    height: 20px;
    fill: #f5f5f5;
}

.bag-icon:hover .bag-svg {
    opacity: 0.75;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #2b4506;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 50%;
    line-height: 1;
}

/* RETURN TO MENU (checkout only) */
.return-menu {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.5rem 1rem;

    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;

    color: #fff;

    background: linear-gradient(to bottom, #e86a00, #cc5500, #b44a00);

    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.25),
        inset 0 -2px 4px rgba(0,0,0,0.35),
        0 4px 10px rgba(0,0,0,0.25);

    transition: transform .2s ease, box-shadow .2s ease;
}

.return-menu:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.25),
        inset 0 -2px 4px rgba(0,0,0,0.35),
        0 6px 14px rgba(0,0,0,0.35);
}

.return-menu:active {
    transform: translateY(0);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.2),
        inset 0 -1px 2px rgba(0,0,0,0.3),
        0 3px 8px rgba(0,0,0,0.25);
}

/* ================================
   Layout
================================ */
.checkout-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    display: block;
}

/* Pickup Location text enhancement */
.pickup-location-text {
    font-size: 1.1rem;          /* slightly larger */
    font-style: italic;
    margin-bottom: 10px;        /* breathing room */
    letter-spacing: 0.3px;      /* subtle polish */
}

/* ================================
   BUTTON SYSTEM — CLEAN + MATCHED
================================ */

/* Global width for ALL checkout buttons using .full */
.checkout-page button.full {
    width: 85%;
    margin: 0 auto;
    display: block;
}

/* Universal border-radius so ALL buttons match Login/Create Account */
.checkout-page button {
    border-radius: 8px;
}

/* AUTH BUTTONS (Continue as Guest, Login, Create Account) */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

/* Normalize height of all auth buttons */
.auth-options button {
    padding: 10px 14px;
    line-height: 1.2;
    height: auto;
}

/* Continue as Guest (secondary style) */
.auth-options .btn-secondary {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #c9c9c9;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: block;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-options .btn-secondary:hover {
    background: #ececec;
    border-color: #b5b5b5;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

/* PROCEED TO PAYMENT (primary action) */
.checkout-btn.full {
    padding: 8px 12px;
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 12px !important; /* spacing between Proceed + Continue Shopping */
}

/* CONTINUE SHOPPING (secondary action) */
.continue-btn {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #c9c9c9;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: block;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.continue-btn:hover {
    background: #ececec;
    border-color: #b5b5b5;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

/* ================================
   Contact Info Section
================================ */
.checkout-section {
    width: 100%;
    max-width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.checkout-section h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2b4506;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}

.checkout-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.checkout-section input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* ================================
   Cart Items
================================ */
.checkout-item {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.checkout-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.checkout-item-info {
    margin-left: auto;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
}

.checkout-item-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.checkout-item-info .price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.price {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Quantity controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #eee;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
}

.qty-btn:hover {
    background: #ddd;
}

/* Remove button */
.remove-btn {
    background: none;
    border: none;
    color: #d9534f;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-btn:hover {
    text-decoration: underline;
}

/* ================================
   Totals
================================ */
.checkout-totals {
    margin-top: 20px;
}

.checkout-totals .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-totals .total {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

/* ================================
   Empty Cart
================================ */
.empty-cart {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* ================================
   Footer
================================ */
.checkout-footer {
    background: #f5f5f5;
    color: #333;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
}

.checkout-footer a {
    color: #333;
    text-decoration: underline;
}

.checkout-footer a:hover {
    color: #000;
}

/* ================================
   Responsive
================================ */
@media (max-width: 768px) {
    .checkout-container {
        padding: 15px;
        margin: 20px auto;
    }

    .checkout-section {
        padding: 15px;
    }

    .checkout-section h3 {
        font-size: 1.15rem;
    }
}

/* Container */
#payment-view {
    padding: 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Title */
#payment-view h2.payment-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
    letter-spacing: -0.3px;
}

/* Form layout */
#paymentForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 420px;
}

/* Labels */
#paymentForm label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

/* Inputs */
#paymentForm input {
    padding: 11px 13px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    background: #fafafa;
    transition: all 0.2s ease;
}

/* Hover */
#paymentForm input:hover {
    border-color: #bdbdbd;
    background: #fff;
}

/* Focus */
#paymentForm input:focus {
    border-color: #ff7a00;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,122,0,0.15);
}

/* Placeholder styling */
#paymentForm input::placeholder {
    color: #aaa;
    font-size: 0.9rem;
}

/* Submit button */
#paymentForm .modal-btn-orange {
    margin-top: 14px;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}

/* Button hover polish */
#paymentForm .modal-btn-orange:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Button active */
#paymentForm .modal-btn-orange:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.review-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.review-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.review-details {
    flex-grow: 1;
}

.review-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.review-qty {
    color: #555;
    font-size: 0.9rem;
}

.review-price {
    font-weight: 700;
    font-size: 1rem;
}

#success-view {
    text-align: center;
}

#success-view button {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    font-size: 1rem;
    margin: 10px auto; /* spacing between buttons */
    display: block;
}

/* ================================
   REVIEW TOTALS ONLY
================================ */

.review-totals {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.review-totals .review-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333; /* adjust if needed */
}

.review-totals .review-total {
    font-weight: 800;
    font-size: 1.2rem;
    color: #2b4506; /* your brand green */
    margin-top: 10px;
}

.payment-modal-content {
    max-height: 90vh;       /* keeps modal inside screen */
    overflow-y: auto;       /* allows scrolling when content is long */
    padding-bottom: 20px;   /* ensures button never touches the edge */
}

/* MOBILE-ONLY HEADER RESIZE — checkout page only */
@media (max-width: 600px) {
    .checkout-page .site-header {
        padding: 6px 0;
    }

    .checkout-page .header-inner {
        gap: 4px;
    }

    /* Logo */
    .checkout-page .logo img {
        height: 32px;
    }

    /* Site title */
    .checkout-page .site-title {
        font-size: 1.1rem;
    }

    /* RETURN TO MENU */
    .checkout-page .return-menu {
        font-size: 0.8rem;
        padding: 2px 4px;
    }

    /* Navigation links (if visible on mobile) */
    .checkout-page .main-nav ul li a {
        font-size: 0.85rem;
    }

    /* SIGN IN / JOIN text */
    .checkout-page #authHeaderText {
        font-size: 0.8rem;
    }

    /* Account icon */
    .checkout-page .user-icon {
        width: 20px;
        height: 20px;
    }

    /* Cart icon */
    .checkout-page .bag-svg {
        width: 22px;
        height: 22px;
    }

    .checkout-page .cart-count {
        font-size: 0.7rem;
        padding: 1px 4px;
    }

    /* Hamburger icon */
    .checkout-page .hamburger {
        font-size: 22px;
        padding: 4px;
    }
}

