/* Checkout Page Styles */

.checkout-container {
    padding: 16px;
    padding-bottom: 200px;
    max-width: 600px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 32px;
    font-weight: 600;
    font-style: italic;
    margin: 20px 0 24px;
}

/* Tabs */
.checkout-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #000;
    border-bottom-color: #000;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.change-address-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    padding: 4px;
}

/* Address Card */
.address-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.address-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.address-name {
    font-size: 16px;
    font-weight: 600;
}

.address-phone {
    font-size: 16px;
    font-weight: 600;
}

.badge-default {
    background: #1a1a1a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.edit-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

.address-details {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Shipping Info */
.shipping-info {
    margin-bottom: 32px;
}

.info-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fulfilled-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

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

.time-item label {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.time-value {
    font-size: 15px;
    font-weight: 600;
}

.shipping-note {
    display: flex;
    gap: 12px;
    background: #FFF9E6;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-700);
}

.shipping-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Payment */
.payment-note {
    background: #F0F9FF;
    border-left: 3px solid #0EA5E9;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* Product Summary */
.product-summary {
    margin-bottom: 32px;
}

.product-item {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--gray-100);
}

.product-details {
    flex: 1;
}

.product-details h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-code {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.product-badge {
    display: inline-block;
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-sizes {
    font-size: 14px;
    margin-bottom: 12px;
}

.product-pricing {
    margin-bottom: 12px;
}

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

.price-row.total {
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid var(--gray-200);
    margin-top: 8px;
}

.product-time {
    background: #FFF9E6;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-block;
}

/* Bottom Summary */
.checkout-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 20px 16px;
    z-index: 100;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.summary-label {
    font-size: 18px;
    font-weight: 600;
}

.summary-prices {
    text-align: right;
}

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

.no-vat-price {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.request-quote-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.request-quote-btn:active {
    transform: scale(0.98);
}

.terms-text {
    font-size: 11px;
    line-height: 1.5;
    color: var(--gray-500);
    text-align: center;
}

.terms-text a {
    color: var(--gray-700);
    text-decoration: underline;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: flex-end;
}

.modal-overlay.active {
    display: flex;
}

.modal-panel {
    background: #fff;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #000;
}

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

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 16px;
}

.search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input svg {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
}

.search-input input {
    padding-left: 44px;
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    cursor: pointer;
}

.save-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.save-btn:active {
    transform: scale(0.98);
}

/* Shipping Modal */
.address-search {
    margin-bottom: 24px;
}

.add-address-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.saved-addresses {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-option {
    display: flex;
    gap: 12px;
    cursor: pointer;
}

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

.address-card-compact {
    flex: 1;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.address-card-compact .address-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.address-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

.edit-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}
