/* ── CHECKOUT PAGE SPECIFIC STYLES (Standard Redesign) ── */
:root {
    --accent: #b78529;
    --primary: #222;
}
body.checkout-page {
    background-color: #f9f9f9;
}

.checkout-container {
    max-width: 1100px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.checkout-title {
    font-size: 28px;
    font-family: var(--font-title);
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 60% 36%;
    gap: 4%;
    align-items: start;
}

/* ── LEFT COLUMN: FORMS ── */
.checkout-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-grid.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(183, 133, 41, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio Options (Shipping & Payment) */
.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #bbb;
}

.radio-option.selected {
    border-color: var(--accent);
    background: rgba(183, 133, 41, 0.03);
}

.radio-option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-option-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-logo {
    height: 24px;
    object-fit: contain;
}

.radio-option-desc {
    font-size: 13px;
    color: #777;
}

.radio-option-price {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Payment Extra Info Box (Bank Transfer) */
.payment-extra {
    margin: -4px 0 16px 0;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-size: 13px;
    display: none;
    line-height: 1.6;
    color: #555;
}

.radio-option.selected + .payment-extra {
    display: block;
    border-color: var(--accent);
}

.bank-info {
    margin-top: 10px;
    padding: 15px;
    background: #f2f6f9;
    border: 1px solid #d9e2eb;
    border-radius: 4px;
    color: #333;
}

.bank-info strong {
    color: #000;
}

/* ── RIGHT COLUMN: ORDER SUMMARY ── */
.order-summary-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Mini Items List */
.mini-cart-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-right: 10px;
}

.mini-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.mini-item-img {
    width: 64px;
    height: 64px;
    border: 1px solid #eee;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.mini-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(114, 114, 114, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.mini-item-info {
    flex: 1;
}

.mini-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.mini-item-meta {
    font-size: 12px;
    color: #888;
}

.mini-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Promo Code */
.promo-box {
    display: flex;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.promo-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.promo-box input:focus {
    outline: none;
    border-color: #999;
}

.promo-box button {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 0 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.promo-box button:hover {
    background: #e4e4e4;
}

/* Price Lines */
.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
}

.price-line .val {
    font-weight: 500;
    color: #333;
}

.price-line.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.price-line.total .val {
    font-size: 22px;
    color: var(--accent);
}

/* Submit Button */
.btn-place-order {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-place-order:hover {
    background: #9c6c19;
}

/* Responsive */
@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-summary-panel {
        position: static;
    }
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
