/* ========================================
   CART PAGE STYLES - SieuMua247
   ======================================== */

/* Breadcrumb */
.cart-breadcrumb {
    background: var(--bg-light);
    padding: 12px 0;
    font-size: 13px;
}

.cart-breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.cart-breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page Title */
.cart-title-section {
    background: #fff;
    padding: 30px 0;
    text-align: center;
}

.cart-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue-dark);
    margin: 0;
}

/* Cart Page */
.cart-page {
    background: var(--bg-light);
    padding: 30px 0 50px;
    min-height: 400px;
}

.cart-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Cart Items */
.cart-items {
    flex: 1;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-checkbox {
    flex: 0 0 20px;
}

.cart-item-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cart-item-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-price .old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.cart-item-price .current-price {
    font-size: 15px;
    font-weight: 600;
    color: #ef4444;
}


/* Quantity */
.cart-item-quantity {
    flex: 0 0 100px;
}

.cart-quantity-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-dark);
    transition: background 0.3s;
}

.cart-qty-btn:hover {
    background: var(--border-color);
}

.cart-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

/* Item Total */
.cart-item-total {
    flex: 0 0 120px;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: #ef4444;
}

/* Remove Button */
.cart-item-remove {
    flex: 0 0 30px;
}

.btn-remove-item {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 18px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    color: #ef4444;
}

/* Cart Summary */
.cart-summary {
    flex: 0 0 320px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.cart-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.cart-summary-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
}

.cart-summary-label {
    color: var(--text-gray);
}

.cart-summary-value {
    color: var(--text-dark);
    font-weight: 500;
}

.cart-summary-row.total .cart-summary-label {
    color: #ef4444;
    font-weight: 600;
}

.cart-summary-row.total .cart-summary-value {
    color: #ef4444;
    font-size: 20px;
    font-weight: 700;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: var(--primary-blue-dark);
    color: #fff;
}


/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: var(--radius-md);
}

.cart-empty-icon {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.cart-empty-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cart-empty-text {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-continue-shopping:hover {
    background: var(--primary-blue-dark);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-wrapper {
        flex-direction: column;
    }
    
    .cart-summary {
        flex: 0 0 100%;
        width: 100%;
        position: static;
    }
}

@media (max-width: 767px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .cart-item-checkbox {
        order: 1;
    }
    
    .cart-item-image {
        order: 2;
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }
    
    .cart-item-info {
        order: 3;
        flex: 1 1 calc(100% - 120px);
    }
    
    .cart-item-quantity {
        order: 4;
        flex: 0 0 auto;
    }
    
    .cart-item-total {
        order: 5;
        flex: 1;
        text-align: left;
    }
    
    .cart-item-remove {
        order: 6;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .btn-remove-item {
        width: 28px;
        height: 28px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }
    
    .cart-item {
        position: relative;
        padding-right: 45px;
    }
    
    .cart-title {
        font-size: 22px;
    }
}


/* ========================================
   CHECKOUT PAGE STYLES - Figma Design
   ======================================== */

/* Checkout Page */
.checkout-page {
    background: #f5f5f5;
    padding: 20px 0 50px;
    min-height: 500px;
}

.checkout-title-section {
    background: transparent;
    padding: 20px 0 15px;
    text-align: center;
    margin-bottom: 0;
}

.checkout-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    text-transform: uppercase;
}

.checkout-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Checkout Left Column */
.checkout-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Checkout Section Box - Clean white cards */
.checkout-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: visible;
}

/* Section Header - Simple bold title, no blue background */
.checkout-section-header {
    background: transparent;
    color: var(--text-dark);
    padding: 15px 20px 10px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: none;
}

.checkout-section-body {
    padding: 0 20px 20px;
}

/* Product Table - Clean design */
.checkout-product-table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-product-table th {
    background: transparent;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.checkout-product-table th:last-child,
.checkout-product-table td:last-child {
    text-align: right;
}

.checkout-product-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.checkout-product-table tr:last-child td {
    border-bottom: none;
}

.checkout-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-product-img {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-product-name {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

.checkout-product-price {
    font-weight: 600;
    color: #ef4444;
}

/* Form Styles - Clean and simple */
.checkout-form-group {
    margin-bottom: 12px;
}

.checkout-form-group:last-child {
    margin-bottom: 0;
}

.checkout-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.checkout-form-label .required {
    color: #ef4444;
}

.checkout-form-input,
.checkout-form-select,
.checkout-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    transition: border-color 0.2s;
}

.checkout-form-input:focus,
.checkout-form-select:focus,
.checkout-form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.checkout-form-input::placeholder {
    color: #999;
}

.checkout-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    cursor: pointer;
}

.checkout-form-textarea {
    min-height: 70px;
    resize: vertical;
}

.checkout-form-row {
    display: flex;
    gap: 12px;
}

.checkout-form-row .checkout-form-group {
    flex: 1;
}

/* Location Selects Row */
.checkout-location-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Delivery Method Toggle */
.delivery-method-content {
    display: none;
}

.delivery-method-content.active {
    display: block;
}

/* Checkout Right Column - Payment Box */
.checkout-right {
    flex: 0 0 320px;
}

.checkout-payment-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: visible;
    position: sticky;
    top: 20px;
}

/* Payment Header - Simple bold title */
.checkout-payment-header {
    background: transparent;
    color: var(--text-dark);
    padding: 15px 20px 10px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: none;
}

.checkout-payment-body {
    padding: 0 20px 20px;
}

.checkout-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: none;
}

