:root {
    --brand-color: #A5C973;
    --brand-dark: #040D06;
    --bg-main: #FFFFFF;
    --bg-sidebar: #FAFAFA;
    --text-main: #333333;
    --text-light: #737373;
    --border-color: #D9D9D9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.4;
}

.checkout-layout {
    display: flex;
    min-height: 100vh;
}

.checkout-main {
    flex: 1.2;
    padding: 4rem 5% 4rem 15%;
    border-right: 1px solid var(--border-color);
}

.checkout-sidebar {
    flex: 0.8;
    background: var(--bg-sidebar);
    padding: 4rem 15% 4rem 5%;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.breadcrumb strong { color: var(--text-main); font-weight: 500; }

.form-section {
    margin-bottom: 3rem;
}

.form-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.row {
    display: flex;
    gap: 1rem;
}

.half { flex: 1; }

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

.input-group label {
    display: none; /* Shopify style floating labels in real life, hiding for simplicity here */
}

input, select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    color: var(--text-main);
    background: white;
    transition: all 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 2px rgba(165,201,115,0.3);
}

.payment-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.payment-method {
    border: 1px solid var(--brand-color);
    background: rgba(165,201,115,0.05);
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-checkout {
    background: var(--brand-dark);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #1a301d;
}

.return-link {
    color: var(--brand-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.return-link:hover { text-decoration: underline; }

.checkout-footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1.5rem;
}

.checkout-footer a {
    color: var(--brand-color);
    text-decoration: none;
    font-size: 0.8rem;
}

/* Sidebar */
.product-line {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-image {
    position: relative;
    width: 65px;
    height: 65px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
}

.product-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(115,115,115,0.9);
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.product-info h3 { font-size: 0.95rem; font-weight: 500; }
.product-info p { font-size: 0.8rem; color: var(--text-light); }

.product-price {
    margin-left: auto;
    text-align: right;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.8rem;
    display: block;
}

.discount-code {
    display: flex;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.discount-code button {
    background: #E8E8E8;
    color: #737373;
    border: 1px solid var(--border-color);
    padding: 0 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: not-allowed;
}

.totals {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.totals-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.totals-line span:last-child { color: var(--text-main); }

.total-final {
    font-size: 1.2rem;
    color: var(--text-main);
    align-items: center;
    margin-top: 1rem;
}

.total-final span:last-child {
    font-size: 1.5rem;
    font-weight: 500;
}

.security-badges {
    text-align: center;
    color: #4CAF50;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-layout {
        flex-direction: column-reverse;
    }
    .checkout-main, .checkout-sidebar {
        padding: 2rem 5%;
        border-right: none;
    }
    .checkout-sidebar {
        border-bottom: 1px solid var(--border-color);
    }
}
