/* ==========================================================================
   CHECKOUT PAGE STYLES (Women Accessories)
   File: public/assets/css/checkout.css
   ========================================================================== */

/* Breadcrumb Bar (#f8f8f8) */
.checkout-breadcrumb-bar {
    width: 100%;
    background-color: #f8f8f8;
    padding-top: clamp(1.4rem, 1.6vw, 2.0rem);
    padding-bottom: clamp(1.4rem, 1.6vw, 2.0rem);
    border-bottom: 1px solid #f0f0f0;
}

.checkout-breadcrumb-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

.checkout-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.35rem);
    color: #595959;
    line-height: 1;
    margin: 0;
}

.checkout-breadcrumb-link {
    color: #595959;
    text-decoration: none;
    transition: color 0.2s ease;
}

.checkout-breadcrumb-link:hover {
    color: #111111;
    text-decoration: none;
}

.checkout-breadcrumb-sep {
    color: #777777;
    margin: 0 0.2rem;
}

.checkout-breadcrumb-badge {
    background-color: #ff97aa;
    color: #111111;
    font-weight: 500;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    padding: 0.45rem 1.4rem;
    border-radius: 5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.2rem 0.6rem rgba(255, 151, 170, 0.25);
}

/* ==========================================================================
   CHECKOUT MAIN SECTION
   ========================================================================== */

.checkout-main-section {
    background-color: #ffffff;
    padding-top: clamp(4.0rem, 5.2vw, 6.4rem);
    padding-bottom: clamp(6.0rem, 8.0vw, 10.0rem);
    width: 100%;
}

.checkout-main-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

/* Title & Subtitle */
.checkout-header-block {
    margin-bottom: clamp(3.2rem, 4.0vw, 4.8rem);
}

.checkout-page-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.8rem, 3.4vw, 4.4rem);
    font-weight: 500;
    line-height: 1.15;
    color: #111111;
    margin-top: 0;
    margin-bottom: clamp(0.8rem, 1.0vw, 1.2rem);
    letter-spacing: -0.015em;
}

.checkout-page-subtitle {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.35rem, 1.05vw, 1.5rem);
    font-weight: 400;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

/* Common Section Heading in Checkout */
.checkout-step-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.6rem, 1.3vw, 1.85rem);
    font-weight: 500;
    color: #111111;
    margin: 0;
    line-height: 1.3;
}

.checkout-step-block {
    margin-bottom: clamp(3.2rem, 4.0vw, 4.6rem);
}

/* ==========================================================================
   STEP 1: CONTACT INFORMATION
   ========================================================================== */

.checkout-label {
    display: block;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 0.8rem;
}

.checkout-input {
    width: 100%;
    height: clamp(4.6rem, 4.2vw, 5.2rem);
    border-radius: 5rem;
    border: 1px solid #e8e8e8;
    background-color: #ffffff;
    padding: 0 2.2rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #111111;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-input:focus {
    border-color: #35f3ff;
    box-shadow: 0 0 0 3px rgba(53, 243, 255, 0.25);
}

.checkout-input::placeholder {
    color: #999999;
}

/* ==========================================================================
   STEP 2: DELIVERY ADDRESS
   ========================================================================== */

.delivery-address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 1.8rem;
}

