/* ===== cart.blade.php ===== */
.custom-cart-page .alert {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    /* Ensure buttons are clickable */
    .remove-from-cart {
        cursor: pointer;
        color: #dc3545;
        text-decoration: none;
    }
    
    .remove-from-cart:hover {
        color: #c82333;
        text-decoration: none;
    }
    
    #clear-cart {
        cursor: pointer;
    }
    
    /* Debug styles */
    .cart-item {
        transition: all 0.3s ease;
    }
    
    .cart-item.loading {
        opacity: 0.6;
        pointer-events: none;
    }

    .shopping-cart .product-image {
        width: 80px;
        height: 120px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
    }

    .cart-image-preview {
        position: fixed;
        width: 240px;
        height: 360px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 9999;
        display: none;
        overflow: hidden;
    }

    .cart-image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .item-quantity-controls {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 999px;
        padding: 0.25rem 0.6rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: #212529;
        position: relative;
    }

    .quantity-btn {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: none;
        background: #e9ecef;
        color: #495057;
        font-size: 0.85rem;
        line-height: 1;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .quantity-btn:hover {
        background-color: #d6d8db;
        color: #212529;
    }

    .quantity-display {
        min-width: 18px;
        text-align: center;
    }

    .item-quantity-controls.updating {
        pointer-events: none;
        opacity: 0.6;
    }

    .item-quantity-controls.updating::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 18px;
        margin-top: -9px;
        margin-left: -9px;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-top-color: rgba(33, 37, 41, 0.6);
        border-radius: 50%;
        animation: cart-qty-spinner 0.6s linear infinite;
    }

    @keyframes cart-qty-spinner {
        to {
            transform: rotate(360deg);
        }
    }

    /* Cart Summary Styles */
    .widget-order-summary {
        background: #fff;
        border-radius: 8px;
    }

    .widget-order-summary .widget-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #333;
    }

    .widget-order-summary .table {
        margin-bottom: 0;
    }

    .widget-order-summary .table td {
        padding: 0.75rem 0;
        border-top: none;
        border-bottom: 1px solid #e9ecef;
    }

    .widget-order-summary .table tr:last-child td {
        border-bottom: none;
    }

    .text-gray-dark {
        color: #495057;
        font-weight: 500;
    }

    .cart-summary-actions {
        margin-top: 1rem;
    }

    .cart-summary-actions .btn {
        width: 100%;
    }

    .cart-summary-actions .btn-block {
        display: block;
        width: 100%;
    }

    .discount-tooltip {
        position: absolute !important;
    }

    @media (max-width: 768px) {
        .discount-tooltip {
            min-width: 260px !important;
            max-width: calc(100vw - 40px) !important;
            left: auto !important;
            right: 0 !important;
            font-size: 0.85rem !important;
            padding: 12px 14px !important;
        }
    }

    @media (max-width: 480px) {
        .discount-tooltip {
            min-width: 240px !important;
            max-width: calc(100vw - 30px) !important;
            font-size: 0.8rem !important;
            padding: 10px 12px !important;
        }
    }

/* ===== cart_drawer.blade.php ===== */
/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.drawer-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    color: #666;
}

