@plurix/ecom-components 1.14.2-commerce.4 → 1.14.2-commerce.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/packages/ChangeOrderModal/ChangeOrderModal.js +22 -24
- package/dist/packages/ChangeOrderModal/api/getOrderForm.d.ts +1 -1
- package/dist/packages/ChangeOrderModal/api/getOrderForm.js +6 -17
- package/dist/packages/ChangeOrderModal/api/getProductsSimilars.d.ts +1 -2
- package/dist/packages/ChangeOrderModal/api/getProductsSimilars.js +11 -25
- package/dist/packages/ChangeOrderModal/api/postChangeOrder.d.ts +1 -1
- package/dist/packages/ChangeOrderModal/api/postChangeOrder.js +10 -23
- package/dist/styles/product-card.global.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as j, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as c, useEffect as w } from "react";
|
|
3
3
|
import { Modal as M } from "../Modal/Modal.js";
|
|
4
4
|
import { ProductSelected as N } from "./components/ProductSelected.js";
|
|
5
5
|
import { SimilarProducts as k } from "./components/SimilarProducts.js";
|
|
@@ -13,32 +13,31 @@ import { Skeleton as T } from "../Skeleton/index.js";
|
|
|
13
13
|
const oo = ({
|
|
14
14
|
selectedItem: o,
|
|
15
15
|
postalCode: S,
|
|
16
|
-
orderFormId:
|
|
16
|
+
orderFormId: e,
|
|
17
17
|
isClubClient: h,
|
|
18
18
|
isOpen: y,
|
|
19
19
|
environment: O,
|
|
20
|
-
setIsOpen:
|
|
21
|
-
saveSelectedSimilarProduct:
|
|
20
|
+
setIsOpen: f,
|
|
21
|
+
saveSelectedSimilarProduct: d
|
|
22
22
|
}) => {
|
|
23
|
-
const [
|
|
23
|
+
const [m, b] = c(), [P, a] = c(!1), l = O === "io", { genericTaggingEvent: C } = E(), [r, p] = c({ itemId: "" });
|
|
24
24
|
return w(() => {
|
|
25
25
|
(async () => {
|
|
26
|
-
|
|
26
|
+
a(!0);
|
|
27
27
|
try {
|
|
28
28
|
const t = await A({
|
|
29
29
|
postalCode: S,
|
|
30
|
-
selectedItem: o
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
b(d);
|
|
30
|
+
selectedItem: o
|
|
31
|
+
}), s = (t == null ? void 0 : t.products) || [];
|
|
32
|
+
b(s);
|
|
34
33
|
} finally {
|
|
35
|
-
|
|
34
|
+
a(!1);
|
|
36
35
|
}
|
|
37
36
|
})(), (async () => {
|
|
38
|
-
var t,
|
|
39
|
-
|
|
37
|
+
var t, s;
|
|
38
|
+
a(!0);
|
|
40
39
|
try {
|
|
41
|
-
const
|
|
40
|
+
const u = await J(e), i = ((s = (t = u == null ? void 0 : u.customData) == null ? void 0 : t.customApps) == null ? void 0 : s.find(
|
|
42
41
|
(x) => x.id === "janis"
|
|
43
42
|
)) || null;
|
|
44
43
|
let g = {};
|
|
@@ -50,14 +49,14 @@ const oo = ({
|
|
|
50
49
|
itemId: `${g[F]}`
|
|
51
50
|
});
|
|
52
51
|
} finally {
|
|
53
|
-
|
|
52
|
+
a(!1);
|
|
54
53
|
}
|
|
55
54
|
})();
|
|
56
55
|
}, []), /* @__PURE__ */ n(
|
|
57
56
|
M,
|
|
58
57
|
{
|
|
59
58
|
isOpen: y,
|
|
60
|
-
setIsOpen:
|
|
59
|
+
setIsOpen: f,
|
|
61
60
|
className: "change-order-modal",
|
|
62
61
|
title: "Produto com estoque baixo",
|
|
63
62
|
Footer: /* @__PURE__ */ n(
|
|
@@ -65,35 +64,34 @@ const oo = ({
|
|
|
65
64
|
{
|
|
66
65
|
saveSelectedSimilarProduct: () => {
|
|
67
66
|
L(
|
|
68
|
-
|
|
69
|
-
a,
|
|
67
|
+
e,
|
|
70
68
|
o.productOriginId,
|
|
71
69
|
r.itemId
|
|
72
|
-
), r && (
|
|
70
|
+
), r && (d == null || d(r), C("salvar_substituto", {
|
|
73
71
|
name: o.name,
|
|
74
72
|
replacement_item: r == null ? void 0 : r.name
|
|
75
|
-
})),
|
|
73
|
+
})), f(!1);
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
),
|
|
79
77
|
children: P ? /* @__PURE__ */ n(
|
|
80
78
|
T,
|
|
81
79
|
{
|
|
82
|
-
width:
|
|
83
|
-
height:
|
|
80
|
+
width: l ? "100%" : "90%",
|
|
81
|
+
height: l ? 600 : 425,
|
|
84
82
|
backgroundColor: "var(--color-grayScale-faded)",
|
|
85
83
|
margin: "auto",
|
|
86
84
|
animation: !0
|
|
87
85
|
}
|
|
88
86
|
) : /* @__PURE__ */ j(q, { children: [
|
|
89
87
|
o && /* @__PURE__ */ n(N, { selectedItem: o }),
|
|
90
|
-
|
|
88
|
+
m && m.length > 0 ? /* @__PURE__ */ n(
|
|
91
89
|
k,
|
|
92
90
|
{
|
|
93
91
|
isClubClient: h,
|
|
94
92
|
similarProductSelect: r,
|
|
95
93
|
setSimilarProductSelect: p,
|
|
96
|
-
products:
|
|
94
|
+
products: m
|
|
97
95
|
}
|
|
98
96
|
) : /* @__PURE__ */ n(_, {})
|
|
99
97
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getOrderForm: (orderFormId: string
|
|
1
|
+
export declare const getOrderForm: (orderFormId: string) => Promise<any>;
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import t from "axios";
|
|
2
|
+
const a = async (o) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
);
|
|
8
|
-
return e;
|
|
9
|
-
}
|
|
10
|
-
const { data: r } = await o.post("/api/proxy", {
|
|
11
|
-
targetUrl: `/api/checkout/pub/orderForm/${t}`,
|
|
12
|
-
method: "GET",
|
|
13
|
-
headers: {
|
|
14
|
-
"Content-Type": "application/json",
|
|
15
|
-
Accept: "application/json"
|
|
16
|
-
}
|
|
17
|
-
});
|
|
4
|
+
const { data: r } = await t.post(
|
|
5
|
+
`/api/checkout/pub/orderForm/${o}`
|
|
6
|
+
);
|
|
18
7
|
return r;
|
|
19
8
|
} catch (r) {
|
|
20
9
|
console.error("Error in Change Order Modal", r);
|
|
21
10
|
}
|
|
22
11
|
};
|
|
23
12
|
export {
|
|
24
|
-
|
|
13
|
+
a as getOrderForm
|
|
25
14
|
};
|
|
@@ -2,10 +2,9 @@ import { SelectedItemProps } from '../components/ProductSelected';
|
|
|
2
2
|
|
|
3
3
|
interface GetProductsSimilarsProps {
|
|
4
4
|
postalCode: string;
|
|
5
|
-
isIO: boolean;
|
|
6
5
|
selectedItem: SelectedItemProps;
|
|
7
6
|
}
|
|
8
|
-
export declare const getProductsSimilars: ({ postalCode,
|
|
7
|
+
export declare const getProductsSimilars: ({ postalCode, selectedItem }: GetProductsSimilarsProps) => Promise<{
|
|
9
8
|
productOrigin: string;
|
|
10
9
|
products: import('../../../main').SimilarProducts[];
|
|
11
10
|
} | undefined>;
|
|
@@ -1,33 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
postalCode:
|
|
4
|
-
isIO: p,
|
|
1
|
+
import s from "axios";
|
|
2
|
+
const p = async ({
|
|
3
|
+
postalCode: i,
|
|
5
4
|
selectedItem: r
|
|
6
5
|
}) => {
|
|
7
6
|
try {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(c) => c.productOrigin === (r == null ? void 0 : r.productOriginId)
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
const { data: i } = await n.post("/api/proxy", {
|
|
17
|
-
targetUrl: `/_v/commerce/products/productsSimilar?postalCode=${a}&skus=${r == null ? void 0 : r.productOriginId}&field=sku`,
|
|
18
|
-
method: "GET",
|
|
19
|
-
headers: {
|
|
20
|
-
"Content-Type": "application/json",
|
|
21
|
-
Accept: "application/json"
|
|
22
|
-
}
|
|
23
|
-
}), { similarProducts: s } = i;
|
|
24
|
-
return s.find(
|
|
25
|
-
(o) => o.productOrigin === r.productOriginId
|
|
7
|
+
const { data: o } = await s.get(
|
|
8
|
+
`/_v/commerce/products/productsSimilar?postalCode=${i}&skus=${r == null ? void 0 : r.productOriginId}&field=sku`
|
|
9
|
+
), { similarProducts: a } = o;
|
|
10
|
+
return a.find(
|
|
11
|
+
(n) => n.productOrigin === (r == null ? void 0 : r.productOriginId)
|
|
26
12
|
);
|
|
27
|
-
} catch (
|
|
28
|
-
console.error("Error in Change Order Modal",
|
|
13
|
+
} catch (o) {
|
|
14
|
+
console.error("Error in Change Order Modal", o);
|
|
29
15
|
}
|
|
30
16
|
};
|
|
31
17
|
export {
|
|
32
|
-
|
|
18
|
+
p as getProductsSimilars
|
|
33
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const postChangeOrder: (orderFormId: string,
|
|
1
|
+
export declare const postChangeOrder: (orderFormId: string, skuId: string, substitutionId: string) => Promise<any>;
|
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
const s = async (e, t
|
|
1
|
+
import c from "axios";
|
|
2
|
+
const s = async (o, e, t) => {
|
|
3
3
|
try {
|
|
4
4
|
const r = {
|
|
5
|
-
orderFormId:
|
|
6
|
-
skuId:
|
|
7
|
-
substitutionId:
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
);
|
|
14
|
-
return d;
|
|
15
|
-
}
|
|
16
|
-
const { data: c } = await o.post("/api/proxy", {
|
|
17
|
-
targetUrl: "/_v/commerce/orderform/changeOrder",
|
|
18
|
-
method: "POST",
|
|
19
|
-
headers: {
|
|
20
|
-
"Content-Type": "application/json",
|
|
21
|
-
Accept: "application/json"
|
|
22
|
-
},
|
|
23
|
-
body: r
|
|
24
|
-
});
|
|
25
|
-
return c;
|
|
5
|
+
orderFormId: o,
|
|
6
|
+
skuId: e,
|
|
7
|
+
substitutionId: t
|
|
8
|
+
}, { data: a } = await c.post(
|
|
9
|
+
"/_v/commerce/orderform/changeOrder",
|
|
10
|
+
r
|
|
11
|
+
);
|
|
12
|
+
return a;
|
|
26
13
|
} catch (r) {
|
|
27
14
|
console.error("Error in Change Order Modal", r);
|
|
28
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--product-card-horizontal-width: 100px;--product-card-horizontal-margin: 8px;--product-card-horizontal-padding: 8px}#product-card,#product-card-unavailable{display:flex;flex-direction:column;min-height:276px;max-height:304px;height:100%}#product-card-unavailable.product-card-horizontal-unavailable{min-height:172px;max-height:206px}.product-card{display:flex;flex-direction:column;flex:1;position:relative;height:100%;cursor:pointer;border:1px solid var(--color-grayScale-lightest);border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:0;overflow:hidden}.product-card-container{height:100%;display:flex;flex-direction:column;flex:1}.product-card,.product-card+#product-card-button,.product-card+.product-card-unavailable-text{width:162px;min-width:150px;max-width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;flex:1}.product-card-badge{display:flex;gap:4px}.product-card-badge-kg{display:inline-block;width:fit-content;height:16px;padding:2px 4px;background-color:var(--color-main);border-radius:2px;color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:10px;line-height:13px;text-align:center;vertical-align:middle}.product-card-discount-badge{display:flex;align-items:center;justify-content:center;width:42px;height:16px;background-color:var(--color-badge-main);border-radius:2px}.product-card-discount-badge-value{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary)}.product-card-badge-club{width:43px;background-color:var(--color-badge-main);border-radius:4px;text-align:center}.product-card-badge-club-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary);padding:1px 0}.product-card-section-badge{display:flex;gap:4px}.product-card-horizontal{border-radius:8px}.product-card-horizontal{min-width:304px;max-width:304px;border-radius:8px;flex:1;display:flex;flex-direction:column;height:100%;max-height:206px}.product-card-horizontal+.product-card-unavailable-text{min-width:304px;max-width:304px}.product-card-section-product-horizontal{display:flex;align-items:center;position:relative;cursor:pointer;background-color:#fff;border:1px solid var(--color-grayScale-lightest);border-radius:8px;border-bottom:unset;border-bottom-left-radius:unset;border-bottom-right-radius:unset;height:100%}.product-card-section-product-horizontal .product-card-image-container{position:unset;height:100px;padding:0 var(--product-card-horizontal-padding);z-index:1;width:calc(var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2));margin:0}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;min-height:123px;max-height:158px;padding:7.5px 8px;border-top-right-radius:7px;width:calc(100% - (var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2)));height:100%}.product-card-section-name{display:flex;flex-direction:column;gap:4px}.product-card-horizontal-description .product-card-club-price{line-height:18px}.out-of-stock{min-height:126px}.out-of-stock-description-content{display:flex;flex-direction:column;flex:1}.product-card-section-product-horizontal .product-card-name{font-size:var(--text-size-1);line-height:20px;min-height:auto;height:100%;max-width:172px}.product-card-section-product-horizontal .product-card-section-badge-horizontal{display:flex;gap:4px;height:16px}.product-card-horizontal .product-card-price-container{display:flex;flex-direction:row;align-items:center;min-height:20px}.product-card-horizontal .product-card-price-container .product-card-old-price{padding-right:4px;border-right:1px solid var(--color-grayScale-light)}.product-card-horizontal .product-card-price-container .product-card-new-price{padding-left:4px;font-size:var(--text-size-2);line-height:20px}.product-card-section-badge-container.horizontal{position:unset;height:24px;width:100%}.product-card-button{display:flex;justify-content:center;align-items:center;width:162px;min-width:150px;max-width:162px;height:48px;padding:0;border:1px solid var(--color-main);border-top:none;border-bottom-left-radius:8px;border-bottom-right-radius:8px;background-color:var(--color-main);color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:var(--text-size-2);line-height:20px;cursor:pointer}.product-card-horizontal .product-card-button{font-size:var(--text-size-3);line-height:24px;width:100%;max-width:none}.product-card-button.unavailable{background-color:var(--color-grayScale-lightest);color:#545454;cursor:not-allowed}.product-card-button .button{padding:12px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;font-size:var(--text-size-3);line-height:24px;max-height:unset}.product-card-image-container{position:relative;display:flex;justify-content:center;align-items:center;padding:7.5px 8px;background-color:#fff;border-top-left-radius:7px;border-top-right-radius:7px}.product-card-image-container .image{max-width:96px;height:96px;object-fit:contain}.product-club-badge{position:absolute;width:50px;height:18px;inset:8px 0 0 8px}.product-card-section-badge-container{position:absolute;bottom:8px;height:18px;width:calc(100% - 32px);display:flex;justify-content:center;align-items:center;border-radius:4px}.product-card-section-badge-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}.product-club-badge.horizontal{inset:9px 0 0 9px}.product-card-name{display:-webkit-box;font-weight:var(--text-weight-regular);font-size:var(--text-size-1);line-height:18px;color:#545454;vertical-align:middle;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-price{display:flex;flex-direction:column;gap:4px;margin-top:auto}.product-card-club-price{display:inline-block;width:100%;padding:4px;background-color:#fadb9d;border-radius:4px;color:#2c3490;font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px}.product-card-old-price{height:16px;font-weight:400;font-size:var(--text-size-0);line-height:16px;color:#545454;text-decoration:line-through;vertical-align:middle}.product-card-new-price{font-weight:var(--text-weight-bold);font-size:var(--text-size-3);line-height:24px;color:var(--color-main);vertical-align:middle}.product-card-price-container{display:flex;flex-direction:column;min-height:24px}.product-card-old-price .mobile{display:block}@media (min-width: 769px){.product-card,.product-card+#product-card-button,.product-card+.product-card-unavailable-text{width:226px;max-width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-button{width:226px;max-width:226px}.product-card-description{padding:8px 16px}.product-card-unavailable{height:74px}.product-card-image-container{padding:15.5px 16px 7.5px}.product-card-image-container .image{max-width:144px;height:144px}.product-club-badge{width:67px;height:24px;inset:16px 0 0 16px}.product-card-section-badge-container{max-width:194px;height:24px}.product-card-section-badge-text{font-size:var(--text-size-1);line-height:18px}.product-card-name{font-size:var(--text-size-2);line-height:20px}.product-card-old-price .mobile{display:none}.product-card-old-price{padding-right:4px;border-right:2px solid var(--color-grayScale-light)}.product-card-new-price{padding-left:4px}.product-card-club-price{font-size:var(--text-size-1);line-height:18px}.product-card-price-container{display:flex;flex-direction:row;align-items:center}.product-card-badge-club{width:57px}.product-card-badge-club-text{font-size:var(--text-size-1);line-height:18px;padding:3px 0}}.quantity-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:48px;border:1px solid var(--color-main);border-bottom-left-radius:8px;border-bottom-right-radius:8px;background-color:var(--bg-neutral-lightest);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow);transition:box-shadow .2s ease}[data-store-quantity-selector] [data-store-icon]{display:inline-block;margin:0;color:var(--color-main);line-height:0}.quantity-selector .quantity-selector-quantity{display:block;width:100%;height:100%;padding:0;font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale);text-align:center;background-color:transparent;border-width:0;opacity:1}.quantity-selector .quantity-selector-quantity:focus{outline:0}.quantity-selector .quantity-selector-quantity:disabled{color:var(--color-grayScale);opacity:1}.quantity-selector-button{display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:var(--space-0);font-family:DM Sans,sans-serif;background-color:var(--color-grayScale-lightest);border:unset;border-bottom-left-radius:7px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-bottom-right-radius:7px;border-bottom-left-radius:unset}.quantity-selector-measure-unit{font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale)}.quantity-selector .quantity-selector-button [data-store-icon]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:var(--border-radius-default);transition:background-color .2s ease}.quantity-selector .quantity-selector-button:hover:not(:disabled) [data-store-icon]{background-color:var(--bg-secondary-light)}.quantity-selector .quantity-selector-button:disabled{cursor:not-allowed}.quantity-selector .quantity-selector-button:disabled [data-store-icon]{color:var(--color-grayScale-light)}.quantity-selector:hover:not([data-store-quantity-selector=disabled]){box-shadow:0 0 0 var(--border-width-1) var(--color-support-shadow)}.quantity-selector[data-store-quantity-selector=disabled]{background-color:var(--color-grayScale-light);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow)}.quantity-selector[data-store-quantity-selector=disabled] [data-quantity-selector-button]:hover [data-store-icon]{background-color:transparent}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.quantity-selector .quantity-selector-button:focus{outline:none;box-shadow:none}.quantity-selector .quantity-selector-button:focus [data-store-icon]{outline:2px solid var(--color-main);outline-offset:2px;background-color:var(--bg-secondary-light)}}}.quantity-selector .quantity-selector-button:focus-visible{outline:none;box-shadow:none}.quantity-selector .quantity-selector-button:focus-visible [data-store-icon]{outline:2px solid var(--color-main);outline-offset:2px;background-color:var(--bg-secondary-light)}.product-add-text{display:block;height:10px;padding-bottom:17px;text-align:center;transition-delay:.25s;transition-property:margin-top}.product-add-text p{font-family:DM Sans,sans-serif;font-size:var(--text-size-0);font-weight:400;font-style:normal;line-height:16px;color:var(--color-positiveFeedback-dark);text-align:center;white-space:nowrap}@include media(">tablet"){.product-add-text p {font-size: var(--text-size-1); line-height: 18px;}}.product-card-unavailable-text{height:48px;width:100%;background-color:var(--color-grayScale-lightest);border:1px solid var(--color-grayScale-lightest);color:var(--color-grayScale-darkest);text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;align-content:center;border-bottom-left-radius:8px;border-bottom-right-radius:8px}
|
|
1
|
+
:root{--product-card-horizontal-width: 100px;--product-card-horizontal-margin: 8px;--product-card-horizontal-padding: 8px}#product-card,#product-card-unavailable{display:flex;flex-direction:column;min-height:276px;max-height:304px;height:100%}#product-card-unavailable.product-card-horizontal-unavailable{min-height:172px;max-height:206px}.product-card{display:flex;flex-direction:column;flex:1;position:relative;height:100%;cursor:pointer;border:1px solid var(--color-grayScale-lightest);border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:0;overflow:hidden}.product-card-container{height:100%;display:flex;flex-direction:column;flex:1}.product-card,.product-card+#product-card-button,.product-card+.product-card-unavailable-text{width:162px;min-width:150px;max-width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;flex:1}.product-card-badge{display:flex;gap:4px}.product-card-badge-kg{display:inline-block;width:fit-content;height:16px;padding:2px 4px;background-color:var(--color-main);border-radius:2px;color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:10px;line-height:13px;text-align:center;vertical-align:middle}.product-card-discount-badge{display:flex;align-items:center;justify-content:center;width:42px;height:16px;background-color:var(--color-badge-main);border-radius:2px}.product-card-discount-badge-value{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary)}.product-card-badge-club{width:43px;background-color:var(--color-badge-main);border-radius:4px;text-align:center}.product-card-badge-club-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary);padding:1px 0}.product-card-section-badge{display:flex;gap:4px}.product-card-horizontal{border-radius:8px}.product-card-horizontal{min-width:304px;max-width:304px;border-radius:8px;flex:1;display:flex;flex-direction:column;height:100%;max-height:206px}.product-card-horizontal+.product-card-unavailable-text{min-width:304px;max-width:304px}.product-card-section-product-horizontal{display:flex;align-items:center;position:relative;cursor:pointer;background-color:#fff;border:1px solid var(--color-grayScale-lightest);border-radius:8px;border-bottom:unset;border-bottom-left-radius:unset;border-bottom-right-radius:unset;height:100%}.product-card-section-product-horizontal .product-card-image-container{position:unset;height:100px;padding:0 var(--product-card-horizontal-padding);width:calc(var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2));margin:0}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;min-height:123px;max-height:158px;padding:7.5px 8px;border-top-right-radius:7px;width:calc(100% - (var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2)));height:100%}.product-card-section-name{display:flex;flex-direction:column;gap:4px}.product-card-horizontal-description .product-card-club-price{line-height:18px}.out-of-stock{min-height:126px}.out-of-stock-description-content{display:flex;flex-direction:column;flex:1}.product-card-section-product-horizontal .product-card-name{font-size:var(--text-size-1);line-height:20px;min-height:auto;height:100%;max-width:172px}.product-card-section-product-horizontal .product-card-section-badge-horizontal{display:flex;gap:4px;height:16px}.product-card-horizontal .product-card-price-container{display:flex;flex-direction:row;align-items:center;min-height:20px}.product-card-horizontal .product-card-price-container .product-card-old-price{padding-right:4px;border-right:1px solid var(--color-grayScale-light)}.product-card-horizontal .product-card-price-container .product-card-new-price{padding-left:4px;font-size:var(--text-size-2);line-height:20px}.product-card-section-badge-container.horizontal{position:unset;height:24px;width:100%}.product-card-button{display:flex;justify-content:center;align-items:center;width:162px;min-width:150px;max-width:162px;height:48px;padding:0;border:1px solid var(--color-main);border-top:none;border-bottom-left-radius:8px;border-bottom-right-radius:8px;background-color:var(--color-main);color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:var(--text-size-2);line-height:20px;cursor:pointer}.product-card-horizontal .product-card-button{font-size:var(--text-size-3);line-height:24px;width:100%;max-width:none}.product-card-button.unavailable{background-color:var(--color-grayScale-lightest);color:#545454;cursor:not-allowed}.product-card-button .button{padding:12px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;font-size:var(--text-size-3);line-height:24px;max-height:unset}.product-card-image-container{position:relative;display:flex;justify-content:center;align-items:center;padding:7.5px 8px;background-color:#fff;border-top-left-radius:7px;border-top-right-radius:7px}.product-card-image-container .image{max-width:96px;height:96px;object-fit:contain}.product-club-badge{position:absolute;width:50px;height:18px;inset:8px 0 0 8px}.product-card-section-badge-container{position:absolute;bottom:8px;height:18px;width:calc(100% - 32px);display:flex;justify-content:center;align-items:center;border-radius:4px}.product-card-section-badge-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}.product-club-badge.horizontal{inset:9px 0 0 9px}.product-card-name{display:-webkit-box;font-weight:var(--text-weight-regular);font-size:var(--text-size-1);line-height:18px;color:#545454;vertical-align:middle;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-price{display:flex;flex-direction:column;gap:4px;margin-top:auto}.product-card-club-price{display:inline-block;width:100%;padding:4px;background-color:#fadb9d;border-radius:4px;color:#2c3490;font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px}.product-card-old-price{height:16px;font-weight:400;font-size:var(--text-size-0);line-height:16px;color:#545454;text-decoration:line-through;vertical-align:middle}.product-card-new-price{font-weight:var(--text-weight-bold);font-size:var(--text-size-3);line-height:24px;color:var(--color-main);vertical-align:middle}.product-card-price-container{display:flex;flex-direction:column;min-height:24px}.product-card-old-price .mobile{display:block}@media (min-width: 769px){.product-card,.product-card+#product-card-button,.product-card+.product-card-unavailable-text{width:226px;max-width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-button{width:226px;max-width:226px}.product-card-description{padding:8px 16px}.product-card-unavailable{height:74px}.product-card-image-container{padding:15.5px 16px 7.5px}.product-card-image-container .image{max-width:144px;height:144px}.product-club-badge{width:67px;height:24px;inset:16px 0 0 16px}.product-card-section-badge-container{max-width:194px;height:24px}.product-card-section-badge-text{font-size:var(--text-size-1);line-height:18px}.product-card-name{font-size:var(--text-size-2);line-height:20px}.product-card-old-price .mobile{display:none}.product-card-old-price{padding-right:4px;border-right:2px solid var(--color-grayScale-light)}.product-card-new-price{padding-left:4px}.product-card-club-price{font-size:var(--text-size-1);line-height:18px}.product-card-price-container{display:flex;flex-direction:row;align-items:center}.product-card-badge-club{width:57px}.product-card-badge-club-text{font-size:var(--text-size-1);line-height:18px;padding:3px 0}}.quantity-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:48px;border:1px solid var(--color-main);border-bottom-left-radius:8px;border-bottom-right-radius:8px;background-color:var(--bg-neutral-lightest);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow);transition:box-shadow .2s ease}[data-store-quantity-selector] [data-store-icon]{display:inline-block;margin:0;color:var(--color-main);line-height:0}.quantity-selector .quantity-selector-quantity{display:block;width:100%;height:100%;padding:0;font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale);text-align:center;background-color:transparent;border-width:0;opacity:1}.quantity-selector .quantity-selector-quantity:focus{outline:0}.quantity-selector .quantity-selector-quantity:disabled{color:var(--color-grayScale);opacity:1}.quantity-selector-button{display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:var(--space-0);font-family:DM Sans,sans-serif;background-color:var(--color-grayScale-lightest);border:unset;border-bottom-left-radius:7px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-bottom-right-radius:7px;border-bottom-left-radius:unset}.quantity-selector-measure-unit{font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale)}.quantity-selector .quantity-selector-button [data-store-icon]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:var(--border-radius-default);transition:background-color .2s ease}.quantity-selector .quantity-selector-button:hover:not(:disabled) [data-store-icon]{background-color:var(--bg-secondary-light)}.quantity-selector .quantity-selector-button:disabled{cursor:not-allowed}.quantity-selector .quantity-selector-button:disabled [data-store-icon]{color:var(--color-grayScale-light)}.quantity-selector:hover:not([data-store-quantity-selector=disabled]){box-shadow:0 0 0 var(--border-width-1) var(--color-support-shadow)}.quantity-selector[data-store-quantity-selector=disabled]{background-color:var(--color-grayScale-light);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow)}.quantity-selector[data-store-quantity-selector=disabled] [data-quantity-selector-button]:hover [data-store-icon]{background-color:transparent}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.quantity-selector .quantity-selector-button:focus{outline:none;box-shadow:none}.quantity-selector .quantity-selector-button:focus [data-store-icon]{outline:2px solid var(--color-main);outline-offset:2px;background-color:var(--bg-secondary-light)}}}.quantity-selector .quantity-selector-button:focus-visible{outline:none;box-shadow:none}.quantity-selector .quantity-selector-button:focus-visible [data-store-icon]{outline:2px solid var(--color-main);outline-offset:2px;background-color:var(--bg-secondary-light)}.product-add-text{display:block;height:10px;padding-bottom:17px;text-align:center;transition-delay:.25s;transition-property:margin-top}.product-add-text p{font-family:DM Sans,sans-serif;font-size:var(--text-size-0);font-weight:400;font-style:normal;line-height:16px;color:var(--color-positiveFeedback-dark);text-align:center;white-space:nowrap}@include media(">tablet"){.product-add-text p {font-size: var(--text-size-1); line-height: 18px;}}.product-card-unavailable-text{height:48px;width:100%;background-color:var(--color-grayScale-lightest);border:1px solid var(--color-grayScale-lightest);color:var(--color-grayScale-darkest);text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;align-content:center;border-bottom-left-radius:8px;border-bottom-right-radius:8px}
|