/* Cart Container */
.cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.cart-breadcrumb {
    background: white;
    padding: 15px 0px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.cart-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-breadcrumb a:hover {
    color: #2e4053;
}

.cart-breadcrumb span {
    color: #212121;
    font-weight: 500;
}

/* Main Cart Layout */
.cart-main-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

/* Cart Items Section */
.cart-items-section {
    background: white;
    border-radius: 8px;
    padding: 10px 0px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.cart-title {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
}

.cart-count {
    font-size: 14px;
    color: #666;
}

.cart-delivery-info {
    background: #e8f5e9;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-delivery-icon {
    color: #388e3c;
}

.cart-delivery-text {
    font-size: 14px;
    color: #212121;
    font-weight: 500;
}

.cart-delivery-date {
    font-weight: 600;
}

/* Cart Item Card */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image-wrapper {
    width: 120px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 16px;
    color: #212121;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
}

.cart-item-sku {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-sku-name {
    font-weight: 600;
    color: #212121;
}

.cart-item-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 22px;
    font-weight: 600;
    color: #212121;
}

.cart-item-original-price {
    font-size: 15px;
    color: #878787;
    text-decoration: line-through;
}

.cart-item-discount {
    font-size: 14px;
    color: #388e3c;
    font-weight: 600;
}

.cart-item-attributes {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.cart-item-attribute {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-actions {
    display: flex;
    gap: 20px;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.cart-quantity-btn {
    width: 32px;
    height: 32px;
    background: white;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-btn:hover {
    background: #f5f5f5;
    color: #2e4053;
}

.cart-quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-quantity-display {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    padding: 6px 0;
}

.cart-action-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-action-btn:hover {
    color: #2e4053;
}

.cart-action-btn.remove:hover {
    color: #e74c3c;
}

.cart-item-remove-btn {
    position: absolute;
    top: 20px;
    right: 0;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.cart-item-remove-btn:hover {
    color: #e74c3c;
}

/* Summary Section */
.cart-summary-section {
    background: white;
    border-radius: 8px;
    padding: 20px 0px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #878787;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #212121;
}

.cart-summary-label {
    color: #666;
}

.cart-summary-value {
    font-weight: 500;
}

.cart-summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #212121;
}

.cart-summary-savings {
    background: #e8f5e9;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    color: #388e3c;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.cart-checkout-btn {
    width: 100%;
    background: #ff6f00;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.cart-checkout-btn:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.cart-secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.cart-coupon-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.cart-coupon-title {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 10px;
}

.cart-coupon-input-wrapper {
    display: flex;
    gap: 10px;
}

.cart-coupon-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.cart-coupon-input:focus {
    border-color: #2e4053;
}

.cart-coupon-apply-btn {
    padding: 10px 20px;
    background: #2e4053;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-coupon-apply-btn:hover {
    background: #1a2733;
}

/* Empty Cart */
.cart-empty-state {
    background: white;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.cart-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 10px;
}

.cart-empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cart-empty-btn {
    display: inline-block;
    background: #2e4053;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cart-empty-btn:hover {
    background: #1a2733;
    color: white;
    transform: translateY(-2px);
}

/* Saved For Later */
.cart-saved-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.cart-saved-header {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.empty-cart-box {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-main-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-section {
        position: static;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
    }

    .cart-item-remove-btn {
        position: static;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-image-wrapper {
        width: 100%;
        height: 200px;
    }

    .cart-item-actions {
        flex-wrap: wrap;
    }

    .cart-coupon-input-wrapper {
        flex-direction: column;
    }

    .cart-coupon-apply-btn {
        width: 100%;
    }
}







.empty-cart-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
}

.empty-cart-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.empty-cart-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.clear-cart-btn {
    background: #172337;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.clear-cart-btn:hover {
    opacity: .85;
}

/* Enhanced Free Shipping Progress Bar Styles */
.progress {
    background-color: #e9ecef;
    border-radius: 50rem;
    overflow: hidden;
}

.free-shipping-bar {
    background: linear-gradient(90deg, #198754, #146c43) !important;
    transition: width 0.7s ease-out;
    position: relative;
    border-radius: 50rem;
}

/* Enhanced shimmer effect */
.free-shipping-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Celebration animation when free shipping is achieved */
.celebrate-free-shipping {
    animation: celebrate 2s ease-in-out;
}

@keyframes celebrate {

    0%,
    100% {
        transform: scale(1);
        background-color: #f8f9fa;
    }

    25% {
        transform: scale(1.02);
        background-color: #d1e7dd;
    }

    50% {
        transform: scale(1);
        background-color: #a3cfbb;
    }

    75% {
        transform: scale(1.01);
        background-color: #d1e7dd;
    }
}

/* Pulse animation for achieved free shipping text */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }
}

/* Glow effect when close to or achieved free shipping */
.free-shipping-bar[aria-valuenow="100"] {
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}

/* Custom animation speed override */
.progress-bar-animated {
    animation: 1.5s linear infinite progress-bar-stripes;
}

.cart-coupon-section {
    background: #fff;
}

.cart-coupon-title {
    font-size: 14.5px;
    margin-bottom: 6px;
}

.coupon-hidden {
    display: none !important;
}

.remove-coupon {
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.empty-cart-container {
    background: white;
    border-radius: 12px;
    padding: 60px 40px;

    width: 100%;
    text-align: center;

    position: relative;
    overflow: hidden;
}

.cart-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2e4053 0%, #1f2b38 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cart-icon::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, rgba(46, 64, 83, 0.1) 0%, rgba(31, 43, 56, 0.05) 100%);
    border-radius: 50%;
    z-index: -1;
}

.cart-icon svg {
    width: 48px;
    height: 48px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.empty-cart-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.empty-cart-message {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-cart-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: #2e4053;
    color: white;
    box-shadow: 0 4px 12px rgba(46, 64, 83, 0.2);
}

.btn-primary:hover {
    background-color: #1f2b38;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 64, 83, 0.3);
}

.btn-secondary {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.btn-secondary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.3);
}

.decorative-dots {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e8eaed;
}

@media (max-width: 580px) {
    .empty-cart-container {
        padding: 40px 24px;
    }

    .empty-cart-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .empty-cart-title {
        font-size: 24px;
    }

    .empty-cart-message {
        font-size: 15px;
    }
}