.checkout-payment-row:last-of-type {
    border-bottom: none;
}

.checkout-payment-label {
    color: #666;
}

.checkout-payment-value {
    color: var(--text-dark);
    font-weight: 500;
}

.checkout-payment-row.total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    border-bottom: none;
}

.checkout-payment-row.total .checkout-payment-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

.checkout-payment-row.total .checkout-payment-value {
    color: #ef4444;
    font-size: 18px;
    font-weight: 700;
}

/* Voucher Input */
.checkout-voucher {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.checkout-voucher-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.checkout-voucher-btn {
    padding: 8px 14px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.checkout-voucher-btn:hover {
    background: var(--primary-blue-dark);
}

/* Payment Method Section */
.checkout-payment-method {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.checkout-payment-method-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Submit Button - Blue color per Figma */
.btn-place-order {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-place-order:hover {
    background: var(--primary-blue-dark);
}

/* Office Selection */
.checkout-office-select {
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 991px) {
    .checkout-wrapper {
        flex-direction: column;
    }
    
    .checkout-right {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .checkout-payment-box {
        position: static;
    }
}

@media (max-width: 767px) {
    .checkout-title {
        font-size: 18px;
    }
    
    .checkout-location-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkout-product-table th:nth-child(2),
    .checkout-product-table td:nth-child(2) {
        display: none;
    }
    
    .checkout-product-name {
        font-size: 13px;
    }
    
    .checkout-product-img {
        width: 50px;
        height: 50px;
    }
    
    .checkout-section-header {
        padding: 12px 15px 8px;
        font-size: 14px;
    }
    
    .checkout-section-body {
        padding: 0 15px 15px;
    }
    
    .checkout-payment-header {
        padding: 12px 15px 8px;
        font-size: 14px;
    }
    
    .checkout-payment-body {
        padding: 0 15px 15px;
    }
}

/* Modal Styles for Checkout */
.checkout-modal .modal-content {
    border-radius: 8px;
    border: none;
}

.checkout-modal .modal-header {
    background: var(--primary-blue);
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
}

.checkout-modal .modal-header .close {
    color: #fff;
    opacity: 1;
}

.checkout-modal .modal-body {
    padding: 20px;
}

.checkout-modal .modal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 12px 20px;
}

/* Address Item in Modal */
.checkout-address-item {
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.checkout-address-item:hover {
    border-color: var(--primary-blue);
}

.checkout-address-item input[type="radio"] {
    width: 16px;
    height: 16px;
}

.checkout-address-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
}

.checkout-add-address-link {
    color: var(--primary-blue);
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
}

.checkout-add-address-link:hover {
    text-decoration: underline;
}


/* ========================================
   ORDER SUCCESS PAGE STYLES - Figma Design
   ======================================== */

.order-success-page {
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.order-success-box {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/* Success Icon - Blue circle with checkmark */
.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-icon i {
    font-size: 40px;
    color: #fff;
}

/* Success Title */
.success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px;
    text-transform: uppercase;
}

/* Success Message */
.success-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 35px;
}

/* Action Buttons */
.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-success-primary,
.btn-success-secondary {
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 180px;
    text-align: center;
}

.btn-success-primary {
    background: var(--primary-blue);
    color: #fff;
    border: 2px solid var(--primary-blue);
}

.btn-success-primary:hover {
    background: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    color: #fff;
}

.btn-success-secondary {
    background: #fff;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-success-secondary:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .success-title {
        font-size: 22px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
    }
    
    .success-icon i {
        font-size: 35px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .btn-success-primary,
    .btn-success-secondary {
        width: 100%;
    }
}
