:root {
    --primary-book: var(--primary-color); 
    --accent-book: var(--accent-color); 
    --bg-light-book: var(--bg-light);
    --border-color: #e2e8f0;
    --text-dark-book: var(--text-dark);
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
}

body {
    background-color: var(--bg-light-book);
    color: var(--text-dark-book);
    line-height: 1.5;
}

/* Breadcrumb */
.watch-breadcrumb {
    padding: 1.5rem 0;
    background: #f9fbf9;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.watch-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.watch-breadcrumb-item {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.watch-breadcrumb-item:hover {
    color: var(--accent-book);
}

.watch-breadcrumb-separator {
    color: var(--border-color);
}

.watch-breadcrumb-current {
    color: var(--text-dark-book);
    font-weight: 600;
}

/* Shop Cart Section */
.shop-cart {
    padding-bottom: 4rem;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-header h4 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark-book);
}

.cart-count {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-book);
}

.cart-item-image {
    width: 100px;
    height: auto;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-light-book);
    border: 1px solid var(--border-color);
}

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

.cart-item-details {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 40px;
    padding-left: 1.5rem;
    align-items: center;
    gap: 1rem;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
}

.cart-item-name {
    margin: 0;
}

.cart-item-name a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark-book);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-name a:hover {
    color: var(--primary-book);
}

.cart-item-rating {
    color: #fbbf24; /* Gold Stars */
    font-size: 0.75rem;
}

.cart-item-price, .cart-item-total {
    text-align: right;
}

.price-label, .total-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.price-value {
    font-weight: 500;
}

.total-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-book);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    background: var(--bg-light-book);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 2px;
    width: fit-content;
    margin: 0 auto;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--text-dark-book);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.qty-btn:hover {
    background: var(--primary-book);
    color: var(--white);
}

.qty-input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: var(--text-dark-book);
    font-size: 0.875rem;
}

.remove-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Cart Actions */
.cart-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
}

.btn-continue, .btn-update {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-continue {
    background: var(--white);
    color: var(--text-dark-book);
    border: 1px solid var(--border-color);
}

.btn-continue:hover {
    background: var(--white);
    border-color: var(--primary-book);
    color: var(--primary-book);
}

.btn-update {
    background: var(--primary-book);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-update:hover {
    background: var(--hover-color);
    color: var(--white);
    transform: translateY(-1px);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 2rem;
}

.cart-summary h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-row span:first-child {
    color: var(--text-muted);
}

.summary-row span:last-child {
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.summary-row.total {
    margin-top: 0.5rem;
}

.summary-row.total span:last-child {
    font-size: 1.5rem;
    color: var(--primary-book);
    font-weight: 800;
}

/* Checkout Buttons */
.checkout-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-checkout, .btn-checkout-momo {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-checkout {
    background: var(--accent-color);
    color: var(--white);
}

.btn-checkout:hover {
    background: var(--hover-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(184, 134, 11, 0.3);
}

.btn-checkout-momo {
    background: #ae2070;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-checkout-momo img {
    height: 20px;
    margin-right: 8px;
}

.btn-checkout-momo:hover {
    background: #8e1a5b;
}

.payment-security {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Empty Cart - Compact Version */
.empty-cart-section {
    padding: 5rem 0;
    text-align: center;
    background: #fff;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.empty-cart-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-icon-wrapper {
    width: 90px;
    height: 90px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-cart-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.empty-cart-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.empty-cart-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.empty-cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-shop-now {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.15);
}

.btn-shop-now:hover {
    background: var(--hover-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.25);
}

.btn-home-outline {
    background: transparent;
    color: var(--text-muted);
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-home-outline:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .shop-cart {
        padding-top: 10px !important;
    }
    
    .cart-header h4 {
        font-size: 1.5rem;
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .cart-item {
        position: relative;
        padding: 15px;
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
    }

    .cart-item-details {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        padding-left: 0;
        width: 100%;
    }

    .cart-item-name a {
        font-size: 0.95rem;
        margin-right: 25px; /* Space for remove button */
        display: block;
        line-height: 1.4;
    }

    .cart-item-price {
        display: none; 
    }

    /* Group Quantity and Total in a row on mobile */
    .cart-item-quantity, .cart-item-total {
        margin: 0;
        width: auto;
    }

    .cart-item-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
        margin-top: 5px;
    }

    .quantity-control {
        margin: 0;
    }

    .cart-item-total {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .cart-item-total .total-label {
        font-size: 11px;
        margin-bottom: 0;
    }

    .cart-item-total .total-value {
        font-size: 1.05rem;
        white-space: nowrap;
    }

    .remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        background: #f1f5f9;
        z-index: 2;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-continue {
        justify-content: center;
    }

    .cart-summary {
        padding: 1.5rem;
    }

    .summary-row.total span:last-child {
        font-size: 1.25rem;
    }

    .empty-cart-section {
        padding: 3rem 1rem;
    }

    .empty-cart-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-shop-now, .btn-home-outline {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
    }
    
    .qty-input {
        width: 30px;
    }
}