/* =============================================
   XARA SHILAJIT - Checkout Page Styles
   ============================================= */

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

body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* Header */
.checkout-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo text {
    font-family: 'Poppins', sans-serif;
}



/* Main Container */
.checkout-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
}

/* Left Side - Form */
.checkout-left {
    background: white;
    padding: 40px;
    border-radius: 12px;
}

.checkout-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.sign-in-link {
    color: #1773B0;
    font-size: 14px;
    text-decoration: none;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #1773B0;
}

.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-helper {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: help;
}

.lock-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Shipping Notice */
.shipping-notice {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Payment Section */
.payment-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.payment-method {
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.payment-method.selected {
    border-color: #1773B0;
}

.payment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-label {
    font-weight: 500;
    margin-left: 10px;
    flex: 1;
}

.card-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-icons img {
    height: 20px;
}

.more-cards {
    font-size: 12px;
    color: #666;
}

.card-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Complete Button */
.complete-button {
    width: 100%;
    background: #121212;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.complete-button:hover {
    background: #000;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.footer-links a {
    color: #1773B0;
    text-decoration: none;
    font-size: 13px;
}

.secure-notice {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 20px;
}

/* Right Side - Order Summary */
.checkout-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-summary {
    background: #fafafa;
    padding: 25px;
    border-radius: 12px;
}

.summary-item {
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #666;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-variant {
    font-size: 12px;
    color: #666;
}

.product-price {
    font-weight: 600;
    font-size: 14px;
}

/* Discount Code */
.discount-code {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.discount-code .form-input {
    flex: 1;
}

.apply-button {
    background: #f5f5f5;
    border: 1px solid #d1d1d1;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.apply-button:hover {
    background: #e5e5e5;
}

/* Summary Totals */
.summary-totals {
    border-top: 1px solid #d1d1d1;
    padding-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row.total {
    border-top: 1px solid #d1d1d1;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
}

.total-label {
    font-size: 18px;
}

.total-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.price {
    font-size: 22px;
    font-weight: 700;
}

.shipping-note {
    color: #666;
    font-size: 13px;
}

.info-icon {
    cursor: help;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-right {
        position: static;
    }
    
    .trust-badges {
        display: none;
    }
}

@media (max-width: 768px) {
    .checkout-left {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
}
