/* Shopping Cart Elegant Styles */

/* Main cart section */
.maincar-section {
    margin: 0 auto;
    padding: 40px 40px;
    /*min-height: 100vh;*/
}

/* Product section container */
.product-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(221, 166, 34, 0.1);
    transition: all 0.3s ease;
}

/* Individual product rows */
.product-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 25px 30px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dda622, #000000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-row:hover {
    box-shadow: 0 12px 35px rgba(221, 166, 34, 0.15);
    border-color: rgba(221, 166, 34, 0.3);
    transform: translateY(-3px);
}

.product-row:hover::before {
    transform: scaleX(1);
}

/* Product info section */
.product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-image {
    flex-shrink: 0;
    position: relative;
}

.product-image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.05);
}

.image-placeholder {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-meta {
    margin-bottom: 12px;
}

.badge.subscription {
    background: linear-gradient(135deg, #dda622, #b8941d);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(221, 166, 34, 0.3);
    text-transform: capitalize;
}

.remove-btn {
    background: none;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 2px 4px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc3545;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Price section */
.product-price {
    text-align: center;
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #dda622;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Quantity controls */
.quantity-section {
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #dda622;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(221, 166, 34, 0.2);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #dda622;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #000000;
    transform: scale(1.1);
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    background: #ffffff;
    outline: none;
}

.qty-input:focus {
    background: #f8f9fa;
}

/* Total section */
.product-total {
    text-align: center;
}

.total-amount {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    padding: 7px 17px;
    background: linear-gradient(135deg, #dda622, #b8941d);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(221, 166, 34, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Summary section */
.summary-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(221, 166, 34, 0.1);
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
}

.summary-section:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Coupon section */
.coupon-section {
    margin-bottom: 30px;
    padding: 15px 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    border: 2px solid rgba(221, 166, 34, 0.1);
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.coupon-header span {
    font-weight: 600;
    color: #000000;
    font-size: 1.1rem;
}

.coupon-toggle {
    background: none;
    border: 2px solid #dda622;
    color: #dda622;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-toggle:hover {
    background: #dda622;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221, 166, 34, 0.3);
}

.coupon-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.coupon-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #dda622;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.coupon-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(221, 166, 34, 0.1);
}

.apply-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #dda622, #b8941d);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background: linear-gradient(135deg, #000000, #333333);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Summary details */
.summary-details {
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(221, 166, 34, 0.1);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #000000;
    font-size: 1.1rem;
}

.summary-value {
    font-weight: 600;
    color: #dda622;
    font-size: 1.2rem;
}

.total-row {
    background: linear-gradient(
        135deg,
        rgba(221, 166, 34, 0.1),
        rgba(0, 0, 0, 0.05)
    );
    padding: 10px 20px;
    margin: 20px 0px;
    border-radius: 12px;
    border: 2px solid rgba(221, 166, 34, 0.2);
}

.total-row .summary-label,
.total-row .summary-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.total-row .summary-value {
    color: #000000;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-white {
    background: linear-gradient(135deg, #dda622, #b8941d);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(221, 166, 34, 0.3);
}

.btn-white:hover {
    background: linear-gradient(135deg, #000000, #333333);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-outline-danger {
    background: none;
    border-color: #dc3545;
    color: #dc3545;
    padding: 4px 16px;
    font-size: 14px;
    text-transform: capitalize;
    border-radius: 6px;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* Empty cart styles */
.empty-cart {
    background: #ffffff;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(221, 166, 34, 0.1);
    margin: 0 auto;
}

.empty-cart svg {
    color: #dda622;
    margin-bottom: 30px;
}

.empty-cart h3 {
    font-size: 2rem;
    color: #000000;
    font-weight: 600;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.btn-custom-primary {
    background: linear-gradient(135deg, #dda622, #b8941d);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(221, 166, 34, 0.3);
}

.btn-custom-primary:hover {
    background: linear-gradient(135deg, #000000, #333333);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .maincar-section {
        padding: 20px 15px;
    }

    .shopbreadcrumb h1 {
        font-size: 2rem;
    }

    .product-section,
    .summary-section {
        padding: 25px;
    }

    .table-header,
    .product-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .header-item:first-child {
        text-align: center;
    }

    .product-info {
        justify-content: center;
        text-align: left;
        display: block;
    }

    .quantity-controls {
        justify-content: center;
    }
    .product-price {
        text-align: left;
    }
    .product-total {
        text-align: left;
    }
    .quantity-section {
        display: block;
    }
    .summary-content .btn {
        padding: 15px 10px;
        font-size: 0.8rem;
        text-transform: capitalize !important;
    }
}

/* Animation for notifications */
.alert {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #dda622;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


button.plus {
    position: absolute;
    right: 36px;
    top: 12px;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 120px;
}

button.minus {
    position: absolute;
    left: 36px;
    top: 12px;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 120px;
}