-
-
-
-
diff --git a/src/app/shared/components/product-row-card/product-row-card.component.scss b/src/app/shared/components/product-row-card/product-row-card.component.scss
index 596a1e0..b4ddae3 100644
--- a/src/app/shared/components/product-row-card/product-row-card.component.scss
+++ b/src/app/shared/components/product-row-card/product-row-card.component.scss
@@ -4,9 +4,14 @@
}
.product-row-card {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 2rem;
width: 100%;
- background-color: #f8f9fa; /* slightly light bg matching the screenshot if needed, but let's use white or #f8f9fa based on the border */
- border-color: #e9ecef !important;
+ padding: 2rem 0;
+ border-bottom: 1px solid #e3e3e3;
+ background: transparent;
&__title {
font-size: 16px;
@@ -26,13 +31,38 @@
}
&__price {
+ display: block;
+ align-self: flex-end;
font-size: 20px;
font-weight: 800;
- color: var(--tenant-primary, #009933) !important; /* Green matching screenshot */
+ color: var(--tenant-primary, #009933) !important;
+ white-space: nowrap;
+ }
+
+ &__actions {
+ display: grid;
+ grid-template-columns: minmax(0, auto) 160px;
+ align-items: stretch;
+ gap: 0.75rem 2.5rem;
+ }
+
+ &__summary,
+ &__buttons {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ gap: 0.5rem;
+ }
+
+ &__controls {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 0.5rem;
}
&__btn-wrapper {
- min-width: 160px; /* To make both buttons equal width as in screenshot */
+ min-width: 160px;
app-button {
display: block;
@@ -46,3 +76,14 @@
}
}
}
+
+@media (max-width: 991.98px) {
+ .product-row-card {
+ align-items: stretch;
+ flex-direction: column;
+
+ &__actions {
+ grid-template-columns: minmax(0, 1fr) 160px;
+ }
+ }
+}
diff --git a/src/app/shared/components/product-vertical-with-cart-card/product-vertical-with-cart-card.component.scss b/src/app/shared/components/product-vertical-with-cart-card/product-vertical-with-cart-card.component.scss
index c8e8b10..16f362e 100644
--- a/src/app/shared/components/product-vertical-with-cart-card/product-vertical-with-cart-card.component.scss
+++ b/src/app/shared/components/product-vertical-with-cart-card/product-vertical-with-cart-card.component.scss
@@ -73,16 +73,6 @@
width: 100%;
}
- &__variant-selectors ::ng-deep .variant-selector {
- flex-wrap: nowrap;
- width: 100%;
- }
-
- &__variant-selectors ::ng-deep .variant-selector__select {
- flex: 1 1 0;
- min-width: 0;
- }
-
&__price {
color: var(--tenant-primary, #009933);
font-size: 22px;
diff --git a/src/app/shared/components/variant-selector/variant-selector.component.scss b/src/app/shared/components/variant-selector/variant-selector.component.scss
index 0c5d11f..821bec4 100644
--- a/src/app/shared/components/variant-selector/variant-selector.component.scss
+++ b/src/app/shared/components/variant-selector/variant-selector.component.scss
@@ -1,19 +1,22 @@
:host {
display: block;
+ width: 100%;
min-width: 0;
}
.variant-selector {
- display: flex;
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
align-items: center;
gap: 8px;
+ width: 100%;
min-width: 0;
- flex-wrap: wrap;
}
.variant-selector__select {
- width: auto;
- min-width: 120px;
+ width: 100%;
+ min-width: 0;
+ max-width: none;
height: 38px;
color: #666666;
border-color: #cccccc;
@@ -24,35 +27,20 @@
border-color: var(--tenant-primary);
box-shadow: 0 0 0 0.25rem rgba(0, 153, 51, 0.25);
}
+
+ &:first-child:nth-last-child(odd) {
+ grid-column: 1 / -1;
+ }
}
.variant-selector--compact {
- justify-content: flex-end;
gap: 4px;
.variant-selector__select {
min-width: 0;
- max-width: 150px;
+ max-width: none;
height: 28px;
padding: 0.2rem 1.75rem 0.2rem 0.45rem;
font-size: 11px;
}
}
-
-@media (max-width: 767.98px) {
- .variant-selector {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- width: 100%;
- }
-
- .variant-selector__select {
- width: 100%;
- min-width: 0;
- max-width: none;
-
- &:first-child:nth-last-child(odd) {
- grid-column: 1 / -1;
- }
- }
-}