/* ========================================
   SKELETON LOADER
   ======================================== */
.page-skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
    padding-bottom: 80px;
}

.skeleton-header {
    height: 60px;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.skeleton-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.skeleton-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.skeleton-image {
    width: 80px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.skeleton-info {
    flex: 1;
}

.skeleton-title {
    height: 20px;
    background: #e0e0e0;
    margin-bottom: 10px;
    border-radius: 4px;
    width: 70%;
    position: relative;
    overflow: hidden;
}

.skeleton-text {
    height: 16px;
    background: #e0e0e0;
    margin-bottom: 8px;
    border-radius: 4px;
    width: 50%;
    position: relative;
    overflow: hidden;
}

.skeleton-price {
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    width: 40%;
    position: relative;
    overflow: hidden;
}

.skeleton-button {
    height: 42px;
    background: #e0e0e0;
    border-radius: 8px;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

/* Animation Shimmer */
.skeleton-header::after,
.skeleton-card::after,
.skeleton-image::after,
.skeleton-title::after,
.skeleton-text::after,
.skeleton-price::after,
.skeleton-button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   CART PAGE STYLES
   ======================================== */
.empty-state-wrapper {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.empty-state-icon {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(16, 13, 209, 0.1);
    border-radius: 50%;
    animation: bounce 2s infinite;
}

.product-card {
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-price {
    color: #100DD1;
    font-weight: 600;
    margin-bottom: 0;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animated {
    animation-duration: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation-name: fadeIn;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Modal Styles */
.modal-icon-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    flex-direction: column;
    padding: 2rem 2rem 0;
}

.modal-body {
    padding: 0 2rem;
}

.modal-footer {
    padding: 0 2rem 2rem;
}

.btn-loading .spinner-border {
    display: inline-block !important;
}

.remove-product {
    transition: color 0.3s ease;
}

.remove-product:hover {
    color: #dc3545 !important;
}

/* Cart Table Styles */
.cart-table .table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-table .quantity .input-group {
    max-width: 120px;
}

.cart-table .qty-text {
    text-align: center;
    border-left: 0;
    border-right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .skeleton-image {
        width: 60px;
        height: 60px;
    }

    .cart-table .table img {
        width: 50px;
        height: 50px;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-grow {
    width: 3rem;
    height: 3rem;
}

/* Cart Amount Area */
.cart-amount-area .list-unstyled li {
    border-bottom: 1px solid #eee;
}

.cart-amount-area .list-unstyled li:last-child {
    border-bottom: none;
    font-size: 1.1rem;
}

/* Coupon Card */
.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-form input {
    flex: 1;
}

/* Alert Styles */
.alert-info {
    background-color: #e8f4fd;
    border-color: #b6e0fe;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #856404;
}

/* Animation for cart item removal */
.cart-table tr {
    transition: all 0.3s ease;
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: inherit;
}
/* ========================================
   MODERN EMPTY STATE STYLES
   ======================================== */
:root {
    --primary-color: #054A29;
    --secondary-color: #10BC9C;
    --accent-color: #A65A53;
    --text-dark: #080759;
    --text-muted: #6c757d;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 24px;
    margin: 40px 0;
}

.empty-state-modern .empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.empty-state-modern .empty-state-icon i {
    font-size: 3rem;
    color: white;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-modern {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(5, 74, 41, 0.3);
    display: inline-flex;
    align-items: center;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 74, 41, 0.4);
    color: white;
}

.btn-outline-modern {
    padding: 14px 32px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-outline-modern:hover {
    background: var(--primary-color);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 74, 41, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(5, 74, 41, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(5, 74, 41, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .empty-state-modern {
        padding: 40px 15px;
    }
    
    .empty-state-modern .empty-state-icon {
        width: 100px;
        height: 100px;
    }
    
    .empty-state-modern .empty-state-icon i {
        font-size: 2.5rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
    
    .btn-primary-modern,
    .btn-outline-modern {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
