/* ========================================
   MODERN CHECKOUT / CART - Compact & Intuitive
   ======================================== */

.modern-checkout-page {
    background: #f8f8f8;
    padding: 30px 0 40px;
}

.modern-checkout-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Checkout Header */
.checkout-header {
    text-align: center;
    margin-bottom: 24px;
}

.modern-checkout-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 8px;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffd700;
    color: #2c2c2c;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
}

.checkout-summary-badge {
    font-size: 14px;
    color: #666;
}

.checkout-summary-badge strong {
    color: #e53935;
}

/* Cart Table */
.modern-cart-table {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-desktop-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-desktop-table thead th {
    padding: 12px 10px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-desktop-table tbody td {
    padding: 16px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-desktop-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-desktop-table img {
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-product-name {
    text-decoration: none;
    color: #2c2c2c;
    display: block;
    line-height: 1.4;
}

.cart-product-name:hover {
    color: #e53935;
    text-decoration: none;
}

.cart-unit-price {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.cart-item-total b {
    color: #2c2c2c;
    font-size: 16px;
}

/* Quantity Controls - Modern Buttons */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-btn-modern {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.qty-btn-modern:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #2c2c2c;
}

.qty_cos {
    width: 48px;
    text-align: center;
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    background: #fafafa;
}

.stergeprod {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: #ccc;
    font-size: 11px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.stergeprod:hover {
    color: #ff4444;
    text-decoration: none;
}

/* Mobile Card Layout */
.cart-mobile-cards {
    display: none;
}

.cart-mobile-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cart-mobile-img {
    flex-shrink: 0;
}

.cart-mobile-img img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
}

.cart-mobile-details {
    flex: 1;
    min-width: 0;
}

.cart-mobile-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-mobile-name:hover {
    color: #e53935;
}

.cart-mobile-price {
    font-size: 16px;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 8px;
}

.cart-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-mobile-actions .stergeprod {
    margin-top: 0;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f8f8f8;
}

.cart-mobile-actions .stergeprod:hover {
    background: #fff0f0;
}

/* Cart Total */
.modern-cart-total {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: right;
}

.modern-cart-total .total-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.modern-cart-total .total-line.grand {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
}

.modern-cart-total .total-line .amount {
    color: #e53935;
}

.modern-cart-total .vat-note {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Cart Actions Section */
.cart-actions-section {
    margin-top: 24px;
    text-align: center;
}

.cart-main-actions {
    margin-bottom: 20px;
}

.cart-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cart-btn-checkout {
    background: #ffd700;
    color: #2c2c2c;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-btn-checkout:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    text-decoration: none;
    color: #2c2c2c;
}

/* Alternative Order */
.cart-alternative-order {
    padding: 20px;
    background: #f0faf0;
    border-radius: 10px;
    border: 1px solid #c8e6c9;
    margin-bottom: 16px;
}

.alt-order-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.alt-order-buttons {
    display: flex;
    gap: 10px;
}

.alt-order-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.alt-btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.alt-btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.alt-btn-whatsapp i {
    font-size: 18px;
}

.alt-btn-phone {
    background: #fff;
    color: #2c2c2c;
    border: 2px solid #e0e0e0;
}

.alt-btn-phone:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    text-decoration: none;
}

.cart-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-back-link:hover {
    color: #2c2c2c;
    text-decoration: none;
}

/* Checkout Form - Compact */
.modern-checkout-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.modern-form-section {
    margin-bottom: 28px;
}

.modern-form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-form-section-title i {
    color: #ffd700;
    font-size: 20px;
}

/* Radio Options */
.modern-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-radio-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    position: relative;
}

.modern-radio-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ffd700;
    border-radius: 10px 0 0 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modern-radio-option:hover {
    border-color: #ffd700;
    background: white;
}

.modern-radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #ffd700;
}

.modern-radio-option.checked {
    border-color: #ffd700;
    background: white;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
}

.modern-radio-option.checked::before {
    opacity: 1;
}

.modern-radio-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.modern-radio-option b {
    color: #2c2c2c;
    font-size: 15px;
}

/* Form Fields */
.modern-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.modern-form-group {
    display: flex;
    flex-direction: column;
}

.modern-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-form-group label i {
    color: #999;
    font-size: 14px;
}

.modern-form-group label .required {
    color: #ff4444;
    margin-left: auto;
    font-size: 16px;
}

.modern-form-group label .optional-badge {
    margin-left: auto;
    background: #e8f5e9;
    color: #4CAF50;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modern-form-group input[type="text"],
.modern-form-group input[type="email"],
.modern-form-group input[type="tel"],
.modern-form-group textarea,
.modern-form-group select {
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #fafafa;
}

.modern-form-group input:focus,
.modern-form-group textarea:focus,
.modern-form-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: white;
}

.modern-form-group input::placeholder,
.modern-form-group textarea::placeholder {
    color: #bbb;
    font-size: 14px;
}

.modern-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.modern-form-group.has-error input,
.modern-form-group.has-error textarea {
    border-color: #ff4444;
}

/* Terms */
.modern-terms {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 20px 0;
}

.modern-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #ffd700;
}

.modern-terms label {
    cursor: pointer;
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Submit Button */
.modern-submit-button {
    width: 100%;
    padding: 18px 36px;
    background: #ffd700;
    color: #2c2c2c;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modern-submit-button:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.modern-submit-button:active {
    transform: translateY(0);
}

/* Checkout Alternative Contact */
.checkout-alternative {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.checkout-alternative > span {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-alt-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.checkout-alt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.checkout-alt-wa {
    background: #25D366;
    color: #fff;
}

.checkout-alt-wa:hover {
    background: #1DA851;
    color: #fff;
    text-decoration: none;
}

.checkout-alt-phone {
    background: #f5f5f5;
    color: #2c2c2c;
    border: 1px solid #e0e0e0;
}

.checkout-alt-phone:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    text-decoration: none;
}

.checkout-alt-email {
    background: #f5f5f5;
    color: #2c2c2c;
    border: 1px solid #e0e0e0;
}

.checkout-alt-email:hover {
    border-color: #e53935;
    color: #e53935;
    text-decoration: none;
}

/* Success Message */
.modern-order-success {
    background: white;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 64px;
    color: #4CAF50;
}

.modern-order-success h1 {
    font-size: 28px;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.modern-order-success h2 {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-bottom: 24px;
}

.success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.success-btn-primary {
    background: #ffd700;
    color: #2c2c2c;
}

.success-btn-primary:hover {
    background: #ffed4e;
    text-decoration: none;
    color: #2c2c2c;
}

.success-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.success-btn-whatsapp:hover {
    background: #1DA851;
    color: #fff;
    text-decoration: none;
}

.success-contact {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.success-contact a {
    color: #2c2c2c;
    text-decoration: none;
}

.success-contact a:hover {
    color: #e53935;
}

/* Empty Cart */
.modern-empty-cart {
    background: white;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.modern-empty-cart i {
    font-size: 52px;
    color: #ddd;
    margin-bottom: 16px;
}

.modern-empty-cart h3 {
    font-size: 20px;
    color: #2c2c2c;
    margin-bottom: 6px;
}

.modern-empty-cart p {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.empty-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffd700;
    color: #2c2c2c;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.empty-cart-btn:hover {
    background: #ffed4e;
    text-decoration: none;
    color: #2c2c2c;
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */
@media (max-width: 767px) {
    .modern-checkout-page {
        padding: 16px 0 30px;
    }

    .checkout-header {
        margin-bottom: 16px;
    }

    .modern-checkout-title {
        font-size: 20px;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .modern-cart-table {
        padding: 16px 12px;
    }

    /* Hide desktop table, show mobile cards */
    .cart-desktop-table {
        display: none;
    }

    .cart-mobile-cards {
        display: block;
    }

    /* Cart total mobile */
    .modern-cart-total .total-line.grand {
        font-size: 22px;
    }

    /* Actions mobile */
    .cart-action-btn {
        font-size: 16px;
        padding: 14px 24px;
    }

    .alt-order-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .alt-order-btn {
        padding: 14px 16px;
        font-size: 15px;
    }

    .alt-btn-whatsapp i {
        font-size: 20px;
    }

    /* Checkout form mobile */
    .modern-checkout-form {
        padding: 20px 14px;
        margin-top: 16px;
    }

    .modern-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .modern-form-section {
        margin-bottom: 24px;
    }

    .modern-form-section-title {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .modern-form-section-title i {
        font-size: 18px;
    }

    .modern-radio-option {
        padding: 12px 14px;
    }

    .modern-radio-option label {
        font-size: 13px;
    }

    .modern-form-group input,
    .modern-form-group textarea {
        padding: 12px;
        font-size: 16px; /* 16px prevents zoom on iOS */
    }

    .modern-submit-button {
        font-size: 16px;
        padding: 16px 24px;
    }

    .checkout-alt-buttons {
        flex-wrap: wrap;
    }

    .checkout-alt-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Success mobile */
    .modern-order-success {
        padding: 40px 20px;
    }

    .success-icon i {
        font-size: 52px;
    }

    .modern-order-success h1 {
        font-size: 22px;
    }

    .modern-order-success h2 {
        font-size: 14px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-btn {
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .modern-cart-table {
        padding: 12px 10px;
    }

    .modern-checkout-form {
        padding: 16px 12px;
    }

    .cart-mobile-img img {
        width: 60px;
        height: 60px;
    }

    .cart-mobile-name {
        font-size: 12px;
    }

    .cart-mobile-price {
        font-size: 15px;
    }

    .modern-submit-button {
        font-size: 15px;
        padding: 14px 20px;
    }
}