/* Drawer Items */
.drawer-items {
    padding: 0 1rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.drawer-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.item-image {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.drawer-item-thumb {
    height: fit-content;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

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

.item-name {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.item-meta {
    margin-bottom: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

.meta-details {
    color: #666;
}

.item-quantity-price {
    margin-bottom: 0.25rem;
}

.quantity-text {
    color: #666;
    font-size: 0.85rem;
}

.original-price {
    color: #666;
    font-size: 0.85rem;
    text-decoration: line-through;
    margin-left: 0.25rem;
}

.item-attributes {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.item-total-price {
    color: #007bff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.item-quantity-controls {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #212529;
    position: relative;
}

.quantity-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #e9ecef;
    color: #495057;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #d6d8db;
    color: #212529;
}

.quantity-display {
    min-width: 18px;
    text-align: center;
}

.item-quantity-controls.updating {
    pointer-events: none;
    opacity: 0.6;
}

.item-quantity-controls.updating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(33, 37, 41, 0.6);
    border-radius: 50%;
    animation: drawer-qty-spinner 0.6s linear infinite;
}

@keyframes drawer-qty-spinner {
    to {
        transform: rotate(360deg);
    }
}

.item-remove {
    margin-left: 0.5rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.remove-item-btn:hover {
    color: #c82333;
}

/* Drawer Footer */
.drawer-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
    background-color: #fff;
    flex-shrink: 0;
}

.subtotal-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.subtotal-label {
    font-weight: 600;
    color: #333;
}

.subtotal-amount {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.drawer-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-view-cart,
.btn-checkout {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-view-cart {
    background-color: #000;
    color: #fff;
}

.btn-view-cart:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

.btn-checkout {
    background-color: #000;
    color: #fff;
}

.btn-checkout:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

/* Empty Cart */
.empty-cart {
    padding: 2rem 1rem;
    text-align: center;
}

.empty-cart h5 {
    margin: 1rem 0 0.5rem 0;
    color: #6c757d;
}

.empty-cart p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Scrollbar Styling */
.drawer-items::-webkit-scrollbar {
    width: 4px;
}

.drawer-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.drawer-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.drawer-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.drawer-image-preview {
    position: fixed;
    width: 240px;
    height: 360px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.drawer-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-tooltip {
    position: absolute !important;
}

.discount-info-tooltip {
    position: relative !important;
}

.discount-tooltip.tooltip-center {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    bottom: 100% !important;
}

.discount-tooltip.tooltip-left {
    left: 0 !important;
    right: auto !important;
    transform: translateX(0) !important;
    top: auto !important;
    bottom: 100% !important;
}

.discount-tooltip.tooltip-right {
    left: auto !important;
    right: 0 !important;
    transform: translateX(0) !important;
    top: auto !important;
    bottom: 100% !important;
}

.discount-tooltip.tooltip-side-right {
    left: calc(100% + 10px) !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.discount-tooltip.tooltip-side-left {
    left: auto !important;
    right: calc(100% + 10px) !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.discount-tooltip .tooltip-arrow {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: -6px !important;
    top: auto !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 6px solid #333 !important;
    border-bottom: 0 !important;
}

.discount-tooltip.tooltip-left .tooltip-arrow {
    left: 14px !important;
    right: auto !important;
    transform: translateX(0) !important;
}

.discount-tooltip.tooltip-right .tooltip-arrow {
    left: auto !important;
    right: 14px !important;
    transform: translateX(0) !important;
}

.discount-tooltip.tooltip-side-right .tooltip-arrow {
    left: -6px !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    border-left: 0 !important;
    border-right: 6px solid #333 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
}

.discount-tooltip.tooltip-side-left .tooltip-arrow {
    left: auto !important;
    right: -6px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    border-right: 0 !important;
    border-left: 6px solid #333 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
}

.item-price-section {
    position: relative;
    overflow: visible;
}

@media (max-width: 768px) {
    .discount-tooltip {
        min-width: 260px !important;
        max-width: calc(100vw - 40px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        font-size: 0.85rem !important;
        padding: 12px 14px !important;
    }
    
    .discount-tooltip .tooltip-content {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    .discount-tooltip {
        min-width: 240px !important;
        max-width: calc(100vw - 30px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
    }
    
    .discount-tooltip .tooltip-content {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Ensure tooltip doesn't go off-screen on very small devices */
@media (max-width: 360px) {
    .discount-tooltip {
        min-width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.75rem !important;
        padding: 8px 10px !important;
    }
    
    .tooltip-arrow {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* ===== checkout.blade.php ===== */
.review-lightbox {
            display: none;
            position: fixed;
            z-index: 9999;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
        }
        .review-lightbox.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .review-lightbox-close {
            position: absolute;
            top: 20px;
            right: 20px;
            color: #fff;
            font-size: 34px;
            font-weight: 700;
            cursor: pointer;
            z-index: 10000;
            background: rgba(255, 255, 255, 0.1);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .review-lightbox-swiper {
            width: 100%;
            height: 100%;
        }
        .review-lightbox-swiper .swiper-slide {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .review-lightbox-next,
        .review-lightbox-prev {
            color: #fff;
        }

/* ===== checkout_styles.blade.php ===== */
.widget-featured-products .entry-thumb img {
        object-fit: cover;
        cursor: pointer;
    }

    .checkout-image-preview {
        position: fixed;
        width: 240px;
        height: 360px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        display: none;
        overflow: hidden;
    }

    .checkout-image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .widget-featured-products .entry {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .widget-featured-products .entry:last-child {
        border-bottom: none;
    }

    .widget-featured-products .entry-thumb {
        width: 70px;
        aspect-ratio: 2 / 3;
        flex-shrink: 0;
    }

    .widget-featured-products .entry-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .widget-featured-products .entry-content {
        flex: 1;
        min-width: 0;
    }

    .widget-featured-products .entry-title {
        margin-bottom: 0.25rem;
        font-size: 0.95rem;
        font-weight: 600;
        color: #212529;
    }

    .widget-featured-products .entry-title a {
        color: inherit;
        text-decoration: none;
    }

    .widget-featured-products .entry-title a:hover {
        text-decoration: underline;
    }

    .widget-featured-products .entry-meta {
        display: block;
        font-size: 0.9rem;
        color: #343a40;
    }

    .checkout-entry-attributes {
        margin-top: 0.2rem;
        font-size: 0.85rem;
        color: #6c757d;
    }

    .checkout-entry-qty {
        margin-top: 0.45rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 999px;
        padding: 0.25rem 0.6rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: #212529;
    }

    .checkout-entry-qty .qty-control {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #e9ecef;
        color: #495057;
        font-size: 0.85rem;
        line-height: 1;
        cursor: pointer;
    }

    .checkout-entry-qty .qty-value {
        min-width: 18px;
        text-align: center;
    }

    .checkout-entry-qty.updating {
        position: relative;
        pointer-events: none;
        opacity: 0.6;
    }

    .checkout-entry-qty.updating::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 18px;
        margin-top: -9px;
        margin-left: -9px;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-top-color: rgba(33, 37, 41, 0.6);
        border-radius: 50%;
        animation: checkout-qty-spinner 0.6s linear infinite;
    }

    @keyframes checkout-qty-spinner {
        to {
            transform: rotate(360deg);
        }
    }

    .discount-tooltip {
        position: absolute !important;
    }

    @media (max-width: 768px) {
        .discount-tooltip {
            min-width: 260px !important;
            max-width: calc(100vw - 40px) !important;
            left: auto !important;
            right: 0 !important;
            font-size: 0.85rem !important;
            padding: 12px 14px !important;
        }
    }

    @media (max-width: 480px) {
        .discount-tooltip {
            min-width: 240px !important;
            max-width: calc(100vw - 30px) !important;
            font-size: 0.8rem !important;
            padding: 10px 12px !important;
        }
    }

    .order-summary-calculations {
        line-height: 1.5;
    }

    .order-summary-calculations .calculation-row {
        display: flex;
        align-items: center;
    }

    .widget-order-summary {
        background: #ffffff;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .widget-order-summary .widget-title {
        color: #212529;
        font-weight: 700;
        font-size: 1.15rem;
        padding-bottom: 0.5rem;
    }

    .order-summary-calculations .d-flex {
        align-items: center;
    }

    .order-summary-calculations .price-value {
        text-align: right;
        white-space: nowrap;
        min-width: 100px;
        flex-shrink: 0;
    }

    .order-summary-calculations .text-right {
        text-align: right;
        white-space: nowrap;
    }

    @media (max-width: 768px) {
        .order-summary-calculations {
            font-size: 0.85rem;
        }

        .widget-order-summary .widget-title {
            font-size: 1.05rem;
        }

        .order-summary-calculations .price-value {
            min-width: 90px;
        }
    }

    /* Coupon card – responsive on phone */
    .checkout-coupon-card {
        width: 100%;
        box-sizing: border-box;
    }

    .checkout-coupon-inner {
        box-sizing: border-box;
    }

    .checkout-coupon-input {
        flex: 1 1 200px;
        min-width: 0;
        max-width: 100%;
    }

    .checkout-coupon-apply-btn {
        flex-shrink: 0;
    }

    @media (max-width: 576px) {
        .checkout-coupon-card {
            padding: 10px;
        }

        .checkout-coupon-inner {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }

        .checkout-coupon-form {
            min-width: 0;
        }

        .checkout-coupon-price {
            min-width: 0 !important;
            max-width: none;
            text-align: left !important;
            padding-top: 6px;
            border-top: 1px solid #e9ecef;
        }

        .checkout-coupon-input-row {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .checkout-coupon-input {
            flex: none;
            width: 100%;
            min-width: 0;
        }

        .checkout-coupon-apply-btn {
            width: 100%;
        }
    }

/* ===== payment.blade.php ===== */
.payment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.payment-header p {
    color: #666;
    font-size: 1.1rem;
}

.payment-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.order-summary {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.order-summary h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.billing-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.billing-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.billing-info p {
    margin: 0.25rem 0;
    color: #555;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item:not(tr) {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:not(tr):last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.item-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.item-price {
    font-weight: 600;
    color: #007bff;
}

.order-totals {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.total-row.final {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.payment-container .payment-methods {
    margin-bottom: 2rem;
}

.payment-container .payment-methods h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.payment-container .payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-container .payment-option:hover {
    border-color: #007bff;
}

.payment-container .payment-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.payment-container .payment-option.selected {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.payment-container .payment-option label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* ===== my-checkout: Select Payment Method (card-style options) ===== */
.payment-method-section {
    margin-bottom: 2rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.payment-method-section .payment-method-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 0.35rem;
}

.payment-method-section .payment-method-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280 !important;
    margin-bottom: 1.25rem !important;
}

.payment-method-section .payment-method-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .payment-method-section .payment-method-options {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

.payment-method-section .payment-option {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
    position: relative;
    margin: 0;
    display: block;
}

.payment-method-section .payment-option:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.payment-method-section .payment-option:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.2);
}

.payment-method-section .payment-option.selected {
    border-color: #111827;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.payment-method-section .payment-option-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    position: relative;
}

.payment-method-section .payment-logo {
    margin-right: 0;
    flex-shrink: 0;
    width: 52px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
}

.payment-method-section .payment-logo-visa svg,
.payment-method-section .payment-logo-mastercard svg,
.payment-method-section .payment-logo-paypal svg {
    width: 40px;
    height: 25px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.payment-method-section .payment-logo-default {
    width: 40px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 1.1rem;
}

.payment-method-section .payment-text {
    flex: 1;
    min-width: 0;
}

.payment-method-section .payment-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    display: block;
}

.payment-method-section .payment-check {
    margin-left: 0;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: scale(0.9);
}

.payment-method-section .payment-option.selected .payment-check {
    opacity: 1;
    transform: scale(1);
}

.payment-method-section .check-icon {
    width: 26px;
    height: 26px;
    background: #111827;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 6px rgba(17, 17, 17, 0.25);
}

.payment-method-section .check-icon i {
    font-size: 12px;
    line-height: 1;
}

.payment-method-section.error .payment-method-options {
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 0.5rem;
    margin: -0.25rem;
}

.payment-method-section.error .payment-method-title {
    color: #dc3545;
}

@media (max-width: 575px) {
    .payment-method-section .payment-option-content {
        padding: 0.875rem 1rem;
    }

    .payment-method-section .payment-name {
        font-size: 0.9rem;
    }
}

.btn-pay {
    width: 100%;
    padding: 1rem;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-pay:hover {
    background-color: #218838;
}

.btn-back {
    width: 100%;
    padding: 0.75rem;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn-back:hover {
    background-color: #5a6268;
}

/* ===== cart.blade.php ===== */
@media(max-width: 575px){
   
  }

/* ===== cancel.blade.php / success.blade.php (scoped — was breaking /my-cart when global) ===== */
.payment-status-page .payment-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
}

.payment-status-page .payment-cancelled {
    background-color: #fff5f5;
    color: #dc3545;
    border: 3px solid #dc3545;
}

.payment-status-page .payment-cancelled i {
    animation: payment-status-pulse 2s infinite;
}

@keyframes payment-status-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.payment-status-page .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.payment-status-page .btn-block {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.payment-status-page .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.payment-status-page .alert {
    border-radius: 0.5rem;
    border: none;
}

.payment-status-page .bg-light {
    background-color: #f8f9fa !important;
}

.payment-status-page .list-unstyled li {
    padding: 0.25rem 0;
}

.payment-status-page .text-success {
    color: #28a745 !important;
}

.payment-status-page .text-danger {
    color: #dc3545 !important;
}

.payment-status-page .text-muted {
    color: #6c757d !important;
}

.payment-status-page .border-top {
    border-top: 1px solid #dee2e6 !important;
}

@media (max-width: 768px) {
    .payment-status-page .card-body {
        padding: 2rem 1.5rem !important;
    }

    .payment-status-page .payment-status-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .payment-status-page .btn-block {
        padding: 0.5rem 1rem;
    }
}

/* ===== success.blade.php (scoped) ===== */
.payment-status-page .card-body {
    border-radius: 15px;
}

.payment-status-page .btn {
    border-radius: 25px;
    padding: 10px 25px;
}

.payment-status-page .alert {
    border-radius: 10px;
    border: none;
}

.payment-status-page .badge {
    font-size: 0.9em;
}
