/* AEM Labs - Cart CSS */
/* =================== */


/* --- Parent Container Start --- */
.cart-container {
    max-width: min(95%, var(--max-container-width));
    margin: 0 auto;
    padding: 50px 0 0;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.cart-header {
    margin-bottom: 16px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #a71c1c;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumb a i {
    margin-right: 4px;
}

.breadcrumb a:hover {
    color: #6907c5;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

.cart-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.cart-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (min-width: 993px) {
    .cart-summary-section {
        position: sticky !important;
        top: 150px !important;
        align-self: start;
        z-index: 100;
    }

    .summary-card {
        position: static;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
}

@media (max-width: 1400px) {
    .cart-content {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 992px) {
    .cart-container {
        padding: 40px 0 0;
    }

    .breadcrumb {
        margin-bottom: 12px;
    }

    .cart-title {
        font-size: 28px;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-container {
        margin-top: 20px;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .cart-container {
        margin-top: 0;
    }
    
    .cart-header {
        margin-left: 2%;
    }

    .breadcrumb {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .cart-title {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .cart-subtitle {
        font-size: 12px;
    }

    .cart-content {
        gap: 20px;
    }
}

/* --- Parent Container End --- */


/* --- Cart Items Section Start --- */
.cart-items-section {
    background: white;
    border-radius: 20px;
    padding: 22px 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-items-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.items-count {
    font-weight: 400;
    color: #666;
    font-size: 18px;
}

.clear-cart-btn {
    background: none;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-cart-btn:hover {
    background: #e74c3c;
    color: white;
}

.cart-items-list {
    margin-bottom: 6px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    align-items: start;
    min-height: 160px;
}

.cart-item:hover {
    background: #fafafa;
    border-radius: 12px;
    padding: 25px 15px;
    margin: 0 -15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .item-image img {
    transform: scale(1.05);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-item:hover .item-title a {
    color: #a71c1c;
}

.item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-seller {
    font-size: 14px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-seller i {
    color: #27ae60;
}

.verified-badge {
    background: #e8f5e8;
    color: #27ae60;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #f0f7ff;
    color: #2980b9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.item-price-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    min-width: 180px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f8f8;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.quantity-btn:hover {
    background: #a71c1c;
    color: white;
}

.quantity-input {
    border: none;
    width: 50px;
    height: 35px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: white;
    outline: none;
    -moz-appearance: textfield;
    /* Remove spinner in Firefox */
}

/* Remove spinner in WebKit browsers (Chrome, Safari, Edge) */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-controls.loading {
    opacity: 0.6;
    pointer-events: none;
}

.quantity-controls.loading .quantity-input {
    background-color: #f8f9fa;
}

.quantity-controls.update-success {
    animation: quantitySuccess 0.3s ease;
}

.quantity-controls.update-error {
    animation: quantityError 0.3s ease;
}

@keyframes quantitySuccess {
    0% { background-color: transparent; }
    50% { background-color: rgba(39, 174, 96, 0.2); }
    100% { background-color: transparent; }
}

@keyframes quantityError {
    0% { background-color: transparent; }
    50% { background-color: rgba(231, 76, 60, 0.2); }
    100% { background-color: transparent; }
}

.quantity-btn:disabled,
.quantity-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa !important;
    color: #ccc !important;
}

.quantity-btn:disabled:hover,
.quantity-btn.disabled:hover {
    background-color: #f8f9fa !important;
    color: #ccc !important;
}

.price-section {
    text-align: right;
}

.item-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    display: block;
}

.item-subtotal {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.cart-action-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.cart-content .wishlist-btn {
    color: #e74c3c;
    border-color: #e74c3c;
}

.cart-content .wishlist-btn:hover {
    background: #e74c3c;
    color: white;
}

.remove-btn {
    color: #95a5a6;
    border-color: #95a5a6;
}

.remove-btn:hover {
    background: #95a5a6;
    color: white;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #a71c1c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border: 2px solid #a71c1c;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #a71c1c;
    color: white;
}

@media (max-width: 1400px) {
    .cart-items-section {
        padding: 20px;
    }

    .cart-items-header {
        padding-bottom: 12px;
    }

    .clear-cart-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .item-seller {
        font-size: 13px;
        gap: 4px;
    }

    .verified-badge {
        margin-left: 6px;
        padding: 2px 6px;
        font-size: 11px;
    }

    .item-features .feature-tag {
        padding: 2px 8px;
        font-size: 11px;
    }

    .item-price-controls {
        gap: 12px;
    }

    .quantity-controls {
        height: 32px;
    }

    .quantity-btn.minus,
    .quantity-btn.plus {
        width: 32px;
    }

    .quantity-input {
        width: 38px;
    }

    .continue-shopping-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .continue-shopping-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cart-items-header h2 {
        font-size: 18px;
    }

    .items-count {
        font-size: 14px;
    }

    .clear-cart-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .cart-items-section {
        padding: 15px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 15px 12px;
        padding: 16px 0;
        text-align: left;
        align-items: start;
    }

    .item-image {
        width: 80px;
        height: 80px;
        margin: 0;
        grid-row: 1;
        grid-column: 1;
    }

    .item-details {
        grid-row: 1;
        grid-column: 2;
        gap: 8px;
    }

    .item-title {
        font-size: 14px;
    }

    .item-seller {
        font-size: 10px;
    }

    .verified-badge {
        font-size: 9px;
    }

    .item-features .feature-tag {
        font-size: 9px;
    }

    .item-price-controls {
        grid-row: 2;
        grid-column: 1 / -1;
        margin-top: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .quantity-controls {
        height: 30px !important;
    }

    .quantity-btn {
        width: 30px !important;
        height: 30px !important;
    }

    .quantity-controls i {
        font-size: 9px;
    }

    .quantity-input {
        width: 36px;
        font-size: 10px;
    }

    .item-price {
        font-size: 16px;
    }

    .item-subtotal {
        font-size: 12px;
    }

    .item-actions {
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 8px;
    }

    .cart-action-btn {
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* --- Cart Items Section End --- */


/* --- Empty Cart Message Start --- */
.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart-message i {
    font-size: 58px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart-message h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-cart-message p {
    font-size: 14px;
    color: #888;
}

@media (max-width: 1400px) {
    .empty-cart-message h3 {
        font-size: 26px;
    }

    .empty-cart-message p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .empty-cart-message i {
        font-size: 48px;
    }

    .empty-cart-message h3 {
        font-size: 20px;
    }

    .empty-cart-message p {
        font-size: 12px;
    }
}

/* --- Empty Cart Message End --- */


/* --- Shipping and Protection Section Start --- */
.shipping-protection-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.shipping-protection-section .shipping-info-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.protection-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.protection-card {
    background: linear-gradient(135deg, #e8f5e8 40%, #c8e6c8 70%);
    border: 2px solid rgb(205, 231, 205);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    display: flex;
    align-items: center;
}

.protection-card h4,
.protection-card p {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.protection-card.aem-guarantee {
    background: linear-gradient(270deg, rgba(var(--accent-color-rgb), 1), rgba(105, 7, 197, 1));
    border: 1px solid rgba(var(--accent-color-rgb), 1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.protection-card.aem-guarantee h4,
.protection-card.aem-guarantee p {
    color: white;
}

.protection-card.aem-guarantee i {
    color: white;
}

.shipping-info-card {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shipping-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.shipping-info-card h4 i {
    color: #a71c1c;
}

.shipping-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-left: 12px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shipping-option i {
    color: #a71c1c;
    font-size: 16px;
    width: 20px;
}

.shipping-option strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.shipping-option p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.protection-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.protection-content i {
    color: #27ae60;
    font-size: 24px;
}

.protection-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}

.protection-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

@media (max-width: 1400px) {
    .shipping-protection-section {
        margin-top: 12px;
    }

    .shipping-protection-section .shipping-info-card,
    .protection-card {
        padding: 16px 20px;
    }

    .shipping-info-card h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .shipping-details {
        gap: 14px;
        margin-left: 8px;
    }

    .shipping-option strong {
        font-size: 13px;
    }

    .shipping-option p {
        font-size: 12px;
    }

    .protection-card {
        padding: 12px 16px;
    }

    .protection-content i {
        font-size: 18px;
    }

    .protection-card h4 {
        font-size: 14px;
    }

    .protection-card p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .shipping-protection-section {
        grid-template-columns: 1fr;
        margin-top: 20px;
        gap: 12px;
    }

    .shipping-info-card {
        padding: 16px;
    }

    .shipping-details {
        margin-left: 0;
    }

    .shipping-details p {
        font-size: 12px;
    }

    .shipping-option {
        gap: 8px;
    }
}

/* --- Shipping and Protection Section End --- */


/* --- Cart Summary Start --- */
.cart-summary-section {
    position: relative;
}

.summary-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.summary-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-details {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.summary-row span:first-child {
    color: #666;
    font-weight: 500;
}

.summary-row span:last-child {
    color: #333;
    font-weight: 600;
}

.free-shipping {
    color: #27ae60 !important;
    font-weight: 700 !important;
}

.discount {
    color: #e74c3c !important;
    font-weight: 700 !important;
}

.summary-divider {
    border: none;
    height: 2px;
    background: #f0f0f0;
    margin: 12px 0;
}

.total-row {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding: 8px 0 0 0;
}

.total-row span:first-child {
    font-size: 16px;
}

.total-price {
    font-size: 22px;
    color: #a71c1c !important;
}

.promo-code-section {
    margin-bottom: 16px;
}

.promo-input-wrapper {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.promo-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 13px;
}

.apply-promo-btn {
    background: #a71c1c;
    color: white;
    border: none;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-promo-btn:hover {
    background: #6907c5;
}

.applied-promo {
    display: flex;
    align-items: center;
}

.promo-tag {
    background: #e8f5e8;
    color: #155724;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-promo {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-section {
    text-align: center;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(270deg, #a71c1c, #6907c5, #a71c1c, #6907c5);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease, background-position 0.6s ease;
    box-shadow: 0 4px 15px rgba(167, 28, 28, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
}

.checkout-btn:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 28, 28, 0.4);
}

.security-badges {
    margin-bottom: 15px;
}

.security-text {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-text i {
    color: #27ae60;
}

.payment-methods {
    text-align: center;
}

.payment-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 20px;
    color: #666;
}

@media (max-width: 1400px) {
    .summary-card {
        padding: 20px;
    }

    .summary-title {
        font-size: 22px;
    }

    .summary-details {
        margin-bottom: 18px;
    }

    .total-price {
        font-size: 20px;
    }

    .promo-tag {
        font-size: 13px;
        padding: 6px 10px;
    }

    .checkout-btn {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .summary-card {
        padding: 16px;
    }

    .summary-title {
        font-size: 18px;
    }

    .summary-details {
        margin-bottom: 12px;
    }

    .summary-row span:first-child {
        font-size: 12px;
    }

    .summary-row span:last-child {
        font-size: 14px;
    }

    .total-row span {
        font-size: 16px !important;
    }

    .promo-code-section {
        margin-bottom: 16px;
    }

    .promo-input {
        padding: 10px 12px;
        font-size: 12px;
    }

    .promo-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .checkout-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* --- Cart Summary End --- */


/* --- Recommendations Carousel Start --- */
.carousel-section {
    margin: 50px auto;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
    max-width: min(90%, var(--section-max-width));
}

.carousel-container {
    position: relative;
    border-radius: 18px;
    background-color: white;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    padding: 25px;
    width: 100%;
    overflow: hidden;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.carousel-header h3 {
    font-size: 20px;
    color: #333;
}

.see-all-link {
    color: #6907c5;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.see-all-link:hover {
    color: #a71c1c;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 10px 0;
    scroll-behavior: smooth;
    width: 100%;
    flex-wrap: nowrap;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: -15px;
}

.carousel-next {
    right: -15px;
}

.product-card {
    min-width: 220px;
    max-width: 220px;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 15px;
    position: relative;
}

.product-title {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.product-specs {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.product-seller {
    font-size: 12px;
    color: #777;
}

.carousel-container .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.carousel-container .wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
}

.carousel-container .wishlist-btn i {
    color: #777;
    font-size: 14px;
    transition: color 0.2s;
}

.carousel-container .wishlist-btn:hover i {
    color: var(--accent-color);
}

.carousel-container .wishlist-btn.active i {
    color: var(--accent-color);
    font-weight: 900;
}

.card-menu-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.2s;
}

.card-menu-toggle:hover {
    background-color: #f5f5f5;
}

.card-menu-toggle i {
    color: #555;
    font-size: 12px;
}

.card-dropdown {
    position: absolute;
    top: 40px;
    left: 10px;
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    width: 130px;
    z-index: 5;
    display: none;
}

.card-dropdown.active {
    display: block;
}

.dropdown-option {
    display: block;
    padding: 0 15px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(270deg, #a71c1c, #6907c5, #a71c1c, #6907c5);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-position 0.6s ease;
}

.add-to-cart-btn:hover {
    background-position: 100% 0%;
    transform: scale(1.1);
}

@media (max-width: 1400px) {
    .carousel-container {
        padding: 20px;
    }

    .carousel-header h3 {
        font-size: 18px;
    }

    .product-card {
        min-width: 200px;
        max-width: 200px;
        border-radius: 16px;
    }

    .product-details {
        padding: 12px;
    }

    .product-image {
        height: 120px;
    }

    .product-title {
        margin-bottom: 4px;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 992px) {
    .carousel-container {
        padding: 18px;
        order: 2;
    }

    .carousel-header {
        margin-bottom: 2px;
    }

    .carousel-header h3 {
        font-size: 20px;
    }

    .see-all-link {
        font-size: 13px;
    }

    .product-card {
        min-width: 185px;
        max-width: 185px;
    }

    .product-image {
        height: 140px;
    }

    .product-details {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .carousel-prev {
        left: -12px;
    }

    .carousel-next {
        right: -12px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 15px;
        border-radius: 14px;
    }

    .see-all-link {
        font-size: 12px;
    }

    .product-card {
        min-width: 165px;
        max-width: 165px;
        border-radius: 8px;
    }

    .product-image {
        height: 125px;
    }

    .product-details {
        padding: 10px;
    }

    .product-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-seller {
        font-size: 11px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .carousel-prev {
        left: -10px;
    }

    .carousel-next {
        right: -10px;
    }

    .carousel-container .wishlist-btn,
    .card-menu-toggle {
        width: 24px;
        height: 24px;
    }

    .carousel-container .wishlist-btn i,
    .card-menu-toggle i {
        font-size: 12px;
    }

    .add-to-cart-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .card-dropdown {
        top: 40px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 12px;
        border-radius: 12px;
    }

    .carousel-header {
        gap: 5px;
    }

    .carousel-header h3 {
        font-size: 16px;
        padding-left: 4px;
    }

    .see-all-link {
        font-size: 11px;
    }

    .product-card {
        min-width: 145px;
        max-width: 145px;
        border-radius: 6px;
    }

    .product-image {
        height: 110px;
    }

    .product-details {
        padding: 8px;
    }

    .product-title {
        font-size: 11px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .product-price {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .product-seller {
        font-size: 10px;
    }

    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .carousel-prev {
        left: -8px;
    }

    .carousel-next {
        right: -8px;
    }

    .carousel-container .wishlist-btn,
    .card-menu-toggle {
        width: 22px;
        height: 22px;
        top: 8px;
    }

    .carousel-container .wishlist-btn {
        right: 8px;
    }

    .card-menu-toggle {
        left: 8px;
    }

    .carousel-container .wishlist-btn i,
    .card-menu-toggle i {
        font-size: 10px;
    }

    .add-to-cart-btn {
        width: 24px;
        height: 24px;
        font-size: 9px;
        bottom: 8px;
        right: 8px;
    }

    .card-dropdown {
        top: 32px;
    }

    .dropdown-option {
        font-size: 11px;
        padding: 0 12px;
    }
}

/* --- Recommendations Carousel End --- */


/* --- Custom Confirmation Modal Start --- */
#confirmModal.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(4px) !important;
    animation: modalFadeIn 0.2s ease-out !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#confirmModal .modal-content {
    background: white !important;
    border-radius: 16px !important;
    padding: 0 !important;
    max-width: 450px !important;
    width: 90% !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    animation: modalSlideIn 0.3s ease-out !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 100000 !important;
    display: block !important;
    min-height: auto !important;
    flex: none !important;
}

#confirmModal .modal-header {
    padding: 24px 24px 16px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#confirmModal .modal-header h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

#confirmModal .modal-close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #999 !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
}

#confirmModal .modal-close:hover {
    background: #f5f5f5 !important;
    color: #666 !important;
    transform: none !important;
}

#confirmModal .modal-body {
    padding: 16px 24px 24px !important;
}

#confirmModal .modal-body p {
    margin: 0 !important;
    font-size: 16px !important;
    color: #666 !important;
    line-height: 1.5 !important;
}

#confirmModal .modal-footer {
    padding: 0 24px 24px !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
}

#confirmModal .modal-btn {
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: none !important;
    min-width: 80px !important;
}

#confirmModal .cancel-btn {
    background: #f8f9fa !important;
    color: #666 !important;
    border: 1px solid #e9ecef !important;
}

#confirmModal .cancel-btn:hover {
    background: #e9ecef !important;
    color: #333 !important;
}

#confirmModal .confirm-btn {
    background: #e74c3c !important;
    color: white !important;
}

#confirmModal .confirm-btn:hover {
    background: #c0392b !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    #confirmModal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    #confirmModal .modal-header {
        padding: 20px 20px 12px !important;
    }
    
    #confirmModal .modal-header h3 {
        font-size: 18px !important;
    }
    
    #confirmModal .modal-body {
        padding: 12px 20px 20px !important;
    }
    
    #confirmModal .modal-body p {
        font-size: 14px !important;
    }
    
    #confirmModal .modal-footer {
        padding: 0 20px 20px !important;
        flex-direction: row;
        gap: 8px;
    }
    
    #confirmModal .modal-btn {
        width: 100%;
        padding: 14px;
    }
}
/* --- Custom Confirmation Modal End --- */