/* Popup cart: scoped to avoid changing other storefront dialogs. */
#cartModal { color: #10162f; }
#cartModal .modal-dialog { width: calc(100% - 48px); max-width: 900px; margin: 28px auto; }
#cartModal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 80px #10162f33; }
#cartModal .modal-header { padding: 22px 32px; border-bottom: 1px solid #e8ecf3; }
#cartModal .modal-title { display: flex; align-items: center; gap: 20px; margin: 0; font-size: 26px; font-weight: 700; text-transform: none; }
#cartModal .modal-title > i { font-size: 30px; }
#cartModal .cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 42px; padding: 0 10px; border-radius: 12px; background: #edf2ff; color: #0647ff; font-size: 21px; }
#cartModal .btn-close { padding: 0; width: 44px; height: 44px; background: transparent; color: #424958; font-size: 36px; line-height: 1; border: 0; }
#cartModal .cart-popup { padding: 0 32px; }
#cartModal .product-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 180px 210px 56px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid #e8ecf3; }
#cartModal .product-row:last-child { border-bottom: 0; }
#cartModal .image { display: flex; width: 108px; height: 108px; align-items: center; justify-content: center; border-radius: 16px; background: #f6f8fb; overflow: hidden; }
#cartModal .image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
#cartModal .name { width: auto; min-width: 0; }
#cartModal .name > a { color: #10162f; font-size: 19px; font-weight: 700; line-height: 1.5; }
#cartModal .name > a:hover { color: #0647ff; }
#cartModal .product-options p, #cartModal .name > p { margin: 4px 0; color: #697386; font-size: 13px; }
#cartModal .cart-stock { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; color: #21843a; font-size: 16px; }
#cartModal .cart-stock i { font-size: 21px; }
#cartModal .cart-stock-warning { color: #ed2639; }
#cartModal .quantity { width: auto; }
#cartModal .quantity .input-group { display: flex; flex-wrap: nowrap; align-items: center; padding: 5px; border-radius: 32px; background: #f3f5f9; }
#cartModal .btn-quantity { flex: 0 0 42px; width: 42px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #29406a; background: transparent; cursor: pointer; }
#cartModal .btn-quantity:hover:not(:disabled) { color: #0647ff; background: #e5edff; }
#cartModal .btn-quantity:disabled { opacity: .35; cursor: not-allowed; }
#cartModal .quantity-input-wrapper { flex: 1; min-width: 0; }
#cartModal .quantity .quantity-input-wrapper input { width: 100%; height: 52px; padding: 4px; border: 1px solid #e1e6f0; border-radius: 4px; background: white; color: #10162f; font-size: 20px; text-align: center; appearance: textfield; }
#cartModal input::-webkit-inner-spin-button, #cartModal input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#cartModal .price { min-width: 0; text-align: right; white-space: normal; }
#cartModal .price strong { display: block; font-size: 24px; line-height: 1.3; }
#cartModal .price small { display: block; margin-top: 6px; color: #697386; font-size: 15px; }
#cartModal .remove { width: auto; }
#cartModal .btn-remove-product { width: 52px; height: 52px; border: 0; border-radius: 14px; color: #ff405b; background: #fff0f3; font-size: 20px; }
#cartModal .btn-remove-product:hover { background: #ffdee5; }
#cartModal .cart-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 32px; background: #f3f6fd; }
#cartModal .cart-summary-note { display: flex; align-items: center; gap: 16px; color: #64718c; }
#cartModal .cart-summary-note i { color: #0647ff; font-size: 26px; }
#cartModal .cart-summary-totals { text-align: right; }
#cartModal .cart-popup-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 20px; font-size: 19px; font-weight: 700; }
#cartModal .cart-popup-total strong { font-size: 34px; line-height: 1.3; }
#cartModal .cart-summary-totals small { color: #697386; }
#cartModal .modal-footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px 32px; border: 0; }
#cartModal .modal-footer:before, #cartModal .modal-footer:after { display: none; }
#cartModal .modal-footer .btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; margin: 0; padding: 16px 28px; border: 0; border-radius: 22px; font-size: 17px; text-transform: none; white-space: normal; }
#cartModal .modal-footer .btn-secondary { color: #475b7d; background: #f0f3f9; }
#cartModal .modal-footer .btn-primary { min-width: 290px; background: #0647ff; color: white; }
#cartModal .modal-footer .btn-primary:hover { background: #0039da; }
#cartModal .modal-footer .btn:disabled { opacity: .45; cursor: not-allowed; }
#cartModal .modal-footer .btn span { font-size: 25px; line-height: 1; }
#cartModal .modal-error-min-order { padding: 12px 24px; background: #fff4f5; color: #cf263d; text-align: center; }
#cartModal .empty { padding: 60px 20px; text-align: center; color: #697386; }
#cartModal .empty > i { margin-bottom: 20px; color: #0647ff; font-size: 48px; }
#cartModal :is(button, a, input):focus-visible { outline: 3px solid #789cff; outline-offset: 3px; }
@media (max-width: 1100px) {
 #cartModal .product-row { grid-template-columns: 84px minmax(0, 1fr) 146px 160px 44px; gap: 16px; }
 #cartModal .image { width: 84px; height: 90px; }
 #cartModal .name > a { font-size: 16px; }
 #cartModal .price strong { font-size: 20px; }
 #cartModal .btn-quantity { flex-basis: 34px; width: 34px; }
 #cartModal .btn-remove-product { width: 44px; height: 44px; }
}
@media (max-width: 767px) {
 #cartModal .modal-dialog { width: calc(100% - 20px); margin: 10px auto; }
 #cartModal .modal-header { padding: 14px 16px; }
 #cartModal .modal-title { gap: 12px; font-size: 20px; }
 #cartModal .modal-title > i { font-size: 24px; }
 #cartModal .cart-count { min-width: 32px; height: 32px; font-size: 16px; }
 #cartModal .cart-popup { padding: 0 16px; }
 #cartModal .product-row { grid-template-columns: 68px minmax(0, 1fr) 36px; gap: 12px; padding: 18px 0; }
 #cartModal .image { grid-row: 1; width: 68px; height: 78px; }
 #cartModal .name { grid-column: 2; }
 #cartModal .name > a { font-size: 14px; }
 #cartModal .cart-stock { font-size: 12px; gap: 5px; }
 #cartModal .cart-stock i { font-size: 16px; }
 #cartModal .remove { grid-column: 3; grid-row: 1; align-self: start; }
 #cartModal .btn-remove-product { width: 36px; height: 38px; font-size: 16px; }
 #cartModal .quantity { grid-column: 1 / 3; grid-row: 2; width: 142px; }
 #cartModal .quantity .quantity-input-wrapper input { height: 38px; font-size: 16px; }
 #cartModal .btn-quantity { height: 36px; }
 #cartModal .price { grid-column: 2 / 4; grid-row: 2; justify-self: end; max-width: calc(100% - 72px); }
 #cartModal .price strong { font-size: 17px; overflow-wrap: anywhere; }
 #cartModal .price small { font-size: 12px; }
 #cartModal .cart-summary { padding: 16px; }
 #cartModal .cart-summary-note { display: none; }
 #cartModal .cart-summary-totals { width: 100%; }
 #cartModal .cart-popup-total { justify-content: space-between; gap: 12px; font-size: 16px; }
 #cartModal .cart-popup-total strong { font-size: 25px; }
 #cartModal .modal-footer { flex-direction: column-reverse; padding: 14px 16px; gap: 10px; }
 #cartModal .modal-footer .btn { width: 100%; min-width: 0; padding: 12px 16px; border-radius: 16px; font-size: 15px; }
}
