diff --git a/src/app/shared/components/cart-copia/cart-copia.component.html b/src/app/shared/components/cart-copia/cart-copia.component.html index 7620e2b..29200e8 100644 --- a/src/app/shared/components/cart-copia/cart-copia.component.html +++ b/src/app/shared/components/cart-copia/cart-copia.component.html @@ -4,7 +4,7 @@ @if (showClose()) { + } diff --git a/src/app/shared/components/cart-copia/cart-copia.component.scss b/src/app/shared/components/cart-copia/cart-copia.component.scss index 9ad190e..3588bf9 100644 --- a/src/app/shared/components/cart-copia/cart-copia.component.scss +++ b/src/app/shared/components/cart-copia/cart-copia.component.scss @@ -34,14 +34,8 @@ } .cart-copia__close-button { - display: inline-flex; - align-items: center; - justify-content: center; width: 24px; height: 24px; - padding: 0; - border: 0; - background: transparent; color: #ababab; font-size: 16px; transition: color 0.2s ease; @@ -81,13 +75,14 @@ grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; - border-bottom: 1px solid #ececec; + border-bottom: 1px solid #ffffff; } .cart-copia__media { position: relative; width: 88px; height: 98px; + border-radius: 5px 0 0 5px; overflow: hidden; background: #d8d8d8; @@ -113,7 +108,7 @@ left: 0; z-index: 1; padding: 4px 8px 3px; - background: #6173ff; + background: var(--tenant-primary); color: #ffffff; font-size: 8px; font-weight: 500; @@ -202,13 +197,8 @@ } .cart-copia__quantity-button { - display: inline-flex; - align-items: center; - justify-content: center; width: 100%; height: 100%; - padding: 0; - border: 0; background: transparent; color: #6f6f6f; font-size: 12px; @@ -231,14 +221,8 @@ } .cart-copia__remove-button { - display: inline-flex; - align-items: center; - justify-content: center; width: 18px; height: 18px; - padding: 0; - border: 0; - background: transparent; color: #aaaaaa; font-size: 14px; transition: color 0.2s ease; @@ -297,31 +281,9 @@ line-height: 1.2; } -.cart-copia__footer-actions { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 8px; - margin-top: 20px; -} - -.cart-copia__footer-button { +.cart-copia__footer-app-button { min-height: 42px; - border-radius: 8px; - border: 1px solid transparent; font-size: 14px; - font-weight: 700; - transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; -} - -.cart-copia__footer-button--secondary { - border-color: #6173ff; - background: #ffffff; - color: #6173ff; -} - -.cart-copia__footer-button--primary { - background: #6173ff; - color: #ffffff; } @media (max-width: 520px) { @@ -344,8 +306,4 @@ width: 76px; height: 88px; } - - .cart-copia__footer-actions { - grid-template-columns: minmax(0, 1fr); - } } diff --git a/src/app/shared/components/cart-copia/cart-copia.component.ts b/src/app/shared/components/cart-copia/cart-copia.component.ts index 6c19c90..d41e083 100644 --- a/src/app/shared/components/cart-copia/cart-copia.component.ts +++ b/src/app/shared/components/cart-copia/cart-copia.component.ts @@ -4,6 +4,7 @@ import { Subject, EMPTY } from 'rxjs'; import { catchError, debounceTime, groupBy, mergeMap, switchMap, tap } from 'rxjs'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import type { CartItemAttribute } from '../cart-item/cart-item.component'; +import { ButtonComponent } from '../button/button.component'; import { ModalService } from '../../../core/services/modal.service'; import { CartService } from '../../../core/services/cart/cart.service'; import { ToastService } from '../../../core/services/toast.service'; @@ -22,7 +23,7 @@ export interface CartCopiaItemMock { @Component({ selector: 'app-cart-copia', standalone: true, - imports: [], + imports: [ButtonComponent], templateUrl: './cart-copia.component.html', styleUrl: './cart-copia.component.scss', changeDetection: ChangeDetectionStrategy.OnPush