body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
    background: radial-gradient(circle at top, #f9fafb, #e5e7eb);
    padding-top: 88px;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(15,23,42,0.12);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: -5px;
    white-space: nowrap;
}

.brand img {
    margin-top: 10px;
    width: 75px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
}

.brand span {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: #111827;
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: 18px;
}

.main-nav a {
    text-decoration: none;
    color: #111827;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.main-nav a:hover {
    background-color: #111827;
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #111827;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.12);
        min-width: 170px;
        border-radius: 0 0 12px 12px;
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav a {
        padding: 10px 18px;
        border-radius: 0;
    }
    .menu-toggle {
        display: block;
    }
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 24px auto 40px;
    padding: 0 24px;
    box-sizing: border-box;
}

.checkoutLayout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 30px;
    border-radius: 24px;
    background-color: #f9fafb;
    padding: 24px 24px 28px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}

.returnCart h1 {
    margin-bottom: 16px;
    font-size: 1.9rem;
    color: #111827;
}

.returnCart .list .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}

.returnCart .list .item img {
    height: 80px;
    width: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: #f3f4f6;
}

.returnCart .info {
    flex: 1;
    margin-left: 12px;
}

.returnCart .info .name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #111827;
}

.returnCart .info .price {
    font-size: 0.9rem;
    color: #4b5563;
}

.returnCart .quantity {
    font-weight: 600;
    margin-right: 10px;
    color: #111827;
}

.returnPrice {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.deleteIcon {
    cursor: pointer;
    color: #ef4444;
    font-size: 20px;
    margin-left: 10px;
    padding: 0 6px;
}

.checkoutLayout .right {
    background: linear-gradient(135deg, #2563eb, #22c55e);
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(37,99,235,0.45);
    box-sizing: border-box;
}

.checkoutLayout .right h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.9rem;
}

.summary {
    background-color: rgba(15,23,42,0.18);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 18px;
}

.summary .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.summary .row div:nth-child(1) {
    font-size: 0.95rem;
}

.summary .row div:nth-child(2) {
    font-weight: 700;
    font-size: 1.2rem;
}

.buttonCheckout {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 999px;
    background-color: #16a34a;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(22,163,74,0.65);
}

.buttonCheckout:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(21,128,61,0.8);
}

.buttonCheckout:active {
    transform: translateY(0);
}

.promoCode {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background-color: rgba(15,23,42,0.18);
}

.promoCode h2 {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.promoCode p {
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.promoInput {
    position: relative;
    width: 100%;
}

.promoInput input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 110px 10px 14px;
    border-radius: 999px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.promoInput button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background-color: #0f172a;
    color: white;
    border: none;
    padding: 8px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
}

.promoInput button:hover {
    background-color: #020617;
}

.site-footer {
    background: radial-gradient(circle at top left, #111827, #020617);
    color: #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    padding: 24px 12px 14px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1 1 220px;
    min-width: 0;
}

.footer-col h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f9fafb;
}

.footer-col p,
.footer-col a,
.footer-col li {
    font-size: 0.85rem;
    color: #d1d5db;
    margin: 4px 0;
    line-height: 1.5;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col a {
    text-decoration: none;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 16px;
    border-top: 1px solid rgba(55,65,81,0.7);
    padding-top: 10px;
}

/* CART MODAL */

.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 200;
}

.cart-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-modal {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 22px 18px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.6);
    transform: translateY(12px);
    transition: transform 0.2s ease;
}

.cart-modal-overlay.open .cart-modal {
    transform: translateY(0);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #111827;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0 4px;
}

.cart-modal-body {
    max-height: 340px;
    overflow-y: auto;
}

.cart-modal-empty {
    text-align: center;
    padding: 24px 10px;
    font-size: 0.98rem;
    color: #6b7280;
}

.cart-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background-color: #f9fafb;
}

.cart-modal-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #e5e7eb;
    object-fit: contain;
}

.cart-modal-info {
    flex: 1;
    margin-left: 8px;
}

.cart-modal-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.cart-modal-meta {
    font-size: 0.85rem;
    color: #4b5563;
}

.cart-modal-qty {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
}

.cart-modal-remove {
    font-size: 18px;
    color: #ef4444;
    cursor: pointer;
    padding-left: 4px;
}

.cart-modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.cart-modal-footer button {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

#cart-keep-shopping {
    background-color: #2563eb;
    color: #ffffff;
}

#cart-close-bottom {
    background-color: #e5e7eb;
    color: #111827;
}

@media (max-width: 900px) {
    .container {
        padding: 0 16px;
    }
    .checkoutLayout {
        grid-template-columns: 1fr;
    }
    .checkoutLayout .right {
        order: 2;
    }
    .returnCart {
        order: 1;
    }
}

@media (max-width: 600px) {
    .returnCart .list .item {
        flex-direction: column;
        align-items: flex-start;
    }
    .returnCart .quantity,
    .returnPrice,
    .deleteIcon {
        align-self: flex-end;
    }
    .cart-modal {
        margin: 0 10px;
    }
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}