/* Cart Styles */
.product-cart-wrapper {
    position: relative;
    margin-left: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #C50E3A;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: 'DINPro-CondMedium', sans-serif;
    transition: transform 0.3s ease;
}

.cart-count.animate {
    transform: scale(1.2);
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.cart-dropdown.active {
    display: block;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-family: 'DINPro-CondBold', sans-serif;
    font-size: 24px;
    color: #161719;
}

.clear-cart {
    background: none;
    border: none;
    color: #C50E3A;
    cursor: pointer;
    font-family: 'DINPro-CondMedium', sans-serif;
    font-size: 16px;
    padding: 5px 10px;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-info h4 {
    margin: 0;
    font-family: 'DINPro-CondMedium', sans-serif;
    font-size: 16px;
    color: #161719;
}

.cart-item-info p {
    font-family: 'DINPro-CondBold', sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: 700;
    color: #C50E3A;
    margin: 0;
}

.product-info .product-sku {
    font-family: 'DINPro', sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #828282;
    margin-bottom: 5px;
}

/* Update existing cart item SKU styles */
.cart-item-info .cart-item-sku {
    font-family: 'DINPro', sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #828282;
    margin: 0;
}

.remove-item {
    background: none;
    border: none;
    color: #C50E3A;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.clear-cart,
.make-request-from-cart {
    padding: 10px 20px;
    border: none;
    font-family: 'DINPro-CondMedium', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-cart {
    background: #f5f5f5;
    color: #161719;
}

.make-request-from-cart {
    background: #C50E3A;
    color: white;
    flex: 1;
}

.clear-cart:hover {
    background: #e5e5e5;
}

.make-request-from-cart:hover {
    background: #a00c30;
}

/* Add to Cart Button Animation */
.add-to-cart-btn svg {
    transition: transform 0.3s ease;
}

.cart-icon-empty,
.cart-icon-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-icon-empty svg,
.cart-icon-filled svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.cart-icon-filled {
    display: none;
}

.add-to-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C50E3A;
    padding: 12px 18px;
    border: none;
    font-family: 'DINPro-CondMedium', sans-serif;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 18px;
    color: #FFFFFF;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #a00c30;
}

/* Cart Request Popup */
.cart-request-popup {
    z-index: 1001;
}

.cart-request-popup .popup-product-info {
    margin-bottom: 30px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Add custom scrollbar styles */
.cart-request-popup .popup-product-info::-webkit-scrollbar {
    width: 6px;
}

.cart-request-popup .popup-product-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-request-popup .popup-product-info::-webkit-scrollbar-thumb {
    background: #C50E3A;
    border-radius: 3px;
}

.cart-request-popup .popup-product-info::-webkit-scrollbar-thumb:hover {
    background: #a00c30;
}

.cart-request-popup .popup-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-request-popup .popup-product-item:last-child {
    border-bottom: none;
}

.cart-request-popup .popup-product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

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

.cart-request-popup .popup-product-image .no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-request-popup .popup-product-image .no-image:after {
    content: '×';
    font-size: 24px;
    color: #ccc;
}

.cart-request-popup .popup-product-details {
    flex: 1;
}

.cart-request-popup .product-title {
    font-family: 'DINPro-Cond', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    color: #C50E3A;
    margin-bottom: 6px;
}

.cart-request-popup .product-sku {
    font-family: 'DINPro', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #828282;
}

.cart-request-popup .request-popup-content {
    background: #FFFFFF;
    padding: 64px;
    width: 100%;
    max-width: 356px;
    height: 78svh;
    overflow-y: scroll;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Add custom scrollbar styles */
.cart-request-popup .request-popup-content::-webkit-scrollbar {
    width: 6px;
}

.cart-request-popup .request-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-request-popup .request-popup-content::-webkit-scrollbar-thumb {
    background: #C50E3A;
    border-radius: 3px;
}

.cart-request-popup .request-popup-content::-webkit-scrollbar-thumb:hover {
    background: #a00c30;
}

/* Cart Item Price */
.cart-item-price {
    font-family: 'DINPro-CondMedium', sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #C50E3A;
    margin: 5px 0 0;
}

/* Request Popup Price */
.popup-product-details .product-price {
    font-family: 'DINPro-CondMedium', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #C50E3A;
    margin-top: 5px;
}

.fixed-cart-box {
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 1100px) {
    .fixed-cart-box {
        position: fixed;
        display: block;
        right: 20px;
        top: 20px;
        z-index: 22;
    }

    .product-cart-wrapper {
        margin-left: 0;
    }

    .request-popup {
        .wpcf7 {
            overflow: visible;
        }
    }

    .cart-request-popup .request-popup-content {
        height: 70svh;
        padding: 25px;
    }

    .cart-request-popup .popup-product-info {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 480px) {
    .cart-dropdown {
        width: 300px;
        right: 0;
    }
}