diff --git a/assets/iconPix.svg b/assets/iconPix.svg
new file mode 100644
index 0000000..af826b6
--- /dev/null
+++ b/assets/iconPix.svg
@@ -0,0 +1,38 @@
+
diff --git a/react/PayWithPix.tsx b/react/PayWithPix.tsx
new file mode 100644
index 0000000..13fe3a0
--- /dev/null
+++ b/react/PayWithPix.tsx
@@ -0,0 +1,3 @@
+import { PayWithPix } from "./components/PayWithPix/PayWithPix";
+
+export default PayWithPix;
diff --git a/react/ProductContext.tsx b/react/ProductContext.tsx
new file mode 100644
index 0000000..fbdca5f
--- /dev/null
+++ b/react/ProductContext.tsx
@@ -0,0 +1,36 @@
+import React, { useEffect, useState } from "react";
+import { useProduct } from "vtex.product-context";
+
+const ProductContext = () => {
+ const productContext = useProduct();
+ const [simulation, setSimulation] = useState();
+ useEffect(() => {
+ fetch("/api/checkout/pub/orderForms/simulation?sc=1", {
+ headers: {
+ Accept: "application/json",
+ "Content-Type": "application/json",
+ },
+ method: "POST",
+ body: JSON.stringify({
+ paymentData: {
+ payments: [{ paymentSystem: "125", installments: 1 }],
+ },
+ items: [
+ {
+ id: productContext?.selectedItem?.itemId,
+ quantity: 1,
+ seller: "1",
+ },
+ ],
+ country: "BRA",
+ }),
+ }).then(async (res) => {
+ setSimulation(await res.json());
+ });
+ }, [productContext?.selectedItem]);
+
+ console.log("productContext", productContext);
+ return <> {simulation?.paymentData?.payments[0]?.value}>;
+};
+
+export default ProductContext;
diff --git a/react/components/PayWithPix/PayWithPix.css b/react/components/PayWithPix/PayWithPix.css
new file mode 100644
index 0000000..cef306a
--- /dev/null
+++ b/react/components/PayWithPix/PayWithPix.css
@@ -0,0 +1,33 @@
+.PayWithPix {
+ display: flex;
+ column-gap: 26px;
+ align-items: center;
+ margin: 16px 0 24px;
+}
+
+.PayWithPix__pixIcon {
+ width: 66px;
+ height: 24px;
+ display: block;
+}
+
+.PayWithPix__wrapper {
+ display: flex;
+ flex-direction: column;
+}
+
+.PayWithPix__price {
+ font-family: "Open Sans", sans-serif;
+ font-weight: 700;
+ font-size: 18px;
+ line-height: 25px;
+ color: rgba(0, 0, 0, 0.58);
+ margin: 0;
+}
+
+.PayWithPix__discount {
+ font-family: "Open Sans", sans-serif;
+ font-weight: 300;
+ font-size: 13px;
+ color: #929292;
+}
diff --git a/react/components/PayWithPix/PayWithPix.tsx b/react/components/PayWithPix/PayWithPix.tsx
new file mode 100644
index 0000000..2f54ace
--- /dev/null
+++ b/react/components/PayWithPix/PayWithPix.tsx
@@ -0,0 +1,24 @@
+import React from "react";
+import { useProduct } from "vtex.product-context";
+
+import style from "./PayWithPix.css";
+
+const PayWithPix = () => {
+ const productContextValue = useProduct();
+
+ const discount =
+ (productContextValue?.product?.priceRange?.sellingPrice?.highPrice ?? 0) *
+ 0.9;
+ const priceFormatted = discount?.toFixed(2).toString().replace(".", ",");
+
+ return (
+
+
+
R$ {priceFormatted}
+
10 % de desconto
+
+
+ );
+};
+
+export { PayWithPix };
diff --git a/store/blocks/pdp/product.jsonc b/store/blocks/pdp/product.jsonc
index cf50609..96417fd 100644
--- a/store/blocks/pdp/product.jsonc
+++ b/store/blocks/pdp/product.jsonc
@@ -1,62 +1,13 @@
{
"store.product": {
"children": [
- "html#breadcrumb",
"condition-layout.product#availability",
- "tab-layout#description",
"rich-text#prateleira",
"flex-layout.row#shelf",
"product-questions-and-answers",
"newsletter"
]
},
-
- "product-summary.shelf#teste": {
- "children": [
- "product-summary-image#shelf",
- "product-summary-name",
- "product-summary-space",
- "product-list-price#summary",
- "product-selling-price#summary"
- ]
- },
-
- "newsletter": {
- "props": {
- "label": "Assine nossa newsletter",
- "placeholder": "Digite seu e-mail"
- }
- },
-
- "rich-text#prateleira": {
- "props": {
- "text": "Você também pode gostar:",
- "blockClass": "title-shelf"
- }
- },
-
- "list-context.product-list#teste": {
- "blocks": ["product-summary.shelf#teste"],
- "children": ["slider-layout#prateleira"]
- },
-
- "slider-layout#prateleira": {
- "props": {
- "itemsPerPage": {
- "desktop": 4,
- "tablet": 3,
- "phone": 2
- },
- "infinite": true,
- "showNavigationArrows": "desktopOnly",
- "blockClass": "carousel"
- }
- },
-
- "flex-layout.row#shelf": {
- "children": ["list-context.product-list#teste"]
- },
-
"html#breadcrumb": {
"props": {
"tag": "section",
@@ -65,14 +16,105 @@
},
"children": ["breadcrumb"]
},
- "flex-layout.row#specifications-title": {
- "children": ["rich-text#specifications"]
- },
- "rich-text#specifications": {
+
+ "html#imagens": {
"props": {
- "text": "##### Product Specifications"
- }
+ "testId": "product-images"
+ },
+ "children": ["flex-layout.row#product-image"]
},
+
+ "html#product-name": {
+ "props": {
+ "testId": "product-name"
+ },
+ "children": ["flex-layout.row#product-name"]
+ },
+
+ "html#codigo": {
+ "props": {
+ "testId": "product-code"
+ },
+ "children": ["product-identifier.product"]
+ },
+
+ "html#selling-price": {
+ "props": {
+ "testId": "product-price"
+ },
+ "children": ["product-selling-price"]
+ },
+
+ "html#product-installments": {
+ "props": {
+ "testId": "product-installments"
+ },
+ "children": ["product-installments"]
+ },
+
+ "html#pixzap": {
+ "props": {
+ "testId": "pix-price"
+ },
+ "children": ["flex-layout.row#pix"]
+ },
+
+ "html#sku-selector": {
+ "props": {
+ "testId": "sku-selector"
+ },
+ "children": ["sku-selector"]
+ },
+
+ "html#product-quantity": {
+ "props": {
+ "testId": "product-quantity"
+ },
+ "children": ["flex-layout.row#product-quantity"]
+ },
+
+ "html#add-to-cart-button": {
+ "props": {
+ "testId": "add-to-cart-button"
+ },
+ "children": ["add-to-cart-button"]
+ },
+
+ "html#shipping-simulator": {
+ "props": {
+ "testId": "shipping-simulator"
+ },
+ "children": ["shipping-simulator"]
+ },
+
+ "html#product-description": {
+ "props": {
+ "testId": "product-description"
+ },
+ "children": ["tab-layout#description"]
+ },
+
+ "html#slider": {
+ "props": {
+ "testId": "product-summary-list"
+ },
+ "children": ["list-context.product-list#teste"]
+ },
+
+ "html#prateleira": {
+ "props": {
+ "blockClass": "prateleira",
+ "testId": "vtex-product-summary"
+ },
+ "children": [
+ "product-summary-image#shelf",
+ "product-summary-name",
+ "product-summary-space",
+ "product-list-price#summary",
+ "html#selling-price"
+ ]
+ },
+
"tab-layout#description": {
"children": ["tab-list#description", "tab-content#description"],
"props": {
@@ -142,39 +184,79 @@
},
"tab-content.item#description1": {
- "children": ["product-images", "product-description"],
+ "children": ["image#description", "product-description"],
"props": {
"tabId": "description1"
}
},
"tab-content.item#description2": {
- "children": ["product-images", "product-description"],
+ "children": ["image#description", "product-description"],
"props": {
"tabId": "description2"
}
},
"tab-content.item#description3": {
- "children": ["product-images", "product-description"],
+ "children": ["image#description", "product-description"],
"props": {
"tabId": "description3"
}
},
"tab-content.item#description4": {
- "children": ["product-images", "product-description"],
+ "children": ["image#description", "product-description"],
"props": {
"tabId": "description4"
}
},
"tab-content.item#description5": {
- "children": ["product-images", "product-description"],
+ "children": ["image#description", "product-description"],
"props": {
"tabId": "description5"
}
},
+
+ "image#description": {
+ "props": {
+ "blockClass": "image-description",
+ "src": "https://agenciamagma.vtexassets.com/arquivos/ids/164491-800-auto?v=637781133812700000&width=800&height=auto&aspect=true"
+ }
+ },
+
+ "rich-text#prateleira": {
+ "props": {
+ "blockClass": "title-shelf",
+ "text": "Você também pode gostar:"
+ }
+ },
+
+ "product-summary.shelf#teste": {
+ "children": ["html#prateleira"]
+ },
+
+ "list-context.product-list#teste": {
+ "blocks": ["product-summary.shelf#teste"],
+ "children": ["slider-layout#prateleira"]
+ },
+
+ "slider-layout#prateleira": {
+ "props": {
+ "itemsPerPage": {
+ "desktop": 4,
+ "tablet": 3,
+ "phone": 2
+ },
+ "infinite": true,
+ "blockClass": "carousel"
+ }
+ },
+
+ "flex-layout.row#shelf": {
+ "children": ["html#slider"]
+ },
+
"condition-layout.product#availability": {
"props": {
"conditions": [
@@ -188,6 +270,7 @@
},
"flex-layout.row#product-main": {
"props": {
+ "blockClass": "principal",
"colGap": 7,
"rowGap": 7,
"marginTop": 4,
@@ -195,15 +278,33 @@
"paddingTop": 7,
"paddingBottom": 7
},
+ "children": ["flex-layout.col#mainpage-col"]
+ },
+
+ "flex-layout.row#mainpage-row": {
+ "props": {
+ "blockClass": "mainpage-row"
+ },
"children": ["flex-layout.col#stack", "flex-layout.col#right-col"]
},
+ "flex-layout.col#mainpage-col": {
+ "props": {
+ "blockClass": "mainpage-col"
+ },
+ "children": [
+ "html#breadcrumb",
+ "flex-layout.row#mainpage-row",
+ "html#product-description"
+ ]
+ },
+
"stack-layout": {
"props": {
"blockClass": "product"
},
"children": [
- "flex-layout.row#product-image",
+ "html#imagens",
"product-bookmark",
"product-specification-badges"
]
@@ -232,7 +333,7 @@
"props": {
"aspectRatio": {
"desktop": "auto",
- "phone": "16:9"
+ "phone": "1:1"
},
"displayThumbnailsArrows": true,
"thumbnailsOrientation": "horizontal"
@@ -244,28 +345,42 @@
"rowGap": 0
},
"children": [
- "flex-layout.row#product-name",
- "product-identifier.product",
+ "html#product-name",
+ "html#codigo",
"product-rating-summary",
"flex-layout.row#list-price-savings",
"flex-layout.row#selling-price",
- "product-installments",
- "sku-selector",
- "product-assembly-options",
- "product-gifts",
+ "html#product-installments",
+ "html#pixzap",
+ "html#sku-selector",
"flex-layout.row#buy-box",
"availability-subscriber",
- "flex-layout.row#shipping",
+ "html#shipping-simulator",
"share#default",
"placeholder"
]
},
- "flex-layout.row#shipping": {
+ "flex-layout.row#pix": {
"props": {
- "blockClass": "shipping-container"
+ "blockClass": "pix-container"
},
- "children": ["shipping-simulator"]
+ "children": ["image#pix", "pay-with-pix"]
+ },
+
+ "image#pix": {
+ "props": {
+ "blockClass": "pix-image",
+ "src": "assets/iconPix.svg"
+ }
+ },
+
+ "product-installments": {
+ "props": {
+ "installmentsCriteria": "max-quantity-without-interest",
+ "markers": ["discount"],
+ "message": "ou {installmentsNumber}x de {installmentValue} sem juros"
+ }
},
"flex-layout.row#product-name": {
@@ -275,6 +390,14 @@
"children": ["vtex.store-components:product-name"]
},
+ "newsletter": {
+ "props": {
+ "blockClass": "newsletter",
+ "label": "Assine nossa Newsletter",
+ "placeholder": "Digite seu e-mail"
+ }
+ },
+
"sku-selector": {
"props": {
"variationsSpacing": 3,
@@ -283,15 +406,13 @@
},
"flex-layout.row#buy-box": {
- "children": [
- "flex-layout.row#product-quantity",
- "flex-layout.row#buy-button"
- ],
"props": {
"colGap": 0,
"blockClass": "buy-box",
"colSizing": "auto"
- }
+ },
+
+ "children": ["html#product-quantity", "flex-layout.row#buy-button"]
},
"flex-layout.row#product-quantity": {
@@ -306,11 +427,11 @@
"props": {
"blockClass": "button-container",
"marginTop": 4,
+ "marginBottom": 7,
"preventHorizontalStretch": false,
- "fullWidth": true,
- "marginBottom": 7
+ "fullWidth": true
},
- "children": ["add-to-cart-button"]
+ "children": ["html#add-to-cart-button"]
},
"flex-layout.row#product-availability": {
@@ -320,11 +441,34 @@
"marginBottom": 7,
"paddingTop": 7
},
+ "children": ["flex-layout.row#mainpage-row-availability"]
+ },
+
+ "flex-layout.row#mainpage-row-availability": {
+ "props": {
+ "blockClass": "mainpage-row"
+ },
+ "children": ["flex-layout.col#mainpage-col-availability"]
+ },
+
+ "flex-layout.row#teste": {
"children": [
"flex-layout.col#stack",
"flex-layout.col#right-col-availability"
]
},
+
+ "flex-layout.col#mainpage-col-availability": {
+ "props": {
+ "blockClass": "mainpage-col"
+ },
+ "children": [
+ "html#breadcrumb",
+ "flex-layout.row#teste",
+ "html#product-description"
+ ]
+ },
+
"flex-layout.col#right-col-availability": {
"props": {
"preventVerticalStretch": true,
@@ -332,12 +476,13 @@
"blockClass": "info-availability"
},
"children": [
- "flex-layout.row#product-name",
- "product-identifier.product",
- "sku-selector",
- "flex-layout.row#availability"
+ "html#product-name",
+ "html#codigo",
+ "flex-layout.row#availability",
+ "html#sku-selector"
]
},
+
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
diff --git a/store/interfaces.json b/store/interfaces.json
index d2358a8..c587e6b 100644
--- a/store/interfaces.json
+++ b/store/interfaces.json
@@ -9,5 +9,11 @@
"placeholder": {
"component": "placeholder"
+ },
+ "product-context": {
+ "component": "ProductContext"
+ },
+ "pay-with-pix": {
+ "component": "PayWithPix"
}
}
diff --git a/styles/css/agenciamagma.store-theme.css b/styles/css/agenciamagma.store-theme.css
index e26e1ce..c73a8c3 100644
--- a/styles/css/agenciamagma.store-theme.css
+++ b/styles/css/agenciamagma.store-theme.css
@@ -18,4 +18,10 @@
.relative {
display: none;
+}
+
+.agenciamagma-store-theme-5-x-html--prateleira {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
}
\ No newline at end of file
diff --git a/styles/css/vtex.breadcrumb.css b/styles/css/vtex.breadcrumb.css
index 9ba690a..3f0a375 100644
--- a/styles/css/vtex.breadcrumb.css
+++ b/styles/css/vtex.breadcrumb.css
@@ -9,25 +9,24 @@
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
/* Grid breakpoints */
.container {
- padding: 0px 40px 16px 40px;
- display: flex;
- align-items: center;
+ padding: 0;
+ font-size: 14px;
}
.container .homeIcon {
display: none;
}
.container .homeLink {
- display: none;
-}
-.container .homeLink .link--1 {
padding-left: 0;
}
-.container .arrow--1 {
- padding-left: 0;
+.container .homeLink::before {
+ content: "Home";
+ font-size: 14px;
+ line-height: 19px;
+ color: #929292;
}
-.container .arrow--1 .link--1 {
- padding-left: 0;
-}
-.container .arrow--1 .caretIcon {
- display: none;
+
+.agenciamagma-store-theme-5-x-html--prateleira {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
}
\ No newline at end of file
diff --git a/styles/css/vtex.flex-layout.css b/styles/css/vtex.flex-layout.css
index a0cb208..afd54e1 100644
--- a/styles/css/vtex.flex-layout.css
+++ b/styles/css/vtex.flex-layout.css
@@ -12,9 +12,26 @@
padding: 0;
margin: 0;
}
+@media screen and (max-width: 1024px) {
+ .flexRowContent {
+ flex-direction: column;
+ }
+ .flexRowContent .flexRowContent--buy-box {
+ flex-direction: row;
+ }
+}
+@media screen and (max-width: 1024px) and (max-width: 768px) {
+ .flexRowContent .flexRowContent--buy-box {
+ flex-direction: column;
+ }
+}
.flexRowContent .flexColChild .product-identifier--productReference {
float: right;
}
+.flexRowContent .pix-container .imageElement {
+ width: 66px;
+ height: 24px;
+}
.product-images {
padding-left: 0;
@@ -36,6 +53,19 @@
border: 0;
height: 50px;
margin-left: 10px;
+ border-radius: 0;
+}
+@media screen and (max-width: 768px) {
+ .flexRowContent--button-container :global(.vtex-button) {
+ margin: 0;
+ height: 74px;
+ margin-top: 10px;
+ }
+}
+@media screen and (max-width: 767px) {
+ .flexRowContent--button-container :global(.vtex-button) :global(.vtex-add-to-cart-button-0-x-buttonDataContainer) {
+ padding: 0 56px;
+ }
}
.flexRow--buy-box .stretchChildrenWidth:nth-child(2n) {
@@ -49,4 +79,25 @@
:global(.vtex-flex-layout-0-x-flexColChild) {
order: -1;
+}
+
+:global(.vtex-flex-layout-0-x-flexRow--pix-container) {
+ display: flex;
+ align-items: center;
+}
+@media screen and (max-width: 1024px) {
+ :global(.vtex-flex-layout-0-x-flexRow--pix-container) :global(.vtex-flex-layout-0-x-flexRowContent--pix-container) {
+ flex-direction: row;
+ display: flex;
+ }
+}
+:global(.vtex-flex-layout-0-x-flexRow--pix-container) :global(.vtex-flex-layout-0-x-flexRowContent--pix-container) :global(.vtex-flex-layout-0-x-stretchChildrenWidth) {
+ display: flex;
+ align-items: center;
+ width: auto !important;
+ padding-right: 26px;
+}
+:global(.vtex-flex-layout-0-x-flexRow--pix-container) :global(.vtex-flex-layout-0-x-flexRowContent--pix-container) :global(.vtex-flex-layout-0-x-stretchChildrenWidth) :global(.vtex-store-components-3-x-imageElement) {
+ width: 66px;
+ height: 24px;
}
\ No newline at end of file
diff --git a/styles/css/vtex.login.css b/styles/css/vtex.login.css
index 5a2363e..6924fa4 100644
--- a/styles/css/vtex.login.css
+++ b/styles/css/vtex.login.css
@@ -12,4 +12,10 @@
.vtex-address-form__postalCode-forgottenURL
a) {
color: #000;
+}
+
+:global(.agenciamagma-store-theme-5-x-html--prateleira) {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
}
\ No newline at end of file
diff --git a/styles/css/vtex.product-price.css b/styles/css/vtex.product-price.css
index 569f299..704d51c 100644
--- a/styles/css/vtex.product-price.css
+++ b/styles/css/vtex.product-price.css
@@ -29,4 +29,8 @@
font-size: 16px;
line-height: 22px;
color: #929292;
+}
+
+:global(.vtex-product-price-1-x-listPrice) {
+ display: none;
}
\ No newline at end of file
diff --git a/styles/css/vtex.product-quantity.css b/styles/css/vtex.product-quantity.css
index d58c4ef..4d11689 100644
--- a/styles/css/vtex.product-quantity.css
+++ b/styles/css/vtex.product-quantity.css
@@ -28,6 +28,11 @@
border-left: 0;
border-right: 0;
}
+@media screen and (max-width: 1024px) {
+ :global(.vtex-numeric-stepper__input) {
+ width: 44px;
+ }
+}
:global(.vtex-add-to-cart-button-0-x-buttonText) {
font-size: 0;
diff --git a/styles/css/vtex.rich-text.css b/styles/css/vtex.rich-text.css
index 6736e93..fdff190 100644
--- a/styles/css/vtex.rich-text.css
+++ b/styles/css/vtex.rich-text.css
@@ -17,5 +17,33 @@
line-height: 38px;
text-align: center;
color: #575757;
- margin: 12px 0 0 0;
+ margin: 0;
+}
+@media screen and (max-width: 767px) {
+ .container--title-shelf .paragraph--title-shelf {
+ font-size: 20px;
+ }
+}
+
+:global(.vtex-input__error) {
+ display: none;
+}
+
+:global(.vtex-store-components-3-x-imageElement--image-description) {
+ max-width: 632px;
+ max-height: 632px;
+ margin: 32px 0 0 32px;
+}
+@media screen and (min-width: 1920px) {
+ :global(.vtex-store-components-3-x-imageElement--image-description) {
+ max-width: unset;
+ max-height: unset;
+ }
+}
+@media screen and (max-width: 1024px) {
+ :global(.vtex-store-components-3-x-imageElement--image-description) {
+ max-width: 944px;
+ max-height: 944px;
+ margin-left: 0;
+ }
}
\ No newline at end of file
diff --git a/styles/css/vtex.slider-layout.css b/styles/css/vtex.slider-layout.css
index f7a5343..db58dd9 100644
--- a/styles/css/vtex.slider-layout.css
+++ b/styles/css/vtex.slider-layout.css
@@ -12,12 +12,21 @@
background-color: transparent;
height: 630px;
}
+.sliderLayoutContainer .slide {
+ margin: 0 4px;
+}
.sliderLayoutContainer .sliderRightArrow,
.sliderLayoutContainer .sliderLeftArrow {
bottom: 48%;
margin: 0;
padding: 0;
}
+@media screen and (max-width: 1024px) {
+ .sliderLayoutContainer .sliderRightArrow,
+ .sliderLayoutContainer .sliderLeftArrow {
+ display: block;
+ }
+}
.sliderLayoutContainer .sliderRightArrow .caretIcon,
.sliderLayoutContainer .sliderLeftArrow .caretIcon {
display: none;
@@ -58,30 +67,23 @@
border: 0.5px solid #000000;
}
-:global(.vtex-product-summary-2-x-imageContainer) {
- width: 314px;
- height: 314px;
-}
:global(.vtex-product-summary-2-x-imageContainer) :global(.vtex-product-summary-2-x-imageNormal) {
max-height: 314px !important;
}
-:global(.vtex-product-price-1-x-listPrice) {
- display: block;
- font-size: 14px;
- line-height: 19px;
- text-align: center;
- color: #bababa;
- padding-bottom: 8px;
-}
-
:global(.vtex-product-price-1-x-sellingPrice) {
font-weight: 700;
- font-size: 24px;
- line-height: 33px;
+ font-size: 25px;
+ display: block;
text-align: center;
+ line-height: 33px;
color: #000000;
}
+@media screen and (max-width: 1024px) {
+ :global(.vtex-product-price-1-x-sellingPrice) {
+ font-size: 18px;
+ }
+}
:global(.vtex-product-summary-2-x-nameContainer) {
padding-bottom: 8px;
@@ -96,6 +98,11 @@
text-align: center;
word-wrap: none;
}
+@media screen and (max-width: 1024px) {
+ :global(.vtex-product-summary-2-x-nameContainer) :global(.vtex-product-summary-2-x-productBrand) {
+ font-size: 14px;
+ }
+}
:global(.vtex-product-summary-2-x-element) {
padding: 0;
@@ -115,9 +122,4 @@
:global(.vtex-slider-layout-0-x-slideChildrenContainer) {
max-width: 314px;
-}
-
-:global(.vtex-slider-layout-0-x-slide) {
- width: 314px !important;
- height: 448px;
}
\ No newline at end of file
diff --git a/styles/css/vtex.store-components.css b/styles/css/vtex.store-components.css
index d9a2814..0fabb89 100644
--- a/styles/css/vtex.store-components.css
+++ b/styles/css/vtex.store-components.css
@@ -1,3 +1,4 @@
+@charset "UTF-8";
/*
0 - 600PX: Phone
600 - 900px: Table portrait
@@ -11,6 +12,12 @@
.container {
padding: 0 40px;
}
+@media screen and (min-width: 1920px) {
+ .container {
+ max-width: 115rem !important;
+ padding: 0;
+ }
+}
.container .productNameContainer {
font-weight: 300;
font-size: 20px;
@@ -19,6 +26,11 @@
text-align: end;
margin-bottom: 8px;
}
+@media screen and (max-width: 1024px) {
+ .container .productNameContainer {
+ text-align: unset;
+ }
+}
.container .skuSelectorContainer {
display: flex;
flex-direction: column-reverse;
@@ -97,16 +109,25 @@
}
.shippingContainer {
- display: flex;
+ position: relative;
+ margin-top: 16px;
+ margin-bottom: 16px;
+}
+@media screen and (min-width: 768px) {
+ .shippingContainer {
+ max-width: 280px;
+ }
}
.shippingContainer :global(.vtex-button) {
- width: 50px;
- height: 50px;
font-size: 0;
- background-color: #000;
- border: 0;
- margin-top: 27px;
- right: 7%;
+ background-color: black;
+ height: 50px;
+ max-width: 50px;
+ border: none;
+ border-radius: 0;
+ top: 27px;
+ position: absolute;
+ right: 0;
}
.shippingContainer :global(.vtex-button)::before {
text-align: center;
@@ -119,12 +140,25 @@
.shippingContainer :global(.vtex-button__label) {
height: 0;
width: 0;
+ padding: 0;
}
.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) {
- position: absolute;
- right: 12%;
- bottom: 34%;
text-decoration: underline;
+ position: absolute;
+ right: -50%;
+ top: calc(50% + 13.5px);
+ transform: translateY(-50%);
+ padding: 0;
+}
+@media screen and (max-width: 768px) {
+ .shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) {
+ position: unset;
+ display: block;
+ text-align: end;
+ width: 100%;
+ transform: none;
+ margin-top: 8px;
+ }
}
.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) :global(.vtex__icon-external-link) {
display: none;
@@ -143,6 +177,14 @@
.carouselGaleryThumbs {
margin: 0;
}
+@media screen and (max-width: 1024px) {
+ .carouselGaleryThumbs {
+ display: block;
+ }
+}
+.carouselGaleryThumbs :global(.vtex-store-components-3-x-productImagesThumbCaret) {
+ display: none;
+}
.shippingTable {
border: none;
@@ -202,14 +244,38 @@
.newsletter {
background: #000;
- height: 175px;
padding: 32px 0 16px 0;
}
+@media screen and (max-width: 1024px) {
+ .newsletter {
+ padding: 64px 0 16px 0;
+ }
+}
+@media screen and (max-width: 1024px) {
+ .newsletter .container {
+ padding: 0 16px;
+ }
+}
.newsletter .form {
+ justify-content: end;
max-width: 774px !important;
}
+@media screen and (max-width: 1024px) {
+ .newsletter .form {
+ max-width: 992px !important;
+ }
+}
+.newsletter .form :global(.vtex-button__label) {
+ font-weight: 700;
+ font-size: 14px;
+ line-height: 19px;
+ color: #ffffff;
+}
+.newsletter .form :global(.vtex-button__label)::before {
+ display: none;
+}
.newsletter .buttonContainer {
- border-bottom: 3px solid #fff;
+ border-bottom: 3px solid #bfbfbf;
padding: 0;
height: 32px;
}
@@ -218,7 +284,7 @@
font-size: 24px;
line-height: 38px;
text-align: center;
- color: #fff;
+ color: #bfbfbf;
display: flex;
flex-direction: column;
}
@@ -230,8 +296,16 @@
text-align: center;
color: #929292;
}
+@media screen and (max-width: 1024px) {
+ .newsletter .label::after {
+ font-size: 16px;
+ line-height: 22px;
+ }
+}
.newsletter .inputGroup {
- border-bottom: 1px solid #fff;
+ border-bottom: 1px solid #929292;
+ flex-direction: row;
+ display: flex;
}
.newsletter .inputGroup :global(.vtex-input-prefix__group) {
border: 0;
@@ -248,6 +322,13 @@
width: 100%;
padding: 0 0 7px 0;
}
+@media screen and (max-width: 1024px) {
+ .newsletter .inputGroup :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input) {
+ font-size: 12px;
+ line-height: 16px;
+ padding-left: 16px;
+ }
+}
.newsletter .inputGroup :global(.vtex-button) {
background-color: transparent;
font-weight: 700;
@@ -277,16 +358,29 @@
:global(.vtex-address-form__postalCode) {
display: flex;
padding: 0;
+ position: relative;
+}
+@media screen and (max-width: 768px) {
+ :global(.vtex-address-form__postalCode) {
+ flex-direction: column;
+ }
}
:global(.vtex-input-prefix__group) {
height: 50px;
- width: 280px;
}
:global(.vtex-product-identifier-0-x-product-identifier__value) {
display: flex;
justify-content: end;
+ margin-bottom: 24px;
+}
+@media screen and (max-width: 1024px) {
+ :global(.vtex-product-identifier-0-x-product-identifier__value) {
+ justify-content: unset;
+ font-size: 14px;
+ line-height: 19px;
+ }
}
:global(.vtex-store-components-3-x-swiperCaretNext),
@@ -295,10 +389,147 @@
display: none;
}
+@media screen and (max-width: 1024px) {
+ .swiper-wrapper {
+ display: block;
+ }
+}
+
:global(.vtex-store-components-3-x-productImageTag) {
object-fit: unset !important;
- max-width: 664px;
- width: 104% !important;
- max-height: 664px !important;
margin-bottom: 16px;
+ max-height: 664px !important;
+}
+@media screen and (min-width: 1920px) {
+ :global(.vtex-store-components-3-x-productImageTag) {
+ max-height: unset !important;
+ max-width: unset;
+ height: 904px !important;
+ width: auto !important;
+ }
+}
+@media screen and (max-width: 1024px) {
+ :global(.vtex-store-components-3-x-productImageTag) {
+ max-height: 944px !important;
+ }
+}
+
+@media screen and (max-width: 1024px) {
+ :global(.vtex-store-components-3-x-carouselContainer) {
+ margin-bottom: 32px;
+ }
+}
+
+:global(.vtex-store-components-3-x-form) {
+ justify-content: unset;
+}
+:global(.vtex-store-components-3-x-form) :global(.vtex-button__label) {
+ font-size: 0;
+}
+:global(.vtex-store-components-3-x-form) :global(.vtex-button__label)::before {
+ content: "AVISE-ME";
+ font-weight: 600;
+ font-size: 18px;
+ line-height: 25px;
+ color: #ffffff;
+}
+:global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-submit) {
+ width: 100%;
+ max-width: 400px;
+}
+:global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-submit) :global(.vtex-button) {
+ max-width: 400px;
+ width: 100%;
+ height: 50px;
+ background-color: #000;
+ border-radius: 0;
+ border: 0;
+ color: #fff;
+}
+:global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-input) {
+ margin: 0 0 16px 0;
+}
+:global(.vtex-store-components-3-x-form) :global(.vtex-input-prefix__group) {
+ height: 40px;
+ width: 100%;
+ border-radius: 0;
+ font-weight: 400;
+ font-size: 12px;
+ line-height: 16px;
+ color: #989898;
+}
+
+:global(.vtex-store-components-3-x-subscribeLabel) {
+ font-size: 0;
+}
+:global(.vtex-store-components-3-x-subscribeLabel)::before {
+ content: "Deseja saber quando estiver disponível?";
+ font-weight: 400;
+ font-size: 14px;
+ line-height: 19px;
+ color: #868686;
+}
+
+@media screen and (max-width: 1024px) {
+ :global(.vtex-flex-layout-0-x-flexRowContent) :global(.vtex-flex-layout-0-x-stretchChildrenWidth) {
+ width: auto !important;
+ padding: 0;
+ }
+}
+.subscriberContainer :global(.vtex-store-components-3-x-title) {
+ font-size: 0;
+}
+.subscriberContainer :global(.vtex-store-components-3-x-title)::before {
+ content: "Produto Indisponível";
+ font-weight: 700;
+ font-size: 14px;
+ line-height: 19px;
+ color: #868686;
+}
+.subscriberContainer :global(.vtex-store-components-3-x-content) {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ grid-column-gap: 10px;
+ width: 100%;
+ max-width: 400px;
+}
+.subscriberContainer .submit {
+ grid-column: span 2;
+}
+
+:global(.vtex-store-components-3-x-pointerEventsAuto) {
+ display: none;
+}
+
+:global(.vtex-product-price-1-x-listPrice) {
+ display: block;
+ text-align: center;
+ font-size: 12px;
+ line-height: 16px;
+ text-decoration-line: line-through;
+ color: #bababa;
+}
+:global(.vtex-product-price-1-x-listPrice)::before {
+ padding-right: 4px;
+ content: "de";
+ font-size: 12px;
+ line-height: 16px;
+ text-align: center;
+ color: #bababa;
+}
+:global(.vtex-product-price-1-x-listPrice)::after {
+ content: "por";
+ padding-left: 4px;
+ font-size: 12px;
+ line-height: 16px;
+ text-align: center;
+ color: #bababa;
+}
+
+.thumbImg {
+ border-radius: 8px;
+}
+
+.thumbImg--video {
+ height: 90px;
}
\ No newline at end of file
diff --git a/styles/css/vtex.tab-layout.css b/styles/css/vtex.tab-layout.css
index 2b3d539..e268fa7 100644
--- a/styles/css/vtex.tab-layout.css
+++ b/styles/css/vtex.tab-layout.css
@@ -9,14 +9,26 @@
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
/* Grid breakpoints */
.container--description {
- margin: 16px 40px;
- height: 702px;
+ max-height: auto;
+ margin-bottom: 16px;
+}
+@media screen and (max-width: 1024px) {
+ .container--description {
+ max-height: auto;
+ border-bottom: 1px solid #bfbfbf;
+ }
}
.container--description .listContainer {
display: flex;
justify-content: space-around;
border-bottom: 1px solid #bfbfbf;
}
+@media screen and (max-width: 1024px) {
+ .container--description .listContainer {
+ flex-direction: column;
+ border-top: 1px solid #bfbfbf;
+ }
+}
.container--description .listContainer .listItem {
padding: 0;
margin: 0;
@@ -24,6 +36,9 @@
.container--description .listContainer .listItem :global(.vtex-button) {
background: white;
border: none;
+ width: 100%;
+ display: flex;
+ justify-content: start;
font-family: "Open Sans", sans-serif;
font-size: 18px;
text-transform: none;
@@ -35,29 +50,49 @@
.container--description .listContainer .listItemActive {
border-bottom: 2px solid black;
}
+@media screen and (max-width: 1024px) {
+ .container--description .listContainer .listItemActive {
+ border: 0;
+ }
+}
.container--description .listContainer .listItemActive :global(.vtex-button) {
color: black;
}
.container--description .contentContainer .contentItem {
display: flex;
}
+@media screen and (max-width: 1024px) {
+ .container--description .contentContainer .contentItem {
+ flex-direction: column;
+ }
+}
.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImagesContainer) {
- width: 100%;
- height: 100%;
- max-width: 632px;
max-height: 632px;
}
+@media screen and (max-width: 1024px) {
+ .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImagesContainer) {
+ max-height: 976px;
+ }
+}
.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImageTag--main) {
- width: 100%;
- height: 100%;
- max-width: 632px;
max-height: 632px !important;
}
+@media screen and (max-width: 1024px) {
+ .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImageTag--main) {
+ max-height: 944px !important;
+ }
+}
.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImagesGallerySlide) {
margin: 32px 32px 16px 32px;
height: 632px;
width: 632px;
}
+@media screen and (max-width: 1024px) {
+ .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImagesGallerySlide) {
+ height: 994px;
+ margin-left: 0;
+ }
+}
.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-carouselGaleryThumbs) {
display: none;
}
@@ -65,6 +100,11 @@
margin-top: 32px;
margin-left: 32px;
}
+@media screen and (max-width: 1024px) {
+ .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) {
+ margin-left: 0;
+ }
+}
.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-productDescriptionTitle) {
font-family: "Open Sans", sans-serif;
font-size: 24px;
@@ -75,6 +115,7 @@
font-family: "Open Sans", sans-serif;
font-size: 16px;
line-height: 22px;
+ margin-bottom: 16px;
color: #929292;
}
.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-container) {
diff --git a/styles/iconpacks/SPOILER_dots.txt b/styles/iconpacks/SPOILER_dots.txt
deleted file mode 100644
index 1da924a..0000000
--- a/styles/iconpacks/SPOILER_dots.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-.paginationDotsContainer {
- display: flex;
- align-items: center;
- margin-bottom: 64px;
-
- .paginationDot {
- width: 10px;
- height: 10px;
- background-color: black;
- border: none;
- }
-
- .paginationDot--isActive {
- width: 17px !important;
- height: 17px !important;
- background-color: white;
- border: 0.5px solid #000000;
- }
- }
\ No newline at end of file
diff --git a/styles/iconpacks/SPOILER_quemabrireboiola.txt b/styles/iconpacks/SPOILER_quemabrireboiola.txt
deleted file mode 100644
index 3c4c3d1..0000000
--- a/styles/iconpacks/SPOILER_quemabrireboiola.txt
+++ /dev/null
@@ -1,63 +0,0 @@
-.shippingTable {
- border: none;
- padding-top: unset;
- margin-top: 16px;
- table-layout: fixed;
- width: 100%;
- max-width: 362px;
-
- .shippingTableRow {
- display: flex;
- .shippingTableCell {
- font-family: "Open Sans", sans-serif;
- font-size: 12px;
- line-height: 16px;
- color: #afafaf;
- padding: 0 0 15px 0;
-
- .shippingTableRadioBtn {
- display: none;
- }
- }
-
- .shippingTableCellDeliveryName {
- width: 33%;
- padding-left: 0;
- order: 1;
- }
-
- .shippingTableCellDeliveryEstimate {
- width: 33%;
- padding-left: 0;
- order: 3;
- }
-
- .shippingTableCellDeliveryPrice {
- width: 25%;
- padding-left: 0;
- order: 2;
- }
- }
- .shippingTableHead {
- display: block;
- margin-bottom: 15px;
-
- .shippingTableHeadDeliveryName {
- width: 33%;
- text-align: left;
- order: 1;
- }
-
- .shippingTableHeadDeliveryEstimate {
- width: 33%;
- text-align: left;
- order: 3;
- }
-
- .shippingTableHeadDeliveryPrice {
- width: 25%;
- text-align: left;
- order: 2;
- }
- }
-}
\ No newline at end of file
diff --git a/styles/iconpacks/SPOILER_quemlereboiola.txt b/styles/iconpacks/SPOILER_quemlereboiola.txt
deleted file mode 100644
index fe3c4e4..0000000
--- a/styles/iconpacks/SPOILER_quemlereboiola.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-shippingTable{
-table-layout: fixed;
-width: 100%;
-max-width: 362px;
-}
-shippingTableHeadDeliveryName { order: 1;
-width: 33%;
-text-align: left;
-}(definir os outros também)
-
-.vtex-store-components-3-x-shippingTableRow {
- display: flex;
-}
-
-shippingTableCellDeliveryPrice{
-width: 33%;
-padding-left: 0;
-}(definir os outros também)
\ No newline at end of file
diff --git a/styles/iconpacks/arrowdireita.svg b/styles/iconpacks/arrowdireita.svg
deleted file mode 100644
index 092f80e..0000000
--- a/styles/iconpacks/arrowdireita.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/styles/iconpacks/arrowesquerda.svg b/styles/iconpacks/arrowesquerda.svg
deleted file mode 100644
index 217a30d..0000000
--- a/styles/iconpacks/arrowesquerda.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/styles/iconpacks/description.txt b/styles/iconpacks/description.txt
deleted file mode 100644
index b89a32b..0000000
--- a/styles/iconpacks/description.txt
+++ /dev/null
@@ -1,102 +0,0 @@
- "tab-layout#description": {
- "children": ["tab-list#description", "tab-content#description"],
- "props": {
- "blockClass": "description",
- "defaultActiveTabId": "description1"
- }
- },
-
- "tab-list#description": {
- "children": [
- "tab-list.item#description1",
- "tab-list.item#description2",
- "tab-list.item#description3",
- "tab-list.item#description4",
- "tab-list.item#description5"
- ]
- },
-
- "tab-list.item#description1": {
- "props": {
- "tabId": "description1",
- "label": "Descrição",
- "defaultActiveTab": true
- }
- },
-
- "tab-list.item#description2": {
- "props": {
- "tabId": "description2",
- "label": "Descrição",
- "defaultActiveTab": false
- }
- },
-
- "tab-list.item#description3": {
- "props": {
- "tabId": "description3",
- "label": "Descrição",
- "defaultActiveTab": false
- }
- },
-
- "tab-list.item#description4": {
- "props": {
- "tabId": "description4",
- "label": "Descrição",
- "defaultActiveTab": false
- }
- },
-
- "tab-list.item#description5": {
- "props": {
- "tabId": "description5",
- "label": "Descrição",
- "defaultActiveTab": false
- }
- },
-
- "tab-content#description": {
- "children": [
- "tab-content.item#description1",
- "tab-content.item#description2",
- "tab-content.item#description3",
- "tab-content.item#description4",
- "tab-content.item#description5"
- ]
- },
-
- "tab-content.item#description1": {
- "children": ["product-images", "product-description"],
- "props": {
- "tabId": "description1"
- }
- },
-
- "tab-content.item#description2": {
- "children": ["product-images", "product-description"],
- "props": {
- "tabId": "description2"
- }
- },
-
- "tab-content.item#description3": {
- "children": ["product-images", "product-description"],
- "props": {
- "tabId": "description3"
- }
- },
-
- "tab-content.item#description4": {
- "children": ["product-images", "product-description"],
- "props": {
- "tabId": "description4"
- }
- },
-
- "tab-content.item#description5": {
- "children": ["product-images", "product-description"],
- "props": {
- "tabId": "description5"
- }
- },
\ No newline at end of file
diff --git a/styles/iconpacks/tab-layout.txt b/styles/iconpacks/tab-layout.txt
deleted file mode 100644
index 5078643..0000000
--- a/styles/iconpacks/tab-layout.txt
+++ /dev/null
@@ -1,83 +0,0 @@
-.container--description {
- margin: 16px 40px;
-
- .listContainer {
- display: flex;
- justify-content: space-around;
- border-bottom: 1px solid #bfbfbf;
-
- .listItem {
- padding: 0;
- margin: 0;
-
- :global(.vtex-button) {
- background: white;
- border: none;
-
- font-family: "Open Sans", sans-serif;
- font-size: 18px;
- text-transform: none;
-
- color: #bfbfbf;
-
- :global(.vtex-button__label) {
- padding: 0;
- }
- }
- }
-
- .listItemActive {
- border-bottom: 2px solid black;
-
- :global(.vtex-button) {
- color: black;
- }
- }
- }
-
- .contentContainer {
- .contentItem {
- display: flex;
-
- :global(.vtex-store-components-3-x-productImagesContainer) {
- width: 100%;
- height: 100%;
- max-width: 632px;
- max-height: 632px;
- }
-
- :global(.vtex-store-components-3-x-productImagesGallerySlide) {
- margin: 32px 32px 16px 32px;
- }
-
- :global(.vtex-store-components-3-x-carouselGaleryThumbs) {
- display: none;
- }
-
- :global(.vtex-store-components-3-x-productDescriptionContainer) {
- margin-top: 32px;
- margin-left: 32px;
-
- :global(.vtex-store-components-3-x-productDescriptionTitle) {
- font-family: "Open Sans", sans-serif;
- font-size: 24px;
- line-height: 32px;
-
- color: #575757;
- }
-
- :global(.vtex-store-components-3-x-productDescriptionText) {
- font-family: "Open Sans", sans-serif;
- font-size: 16px;
- line-height: 22px;
-
- color: #929292;
- }
-
- :global(.vtex-store-components-3-x-container) {
- padding: 0;
- }
- }
- }
- }
-}
diff --git a/styles/sass/pages/product/agenciamagma.store-theme.scss b/styles/sass/pages/product/agenciamagma.store-theme.scss
index e26e567..2e7070e 100644
--- a/styles/sass/pages/product/agenciamagma.store-theme.scss
+++ b/styles/sass/pages/product/agenciamagma.store-theme.scss
@@ -9,3 +9,9 @@
.relative {
display: none;
}
+
+.agenciamagma-store-theme-5-x-html--prateleira {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+}
diff --git a/styles/sass/pages/product/vtex.breadcrumb.scss b/styles/sass/pages/product/vtex.breadcrumb.scss
index 682bd25..79d5d81 100644
--- a/styles/sass/pages/product/vtex.breadcrumb.scss
+++ b/styles/sass/pages/product/vtex.breadcrumb.scss
@@ -1,23 +1,23 @@
.container {
- padding: 0px 40px 16px 40px;
- display: flex;
- align-items: center;
+ padding: 0;
+ font-size: 14px;
+
.homeIcon {
display: none;
}
.homeLink {
- display: none;
- .link--1 {
- padding-left: 0;
- }
- }
- .arrow--1 {
padding-left: 0;
- .link--1 {
- padding-left: 0;
- }
- .caretIcon {
- display: none;
+ &::before {
+ content: "Home";
+ font-size: 14px;
+ line-height: 19px;
+ color: #929292;
}
}
}
+
+.agenciamagma-store-theme-5-x-html--prateleira {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+}
diff --git a/styles/sass/pages/product/vtex.flex-layout.scss b/styles/sass/pages/product/vtex.flex-layout.scss
index 6cbfb58..c82e857 100644
--- a/styles/sass/pages/product/vtex.flex-layout.scss
+++ b/styles/sass/pages/product/vtex.flex-layout.scss
@@ -1,11 +1,29 @@
.flexRowContent {
padding: 0;
margin: 0;
+ @media screen and (max-width: 1024px) {
+ flex-direction: column;
+
+ .flexRowContent--buy-box {
+ flex-direction: row;
+ @media screen and (max-width: 768px) {
+ flex-direction: column;
+ }
+ }
+ }
+
.flexColChild {
.product-identifier--productReference {
float: right;
}
}
+
+ .pix-container {
+ .imageElement {
+ width: 66px;
+ height: 24px;
+ }
+ }
}
.product-images {
padding-left: 0;
@@ -23,11 +41,23 @@
.flexRowContent--button-container {
margin-bottom: 10px;
+
:global(.vtex-button) {
background-color: #000;
border: 0;
height: 50px;
margin-left: 10px;
+ border-radius: 0;
+ @media screen and (max-width: 768px) {
+ margin: 0;
+ height: 74px;
+ margin-top: 10px;
+ }
+ :global(.vtex-add-to-cart-button-0-x-buttonDataContainer) {
+ @media screen and (max-width: 767px) {
+ padding: 0 56px;
+ }
+ }
}
}
@@ -45,3 +75,27 @@
:global(.vtex-flex-layout-0-x-flexColChild) {
order: -1;
}
+
+:global(.vtex-flex-layout-0-x-flexRow--pix-container) {
+ display: flex;
+ align-items: center;
+
+ :global(.vtex-flex-layout-0-x-flexRowContent--pix-container) {
+ @media screen and (max-width: 1024px) {
+ flex-direction: row;
+ display: flex;
+ }
+
+ :global(.vtex-flex-layout-0-x-stretchChildrenWidth) {
+ display: flex;
+ align-items: center;
+ width: auto !important;
+ padding-right: 26px;
+
+ :global(.vtex-store-components-3-x-imageElement) {
+ width: 66px;
+ height: 24px;
+ }
+ }
+ }
+}
diff --git a/styles/sass/pages/product/vtex.login.scss b/styles/sass/pages/product/vtex.login.scss
index 78cb960..54d8953 100644
--- a/styles/sass/pages/product/vtex.login.scss
+++ b/styles/sass/pages/product/vtex.login.scss
@@ -3,3 +3,9 @@
a) {
color: #000;
}
+
+:global(.agenciamagma-store-theme-5-x-html--prateleira) {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+}
diff --git a/styles/sass/pages/product/vtex.product-price.scss b/styles/sass/pages/product/vtex.product-price.scss
index 4691566..c270ce3 100644
--- a/styles/sass/pages/product/vtex.product-price.scss
+++ b/styles/sass/pages/product/vtex.product-price.scss
@@ -19,3 +19,7 @@
line-height: 22px;
color: #929292;
}
+
+:global(.vtex-product-price-1-x-listPrice) {
+ display: none;
+}
diff --git a/styles/sass/pages/product/vtex.product-quantity.scss b/styles/sass/pages/product/vtex.product-quantity.scss
index 51d76a8..ab5fa93 100644
--- a/styles/sass/pages/product/vtex.product-quantity.scss
+++ b/styles/sass/pages/product/vtex.product-quantity.scss
@@ -16,6 +16,9 @@
:global(.vtex-numeric-stepper__input) {
border-left: 0;
border-right: 0;
+ @media screen and (max-width: 1024px) {
+ width: 44px;
+ }
}
:global(.vtex-add-to-cart-button-0-x-buttonText) {
diff --git a/styles/sass/pages/product/vtex.rich-text.scss b/styles/sass/pages/product/vtex.rich-text.scss
index 3ca3f34..9c32fcb 100644
--- a/styles/sass/pages/product/vtex.rich-text.scss
+++ b/styles/sass/pages/product/vtex.rich-text.scss
@@ -7,6 +7,29 @@
line-height: 38px;
text-align: center;
color: #575757;
- margin: 12px 0 0 0;
+ margin: 0;
+ @media screen and (max-width: 767px) {
+ font-size: 20px;
+ }
+ }
+}
+
+:global(.vtex-input__error) {
+ display: none;
+}
+
+:global(.vtex-store-components-3-x-imageElement--image-description) {
+ max-width: 632px;
+ max-height: 632px;
+ margin: 32px 0 0 32px;
+
+ @media screen and (min-width: 1920px) {
+ max-width: unset;
+ max-height: unset;
+ }
+ @media screen and (max-width: 1024px) {
+ max-width: 944px;
+ max-height: 944px;
+ margin-left: 0;
}
}
diff --git a/styles/sass/pages/product/vtex.slider-layout.scss b/styles/sass/pages/product/vtex.slider-layout.scss
index edc518d..40eab6f 100644
--- a/styles/sass/pages/product/vtex.slider-layout.scss
+++ b/styles/sass/pages/product/vtex.slider-layout.scss
@@ -2,11 +2,18 @@
background-color: transparent;
height: 630px;
+ .slide {
+ margin: 0 4px;
+ }
+
.sliderRightArrow,
.sliderLeftArrow {
bottom: 48%;
margin: 0;
padding: 0;
+ @media screen and (max-width: 1024px) {
+ display: block;
+ }
.caretIcon {
display: none;
}
@@ -52,28 +59,21 @@
}
:global(.vtex-product-summary-2-x-imageContainer) {
- width: 314px;
- height: 314px;
:global(.vtex-product-summary-2-x-imageNormal) {
max-height: 314px !important;
}
}
-:global(.vtex-product-price-1-x-listPrice) {
- display: block;
- font-size: 14px;
- line-height: 19px;
- text-align: center;
- color: #bababa;
- padding-bottom: 8px;
-}
-
:global(.vtex-product-price-1-x-sellingPrice) {
font-weight: 700;
- font-size: 24px;
- line-height: 33px;
+ font-size: 25px;
+ display: block;
text-align: center;
+ line-height: 33px;
color: #000000;
+ @media screen and (max-width: 1024px) {
+ font-size: 18px;
+ }
}
:global(.vtex-product-summary-2-x-nameContainer) {
@@ -87,6 +87,9 @@
color: #000000;
text-align: center;
word-wrap: none;
+ @media screen and (max-width: 1024px) {
+ font-size: 14px;
+ }
}
}
@@ -109,8 +112,3 @@
:global(.vtex-slider-layout-0-x-slideChildrenContainer) {
max-width: 314px;
}
-
-:global(.vtex-slider-layout-0-x-slide) {
- width: 314px !important;
- height: 448px;
-}
diff --git a/styles/sass/pages/product/vtex.store-components.scss b/styles/sass/pages/product/vtex.store-components.scss
index be010c5..29b72b4 100644
--- a/styles/sass/pages/product/vtex.store-components.scss
+++ b/styles/sass/pages/product/vtex.store-components.scss
@@ -1,6 +1,11 @@
.container {
padding: 0 40px;
+ @media screen and (min-width: 1920px) {
+ max-width: 115rem !important;
+ padding: 0;
+ }
+
.productNameContainer {
font-weight: 300;
font-size: 20px;
@@ -8,6 +13,9 @@
color: #575757;
text-align: end;
margin-bottom: 8px;
+ @media screen and (max-width: 1024px) {
+ text-align: unset;
+ }
}
.skuSelectorContainer {
display: flex;
@@ -99,15 +107,23 @@
}
.shippingContainer {
- display: flex;
+ position: relative;
+ margin-top: 16px;
+ margin-bottom: 16px;
+ @media screen and (min-width: 768px) {
+ max-width: 280px;
+ }
+
:global(.vtex-button) {
- width: 50px;
- height: 50px;
font-size: 0;
- background-color: #000;
- border: 0;
- margin-top: 27px;
- right: 7%;
+ background-color: black;
+ height: 50px;
+ max-width: 50px;
+ border: none;
+ border-radius: 0;
+ top: 27px;
+ position: absolute;
+ right: 0;
&::before {
text-align: center;
@@ -122,12 +138,24 @@
:global(.vtex-button__label) {
height: 0;
width: 0;
+ padding: 0;
}
+
:global(.vtex-address-form__postalCode-forgottenURL) {
- position: absolute;
- right: 12%;
- bottom: 34%;
text-decoration: underline;
+ position: absolute;
+ right: -50%;
+ top: calc(50% + 13.5px);
+ transform: translateY(-50%);
+ padding: 0;
+ @media screen and (max-width: 768px) {
+ position: unset;
+ display: block;
+ text-align: end;
+ width: 100%;
+ transform: none;
+ margin-top: 8px;
+ }
:global(.vtex__icon-external-link) {
display: none;
@@ -147,6 +175,12 @@
.carouselGaleryThumbs {
margin: 0;
+ @media screen and (max-width: 1024px) {
+ display: block;
+ }
+ :global(.vtex-store-components-3-x-productImagesThumbCaret) {
+ display: none;
+ }
}
.shippingTable {
@@ -215,15 +249,39 @@
.newsletter {
background: #000;
- height: 175px;
padding: 32px 0 16px 0;
+ @media screen and (max-width: 1024px) {
+ padding: 64px 0 16px 0;
+ }
+
+ .container {
+ @media screen and (max-width: 1024px) {
+ padding: 0 16px;
+ }
+ }
+
.form {
+ justify-content: end;
max-width: 774px !important;
+
+ @media screen and (max-width: 1024px) {
+ max-width: 992px !important;
+ }
+
+ :global(.vtex-button__label) {
+ font-weight: 700;
+ font-size: 14px;
+ line-height: 19px;
+ color: #ffffff;
+ &::before {
+ display: none;
+ }
+ }
}
.buttonContainer {
- border-bottom: 3px solid #fff;
+ border-bottom: 3px solid #bfbfbf;
padding: 0;
height: 32px;
}
@@ -233,7 +291,7 @@
font-size: 24px;
line-height: 38px;
text-align: center;
- color: #fff;
+ color: #bfbfbf;
display: flex;
flex-direction: column;
&::after {
@@ -243,10 +301,17 @@
margin-top: 16px;
text-align: center;
color: #929292;
+ @media screen and (max-width: 1024px) {
+ font-size: 16px;
+ line-height: 22px;
+ }
}
}
.inputGroup {
- border-bottom: 1px solid #fff;
+ border-bottom: 1px solid #929292;
+ flex-direction: row;
+ display: flex;
+
:global(.vtex-input-prefix__group) {
border: 0;
height: 32px;
@@ -261,6 +326,11 @@
color: #929292;
width: 100%;
padding: 0 0 7px 0;
+ @media screen and (max-width: 1024px) {
+ font-size: 12px;
+ line-height: 16px;
+ padding-left: 16px;
+ }
}
}
:global(.vtex-button) {
@@ -294,16 +364,25 @@
:global(.vtex-address-form__postalCode) {
display: flex;
padding: 0;
+ position: relative;
+ @media screen and (max-width: 768px) {
+ flex-direction: column;
+ }
}
:global(.vtex-input-prefix__group) {
height: 50px;
- width: 280px;
}
:global(.vtex-product-identifier-0-x-product-identifier__value) {
display: flex;
justify-content: end;
+ margin-bottom: 24px;
+ @media screen and (max-width: 1024px) {
+ justify-content: unset;
+ font-size: 14px;
+ line-height: 19px;
+ }
}
:global(.vtex-store-components-3-x-swiperCaretNext),
@@ -312,10 +391,156 @@
display: none;
}
+.swiper-wrapper {
+ @media screen and (max-width: 1024px) {
+ display: block;
+ }
+}
+
:global(.vtex-store-components-3-x-productImageTag) {
object-fit: unset !important;
- max-width: 664px;
- width: 104% !important;
- max-height: 664px !important;
margin-bottom: 16px;
+ max-height: 664px !important;
+
+ @media screen and (min-width: 1920px) {
+ max-height: unset !important;
+ max-width: unset;
+ height: 904px !important;
+ width: auto !important;
+ }
+
+ @media screen and (max-width: 1024px) {
+ max-height: 944px !important;
+ }
+}
+
+:global(.vtex-store-components-3-x-carouselContainer) {
+ @media screen and (max-width: 1024px) {
+ margin-bottom: 32px;
+ }
+}
+
+:global(.vtex-store-components-3-x-form) {
+ justify-content: unset;
+
+ :global(.vtex-button__label) {
+ font-size: 0;
+ &::before {
+ content: "AVISE-ME";
+ font-weight: 600;
+ font-size: 18px;
+ line-height: 25px;
+ color: #ffffff;
+ }
+ }
+
+ :global(.vtex-store-components-3-x-submit) {
+ width: 100%;
+ max-width: 400px;
+
+ :global(.vtex-button) {
+ max-width: 400px;
+ width: 100%;
+ height: 50px;
+ background-color: #000;
+ border-radius: 0;
+ border: 0;
+ color: #fff;
+ }
+ }
+
+ :global(.vtex-store-components-3-x-input) {
+ margin: 0 0 16px 0;
+ }
+
+ :global(.vtex-input-prefix__group) {
+ height: 40px;
+ width: 100%;
+ border-radius: 0;
+ font-weight: 400;
+ font-size: 12px;
+ line-height: 16px;
+ color: #989898;
+ }
+}
+
+:global(.vtex-store-components-3-x-subscribeLabel) {
+ font-size: 0;
+ &::before {
+ content: "Deseja saber quando estiver disponível?";
+ font-weight: 400;
+ font-size: 14px;
+ line-height: 19px;
+ color: #868686;
+ }
+}
+
+@media screen and (max-width: 1024px) {
+ :global(.vtex-flex-layout-0-x-flexRowContent) {
+ :global(.vtex-flex-layout-0-x-stretchChildrenWidth) {
+ width: auto !important;
+ padding: 0;
+ }
+ }
+}
+
+.subscriberContainer {
+ :global(.vtex-store-components-3-x-title) {
+ font-size: 0;
+ &::before {
+ content: "Produto Indisponível";
+ font-weight: 700;
+ font-size: 14px;
+ line-height: 19px;
+ color: #868686;
+ }
+ }
+ :global(.vtex-store-components-3-x-content) {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ grid-column-gap: 10px;
+ width: 100%;
+ max-width: 400px;
+ }
+ .submit {
+ grid-column: span 2;
+ }
+}
+
+:global(.vtex-store-components-3-x-pointerEventsAuto) {
+ display: none;
+}
+
+:global(.vtex-product-price-1-x-listPrice) {
+ display: block;
+ text-align: center;
+ font-size: 12px;
+ line-height: 16px;
+ text-decoration-line: line-through;
+
+ color: #bababa;
+ &::before {
+ padding-right: 4px;
+ content: "de";
+ font-size: 12px;
+ line-height: 16px;
+ text-align: center;
+ color: #bababa;
+ }
+ &::after {
+ content: "por";
+ padding-left: 4px;
+ font-size: 12px;
+ line-height: 16px;
+ text-align: center;
+ color: #bababa;
+ }
+}
+
+.thumbImg {
+ border-radius: 8px;
+}
+
+.thumbImg--video {
+ height: 90px;
}
diff --git a/styles/sass/pages/product/vtex.tab-layout.scss b/styles/sass/pages/product/vtex.tab-layout.scss
index b87fdbc..5c3437a 100644
--- a/styles/sass/pages/product/vtex.tab-layout.scss
+++ b/styles/sass/pages/product/vtex.tab-layout.scss
@@ -1,11 +1,19 @@
.container--description {
- margin: 16px 40px;
- height: 702px;
+ max-height: auto;
+ margin-bottom: 16px;
+ @media screen and (max-width: 1024px) {
+ max-height: auto;
+ border-bottom: 1px solid #bfbfbf;
+ }
.listContainer {
display: flex;
justify-content: space-around;
border-bottom: 1px solid #bfbfbf;
+ @media screen and (max-width: 1024px) {
+ flex-direction: column;
+ border-top: 1px solid #bfbfbf;
+ }
.listItem {
padding: 0;
@@ -14,7 +22,9 @@
:global(.vtex-button) {
background: white;
border: none;
-
+ width: 100%;
+ display: flex;
+ justify-content: start;
font-family: "Open Sans", sans-serif;
font-size: 18px;
text-transform: none;
@@ -29,6 +39,9 @@
.listItemActive {
border-bottom: 2px solid black;
+ @media screen and (max-width: 1024px) {
+ border: 0;
+ }
:global(.vtex-button) {
color: black;
@@ -39,25 +52,33 @@
.contentContainer {
.contentItem {
display: flex;
+ @media screen and (max-width: 1024px) {
+ flex-direction: column;
+ }
:global(.vtex-store-components-3-x-productImagesContainer) {
- width: 100%;
- height: 100%;
- max-width: 632px;
max-height: 632px;
+ @media screen and (max-width: 1024px) {
+ max-height: 976px;
+ }
}
:global(.vtex-store-components-3-x-productImageTag--main) {
- width: 100%;
- height: 100%;
- max-width: 632px;
max-height: 632px !important;
+
+ @media screen and (max-width: 1024px) {
+ max-height: 944px !important;
+ }
}
:global(.vtex-store-components-3-x-productImagesGallerySlide) {
margin: 32px 32px 16px 32px;
height: 632px;
width: 632px;
+ @media screen and (max-width: 1024px) {
+ height: 994px;
+ margin-left: 0;
+ }
}
:global(.vtex-store-components-3-x-carouselGaleryThumbs) {
@@ -68,6 +89,10 @@
margin-top: 32px;
margin-left: 32px;
+ @media screen and (max-width: 1024px) {
+ margin-left: 0;
+ }
+
:global(.vtex-store-components-3-x-productDescriptionTitle) {
font-family: "Open Sans", sans-serif;
font-size: 24px;
@@ -80,7 +105,7 @@
font-family: "Open Sans", sans-serif;
font-size: 16px;
line-height: 22px;
-
+ margin-bottom: 16px;
color: #929292;
}