/* Cart Widget Styles - 2 Column Layout */
.hp-cart-widget-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cart Title */
.hp-cart-title {
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 30px 0;
    padding: 0;
}

/* Empty Cart */
.hp-cart-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin: 20px 0;
}

.hp-cart-empty p {
    font-size: 18px;
    color: #666666;
    margin-bottom: 20px;
}

.hp-cart-empty .button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hp-cart-empty .button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* 2 Column Layout */
.hp-cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Main Column */
.hp-cart-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Cart Items */
.hp-cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hp-cart-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hp-cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

/* Product Image */
.hp-cart-item-image {
    position: relative;
}

.hp-cart-item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

/* Product Details */
.hp-cart-item-details {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    gap: 20px;
    align-items: center;
}

.hp-cart-item-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.hp-cart-item-name a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hp-cart-item-name a:hover {
    color: #0073aa;
}

.hp-cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #666666;
}

/* Quantity Controls */
.hp-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f8f8;
    border-radius: 50px;
    padding: 4px;
}

.hp-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.hp-qty-btn:hover {
    background-color: #005a87;
    transform: scale(1.1);
}

.hp-qty-btn:active {
    transform: scale(0.95);
}

.hp-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.hp-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    -moz-appearance: textfield;
}

.hp-qty-input::-webkit-outer-spin-button,
.hp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hp-qty-input:focus {
    outline: none;
}

/* Subtotal */
.hp-cart-item-subtotal {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
    min-width: 100px;
    text-align: right;
}

/* Remove Button */
.hp-cart-item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #ff4444;
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.hp-cart-item-remove:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

.hp-cart-item-remove:active {
    transform: scale(0.95);
}

/* Related Products Slider */
.hp-cart-related {
    margin-top: 20px;
}

.hp-cart-related h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
}

.hp-cart-related-swiper {
    position: relative;
    padding: 20px 0;
}

.hp-cart-related-swiper .swiper-slide {
    height: auto;
}

.hp-related-product {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hp-related-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.hp-related-product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.hp-related-product h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    flex-grow: 1;
}

.hp-related-product h4 a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hp-related-product h4 a:hover {
    color: #0073aa;
}

.hp-related-price {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 12px;
}

.hp-related-product .button {
    width: 100%;
    padding: 10px 16px;
    background-color: #0073aa;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hp-related-product .button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

/* Swiper Navigation */
.hp-cart-related-swiper .swiper-button-next,
.hp-cart-related-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    color: #0073aa;
}

.hp-cart-related-swiper .swiper-button-next:after,
.hp-cart-related-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 700;
}

.hp-cart-related-swiper .swiper-button-next:hover,
.hp-cart-related-swiper .swiper-button-prev:hover {
    background-color: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

/* Sidebar */
.hp-cart-sidebar {
    position: sticky;
    top: 20px;
}

.hp-cart-totals {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
}

.hp-cart-totals h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.hp-cart-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.hp-cart-totals-row span:first-child {
    color: #666666;
    font-weight: 500;
}

.hp-cart-totals-row span:last-child {
    color: #333333;
    font-weight: 600;
}

.hp-cart-totals-row.hp-cart-total {
    border-top: 2px solid #e5e5e5;
    border-bottom: none;
    padding: 20px 0 0 0;
    margin-top: 10px;
    font-size: 18px;
}

.hp-cart-totals-row.hp-cart-total span:first-child {
    color: #333333;
    font-weight: 700;
}

.hp-cart-totals-row.hp-cart-total span:last-child {
    color: #0073aa;
    font-weight: 700;
    font-size: 22px;
}

.hp-cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background-color: #0073aa;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-cart-checkout-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.hp-cart-continue-shopping {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background-color: transparent;
    color: #0073aa;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
}

.hp-cart-continue-shopping:hover {
    background-color: #f8f8f8;
    border-color: #0073aa;
}

/* Loading State */
.hp-cart-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.hp-cart-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hp-cart-container {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }

    .hp-cart-item-details {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .hp-cart-item-name {
        grid-column: 1 / -1;
    }

    .hp-cart-item-price {
        grid-column: 1;
        grid-row: 2;
    }

    .hp-cart-item-quantity {
        grid-column: 2;
        grid-row: 2;
    }

    .hp-cart-item-subtotal {
        grid-column: 3;
        grid-row: 2;
    }

    .hp-cart-item-remove {
        grid-column: 4;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .hp-cart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hp-cart-sidebar {
        position: static;
    }

    .hp-cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
        padding: 16px;
    }

    .hp-cart-item-image img {
        width: 100px;
        height: 100px;
    }

    .hp-cart-item-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hp-cart-item-name,
    .hp-cart-item-price,
    .hp-cart-item-quantity,
    .hp-cart-item-subtotal,
    .hp-cart-item-remove {
        grid-column: 1;
    }

    .hp-cart-item-remove {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .hp-cart-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hp-cart-related h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hp-cart-item {
        grid-template-columns: 80px 1fr;
    }

    .hp-cart-item-image img {
        width: 80px;
        height: 80px;
    }

    .hp-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .hp-qty-input {
        width: 40px;
        font-size: 14px;
    }
}