/* ===== CHECKOUT PAGE STYLES ===== */
/* Premium boutique checkout — gold on black luxury aesthetic */

.checkout-body {
    background-color: #050505;
    color: #F0F0F0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Back Navigation */
.checkout-back {
    position: fixed;
    top: 28px;
    left: 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #A0A0A0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkout-back:hover {
    color: #D4AF37;
}

.checkout-back svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.checkout-back:hover svg {
    transform: translateX(-4px);
}

/* Page Title */
.checkout-header {
    text-align: center;
    padding: 120px 40px 40px;
}

.checkout-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #D4AF37;
    margin: 0 0 8px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.checkout-header p {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.08em;
    margin: 0;
    max-width: none;
}

/* Main Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

/* ===== LEFT: ORDER SUMMARY ===== */
.order-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 8px;
    padding: 36px;
}

.order-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #D4AF37;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Cart Items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item:last-of-type {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: #e0e0e0;
}

.cart-item-details {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.05em;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 500;
    color: #D4AF37;
    white-space: nowrap;
}

.cart-item-free {
    color: #4CAF50;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Divider */
.summary-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.12);
    margin: 20px 0;
}

/* Shipping Options */
.shipping-options {
    margin: 0 0 4px;
}

.shipping-options h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0 0 12px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.shipping-option.selected {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.04);
}

.shipping-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #555;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.shipping-option input[type="radio"]:checked {
    border-color: #D4AF37;
}

.shipping-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #D4AF37;
    border-radius: 50%;
}

/* Watch Image in Checkout */
.cart-watch-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: radial-gradient(circle, #1a1a1a 0%, #050505 70%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-watch-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.shipping-option-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-option-name {
    font-size: 0.85rem;
    color: #c0c0c0;
}

.shipping-option-price {
    font-size: 0.85rem;
    color: #D4AF37;
    font-weight: 500;
}

/* Coupon */
.coupon-section {
    margin: 0 0 4px;
}

.coupon-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0 0 12px;
}

.coupon-input-row {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
    text-transform: uppercase;
}

.coupon-input:focus {
    border-color: rgba(212, 175, 55, 0.4);
}

.coupon-apply-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-apply-btn:hover {
    background: rgba(212, 175, 55, 0.08);
}

.coupon-msg {
    font-size: 0.78rem;
    margin: 8px 0 0;
    min-height: 18px;
}

.coupon-msg.success {
    color: #4CAF50;
}

.coupon-msg.error {
    color: #f44336;
}

/* Totals */
.summary-totals {
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #888;
}

.summary-row.discount {
    color: #4CAF50;
}

.summary-row.total {
    font-size: 1.15rem;
    font-weight: 500;
    color: #D4AF37;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

/* ===== RIGHT: SHIPPING FORM ===== */
.shipping-form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 8px;
    padding: 36px;
}

.shipping-form-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #D4AF37;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #777;
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(212, 175, 55, 0.5);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option {
    background: #111;
    color: #e0e0e0;
}

/* Payment Card Section */
.payment-section {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.payment-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D4AF37;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-section h3 svg {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

.card-input-group {
    position: relative;
}

.card-input-group input {
    padding-left: 44px;
    letter-spacing: 0.15em;
    font-variant-numeric: tabular-nums;
}

.card-input-group .card-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 16px;
    opacity: 0.4;
}

.card-row-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.secure-badge svg {
    width: 13px;
    height: 13px;
    opacity: 0.6;
}

/* Order Number in Success */
.order-number-display {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #D4AF37;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    padding: 10px 24px;
    display: inline-block;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.04);
}

/* Place Order Button */
.place-order-btn {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: linear-gradient(135deg, #D4AF37, #b8962e);
    border: none;
    color: #050505;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.place-order-btn:hover {
    background: linear-gradient(135deg, #e8c34a, #D4AF37);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

.place-order-btn:active {
    transform: translateY(0);
}

.place-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Order Success Overlay */
.order-success-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.order-success-overlay.active {
    display: flex;
}

.order-success-card {
    text-align: center;
    max-width: 460px;
    padding: 60px 40px;
    animation: successFadeIn 0.6s ease forwards;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-check {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
}

.success-check circle {
    stroke: #D4AF37;
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: successCircle 0.6s 0.2s ease forwards;
}

.success-check path {
    stroke: #D4AF37;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: successTick 0.4s 0.7s ease forwards;
}

@keyframes successCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes successTick {
    to {
        stroke-dashoffset: 0;
    }
}

.order-success-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    border: none;
    padding: 0;
}

.order-success-card p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: none;
}

.success-home-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.success-home-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: #D4AF37;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 40px;
    grid-column: 1 / -1;
}

.empty-cart h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #D4AF37;
    margin: 0 0 16px;
    border: none;
    padding: 0;
}

.empty-cart p {
    color: #666;
    margin: 0 0 32px;
    max-width: none;
}

.empty-cart a {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #D4AF37, #b8962e);
    color: #050505;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.empty-cart a:hover {
    background: linear-gradient(135deg, #e8c34a, #D4AF37);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

/* Footer */
.checkout-footer {
    text-align: center;
    padding: 40px;
    font-size: 0.75rem;
    color: #444;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 1px solid rgba(212, 175, 55, 0.06);
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 60px;
    }

    .checkout-header {
        padding: 100px 20px 30px;
    }

    .checkout-back {
        left: 20px;
        top: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-summary,
    .shipping-form-section {
        padding: 24px;
    }
}