.btn-checkout-add-address {
    height: clamp(4.0rem, 3.6vw, 4.6rem);
    padding: 0 clamp(2.0rem, 2.4vw, 3.0rem);
    border-radius: 5rem;
    background-color: #35f3ff !important;
    color: #000000 !important;
    border: none;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0.2rem 1.0rem rgba(53, 243, 255, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-checkout-add-address:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 1.4rem rgba(53, 243, 255, 0.5);
    color: #000000 !important;
}

.btn-checkout-add-address .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-checkout-add-address:hover .btn-arrow {
    transform: translate(0.2rem, -0.2rem);
}

/* Inline Address Form (Opens at same place) */
.checkout-address-form-wrap {
    width: 100%;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
}

.checkout-address-form-wrap .row {
    --bs-gutter-y: 1.6rem;
    --bs-gutter-x: 1.6rem;
}

.btn-save-address {
    height: clamp(4.8rem, 4.2vw, 5.2rem);
    padding: 0 clamp(3.0rem, 3.6vw, 4.4rem);
    border-radius: 5rem;
    background-color: #35f3ff !important;
    color: #000000 !important;
    border: none;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0.3rem 1.4rem rgba(53, 243, 255, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-save-address:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.8rem rgba(53, 243, 255, 0.5);
    color: #000000 !important;
}

.btn-save-address .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-save-address:hover .btn-arrow {
    transform: translate(0.25rem, -0.25rem);
}

.btn-cancel-address {
    height: clamp(4.8rem, 4.2vw, 5.2rem);
    padding: 0 clamp(2.2rem, 2.8vw, 3.2rem);
    border-radius: 5rem;
    background-color: #f5f5f5 !important;
    color: #555555 !important;
    border: none;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-cancel-address:hover {
    background-color: #e5e5e5 !important;
    color: #111111 !important;
}

/* Address Cards List */
.checkout-address-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.checkout-address-card {
    border: 1px solid #e8e8e8;
    border-radius: 5rem;
    padding: 1.4rem 2.8rem;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-address-card:hover {
    border-color: #d0d0d0;
}

.checkout-address-card.is-selected {
    border-color: #e0e0e0;
    background-color: #ffffff;
}

.address-card-left {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex: 1 1 auto;
    min-width: 0;
}

/* Custom Radio Dot */
.address-radio {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 1.5px solid #d5d5d5;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.checkout-address-card.is-selected .address-radio {
    border-color: #00e5ff;
}

.address-radio-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.checkout-address-card.is-selected .address-radio-dot {
    background-color: #00e5ff;
}

/* Icon Box */
.address-icon-box {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 1.0rem;
    background-color: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.address-icon-box svg,
.address-icon-box i {
    font-size: 1.8rem;
}

.address-icon-home {
    color: #00c4b4;
}

.address-icon-work {
    color: #10b981;
}

.address-icon-other {
    color: #64748b;
}

/* Address Info Text */
.address-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.address-tag {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777777;
    line-height: 1;
}

.address-text {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.3rem, 1.0vw, 1.4rem);
    font-weight: 400;
    color: #111111;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action Icons */
.address-card-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-shrink: 0;
}

.btn-address-action {
    background: transparent;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
}

.btn-address-edit {
    color: #64748b;
}

.btn-address-edit:hover {
    color: #111111;
    transform: scale(1.1);
}

.btn-address-delete {
    color: #ef4444;
}

.btn-address-delete:hover {
    color: #dc2626;
    transform: scale(1.1);
}

/* ==========================================================================
   STEP 3: SECURE PAYMENT
   ========================================================================== */

.checkout-payment-card {
    border: 1px solid #e8e8e8;
    border-radius: 5rem;
    padding: 1.6rem 2.8rem;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.payment-radio {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 1.5px solid #10b981;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-radio-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: #10b981;
}

.payment-method-label {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666666;
    line-height: 1;
}

/* ==========================================================================
   STEP 4: REVIEW ORDER
   ========================================================================== */

.checkout-review-list {
    display: flex;
    flex-direction: column;
}

.checkout-review-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: clamp(2.0rem, 2.4vw, 2.8rem);
    padding-bottom: clamp(2.0rem, 2.4vw, 2.8rem);
    border-bottom: 1px solid #f5f5f5;
    gap: 1.6rem;
}

.checkout-review-product {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 2.0vw, 2.4rem);
    flex: 1 1 auto;
    min-width: 0;
}

.checkout-review-img-wrap {
    width: clamp(5.6rem, 6.0vw, 6.8rem);
    height: clamp(5.6rem, 6.0vw, 6.8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-review-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.checkout-review-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.4rem, 1.1vw, 1.6rem);
    font-weight: 500;
    color: #111111;
    margin: 0;
    line-height: 1.3;
}

.checkout-review-qty {
    width: 14rem;
    text-align: center;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.checkout-review-price {
    width: 14rem;
    text-align: right;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.45rem, 1.15vw, 1.65rem);
    font-weight: 600;
    color: #111111;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   STICKY ORDER SUMMARY CARD
   ========================================================================== */

.checkout-summary-col {
    padding-left: clamp(1.6rem, 2.4vw, 3.6rem);
}

.checkout-summary-sticky {
    position: sticky;
    top: 10rem;
    z-index: 10;
}

/* Reusing .order-summary-card styling from cart.css */

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 991.98px) {
    .checkout-summary-col {
        padding-left: 0;
        margin-top: 4.8rem;
    }

    .checkout-summary-sticky {
        position: static;
        max-width: 52rem;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .delivery-address-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .btn-checkout-add-address {
        align-self: flex-start;
    }

    .checkout-address-card {
        border-radius: 2.4rem;
        padding: 1.4rem 1.8rem;
    }

    .address-text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .checkout-payment-card {
        border-radius: 2.4rem;
        padding: 1.4rem 1.8rem;
    }

    .checkout-review-item {
        flex-wrap: wrap;
        gap: 1.0rem;
    }

    .checkout-review-product {
        width: 100%;
    }

    .checkout-review-qty {
        width: auto;
        text-align: left;
        padding-left: clamp(7.0rem, 8.0vw, 9.2rem);
    }

    .checkout-review-price {
        width: auto;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .address-card-actions {
        gap: 0.8rem;
    }

    .checkout-input {
        padding: 0 1.6rem;
    }
}
