/* Cart Options Styling */
.cart-options-wrapper {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cart-option-group {
    margin-bottom: 8px;
}

.cart-option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    font-size: 12px;
    font-weight: 600;
margin-bottom: 4px;
    text-transform: capitalize;
}

.option-values-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 13px;
}

.option-value-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.option-value-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: .25rem .5rem;
}

.option-value-label {
    font-weight: 500;
}

.option-value-qty {
font-size: 12px;
}

.option-value-price {
    font-weight: 600;
    margin-left: auto;
    margin-right: 0;
}
[dir="rtl"] .option-value-price {
    margin-left: 0;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-options-wrapper {
        padding: 6px 8px;
    }
    
    .option-value-item {
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .option-value-item img {
        width: 32px;
        height: 32px;
    }
    
    .option-label {
        font-size: 11px;
    }
}

/* Product title — clamp long names to 2 lines */
.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.35;
}

/* Cart table — always responsive, ignore inline min-width from template */
.cart-table-wrapper { overflow-x: auto; }
table.cart-table { min-width: unset !important; width: 100%; }

/* Mobile cart table — stack into cards */
@media (max-width: 640px) {
    .cart-table-wrapper { overflow-x: unset !important; }
    table.cart-table thead { display: none; }
    table.cart-table,
    table.cart-table tbody { display: block; }
    table.cart-table tr.cart-item-tr {
        display: block;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 14px;
        padding: 10px;
    }
    table.cart-table td {
        display: block;
        border-bottom: none !important;
        padding: 3px 0;
    }
    table.cart-table td.product {
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0 !important;
        margin-bottom: 8px;
    }
    table.cart-table td:nth-child(2),
    table.cart-table td:nth-child(3),
    table.cart-table td:nth-child(4) {
        display: inline-block;
        width: auto;
        padding: 4px 16px 4px 0;
        vertical-align: middle;
    }
    [dir="rtl"] table.cart-table td:nth-child(2),
    [dir="rtl"] table.cart-table td:nth-child(3),
    [dir="rtl"] table.cart-table td:nth-child(4) {
        padding: 4px 0 4px 16px;
    }
    .product-thumb { width: 60px !important; height: 60px !important; }
    .quantity-control input { width: 40px !important; }
}

/* Quantity control button centering */
.quantity-control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.quantity-control button svg {
    display: block;
    flex-shrink: 0;
}