Compare commits
14 Commits
c3e02ed8fc
...
f88fd2b39f
Author | SHA1 | Date |
---|---|---|
|
f88fd2b39f | 18 hours ago |
|
ad2f1f4268 | 19 hours ago |
|
3d0813989b | 19 hours ago |
|
a9f298cbc9 | 19 hours ago |
|
f062cbf11f | 19 hours ago |
|
d6ae2ec32f | 19 hours ago |
|
8a26495373 | 19 hours ago |
|
69a3325070 | 19 hours ago |
|
fb27b4b04c | 19 hours ago |
|
5c7182812d | 19 hours ago |
|
3077d7ee75 | 19 hours ago |
|
893472a4b9 | 19 hours ago |
|
cbc6e74957 | 19 hours ago |
|
a83df458dc | 19 hours ago |
@ -0,0 +1,49 @@ |
||||
/* Стили для загрузки корзины на single странице */ |
||||
|
||||
.product-incart__wrap.loading { |
||||
position: relative; |
||||
pointer-events: none; |
||||
opacity: 0.7; |
||||
} |
||||
|
||||
.product-incart__wrap.loading::before { |
||||
content: ''; |
||||
position: absolute; |
||||
top: 0; |
||||
left: 0; |
||||
right: 0; |
||||
bottom: 0; |
||||
background: rgba(255, 255, 255, 0.8); |
||||
z-index: 10; |
||||
} |
||||
|
||||
.product-incart__wrap.loading::after { |
||||
content: ''; |
||||
position: absolute; |
||||
top: 50%; |
||||
left: 50%; |
||||
width: 20px; |
||||
height: 20px; |
||||
margin: -10px 0 0 -10px; |
||||
border: 2px solid #f3f3f3; |
||||
border-top: 2px solid #3498db; |
||||
border-radius: 50%; |
||||
animation: spin 1s linear infinite; |
||||
z-index: 11; |
||||
} |
||||
|
||||
@keyframes spin { |
||||
0% { transform: rotate(0deg); } |
||||
100% { transform: rotate(360deg); } |
||||
} |
||||
|
||||
/* Стили для кнопок во время загрузки */ |
||||
.product-incart__wrap.loading .product-incart__btn { |
||||
opacity: 0.5; |
||||
pointer-events: none; |
||||
} |
||||
|
||||
/* Стили для счетчика во время загрузки */ |
||||
.product-incart__wrap.loading .product-incart__count { |
||||
opacity: 0.5; |
||||
} |
@ -0,0 +1,746 @@ |
||||
.order{ |
||||
display: flex; |
||||
} |
||||
.order__title{ |
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 24px; |
||||
line-height: 117%; |
||||
text-transform: uppercase; |
||||
color: var(--text-black); |
||||
} |
||||
.order__contacts{ |
||||
width: calc(50% - 0.5px); |
||||
|
||||
padding: 24px; |
||||
|
||||
border-right: 1px solid #121212; |
||||
} |
||||
.order-contacts__header{ |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
} |
||||
.order-contacts__form{ |
||||
margin-top: 24px; |
||||
} |
||||
.order-contacts__delivery{ |
||||
margin-top: 47.5px; |
||||
|
||||
padding-top: 48px; |
||||
|
||||
border-top: 1px solid var(--background-grey); |
||||
} |
||||
|
||||
.order-contacts-deliver__item{ |
||||
margin-top: 24px; |
||||
} |
||||
.order-contacts-deliver__date{ |
||||
padding: 8px; |
||||
|
||||
border-radius: 24px; |
||||
|
||||
background: var(--background-grey); |
||||
} |
||||
.order-contacts-deliver__date .form-input-radio__item{ |
||||
margin-top: 24px; |
||||
} |
||||
.order-contacts-deliver__date .form-input-radio__item:first-child{ |
||||
margin-top: 0; |
||||
} |
||||
.order__your{ |
||||
width: calc(50% - 0.5px); |
||||
|
||||
padding: 24px 24px 24px 48px; |
||||
|
||||
background: var(--background-grey); |
||||
} |
||||
.order-your__products{ |
||||
margin-top: 48px; |
||||
} |
||||
.order-your-products__item{ |
||||
margin-top: 16px; |
||||
|
||||
display: flex; |
||||
justify-content: space-between; |
||||
} |
||||
.order-your-products__left{ |
||||
display: flex; |
||||
align-items: center; |
||||
} |
||||
.order-your-products__img{ |
||||
width: 40px; |
||||
aspect-ratio: 1; |
||||
|
||||
border-radius: 16px; |
||||
} |
||||
.order-your-products__content{ |
||||
margin-left: 16px; |
||||
} |
||||
.order-your-products__name{ |
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
color: var(--text-black); |
||||
|
||||
text-decoration: none; |
||||
} |
||||
.order-your-products__description{ |
||||
margin-top: 8px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
color: var(--text-6); |
||||
} |
||||
.order-your-products__description span{ |
||||
font-weight: 700; |
||||
} |
||||
.order-your-products__description span::before{ |
||||
margin-left: 3px; |
||||
|
||||
content: 'x '; |
||||
} |
||||
.order-your-products__right{ |
||||
display: flex; |
||||
} |
||||
.order-your-products__count{ |
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
text-align: right; |
||||
color: var(--text-6); |
||||
} |
||||
.order-your-products__count::before{ |
||||
content: 'x'; |
||||
} |
||||
.order-your-products__price{ |
||||
margin-left: 16px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
text-align: right; |
||||
color: var(--text-black); |
||||
} |
||||
|
||||
.order-your__calculation{ |
||||
margin-top: 48px; |
||||
} |
||||
.order-your__promo{ |
||||
display: flex; |
||||
} |
||||
.order-your-promo__button{ |
||||
margin-left: 8px; |
||||
} |
||||
.order-your-calculation__item{ |
||||
margin-top: 24px; |
||||
|
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
} |
||||
.order-your-calculation__title{ |
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
} |
||||
.order-your-calculation__value{ |
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 20px; |
||||
line-height: 200%; |
||||
text-transform: uppercase; |
||||
text-align: right; |
||||
color: var(--text-black); |
||||
} |
||||
|
||||
.order-your-calculation__value--discount{ |
||||
background: var(--gradient-red); |
||||
background-clip: text; |
||||
-webkit-background-clip: text; |
||||
-webkit-text-fill-color: transparent; |
||||
} |
||||
|
||||
.order-your-calculation__description{ |
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
text-align: right; |
||||
color: var(--text-9); |
||||
} |
||||
.order-your-calculation__line{ |
||||
margin-top: 23px; |
||||
border: 1px solid var(--background-9); |
||||
} |
||||
.order-your-calculation__result{ |
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 24px; |
||||
line-height: 117%; |
||||
text-transform: uppercase; |
||||
color: var(--text-black); |
||||
} |
||||
.order-your-calculation__submit{ |
||||
margin-top: 48px; |
||||
} |
||||
|
||||
@media only screen and (max-width: 1200px) { |
||||
.order{ |
||||
display: block; |
||||
} |
||||
.order__contacts, .order__your{ |
||||
border: none; |
||||
width: 100%; |
||||
} |
||||
} |
||||
|
||||
@media only screen and (max-width: 720px) { |
||||
.order__title{ |
||||
max-width: 181px; |
||||
|
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
} |
||||
.order__your{ |
||||
margin-top: 16px; |
||||
} |
||||
.order__contacts{ |
||||
padding: 24px 16px; |
||||
} |
||||
.order__your{ |
||||
padding: 40px 16px 9px 16px; |
||||
} |
||||
.order-your__promo{ |
||||
display: block; |
||||
} |
||||
.order-your-promo__button{ |
||||
margin-left: 0; |
||||
margin-top: 24px; |
||||
|
||||
width: 100%; |
||||
} |
||||
.order-your-products__content{ |
||||
max-width: 164px; |
||||
} |
||||
.order-your-products__count, .order-your-products__price{ |
||||
flex-shrink: 0; |
||||
} |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
/* toggle */ |
||||
.toggle{ |
||||
padding-top: 26px; |
||||
padding-bottom: 25px; |
||||
|
||||
border-bottom: 1px solid var(--text-3); |
||||
|
||||
position: relative; |
||||
} |
||||
.toggle::after{ |
||||
content: ''; |
||||
|
||||
position: absolute; |
||||
top: 24px; |
||||
right: 0; |
||||
|
||||
width: 24px; |
||||
aspect-ratio: 1; |
||||
|
||||
background-image: url(../img/svg/main/black-x.svg); |
||||
transform: rotate(45deg); |
||||
transition: transform .2s; |
||||
pointer-events: none; |
||||
} |
||||
.toggle.active::after{ |
||||
transform: rotate(0deg); |
||||
} |
||||
.toggle__title{ |
||||
padding-right: 30px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 16px; |
||||
line-height: 125%; |
||||
color: var(--text-black); |
||||
|
||||
cursor: pointer; |
||||
} |
||||
.toggle__block-content{ |
||||
height: 0; |
||||
overflow: hidden; |
||||
|
||||
transition: height .2s ease-out; |
||||
} |
||||
.toggle__content{ |
||||
padding-top: 24px; |
||||
} |
||||
.toggle-content__item{ |
||||
margin: 12px -12px -12px -12px; |
||||
|
||||
display: flex; |
||||
align-items: center; |
||||
flex-wrap: wrap; |
||||
} |
||||
.toggle-content__item:first-child{ |
||||
margin-top: 0; |
||||
} |
||||
.toggle-content__element{ |
||||
margin: 12px; |
||||
} |
||||
.toggle-content__element--width-perc-100{ |
||||
width: 100%; |
||||
} |
||||
.toggle-content__element--width-perc-50{ |
||||
width: calc(50% - 24px); |
||||
} |
||||
.toggle__text{ |
||||
font-family: var(--font-family); |
||||
font-weight: 400; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
} |
||||
/* toggle */ |
||||
|
||||
/* checkbox */ |
||||
.checkbox{ |
||||
display: flex; |
||||
align-items: center; |
||||
|
||||
cursor: pointer; |
||||
} |
||||
.checkbox__state{ |
||||
border-radius: 4px; |
||||
|
||||
width: 18px; |
||||
height: 18px; |
||||
|
||||
border: 2px solid var(--background-black); |
||||
background: var(--background-white); |
||||
|
||||
flex-shrink: 0; |
||||
} |
||||
.checkbox.active .checkbox__state{ |
||||
background-color: var(--background-black); |
||||
|
||||
background-image: url(../img/svg/main/arrow-selected-white.svg); |
||||
background-repeat: no-repeat; |
||||
background-position: center; |
||||
} |
||||
.checkbox__input{ |
||||
display: none; |
||||
} |
||||
.checkbox__label{ |
||||
padding-left: 8px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 400; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-dark); |
||||
|
||||
cursor: pointer; |
||||
} |
||||
.checkbox__label a{ |
||||
color: #76ce75; |
||||
|
||||
text-decoration: none; |
||||
} |
||||
.checkbox--small{ |
||||
margin-top: 24px; |
||||
} |
||||
.checkbox--small .checkbox__label{ |
||||
padding-left: 24px; |
||||
|
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
} |
||||
/* checkbox */ |
||||
|
||||
|
||||
@media (max-width: 720px) { |
||||
.modal-map__control{ |
||||
flex-wrap: wrap; |
||||
} |
||||
.modal-map-control__item{ |
||||
width: calc(100% - 24px); |
||||
} |
||||
.form__full-mobile{ |
||||
width: 100%; |
||||
border-radius: 0; |
||||
border: none; |
||||
} |
||||
} |
||||
|
||||
.container{ |
||||
max-width: 100% !important; |
||||
padding: 0; |
||||
} |
||||
|
||||
.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-20_0, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-20_0, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-20_0, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto{ |
||||
padding: 0; |
||||
} |
||||
|
||||
.page-title{ |
||||
display: none; |
||||
} |
||||
|
||||
|
||||
.modal-map-control-item__input{ |
||||
display: none; |
||||
} |
||||
|
||||
.page .main-page-wrapper{ |
||||
background: #fff !important; |
||||
} |
||||
|
||||
.modal-map-control-item__content{ |
||||
width: 100%; |
||||
} |
||||
|
||||
|
||||
.woocommerce-shipping-methods{ |
||||
display: flex; |
||||
} |
||||
.visually-hidden { |
||||
position: absolute !important; |
||||
clip: rect(1px 1px 1px 1px); |
||||
clip: rect(1px, 1px, 1px, 1px); |
||||
padding: 0 !important; |
||||
border: 0 !important; |
||||
height: 1px !important; |
||||
width: 1px !important; |
||||
overflow: hidden; |
||||
} |
||||
.modal-map-control__item{ |
||||
display: flex; |
||||
flex-direction: column; |
||||
} |
||||
.modal-map-control__item > label { |
||||
flex-grow: 1; |
||||
display: flex; |
||||
flex-direction: column; |
||||
position: relative; |
||||
} |
||||
.modal-map-control__item > label > *{ |
||||
flex-grow: 1; |
||||
} |
||||
.modal-map-control__item:nth-child(n){ |
||||
margin: 12px; |
||||
margin-bottom: 12px; |
||||
} |
||||
.modal-map-control-item__title{ |
||||
text-align: left; |
||||
} |
||||
.modal-map-control__item > label{ |
||||
margin-bottom: 0; |
||||
} |
||||
.open-pvz-btn{ |
||||
position: absolute !important; |
||||
clip: rect(1px 1px 1px 1px); |
||||
clip: rect(1px, 1px, 1px, 1px); |
||||
padding: 0 !important; |
||||
border: 0 !important; |
||||
height: 1px !important; |
||||
width: 1px !important; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
|
||||
.order-contacts__delivery.loading{ |
||||
position: relative; |
||||
min-height: 110px; |
||||
} |
||||
.order-contacts__delivery.loading::before{ |
||||
content: ''; |
||||
z-index: 150; |
||||
height: 100%; |
||||
width: 100%; |
||||
position: absolute; |
||||
top: 0; |
||||
left: 0; |
||||
background-color: rgba(255,255,255, .6); |
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid' width='200' height='200' style='shape-rendering: auto; display: block; background: transparent;'%3E%3Cg%3E%3Ccircle stroke-dasharray='164.93361431346415 56.97787143782138' r='35' stroke-width='10' stroke='%23000000' fill='none' cy='50' cx='50'%3E%3CanimateTransform keyTimes='0;1' values='0 50 50;360 50 50' dur='1s' repeatCount='indefinite' type='rotate' attributeName='transform'/%3E%3C/circle%3E%3Cg/%3E%3C/g%3E%3C!-- %5Bldio%5D generated by https://loading.io --%3E%3C/svg%3E"); |
||||
background-size: 48px; |
||||
background-position: center; |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
|
||||
.shop_table .woocommerce-shipping-totals{ |
||||
display:none; |
||||
} |
||||
|
||||
.amount{ |
||||
color: inherit; |
||||
} |
||||
|
||||
.order-your-products__item{ |
||||
align-items: center; |
||||
} |
||||
|
||||
|
||||
.wc_payment_methods.payment_methods.methods{ |
||||
display: none; |
||||
} |
||||
|
||||
|
||||
.woocommerce-terms-and-conditions-wrapper{ |
||||
|
||||
} |
||||
|
||||
.woocommerce-privacy-policy-text p{ |
||||
color: #121212 !important; |
||||
font-size: 14px; |
||||
} |
||||
|
||||
.woocommerce-privacy-policy-text a{ |
||||
color: #121212 !important; |
||||
font-size: 14px; |
||||
text-decoration: underline; |
||||
} |
||||
|
||||
.woocommerce-terms-and-conditions-checkbox-text a{ |
||||
color: #121212 !important; |
||||
font-size: 14px; |
||||
text-decoration: underline; |
||||
} |
||||
|
||||
|
||||
|
||||
.woocommerce-checkout.processing { |
||||
position: relative; |
||||
opacity: 0.5; |
||||
pointer-events: none; |
||||
} |
||||
|
||||
.woocommerce-checkout .blockUI.blockOverlay { |
||||
position: absolute; |
||||
top: 0; |
||||
left: 0; |
||||
width: 100%; |
||||
height: 100%; |
||||
background-color: rgba(242, 242, 242, 0.7) !important; |
||||
z-index: 9999; |
||||
} |
||||
|
||||
.woocommerce-checkout .blockUI-message { |
||||
position: absolute; |
||||
top: 50%; |
||||
left: 50%; |
||||
transform: translate(-50%, -50%); |
||||
z-index: 10000; |
||||
font-size: 16px; |
||||
color: #333; |
||||
} |
||||
|
||||
.cabinet-card__button{ |
||||
padding: 8px 8px 6px 0; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 600; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
|
||||
background: none; |
||||
border: none; |
||||
|
||||
position: relative; |
||||
|
||||
text-decoration: none; |
||||
} |
||||
.cabinet-card__button::before{ |
||||
content: ''; |
||||
|
||||
position: absolute; |
||||
bottom: 6px; |
||||
|
||||
width: calc(100% - 8px); |
||||
height: 1px; |
||||
|
||||
background: var(--text-black); |
||||
|
||||
transition: opacity .2s ease-out; |
||||
} |
||||
.cabinet-card__button:hover{ |
||||
opacity: .8; |
||||
} |
||||
|
||||
.form-agreement{ |
||||
display: flex; |
||||
} |
||||
.form-agreement__check{ |
||||
display: flex; |
||||
align-items: center; |
||||
margin-top: 1rem; |
||||
} |
||||
.form-agreement__square{ |
||||
width: 18px; |
||||
aspect-ratio: 1; |
||||
|
||||
border-radius: 4px; |
||||
|
||||
border: 2px solid var(--background-black); |
||||
} |
||||
.form-agreement__label{ |
||||
margin-left: 8px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 400; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
} |
||||
.form-agreement__input{ |
||||
display: none; |
||||
} |
||||
.form-agreement__input:checked + .form-agreement__square{ |
||||
border: none; |
||||
background: var(--gradient-blue); |
||||
|
||||
position: relative; |
||||
} |
||||
.form-agreement__input:checked + .form-agreement__square::after{ |
||||
content: ''; |
||||
|
||||
position: absolute; |
||||
top: 1px; |
||||
left: 1px; |
||||
|
||||
width: 16px; |
||||
aspect-ratio: 1; |
||||
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.50681 0.784901C9.86151 1.14024 9.86101 1.71584 9.50567 2.07055L4.35112 7.216C3.99601 7.57049 3.42085 7.57024 3.06604 7.21544L0.493317 4.64271C0.138295 4.28769 0.138295 3.71208 0.493317 3.35706C0.848339 3.00204 1.42394 3.00204 1.77897 3.35706L3.70944 5.28753L8.22116 0.783766C8.57649 0.429057 9.1521 0.429565 9.50681 0.784901Z' fill='white'/%3E%3C/svg%3E"); |
||||
background-repeat: no-repeat; |
||||
background-position: center; |
||||
} |
||||
|
||||
.modal-map__control--delivery > p{ |
||||
color: #121212; |
||||
padding-left: 1rem; |
||||
} |
||||
|
||||
.form-agreement__label a{ |
||||
color: #121212; |
||||
text-decoration: underline; |
||||
} |
||||
|
||||
.form-input__error.active{ |
||||
display: block; |
||||
} |
||||
|
||||
.order-your__promo{ |
||||
position: relative; |
||||
} |
||||
|
||||
.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout{ |
||||
display: none; |
||||
} |
||||
|
||||
.woocommerce-terms-and-conditions-wrapper, .woocommerce-message{ |
||||
display: none; |
||||
} |
||||
|
||||
|
||||
.woocommerce-checkout-review-order-table tr{ |
||||
border: none !important; |
||||
} |
||||
|
||||
|
||||
.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-20_0, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-20_0, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-20_0, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto { |
||||
padding-right: 0 !important; |
||||
padding-left: 0 !important; |
||||
} |
||||
|
||||
.cdek-office-info{ |
||||
display: none; |
||||
} |
||||
|
||||
.quantity-control { |
||||
display: flex; |
||||
align-items: center; |
||||
gap: 10px; |
||||
margin-bottom: 10px; |
||||
} |
||||
.quantity-decrease, .quantity-increase { |
||||
background: #f0f0f0; |
||||
border: none; |
||||
padding: 5px 10px; |
||||
cursor: pointer; |
||||
font-size: 16px; |
||||
border-radius: 4px; |
||||
} |
||||
.quantity-decrease:hover, .quantity-increase:hover { |
||||
background: #e0e0e0; |
||||
} |
||||
.quantity-input { |
||||
width: 50px; |
||||
text-align: center; |
||||
border: 1px solid #ccc; |
||||
border-radius: 4px; |
||||
padding: 5px; |
||||
} |
||||
|
||||
.form-row{ |
||||
margin-top: 1rem; |
||||
} |
||||
|
||||
|
||||
.woocommerce-order-overview{ |
||||
} |
||||
|
||||
.woocommerce .woocommerce-customer-details .woocommerce-column__title, .woocommerce-order-details__title{ |
||||
margin-bottom: .5em; |
||||
margin-top: 1em; |
||||
} |
||||
|
||||
.woocommerce ul.order_details{ |
||||
margin: 3rem 0; |
||||
} |
||||
|
||||
.woocommerce .woocommerce-customer-details address p{ |
||||
margin-top: .5em; |
||||
} |
||||
|
||||
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email::before, |
||||
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone::before { |
||||
margin-top: -.25em; |
||||
} |
||||
|
||||
.woocommerce-order-overview__order.order{ |
||||
display: flex; |
||||
flex-direction: column; |
||||
} |
||||
|
||||
.woocommerce-order{ |
||||
max-width: calc(100% - 30px); |
||||
margin-right: auto; |
||||
margin-left: auto; |
||||
} |
||||
|
||||
@media (max-width: 640px) { |
||||
.woocommerce ul.order_details li { |
||||
margin-right:0em; |
||||
font-size: .715em; |
||||
line-height: 1.3; |
||||
border-right: none; |
||||
border-bottom: 1px dashed #cfc8d8; |
||||
padding-right: 2em; |
||||
width: 100%; |
||||
padding-top: 0.5rem; |
||||
padding-bottom: 0.5rem; |
||||
} |
||||
} |
@ -0,0 +1,515 @@ |
||||
/* breadcrumbs */ |
||||
.breadcrumbs{ |
||||
margin: 24px; |
||||
|
||||
display: flex; |
||||
align-items: center; |
||||
} |
||||
.breadcrumbs__item{ |
||||
display: block; |
||||
|
||||
padding: 0px 16px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 16px; |
||||
line-height: 125%; |
||||
color: var(--text-6); |
||||
|
||||
text-decoration: none; |
||||
|
||||
position: relative; |
||||
} |
||||
.breadcrumbs__item:first-child{ |
||||
padding-left: 0; |
||||
} |
||||
.breadcrumbs__item:nth-child(n+2)::before{ |
||||
content: ''; |
||||
|
||||
position: absolute; |
||||
top: -2px; |
||||
left: -12px; |
||||
|
||||
width: 24px; |
||||
aspect-ratio: 1; |
||||
|
||||
background-image: url(../img/svg/main/arrow-breadcrumbs.svg); |
||||
background-repeat: no-repeat; |
||||
background-size: contain; |
||||
} |
||||
/* breadcrumbs */ |
||||
|
||||
/* compound */ |
||||
.compound{ |
||||
margin: -5px; |
||||
|
||||
min-height: 33.95px; |
||||
|
||||
display: flex; |
||||
align-items: start; |
||||
flex-wrap: wrap; |
||||
} |
||||
.compound__item{ |
||||
margin: 5px; |
||||
|
||||
padding: 4px 8px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
color: var(--text-black); |
||||
|
||||
border-radius: 16px; |
||||
background-color: var(--background-white); |
||||
|
||||
display: block; |
||||
text-decoration: none; |
||||
} |
||||
.compound__item:first-child{ |
||||
margin-left: 0; |
||||
} |
||||
.product__footer{ |
||||
margin: 48px 24px 24px; |
||||
|
||||
display: flex; |
||||
justify-content: center; |
||||
} |
||||
.product__footer--error{ |
||||
margin: 45px 0; |
||||
} |
||||
/* compound */ |
||||
|
||||
/* button */ |
||||
.button{ |
||||
font-family: var(--font-family); |
||||
font-weight: 600; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
|
||||
border-radius: 20px; |
||||
|
||||
cursor: pointer; |
||||
} |
||||
.button--100-perc{ |
||||
width: 100%; |
||||
} |
||||
.button--white{ |
||||
padding: 11px 24px; |
||||
|
||||
text-align: center; |
||||
|
||||
background-color: var(--background-white); |
||||
border: 1px solid var(--background-black); |
||||
|
||||
transition: opacity .2s ease-out; |
||||
} |
||||
.button--white:hover{ |
||||
opacity: .8; |
||||
} |
||||
.button--white.active{ |
||||
background: var(--background-black); |
||||
color: var(--background-white); |
||||
} |
||||
.button--gradient{ |
||||
background: var(--gradient-turquoise); |
||||
border: none; |
||||
|
||||
transition: opacity .2s ease-out; |
||||
} |
||||
.button--gradient:hover{ |
||||
opacity: .8; |
||||
} |
||||
.button--base{ |
||||
padding: 12px 24px; |
||||
} |
||||
.button--high{ |
||||
height: 56px; |
||||
|
||||
padding: 16px 24px 24px 24px; |
||||
|
||||
font-weight: 700; |
||||
text-align: center; |
||||
|
||||
position: relative; |
||||
} |
||||
.button--high-46{ |
||||
padding: 12px 24px; |
||||
|
||||
font-size: 20px; |
||||
font-weight: 700; |
||||
line-height: 24px; |
||||
} |
||||
.button--icon{ |
||||
padding-right: 56px; |
||||
|
||||
text-align: start; |
||||
} |
||||
.button--filter::after{ |
||||
content: ''; |
||||
|
||||
position: absolute; |
||||
top: 16px; |
||||
right: 24px; |
||||
|
||||
width: 24px; |
||||
aspect-ratio: 1; |
||||
|
||||
background-image: url(../img/svg/main/filter.svg); |
||||
background-repeat: no-repeat; |
||||
background-size: contain; |
||||
} |
||||
.button--black{ |
||||
padding: 7px 15px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 24px; |
||||
line-height: 133%; |
||||
color: var(--text-white); |
||||
|
||||
background: var(--background-black); |
||||
border: 1px solid var(--text-white); |
||||
} |
||||
.button--link{ |
||||
text-decoration: none; |
||||
} |
||||
.button--red-48-px{ |
||||
border-radius: 48px; |
||||
} |
||||
.to-know{ |
||||
/* width: 100%; */ |
||||
border: none; |
||||
transition: opacity .2s ease-out; |
||||
text-decoration: none; |
||||
text-transform: uppercase; |
||||
} |
||||
.product__item .to-know{ |
||||
margin-right: auto; |
||||
margin-left: auto; |
||||
width: auto; |
||||
display: flex; |
||||
} |
||||
.to-know--start{ |
||||
justify-content: start; |
||||
padding-left: 0; |
||||
} |
||||
|
||||
.to-know:hover{ |
||||
opacity: .8; |
||||
} |
||||
.to-know p{ |
||||
padding-bottom: 4px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
|
||||
border-bottom: 1px var(--text-black) solid; |
||||
|
||||
cursor: pointer; |
||||
} |
||||
.to-know--background-none{ |
||||
background: none; |
||||
} |
||||
.back{ |
||||
margin-top: 16px; |
||||
margin-left: 16px; |
||||
|
||||
padding: 8px; |
||||
padding-left: 32px; |
||||
|
||||
background: none; |
||||
border: none; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 600; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
|
||||
text-decoration: none; |
||||
|
||||
position: relative; |
||||
} |
||||
.back::before{ |
||||
content: ''; |
||||
|
||||
position: absolute; |
||||
top: 8px; |
||||
left: 0; |
||||
|
||||
margin-right: 8px; |
||||
|
||||
width: 24px; |
||||
height: 24px; |
||||
|
||||
background-image: url(../img/svg/main/arrow-back.svg); |
||||
} |
||||
|
||||
.back::after{ |
||||
content: ''; |
||||
|
||||
position: absolute; |
||||
bottom: 6px; |
||||
left: 0; |
||||
|
||||
width: calc(100% - 8px); |
||||
height: 1px; |
||||
|
||||
background: var(--text-black); |
||||
} |
||||
/* button */ |
||||
|
||||
.subscription{ |
||||
|
||||
} |
||||
.subscription__item{ |
||||
display: flex; |
||||
|
||||
color: var(--text-black); |
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
line-height: 120%; |
||||
} |
||||
.subscription__item:nth-last-child(n + 2){ |
||||
border-bottom: 1px solid var(--background-9); |
||||
} |
||||
.subscription__item span{ |
||||
font-weight: 700; |
||||
} |
||||
.subscription__item span small{ |
||||
font-size: 16px; |
||||
} |
||||
.subscription__status{ |
||||
color: var(--text-black); |
||||
} |
||||
.subscription__status--close{ |
||||
color: var(--text-red); |
||||
} |
||||
.subscription__status--end{ |
||||
color: var(--text-green); |
||||
} |
||||
.subscription__add{ |
||||
width: 100%; |
||||
} |
||||
.subscription__add-header{ |
||||
} |
||||
.subscription__add-product{ |
||||
align-items: start; |
||||
} |
||||
.subscription__add-product > *:not(:first-child){ |
||||
padding-top: 14px; |
||||
} |
||||
.subscription__add-title{ |
||||
font-family: var(--font-family); |
||||
font-weight: 600; |
||||
line-height: 133%; |
||||
} |
||||
.subscription__add-content{ |
||||
|
||||
} |
||||
|
||||
.tabs__buttons{ |
||||
margin: -12px; |
||||
|
||||
display: flex; |
||||
flex-wrap: wrap; |
||||
} |
||||
.tabs__content-wrap{ |
||||
margin-top: 24px; |
||||
} |
||||
.tabs__content{ |
||||
display: none; |
||||
} |
||||
.tabs__content.active{ |
||||
display: block; |
||||
} |
||||
|
||||
.wcsatt-add-to-subscription-wrapper, |
||||
form.cart .quantity, |
||||
.detail__content .in-stock, |
||||
.wcsatt-options-prompt-label-subscription, |
||||
.wcsatt-options-product-dropdown { |
||||
display: none; |
||||
} |
||||
.wcsatt-options-product-wrapper { |
||||
display: block!important; |
||||
} |
||||
form.cart .single_add_to_cart_button { |
||||
margin: 8px 0; |
||||
width: 345.89px; |
||||
max-width: 100%; |
||||
height: 56px; |
||||
padding: 16px 24px 16px 24px; |
||||
font-weight: 700; |
||||
text-align: center; |
||||
position: relative; |
||||
background: var(--gradient-turquoise); |
||||
border: none; |
||||
transition: opacity .2s ease-out; |
||||
font-family: var(--font-family); |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
border-radius: 20px; |
||||
text-transform: none; |
||||
cursor: pointer; |
||||
} |
||||
form.cart .single_add_to_cart_button:hover { |
||||
opacity: 0.8; |
||||
} |
||||
.subscription-option-details span { |
||||
color: #000; |
||||
cursor: pointer; |
||||
} |
||||
ul.wcsatt-options-product, .wcsatt-options-product-dropdown { |
||||
margin: 0; |
||||
} |
||||
.wcsatt-options-wrapper input, .wcsatt-add-to-subscription-wrapper input { |
||||
width: 18px; |
||||
aspect-ratio: 1; |
||||
accent-color: var(--background-black); |
||||
cursor: pointer; |
||||
} |
||||
.subscription-option label { |
||||
display: flex; |
||||
align-items: center; |
||||
gap: 5px; |
||||
} |
||||
|
||||
form.cart { |
||||
margin: 25px 0 -48px; |
||||
} |
||||
ul.wcsatt-options-product--hidden, .wcsatt-options-product-dropdown--hidden { |
||||
display: block!important; |
||||
} |
||||
|
||||
|
||||
.detail-block__form{ |
||||
margin-top: 48px; |
||||
|
||||
display: flex; |
||||
flex-direction: column; |
||||
} |
||||
|
||||
|
||||
.wcsatt-options-prompt-text{ |
||||
font-family: 'Craftwork Grotesk'; |
||||
font-style: normal; |
||||
font-weight: 700; |
||||
font-size: 20px; |
||||
line-height: 24px; |
||||
text-transform: uppercase; |
||||
color: #000000; |
||||
} |
||||
|
||||
.subscription-option-details, .wcsatt-options-prompt-action, .subs-text-title{ |
||||
font-size: 20px; |
||||
line-height: 24px; |
||||
display:flex; |
||||
gap: 12px; |
||||
align-items: center; |
||||
} |
||||
.subs-text{ |
||||
|
||||
max-width: 322px; |
||||
font-family: 'Craftwork Grotesk'; |
||||
font-style: normal; |
||||
font-weight: 500; |
||||
font-size: 16px; |
||||
line-height: 20px; |
||||
margin-bottom: 20px; |
||||
} |
||||
|
||||
@media (max-width: 640px) { |
||||
.subscription-option-details, .wcsatt-options-prompt-action, .subs-text-title{ |
||||
font-size: 18px; |
||||
line-height: 22px; |
||||
display:flex; |
||||
gap: 12px; |
||||
align-items: center; |
||||
} |
||||
} |
||||
input:checked + .subscription-option-details::before, input:checked + .wcsatt-options-prompt-action::before{ |
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10Z' fill='white'/%3E%3Cpath d='M1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10Z' stroke='url(%23paint0_radial_11890_46040)' stroke-width='2'/%3E%3Ccircle cx='10' cy='10' r='6' fill='url(%23paint1_radial_11890_46040)'/%3E%3Cdefs%3E%3CradialGradient id='paint0_radial_11890_46040' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(19 1) rotate(135) scale(25.4558 34.7538)'%3E%3Cstop stop-color='%23188892'/%3E%3Cstop offset='0.45' stop-color='%231EA49C'/%3E%3Cstop offset='0.9' stop-color='%2376CE75'/%3E%3Cstop offset='1' stop-color='%23BBE38D'/%3E%3C/radialGradient%3E%3CradialGradient id='paint1_radial_11890_46040' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(16 4) rotate(135) scale(16.9706 23.1692)'%3E%3Cstop stop-color='%23188892'/%3E%3Cstop offset='0.45' stop-color='%231EA49C'/%3E%3Cstop offset='0.9' stop-color='%2376CE75'/%3E%3Cstop offset='1' stop-color='%23BBE38D'/%3E%3C/radialGradient%3E%3C/defs%3E%3C/svg%3E"); |
||||
} |
||||
.subscription-option-details::before, .wcsatt-options-prompt-action::before{ |
||||
content: ''; |
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10Z' fill='white'/%3E%3Cpath d='M1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10Z' stroke='%23121212' stroke-width='2'/%3E%3C/svg%3E"); |
||||
height: 20px; width: 20px; |
||||
flex-shrink: 0; |
||||
} |
||||
|
||||
.wcsatt-options-wrapper input, .wcsatt-add-to-subscription-wrapper input { |
||||
aspect-ratio: 1; |
||||
accent-color: var(--background-black); |
||||
cursor: pointer; |
||||
height: 0; |
||||
width: 0; |
||||
position: absolute; |
||||
opacity: 0; |
||||
} |
||||
|
||||
.subscription-option .amount { |
||||
color: #1A1A1A; |
||||
font-weight: 600; |
||||
} |
||||
|
||||
.subscription-option del .amount { |
||||
color: #bbb; |
||||
font-weight: 400; |
||||
font-size: .8em; |
||||
|
||||
} |
||||
|
||||
.subscription-option del .woocommerce-Price-amount.amount, .subscription-option del .woocommerce-Price-currencySymbol{ |
||||
text-decoration: line-through !important; |
||||
} |
||||
|
||||
.woocommerce-Price-amount.amount{ |
||||
font-size: 1.15em; |
||||
} |
||||
|
||||
.detail #wc-stripe-express-checkout-element{ |
||||
display: none !important; |
||||
} |
||||
|
||||
.detail-block-form__item--radio{ |
||||
display: flex; |
||||
gap: 10px; |
||||
} |
||||
|
||||
.amount { |
||||
color: #1A1A1A; |
||||
font-weight: 600; |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
.detail__wrapper-catalot .swiper-slide { |
||||
height: auto; |
||||
display: flex; |
||||
flex-direction: column; |
||||
} |
||||
|
||||
.detail__wrapper-catalot .swiper-wrapper { |
||||
display: flex; |
||||
align-items: stretch; |
||||
} |
||||
|
||||
.detail__catalot .product__item{ |
||||
flex-grow: 1; |
||||
} |
||||
|
||||
.toggle__title{ |
||||
text-transform: uppercase; |
||||
} |
||||
|
||||
.toggle__text p:not(:last-child) { |
||||
margin-bottom: 1em; |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,336 @@ |
||||
/* Стили для мобильных устройств */ |
||||
@media only screen and (max-width: 720px) { |
||||
/* product */ |
||||
.product__item{ |
||||
width: calc(100% - 24px); |
||||
} |
||||
/* product */ |
||||
|
||||
/* modal */ |
||||
.modal__basket{ |
||||
width: 100%; |
||||
} |
||||
.modal__filter{ |
||||
width: 100%; |
||||
} |
||||
.modal__to-know, |
||||
.modal__to-know-submit{ |
||||
width: 100%; |
||||
} |
||||
.modal__button .to-know{ |
||||
display: flex; |
||||
|
||||
background: none; |
||||
} |
||||
.modal__basket .modal__header { |
||||
height: calc(100% - 156px); |
||||
margin-bottom: -36px; |
||||
} |
||||
.modal-basket-item__block-image{ |
||||
position: absolute; |
||||
width: 80px; |
||||
} |
||||
.modal-basket-item__image{ |
||||
width: 48px; |
||||
} |
||||
.modal-basket-item__content{ |
||||
margin-left: 0; |
||||
|
||||
padding-left: 96px; |
||||
} |
||||
.modal-basket-item__control{ |
||||
margin-left: -80px; |
||||
} |
||||
.modal-basket-item__title{ |
||||
min-height: 40px; |
||||
|
||||
font-size: 16px; |
||||
} |
||||
.modal-basket__item--return{ |
||||
flex-direction: column; |
||||
align-items: start; |
||||
} |
||||
.modal-basket__item--return .modal-basket-item__title{ |
||||
margin-right: auto; |
||||
} |
||||
.notification--width-584{ |
||||
width: 100%; |
||||
} |
||||
.notification__title{ |
||||
font-size: 20px; |
||||
} |
||||
.notification__text--center-pc{ |
||||
text-align: start; |
||||
} |
||||
.notification__img{ |
||||
height: 360px; |
||||
} |
||||
.notification__title{ |
||||
padding-right: 96px; |
||||
} |
||||
.modal-form__buttons--two{ |
||||
flex-wrap: wrap; |
||||
} |
||||
.modal-form__buttons--two button, .modal-form__buttons--two input{ |
||||
margin-top: 24px; |
||||
width: 100%; |
||||
} |
||||
.modal-form__buttons--two button:first-child, .modal-form__buttons--two input:first-child{ |
||||
margin-top: 0; |
||||
} |
||||
.modal-map__control{ |
||||
flex-wrap: wrap; |
||||
} |
||||
.modal-map-control__item{ |
||||
width: calc(100% - 24px); |
||||
} |
||||
.form__full-mobile{ |
||||
width: 100%; |
||||
border-radius: 0; |
||||
border: none; |
||||
} |
||||
|
||||
.modal-form-content__line--three .modal-form-content-line__element:nth-child(1){ |
||||
width: 69px; |
||||
} |
||||
.modal-form-content__line--three .modal-form-content-line__element:nth-child(2){ |
||||
|
||||
} |
||||
.modal-form-content__line--three .modal-form-content-line__element:nth-child(3){ |
||||
width: 82px; |
||||
} |
||||
.form__input{ |
||||
padding: 12px 14px; |
||||
} |
||||
.modal-form--height-100-phone{ |
||||
min-height: 100%; |
||||
} |
||||
/* modal */ |
||||
|
||||
/* footer */ |
||||
.footer__about{ |
||||
display: none; |
||||
} |
||||
.footer__wrapper{ |
||||
flex-direction: column; |
||||
} |
||||
.footer__content{ |
||||
width: 100%; |
||||
} |
||||
.footer__form{ |
||||
margin-top: 24px; |
||||
margin-left: 0; |
||||
|
||||
width: 100%; |
||||
} |
||||
.footer__social-media{ |
||||
display: block; |
||||
|
||||
margin-top: 24px; |
||||
} |
||||
.footer-about__text{ |
||||
padding-top: 35px; |
||||
display: block; |
||||
text-align: left; |
||||
} |
||||
.footer__list{ |
||||
margin-top: 20px; |
||||
} |
||||
/* footer */ |
||||
|
||||
/* detail */ |
||||
.toggle__table--two .toggle-table__block{ |
||||
width: 100%; |
||||
} |
||||
.toggle__table--two .toggle-table__block:nth-child(even){ |
||||
margin-top: 32px; |
||||
margin-left: 0; |
||||
} |
||||
.toggle__table--three .toggle-table__block:nth-child(1){ |
||||
width: 31%; |
||||
} |
||||
/* detail */ |
||||
|
||||
/* cabinet */ |
||||
.cabinet-card__title{ |
||||
font-size: 20px; |
||||
} |
||||
.cabinet-card__no-orders{ |
||||
margin-top: 16px; |
||||
} |
||||
.cabinet-card-order__header{ |
||||
flex-direction: column; |
||||
} |
||||
.cabinet-card-order__payment{ |
||||
margin-top: 16px; |
||||
} |
||||
.cabinet-card-order-detail__main{ |
||||
flex-direction: column; |
||||
} |
||||
.cabinet-card-order-detail-main__links{ |
||||
margin-top: 24px; |
||||
|
||||
align-items: start; |
||||
} |
||||
.cabinet-card-order-detail-main-product__img{ |
||||
width: 70px; |
||||
height: 70px; |
||||
} |
||||
.cabinet-card-order-detail-main__product{ |
||||
margin-top: 16px; |
||||
|
||||
align-items: start; |
||||
} |
||||
.cabinet-card-order-detail-main-product__content{ |
||||
margin-left: 16px; |
||||
|
||||
flex-wrap: wrap; |
||||
|
||||
position: relative; |
||||
} |
||||
.cabinet-card-order-detail-main-product__description{ |
||||
width: 100%; |
||||
} |
||||
.cabinet-card-order-detail-main-product__count{ |
||||
position: absolute; |
||||
left: 116px; |
||||
bottom: 0; |
||||
} |
||||
.cabinet-card-order-detail-main-product__price{ |
||||
position: absolute; |
||||
left: 153px; |
||||
bottom: 0; |
||||
} |
||||
.cabinet-card__content{ |
||||
padding-right: 19px; |
||||
} |
||||
.cabinet-card-order-main__date{ |
||||
font-size: 20px; |
||||
} |
||||
/* .cabinet-card__order.active */ |
||||
/* .cabinet-card__order.active */ |
||||
/* cabinet */ |
||||
} |
||||
|
||||
@media only screen and (max-width: 576px) { |
||||
/* header */ |
||||
|
||||
/* header */ |
||||
|
||||
/* product */ |
||||
.product__header{ |
||||
flex-direction: column; |
||||
align-items: start; |
||||
} |
||||
.product__header .button{ |
||||
margin-top: 48px; |
||||
} |
||||
/* product */ |
||||
|
||||
/* modal */ |
||||
.modal__aside{ |
||||
left: 0; |
||||
} |
||||
.form-input-radio__title span{ |
||||
display: block; |
||||
width: 100%; |
||||
|
||||
color: var(--text-grey); |
||||
} |
||||
.modal-form__title{ |
||||
font-size: 20px; |
||||
} |
||||
/* modal */ |
||||
|
||||
/* detail */ |
||||
.detail-block-form__item, |
||||
.detail-block-form__submit{ |
||||
min-width: 100%; |
||||
} |
||||
/* detail */ |
||||
|
||||
/* cabinet */ |
||||
|
||||
.cabinet-card-order-detail-main-product__img{ |
||||
width: 40px; |
||||
height: 40px; |
||||
} |
||||
|
||||
.cabinet-card-order-detail-main-product__count{ |
||||
left: auto; |
||||
right: 71px; |
||||
} |
||||
.cabinet-card-order-detail-main-product__price{ |
||||
left: auto; |
||||
right: 0; |
||||
} |
||||
.cabinet-card-order__detail-short{ |
||||
transition-delay: 0; |
||||
transition-duration: 0; |
||||
} |
||||
/* cabinet */ |
||||
} |
||||
|
||||
@media only screen and (max-width: 720px) { |
||||
.subscription__item{ |
||||
flex-direction: column; |
||||
} |
||||
|
||||
.subscription__item > p:first-child{ |
||||
font-size: 16px; |
||||
color: var(--text-6); |
||||
} |
||||
.subscription__item > p:last-child{ |
||||
margin-top: 6px; |
||||
} |
||||
|
||||
.subscription__add-title { |
||||
font-size: 20px; |
||||
} |
||||
|
||||
.subscription__add-product{ |
||||
flex-wrap: wrap; |
||||
} |
||||
|
||||
.subscription__add-product > *:not(:first-child){ |
||||
padding-top: 0; |
||||
} |
||||
.subscription__add-product .cabinet-card-order-detail-main-product__img{ |
||||
width: 73px; |
||||
height: 66px; |
||||
} |
||||
.subscription__add-product .cabinet-card-order-detail-main-product-description__what{ |
||||
font-size: 12px; |
||||
display: -webkit-box; |
||||
-webkit-line-clamp: 2; |
||||
-webkit-box-orient: vertical; |
||||
overflow: hidden; |
||||
} |
||||
.subscription__add-product .cabinet-card-order-detail-main-product-description__with-what{ |
||||
margin-top: 8px; |
||||
|
||||
font-size: 12px; |
||||
} |
||||
.subscription__add-product .cabinet-card-order-detail-main-product__description { |
||||
width: calc(100% - 73px); |
||||
} |
||||
.subscription__add-product .cabinet-card-order-detail-main-product__content{ |
||||
position: static; |
||||
margin-top: -10px; |
||||
margin-left: auto; |
||||
width: calc(100% - 73px); |
||||
|
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
} |
||||
.subscription__add-product .cabinet-card-order-detail-main-product__count{ |
||||
position: static; |
||||
font-size: 12px; |
||||
} |
||||
.subscription__add-product .cabinet-card-order-detail-main-product__price{ |
||||
position: static; |
||||
font-size: 16px; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,241 @@ |
||||
.order{ |
||||
display: flex; |
||||
} |
||||
.order__title{ |
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 24px; |
||||
line-height: 117%; |
||||
text-transform: uppercase; |
||||
color: var(--text-black); |
||||
} |
||||
.order__contacts{ |
||||
width: calc(50% - 0.5px); |
||||
|
||||
padding: 24px; |
||||
|
||||
border-right: 1px solid #121212; |
||||
} |
||||
.order-contacts__header{ |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
} |
||||
.order-contacts__form{ |
||||
margin-top: 24px; |
||||
} |
||||
.order-contacts__delivery{ |
||||
margin-top: 47.5px; |
||||
|
||||
padding-top: 48px; |
||||
|
||||
border-top: 1px solid var(--background-grey); |
||||
} |
||||
|
||||
.order-contacts-deliver__item{ |
||||
margin-top: 24px; |
||||
} |
||||
.order-contacts-deliver__date{ |
||||
padding: 8px; |
||||
|
||||
border-radius: 24px; |
||||
|
||||
background: var(--background-grey); |
||||
} |
||||
.order-contacts-deliver__date .form-input-radio__item{ |
||||
margin-top: 24px; |
||||
} |
||||
.order-contacts-deliver__date .form-input-radio__item:first-child{ |
||||
margin-top: 0; |
||||
} |
||||
.order__your{ |
||||
width: calc(50% - 0.5px); |
||||
|
||||
padding: 24px 24px 24px 48px; |
||||
|
||||
background: var(--background-grey); |
||||
} |
||||
.order-your__products{ |
||||
margin-top: 48px; |
||||
} |
||||
.order-your-products__item{ |
||||
margin-top: 16px; |
||||
|
||||
display: flex; |
||||
justify-content: space-between; |
||||
} |
||||
.order-your-products__left{ |
||||
display: flex; |
||||
} |
||||
.order-your-products__img{ |
||||
width: 40px; |
||||
aspect-ratio: 1; |
||||
|
||||
border-radius: 16px; |
||||
} |
||||
.order-your-products__content{ |
||||
margin-left: 16px; |
||||
} |
||||
.order-your-products__name{ |
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
color: var(--text-black); |
||||
|
||||
text-decoration: none; |
||||
} |
||||
.order-your-products__description{ |
||||
margin-top: 8px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
color: var(--text-6); |
||||
} |
||||
.order-your-products__description span{ |
||||
font-weight: 700; |
||||
} |
||||
.order-your-products__description span::before{ |
||||
margin-left: 3px; |
||||
|
||||
content: 'x '; |
||||
} |
||||
.order-your-products__right{ |
||||
display: flex; |
||||
} |
||||
.order-your-products__count{ |
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
text-align: right; |
||||
color: var(--text-6); |
||||
} |
||||
.order-your-products__count::before{ |
||||
content: 'x'; |
||||
} |
||||
.order-your-products__price{ |
||||
margin-left: 16px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
text-align: right; |
||||
color: var(--text-black); |
||||
} |
||||
.order-your-products__price::after{ |
||||
content: 'Р'; |
||||
} |
||||
.order-your__calculation{ |
||||
margin-top: 48px; |
||||
} |
||||
.order-your__promo{ |
||||
display: flex; |
||||
} |
||||
.order-your-promo__button{ |
||||
margin-left: 8px; |
||||
} |
||||
.order-your-calculation__item{ |
||||
margin-top: 24px; |
||||
|
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
} |
||||
.order-your-calculation__title{ |
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
color: var(--text-black); |
||||
} |
||||
.order-your-calculation__value{ |
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 20px; |
||||
line-height: 200%; |
||||
text-transform: uppercase; |
||||
text-align: right; |
||||
color: var(--text-black); |
||||
} |
||||
.order-your-calculation__value--price::after{ |
||||
content: ' ₽'; |
||||
} |
||||
.order-your-calculation__value--discount{ |
||||
background: var(--gradient-red); |
||||
background-clip: text; |
||||
-webkit-background-clip: text; |
||||
-webkit-text-fill-color: transparent; |
||||
} |
||||
.order-your-calculation__value--discount::before{ |
||||
content: '- '; |
||||
} |
||||
.order-your-calculation__description{ |
||||
font-family: var(--font-family); |
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
text-align: right; |
||||
color: var(--text-9); |
||||
} |
||||
.order-your-calculation__line{ |
||||
margin-top: 23px; |
||||
border: 1px solid var(--background-9); |
||||
} |
||||
.order-your-calculation__result{ |
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 24px; |
||||
line-height: 117%; |
||||
text-transform: uppercase; |
||||
color: var(--text-black); |
||||
} |
||||
.order-your-calculation__submit{ |
||||
margin-top: 48px; |
||||
} |
||||
|
||||
@media only screen and (max-width: 1200px) { |
||||
.order{ |
||||
display: block; |
||||
} |
||||
.order__contacts, .order__your{ |
||||
border: none; |
||||
width: 100%; |
||||
} |
||||
} |
||||
|
||||
@media only screen and (max-width: 720px) { |
||||
.order__title{ |
||||
max-width: 181px; |
||||
|
||||
font-size: 20px; |
||||
line-height: 120%; |
||||
} |
||||
.order__your{ |
||||
margin-top: 16px; |
||||
} |
||||
.order__contacts{ |
||||
padding: 24px 16px; |
||||
} |
||||
.order__your{ |
||||
padding: 40px 16px 9px 16px; |
||||
} |
||||
.order-your__promo{ |
||||
display: block; |
||||
} |
||||
.order-your-promo__button{ |
||||
margin-left: 0; |
||||
margin-top: 24px; |
||||
|
||||
width: 100%; |
||||
} |
||||
.order-your-products__content{ |
||||
max-width: 164px; |
||||
} |
||||
.order-your-products__count, .order-your-products__price{ |
||||
flex-shrink: 0; |
||||
} |
||||
} |
@ -0,0 +1,352 @@ |
||||
/* Стили для планшетов */ |
||||
@media only screen and (max-width: 1200px) { |
||||
|
||||
.product__main{ |
||||
margin: 36px 0 0; |
||||
} |
||||
/* header */ |
||||
main{ |
||||
padding-top: 64px; |
||||
} |
||||
.main-menu{ |
||||
display: none; |
||||
} |
||||
.header__open-menu{ |
||||
display: block; |
||||
} |
||||
.lang{ |
||||
display: none; |
||||
} |
||||
.header__logo{ |
||||
width: 136px; |
||||
height: 29px; |
||||
} |
||||
.header__content{ |
||||
height: auto; |
||||
|
||||
padding: 8px 16px; |
||||
} |
||||
.mini-profile__item:nth-child(2){ |
||||
margin-left: 0; |
||||
} |
||||
.header::after{ |
||||
left: 0; |
||||
|
||||
width: 100%; |
||||
} |
||||
.header__pc-menu{ |
||||
display: none; |
||||
} |
||||
.header__phone-menu{ |
||||
display: block; |
||||
} |
||||
.header__menu-block{ |
||||
top: 56px; |
||||
} |
||||
.header__content::after{ |
||||
left: 0; |
||||
right: 0; |
||||
width: 100%; |
||||
} |
||||
/* header */ |
||||
|
||||
/* footer */ |
||||
.footer{ |
||||
margin-top: 0; |
||||
|
||||
padding: 24px 16px; |
||||
} |
||||
/* footer */ |
||||
|
||||
/* breadcrumbs */ |
||||
.breadcrumbs{ |
||||
display: none; |
||||
} |
||||
/* breadcrumbs */ |
||||
|
||||
/* product */ |
||||
.product{ |
||||
padding: 12px; |
||||
padding-top: 20px; |
||||
} |
||||
.product__title{ |
||||
font-weight: 700; |
||||
font-size: 26px; |
||||
line-height: 123%; |
||||
text-transform: uppercase; |
||||
} |
||||
.to-know p { |
||||
font-size: 18px; |
||||
} |
||||
.toggle-table__title{ |
||||
font-weight: 700; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
} |
||||
.toggle-table__item p{ |
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
} |
||||
.toggle-table-item__line{ |
||||
margin-top: 12px; |
||||
} |
||||
.detail{ |
||||
margin: 24px 16px; |
||||
} |
||||
.back-detail{ |
||||
display: inline; |
||||
} |
||||
.detail-catalot__title{ |
||||
font-size: 22px; |
||||
} |
||||
.product__footer--error{ |
||||
margin: 48px 0px 24px; |
||||
} |
||||
/* product */ |
||||
|
||||
/* modal */ |
||||
.modal{ |
||||
padding: 0; |
||||
} |
||||
.modal__text{ |
||||
padding-right: 0; |
||||
} |
||||
.form__button-pc{ |
||||
display: none; |
||||
} |
||||
.form__button-mobile{ |
||||
display: block; |
||||
} |
||||
.modal-form{ |
||||
/* min-height: 100%; |
||||
width: 100%; |
||||
|
||||
border-radius: 0; |
||||
border: none; */ |
||||
} |
||||
.modal__notification{ |
||||
margin: 24px; |
||||
} |
||||
.form-input-phone__list{ |
||||
left: 0; |
||||
} |
||||
|
||||
.modal-form-content__line--two{ |
||||
flex-wrap: wrap; |
||||
} |
||||
.modal-form-content__line--two .modal-form-content-line__element{ |
||||
margin-top: 24px; |
||||
|
||||
width: 100%; |
||||
} |
||||
.modal-form-content__line--two .modal-form-content-line__element:first-child{ |
||||
margin-top: 0; |
||||
} |
||||
.modal-map{ |
||||
width: 100%; |
||||
|
||||
flex-direction: column; |
||||
|
||||
border-radius: 0; |
||||
} |
||||
.modal-map__left, .modal-map__right{ |
||||
width: 100%; |
||||
} |
||||
.modal-map__map iframe { |
||||
width: 100%; |
||||
height: 528px; |
||||
} |
||||
.modal-map-form__button{ |
||||
display: none; |
||||
} |
||||
.modal-map-form__sub-button{ |
||||
margin-top: 64px; |
||||
|
||||
padding: 0 24px; |
||||
|
||||
display: flex; |
||||
} |
||||
/* modal */ |
||||
|
||||
/* cabinet */ |
||||
.cabinet{ |
||||
flex-direction: column; |
||||
|
||||
position: relative; |
||||
} |
||||
.cabinet__control{ |
||||
display: flex; |
||||
|
||||
position: relative; |
||||
} |
||||
.cabinet__orders, .cabinet__profile{ |
||||
width: calc(100% - 48px); |
||||
} |
||||
.cabinet__orders, .cabinet__profile{ |
||||
position: absolute; |
||||
opacity: 0; |
||||
|
||||
transition: opacity .2s ease-out; |
||||
} |
||||
.cabinet-content{ |
||||
pointer-events:none; |
||||
} |
||||
.cabinet__orders.active, .cabinet__profile.active{ |
||||
opacity: 1; |
||||
} |
||||
.cabinet__orders.hide, .cabinet__profile.hide{ |
||||
position: static; |
||||
display: block; |
||||
pointer-events:auto; |
||||
|
||||
width: 100%; |
||||
} |
||||
.cabinet__subscription-pc{ |
||||
display: none; |
||||
} |
||||
.cabinet__subscription-mobile{ |
||||
display: block; |
||||
|
||||
margin: 24px 24px 0 24px; |
||||
} |
||||
.cabinet__orders .cabinet-card:nth-child(2){ |
||||
margin-top: 0; |
||||
} |
||||
.cabinet__orders--no-cab .cabinet-card:nth-child(2){ |
||||
margin-top: 32px; |
||||
} |
||||
/* cabinet */ |
||||
} |
||||
|
||||
@media only screen and (max-width: 980px) { |
||||
/* product */ |
||||
.product__item{ |
||||
width: calc(50% - 24px); |
||||
} |
||||
/* product */ |
||||
|
||||
|
||||
/* detail */ |
||||
.detail{ |
||||
flex-direction: column; |
||||
} |
||||
.detail__images{ |
||||
display: none; |
||||
} |
||||
.detail__content{ |
||||
width: 100%; |
||||
} |
||||
.detail__content{ |
||||
margin-left: 0; |
||||
} |
||||
|
||||
.detail__images-phone{ |
||||
display: block; |
||||
|
||||
margin-top: 48px; |
||||
margin-bottom: 48px; |
||||
|
||||
position: relative; |
||||
|
||||
overflow: hidden; |
||||
} |
||||
.detail__images-phone .swiper-slide{ |
||||
display: flex; |
||||
justify-content: center; |
||||
} |
||||
.detail-images-phone__image-block{ |
||||
width: 100%; |
||||
aspect-ratio: 1; |
||||
max-width: 500px; |
||||
|
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
|
||||
background: var(--background-grey); |
||||
border-radius: 16px; |
||||
} |
||||
|
||||
.detail__images-phone .swiper-pagination-bullet{ |
||||
width: 8px; |
||||
height: 8px; |
||||
|
||||
border-radius: 50%; |
||||
|
||||
border: 1px solid #666; |
||||
background-color: #666; |
||||
|
||||
opacity: 1; |
||||
} |
||||
.detail__images-phone .swiper-pagination-bullet.swiper-pagination-bullet-active{ |
||||
background-color: var(--background-white); |
||||
} |
||||
|
||||
.detail__images-phone .swiper-pagination{ |
||||
margin-bottom: 19px; |
||||
} |
||||
.detail__title{ |
||||
font-size: 26px; |
||||
line-height: 123%; |
||||
} |
||||
.gallery__slider .swiper-pagination { |
||||
display: block; |
||||
} |
||||
.gallery__pagination{ |
||||
display: none; |
||||
} |
||||
|
||||
.gallery__slider .swiper-pagination-bullet{ |
||||
width: 8px; |
||||
height: 8px; |
||||
border-radius: 50%; |
||||
border: 1px solid #666; |
||||
background-color: #666; |
||||
opacity: 1; |
||||
} |
||||
.gallery__wrapper .gallery-button{ |
||||
display: none; |
||||
} |
||||
|
||||
.gallery__slider .swiper-pagination-bullet.swiper-pagination-bullet-active{ |
||||
background-color: var(--background-white); |
||||
} |
||||
|
||||
.gallery__slider{ |
||||
margin-left:0; |
||||
padding: 0px 0px 50px 0px; |
||||
/* padding: 40px; */ |
||||
} |
||||
.gallery__block { |
||||
width: 100%; |
||||
aspect-ratio: 1; |
||||
height: auto; |
||||
} |
||||
/* detail */ |
||||
} |
||||
|
||||
@media only screen and (max-width: 750px) { |
||||
/* cabinet */ |
||||
.cabinet-card-order__open-detail{ |
||||
margin-top: 144px; |
||||
} |
||||
.cabinet-card-order__detail-short{ |
||||
right: auto; |
||||
left: 0; |
||||
bottom: 48px; |
||||
} |
||||
.cabinet-card-order-detail-short__item{ |
||||
margin-left: -27px; |
||||
} |
||||
.cabinet-card-order-detail-short__item:first-child{ |
||||
margin-left: 0; |
||||
} |
||||
.cabinet-card__order.active .cabinet-card-order__open-detail{ |
||||
margin-top: 24px; |
||||
} |
||||
.cabinet-card-order__link{ |
||||
margin-top: 144px; |
||||
} |
||||
/* cabinet */ |
||||
} |
@ -0,0 +1,4 @@ |
||||
/* Стили для ультрашироких экранов */ |
||||
@media only screen and (min-width: 1400px) { |
||||
|
||||
} |
@ -0,0 +1,901 @@ |
||||
/* breadcrumbs */ |
||||
.breadcrumbs{ |
||||
margin: 24px 0px; |
||||
|
||||
display: flex; |
||||
align-items: center; |
||||
} |
||||
.breadcrumbs__item{ |
||||
display: block; |
||||
|
||||
padding: 0px 16px; |
||||
|
||||
font-family: var(--font-family); |
||||
font-weight: 700; |
||||
font-size: 16px; |
||||
line-height: 125%; |
||||
color: var(--text-6); |
||||
|
||||
text-decoration: none; |
||||
|
||||
position: relative; |
||||
} |
||||
.breadcrumbs__item:first-child{ |
||||
padding-left: 0; |
||||
} |
||||
.breadcrumbs__item:nth-child(n+2)::before{ |
||||
content: ''; |
||||
|
||||
position: absolute; |
||||
top: -2px; |
||||
left: -12px; |
||||
|
||||
width: 24px; |
||||
aspect-ratio: 1; |
||||
|
||||
background-image: url(../img/svg/main/arrow-breadcrumbs.svg); |
||||
background-repeat: no-repeat; |
||||
background-size: contain; |
||||
} |
||||
/* breadcrumbs */ |
||||
|
||||
/* product */ |
||||
|
||||
.product_main{ |
||||
display: flex; |
||||
padding: 30px; |
||||
border-radius: 30px; |
||||
min-height: 766px; |
||||
margin-top: 30px; |
||||
justify-content: space-between; |
||||
background-color: var(--bg-color); |
||||
} |
||||
|
||||
.product_main.--food-fish{ |
||||
--bg-color: #C1DDE6; |
||||
--accent-color: #48c1ed; |
||||
} |
||||
|
||||
.product_main.--food-lamb{ |
||||
--bg-color: #E6D7C1; |
||||
--accent-color: #863300; |
||||
} |
||||
|
||||
.product_main.--food-turkey{ |
||||
--bg-color: #F3D7D2; |
||||
--accent-color: #CD0003; |
||||
} |
||||
|
||||
.product_main.--food-beef{ |
||||
--bg-color: #E6C1D7; |
||||
--accent-color: #7e0092; |
||||
} |
||||
|
||||
.product_main.--food-salmon{ |
||||
--bg-color: #F3D7C1; |
||||
--accent-color: #ff6b35; |
||||
} |
||||
|
||||
.product_main.--food-rabbit{ |
||||
--bg-color: #E6D7C1; |
||||
--accent-color: #8b4513; |
||||
} |
||||
|
||||
.product_main.--food-duck{ |
||||
--bg-color: #F3E6D7; |
||||
--accent-color: #d2691e; |
||||
} |
||||
|
||||
.product_main.--treats-lamb{ |
||||
--bg-color: #E6D7F3; |
||||
--accent-color: #44006c; |
||||
} |
||||
|
||||
.product_main.--treats-rabbit{ |
||||
--bg-color: #F3D7E6; |
||||
--accent-color: #601094; |
||||
} |
||||
|
||||
.product_main.--treats-beef{ |
||||
--bg-color: #D7F3E6; |
||||
--accent-color: #004c31; |
||||
} |
||||
|
||||
.product_main.--treats-salmon{ |
||||
--bg-color: #F3D7F3; |
||||
--accent-color: #7c007a; |
||||
} |
||||
|
||||
.product_main.--treats-duck{ |
||||
--bg-color: #D7F3F3; |
||||
--accent-color: #326e70; |
||||
} |
||||
|
||||
.product_main.--treats-fish{ |
||||
--bg-color: #D7E6F3; |
||||
--accent-color: #0066cc; |
||||
} |
||||
|
||||
.product_main.--treats-turkey{ |
||||
--bg-color: #F3E6D7; |
||||
--accent-color: #cc3300; |
||||
} |
||||
|
||||
/* product info */ |
||||
.product-info{ |
||||
width: 364px; |
||||
flex-direction: column; |
||||
justify-content: space-between; |
||||
display: flex; |
||||
padding-right: 30px; |
||||
} |
||||
|
||||
.product-title{ |
||||
font-weight: 700; |
||||
font-size: 24px; |
||||
text-transform: uppercase; |
||||
color: #121212; |
||||
} |
||||
|
||||
.product-contains{ |
||||
margin-top: 30px; |
||||
|
||||
} |
||||
|
||||
.product-block-title{ |
||||
font-weight: 700; |
||||
font-size: 20px; |
||||
line-height: 100%; |
||||
color: #121212; |
||||
text-transform: uppercase; |
||||
} |
||||
|
||||
.product-contains-text{ |
||||
font-weight: 400; |
||||
font-size: 14px; |
||||
line-height: 150%; |
||||
color: #121212; |
||||
margin-top: 20px; |
||||
} |
||||
|
||||
|
||||
|
||||
.product-values{ |
||||
margin-top: 30px; |
||||
} |
||||
|
||||
.product-values-list{ |
||||
display: flex; |
||||
flex-wrap: wrap; |
||||
margin-top: 10px; |
||||
gap: 4px; |
||||
} |
||||
|
||||
.product-values-item{ |
||||
border: 1px solid rgba(18, 18, 18, 0.1); |
||||
border-radius: 100px; |
||||
padding: 4px 4px 4px 10px; |
||||
height: 48px; |
||||
display: flex; |
||||
align-items: center; |
||||
font-weight: 700; |
||||
font-size: 14px; |
||||
line-height: 143%; |
||||
color: #121212; |
||||
gap: 10px; |
||||
} |
||||
|
||||
.product-values-item-val{ |
||||
border: 1px solid #000; |
||||
border-radius: 100px; |
||||
min-width: 40px; |
||||
padding-left: 5px; |
||||
padding-right: 5px; |
||||
height: 40px; |
||||
flex-shrink: 0; |
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
} |
||||
|
||||
.product-values-title{ |
||||
font-weight: 700; |
||||
font-size: 16px; |
||||
line-height: 125%; |
||||
color: #121212; |
||||
} |
||||
|
||||
.product-vitamins{ |
||||
border: 1px solid rgba(18, 18, 18, 0.1); |
||||
border-radius: 20px; |
||||
padding: 10px; |
||||
width: 100%; |
||||
font-weight: 700; |
||||
font-size: 14px; |
||||
line-height: 143%; |
||||
color: #121212; |
||||
margin-top: 4px; |
||||
} |
||||
|
||||
.product-vitamins-list{ |
||||
margin-top: 10px; |
||||
display: flex; |
||||
flex-wrap: wrap; |
||||
gap: 4px; |
||||
} |
||||
|
||||
.product-vitamins-item{ |
||||
border: 1px solid #000; |
||||
border-radius: 100px; |
||||
padding: 10px; |
||||
} |
||||
/* product info */ |
||||
|
||||
|
||||
/* product constructor */ |
||||
.product-constructor{ |
||||
width: 395px; |
||||
} |
||||
.product-constructor__block{ |
||||
margin-bottom: 1.5rem; |
||||
} |
||||
.product-constructor__block-title{ |
||||
font-size: 16px; |
||||
line-height: 125%; |
||||
color: #121212; |
||||
font-weight: 700; |
||||
} |
||||
|
||||
.product-constructor__block-list{ |
||||
display: flex; |
||||
margin-top: 10px; |
||||
border-radius: 100px; |
||||
padding: 5px; |
||||
height: 60px; |
||||
width: 100%; |
||||
background-color: #fff; |
||||
} |
||||
|
||||
.product-constructor__block-item{ |
||||
flex-grow: 1; |
||||
padding: 2px 6px; |
||||
display: flex; |
||||
flex-direction: column; |
||||
align-items: center; |
||||
justify-content: center; |
||||
height: 50px; |
||||
font-weight: 700; |
||||
font-size: 14px; |
||||
color: rgba(18, 18, 18, 0.75); |
||||
border-radius: 100px; |
||||
} |
||||
|
||||
.product-constructor__block-item svg, .product-constructor__block-item path{ |
||||
fill: rgba(18, 18, 18, 0.75); |
||||
fill-opacity: 1; |
||||
} |
||||
.product-constructor__block-item.active{ |
||||
color: #fff; |
||||
background-color: var(--accent-color); |
||||
} |
||||
|
||||
.product-constructor__block-item.active svg, .product-constructor__block-item.active path{ |
||||
fill: #fff; |
||||
} |
||||
.product-constructor__block-item img, .product-constructor__block-item svg{ |
||||
height: 22px; |
||||
width: 22px; |
||||
} |
||||
/* product constructor */ |
||||
/* product price */ |
||||
|
||||
|
||||
.product-price{ |
||||
display: flex; |
||||
gap: 10px; |
||||
align-items: center; |
||||
} |
||||
|
||||
.product-price-main{ |
||||
border-radius: 100px; |
||||
padding: 14px 15px; |
||||
width: 135px; |
||||
background-color: #fff; |
||||
font-size: 24px; |
||||
text-transform: uppercase; |
||||
text-align: center; |
||||
color: #4d4d4d; |
||||
font-weight: 700; |
||||
} |
||||
|
||||
.product-price-old{ |
||||
font-weight: 700; |
||||
font-size: 16px; |
||||
line-height: 150%; |
||||
text-transform: uppercase; |
||||
text-decoration: line-through; |
||||
color: #666; |
||||
} |
||||
.product-price-percent{ |
||||
font-weight: 500; |
||||
font-size: 12px; |
||||
line-height: 133%; |
||||
color: #fa0505; |
||||
margin-top: 8px; |
||||
} |
||||
|
||||
.product-btn, .button{ |
||||
border: 2px solid #fff; |
||||
border-radius: 100px; |
||||
padding: 12px 16px; |
||||
width: 100%; |
||||
height: 60px; |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: center; |
||||
font-weight: 900; |
||||
font-size: 12px; |
||||
text-align: center; |
||||
color: #fff; |
||||
margin-top: 20px; |
||||
background-color: var(--accent-color); |
||||
} |
||||
|
||||
.button::before{ |
||||
display: none; |
||||
} |
||||
|
||||
.to-know{ |
||||
font-size: 24px; |
||||
text-transform: uppercase; |
||||
font-weight: 700; |
||||
margin-top: 20px; |
||||
text-decoration: underline; |
||||
} |
||||
/* product price */ |
||||
|
||||
|
||||
/* product gallery */ |
||||
|
||||
.product-gallery{ |
||||
width: 390px; |
||||
margin-right: 20px; |
||||
border: 2px solid #fff; |
||||
border-radius: 30px; |
||||
} |
||||
|
||||
/* product gallery */ |
||||
|
||||
.product-constructor, .product-gallery, .product-info{ |
||||
flex-grow: 1; |
||||
} |
||||
|
||||
.product-gallery{ |
||||
padding-top: 30px; |
||||
padding-bottom: 10px; |
||||
display: flex; |
||||
flex-direction: column; |
||||
justify-content: space-between; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
|
||||
.product-gallery-item{ |
||||
|
||||
background-color: #fff; |
||||
border-radius: 24px; |
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
height: auto; |
||||
aspect-ratio: 1/1; |
||||
} |
||||
.product-gallery-slider{ |
||||
margin-left: 10px; |
||||
margin-right: 10px; |
||||
position: relative; |
||||
|
||||
} |
||||
|
||||
.product-gallery-slider .swiper-wrapper{ |
||||
|
||||
} |
||||
|
||||
.product-gallery__thumbsSlider::before{ |
||||
background: linear-gradient(270deg, rgba(193, 221, 230, 0) 0%, var(--bg-color) 100%); |
||||
height: 120%; |
||||
position: absolute; |
||||
left: -10px; |
||||
top: -10%; |
||||
width: 65px; |
||||
content: ''; |
||||
z-index: 2; |
||||
pointer-events: none; |
||||
} |
||||
|
||||
.product-gallery__thumbsSlider::after{ |
||||
background: linear-gradient(270deg, rgba(193, 221, 230, 0) 0%, var(--bg-color) 100%); |
||||
height: 120%; |
||||
position: absolute; |
||||
right: -10px; |
||||
top: -10%; |
||||
width: 65px; |
||||
content: ''; |
||||
transform: scaleX(-1); |
||||
z-index: 2; |
||||
pointer-events: none; |
||||
} |
||||
.product-gallery-item img{ |
||||
height: 100%; |
||||
width: 100%; |
||||
object-fit: contain; |
||||
padding: 10px; |
||||
} |
||||
/* product */ |
||||
|
||||
.product-gallery-arrow{ |
||||
border-radius: 100px; |
||||
background-color: var(--accent-color); |
||||
border: 1px solid #fff; |
||||
height: 44px; |
||||
width: 44px; |
||||
pointer-events: all; |
||||
background-image: url("data:image/svg+xml,%3Csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L1 13' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E"); |
||||
background-position: center; |
||||
background-repeat: no-repeat; |
||||
} |
||||
|
||||
.product-gallery-arrows{ |
||||
width: calc(100% - 10px); |
||||
position: absolute; |
||||
top: 50%; |
||||
left: 5px; |
||||
transform: translateY(-50%); |
||||
justify-content: space-between; |
||||
pointer-events: none; |
||||
z-index: 3; |
||||
display: flex; |
||||
} |
||||
|
||||
.product-gallery-prev{ |
||||
transform: scaleX(-1); |
||||
} |
||||
|
||||
.swiper-slide-active.product-gallery-item{ |
||||
outline: 4px solid #48c1ed; |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
.product_main .swiper-slide { |
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
} |
||||
|
||||
.product_main .swiper-slide img { |
||||
display: block; |
||||
width: 100%; |
||||
height: 100%; |
||||
object-fit: contain; |
||||
} |
||||
|
||||
.product_main .swiper { |
||||
width: 100%; |
||||
margin-left: auto; |
||||
margin-right: auto; |
||||
} |
||||
|
||||
.product_main .swiper-slide { |
||||
background-size: cover; |
||||
background-position: center; |
||||
} |
||||
|
||||
.product-gallery__mainSlider { |
||||
height: 80%; |
||||
width: 100%; |
||||
} |
||||
|
||||
.product-gallery__thumbsSlider { |
||||
height: 20%; |
||||
box-sizing: border-box; |
||||
padding: 10px; |
||||
height: 110px; |
||||
} |
||||
|
||||
.product-gallery__thumbsSlider .swiper-slide { |
||||
width: 90px; |
||||
height: 90px; |
||||
background-color: #fff; |
||||
border-radius: 24px; |
||||
padding: 10px 20px; |
||||
position: relative; |
||||
} |
||||
|
||||
.product-gallery__thumbsSlider .swiper-slide-thumb-active { |
||||
outline: 4px solid var(--accent-color); |
||||
} |
||||
|
||||
.product_main .swiper-slide img { |
||||
display: block; |
||||
width: calc(100% - 10px); |
||||
height: calc(100% - 10px); |
||||
object-fit: contain; |
||||
position: absolute; |
||||
top: 50%; |
||||
left: 50%; |
||||
transform: translate(-50%, -50%); |
||||
} |
||||
|
||||
|
||||
|
||||
.product-desc{ |
||||
margin-top: 55px; |
||||
} |
||||
|
||||
.product-desc-text{ |
||||
font-weight: 400; |
||||
font-size: 16px; |
||||
line-height: 150%; |
||||
color: #121212; |
||||
margin-top: 20px; |
||||
} |
||||
|
||||
|
||||
.product-reviews{ |
||||
margin-top: 140px; |
||||
} |
||||
|
||||
.product-similar{ |
||||
margin-top: 140px; |
||||
} |
||||
|
||||
.main-food_reviews-slide{ |
||||
box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.12); |
||||
background: var(--color); |
||||
/* width: 395px; */ |
||||
border-radius: 40px !important; |
||||
} |
||||
|
||||
.product-reviews-slider { |
||||
overflow: visible !important; |
||||
margin-top: 40px; |
||||
|
||||
} |
||||
|
||||
.product-reviews{ |
||||
overflow: hidden; |
||||
padding-bottom: 60px; |
||||
margin-bottom: -60px; |
||||
} |
||||
|
||||
.product-similar-slider{ |
||||
margin-top: 40px; |
||||
} |
||||
|
||||
.main-food_products-card-slider .swiper-slide{ |
||||
align-self: center; |
||||
} |
||||
|
||||
.product-similar{ |
||||
overflow: hidden; |
||||
} |
||||
|
||||
|
||||
.product-single{ |
||||
padding-bottom: 90px; |
||||
} |
||||
|
||||
.product-similar-slider .swiper-wrapper{ |
||||
align-items: stretch; |
||||
} |
||||
.product-similar-slider .swiper-slide{ |
||||
height: auto; |
||||
display: flex; |
||||
flex-direction: column; |
||||
} |
||||
|
||||
|
||||
.product-title.--m{ |
||||
display: none; |
||||
} |
||||
|
||||
@media (max-width: 1150px) { |
||||
.product_main { |
||||
flex-direction: column; |
||||
} |
||||
.product-gallery{ |
||||
order: 0; |
||||
} |
||||
.product-info{ |
||||
order: 3; |
||||
} |
||||
.product-info, .product-gallery, .product-constructor{ |
||||
width: 100%; |
||||
margin-right: auto; |
||||
margin-left: 0; |
||||
margin-top: 20px; |
||||
} |
||||
.product-gallery__thumbsSlider{ |
||||
display: none; |
||||
} |
||||
.product-gallery__mainSlider{ |
||||
width: 100%; |
||||
height: auto; |
||||
aspect-ratio: 1 / 1.25; |
||||
max-height: 540px; |
||||
} |
||||
.breadcrumbs{ |
||||
display: none; |
||||
} |
||||
.product_main{ |
||||
margin-top: 0; |
||||
width: calc(48px + 100%); |
||||
margin-left: -24px; |
||||
border-radius: 0; |
||||
padding: 5px 20px 40px; |
||||
} |
||||
.product-title.--m{ |
||||
display: block; |
||||
font-size: 18px; |
||||
margin-top: 20px; |
||||
margin-top: 32px; |
||||
margin-bottom: 14px; |
||||
} |
||||
.product-title.--pc{ |
||||
display: none; |
||||
} |
||||
.product-constructor__block-title{ |
||||
font-size: 14px; |
||||
line-height: 143%; |
||||
} |
||||
.product-constructor__block-item-name{ |
||||
font-size: 12px; |
||||
} |
||||
.product-info{ |
||||
padding-right: 0; |
||||
} |
||||
.product-desc-text{ |
||||
font-size: 14px; |
||||
} |
||||
.product-reviews{ |
||||
margin-top: 66px; |
||||
} |
||||
.main-food_reviews-slide{ |
||||
padding-left: 20px !important; |
||||
padding-right: 20px !important; |
||||
} |
||||
.main-food_products-card{ |
||||
min-width: 0 !important; |
||||
} |
||||
.main-food_products-card-img img{ |
||||
height: 40vw; |
||||
} |
||||
} |
||||
|
||||
.product-show{ |
||||
display: flex; |
||||
flex-grow: 1; |
||||
flex-direction: column; |
||||
} |
||||
@media (max-width: 576px) { |
||||
.product_main { |
||||
margin-left: -10px; |
||||
width: calc(20px + 100%); |
||||
} |
||||
.product-show{ |
||||
flex-direction: column; |
||||
min-height: calc(100vh - 80px); |
||||
|
||||
} |
||||
.product-gallery{ |
||||
flex-grow: 1; |
||||
display: flex; |
||||
flex-direction: column; |
||||
align-items: center; |
||||
justify-content: center; |
||||
padding-bottom: 30px; |
||||
position: relative; |
||||
} |
||||
.product-gallery-bullets{ |
||||
position: absolute; |
||||
display: flex; |
||||
bottom: 35px !important; |
||||
top: unset !important; |
||||
width: 100%; |
||||
padding-left: 20px; |
||||
padding-right: 20px; |
||||
gap: 12px; |
||||
justify-content: center; |
||||
} |
||||
.product-gallery-bullets__item{ |
||||
height: 12px; |
||||
width: 12px; |
||||
border-radius: 50%; |
||||
background-color: #fff; |
||||
} |
||||
.product-gallery-bullets__item.--active{ |
||||
background-color: var(--accent-color); |
||||
} |
||||
} |
||||
.product-block-arrows--m{ |
||||
display: none; |
||||
} |
||||
.product-similar__head, .product-reviews__head{ |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
} |
||||
|
||||
.product-block-arrows{ |
||||
display: flex; |
||||
gap: 20px; |
||||
} |
||||
|
||||
@media (max-width: 980px) { |
||||
.product-block-arrows--m{ |
||||
display: flex; |
||||
gap: 10px; |
||||
margin-top: 20px; |
||||
padding-right: 10px; |
||||
padding-left: 10px; |
||||
} |
||||
.product-block-arrows{ |
||||
display: none; |
||||
|
||||
} |
||||
.product-reviews-slider{ |
||||
padding-right: 10px; |
||||
padding-left: 10px; |
||||
} |
||||
.product-similar{ |
||||
margin-top: 60px; |
||||
} |
||||
} |
||||
|
||||
.stock, .quantity{ |
||||
display: none; |
||||
} |
||||
|
||||
|
||||
.product-incart__wrap{ |
||||
display: flex; |
||||
align-items: center; |
||||
gap: 10px; |
||||
margin-top: 20px; |
||||
|
||||
} |
||||
.product-incart__btn{ |
||||
height: 50px; |
||||
width: 50px; |
||||
position: relative; |
||||
border-radius: 50%; |
||||
background-color: var(--accent-color); |
||||
} |
||||
|
||||
.product-incart__btn--minus::before{ |
||||
content: ''; |
||||
position: absolute; |
||||
top: 50%; |
||||
left: 50%; |
||||
transform: translate(-50%, -50%); |
||||
width: 16px; |
||||
height: 2px; |
||||
background-color: #fff; |
||||
} |
||||
|
||||
.product-incart__btn--plus::before{ |
||||
content: ''; |
||||
position: absolute; |
||||
top: 50%; |
||||
left: 50%; |
||||
transform: translate(-50%, -50%); |
||||
width: 16px; |
||||
height: 2px; |
||||
background-color: #fff; |
||||
} |
||||
|
||||
.product-incart__btn--plus::after{ |
||||
content: ''; |
||||
position: absolute; |
||||
top: 50%; |
||||
left: 50%; |
||||
transform: translate(-50%, -50%); |
||||
height: 16px; |
||||
width: 2px; |
||||
background-color: #fff; |
||||
} |
||||
|
||||
.product-incart{ |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
padding: 23px 5px; |
||||
gap: 10px; |
||||
margin: 0 auto; |
||||
width: 159px; |
||||
height: 60px; |
||||
background: color-mix(in srgb, var(--accent-color) 25%, transparent); |
||||
border: 2px solid #FFFFFF; |
||||
border-radius: 100px; |
||||
flex: none; |
||||
order: 0; |
||||
flex-grow: 0; |
||||
font-weight: 900; |
||||
font-size: 12px; |
||||
color: #fff; |
||||
} |
||||
|
||||
.product-incart__label{ |
||||
border: 2px solid #fff; |
||||
border-radius: 100px; |
||||
padding: 12px 16px; |
||||
width: 100%; |
||||
height: 60px; |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: center; |
||||
font-weight: 900; |
||||
font-size: 12px; |
||||
text-align: center; |
||||
color: #fff; |
||||
background-color: var(--accent-color); |
||||
} |
||||
|
||||
.product-incart-btn{ |
||||
|
||||
} |
||||
|
||||
|
||||
/* Стили для загрузки корзины на single странице */ |
||||
|
||||
.product-incart__wrap.loading { |
||||
position: relative; |
||||
pointer-events: none; |
||||
opacity: 0.7; |
||||
} |
||||
|
||||
.product-incart__wrap.loading::before { |
||||
content: ''; |
||||
position: absolute; |
||||
top: 0; |
||||
left: 0; |
||||
right: 0; |
||||
bottom: 0; |
||||
background: var(--bg-color); |
||||
opacity: .7; |
||||
z-index: 10; |
||||
} |
||||
|
||||
.product-incart__wrap.loading::after { |
||||
content: ''; |
||||
position: absolute; |
||||
top: 50%; |
||||
left: 50%; |
||||
width: 20px; |
||||
height: 20px; |
||||
margin: -10px 0 0 -10px; |
||||
border: 2px solid #f3f3f3; |
||||
border-top: 2px solid #3498db; |
||||
border-radius: 50%; |
||||
animation: spin 1s linear infinite; |
||||
z-index: 11; |
||||
} |
||||
|
||||
@keyframes spin { |
||||
0% { transform: rotate(0deg); } |
||||
100% { transform: rotate(360deg); } |
||||
} |
||||
|
||||
/* Стили для кнопок во время загрузки */ |
||||
.product-incart__wrap.loading .product-incart__btn { |
||||
opacity: 0.5; |
||||
pointer-events: none; |
||||
} |
||||
|
||||
/* Стили для счетчика во время загрузки */ |
||||
.product-incart__wrap.loading .product-incart__count { |
||||
opacity: 0.5; |
||||
} |
@ -0,0 +1,129 @@ |
||||
<?php |
||||
/** |
||||
* Template Name: New Main Page |
||||
* Description: Front page template |
||||
*/ |
||||
|
||||
if (!class_exists('Timber')) { |
||||
echo 'Timber не установлен. Пожалуйста, активируйте плагин Timber.'; |
||||
return; |
||||
} |
||||
|
||||
function enqueue_custom_gallery_assets() { |
||||
// Fancybox 5 |
||||
wp_enqueue_style( |
||||
'fancybox-css', |
||||
'https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.css', |
||||
[], |
||||
null |
||||
); |
||||
|
||||
wp_enqueue_script( |
||||
'fancybox-js', |
||||
'https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.umd.js', |
||||
[], |
||||
null, |
||||
true |
||||
); |
||||
|
||||
// Инициализация Fancybox |
||||
wp_add_inline_script('fancybox-js', " |
||||
document.addEventListener('DOMContentLoaded', function () { |
||||
Fancybox.bind('[data-fancybox=\"gallery\"]', {}); |
||||
}); |
||||
"); |
||||
} |
||||
add_action('wp_enqueue_scripts', 'enqueue_custom_gallery_assets'); |
||||
|
||||
|
||||
function theme_enqueue_scripts() { |
||||
wp_enqueue_style('gp-front-page-materialize-css', get_template_directory_uri() . '/static/css/libs/materialize.min.css'); |
||||
wp_enqueue_style( |
||||
'gp-front-page-style-2', |
||||
get_template_directory_uri() . '/static/css/front-page-style.css', |
||||
array(), |
||||
filemtime(get_template_directory() . '/static/css/front-page-style.css') |
||||
); |
||||
|
||||
wp_enqueue_style( |
||||
'gp-front-page-style', |
||||
get_template_directory_uri() . '/static/css/new-front-page-style.css', |
||||
array(), |
||||
filemtime(get_template_directory() . '/static/css/new-front-page-style.css') |
||||
); |
||||
wp_enqueue_script('gp-front-page-materialize', get_template_directory_uri() . '/static/js/libs/materialize.min.js', array(), null, true); |
||||
wp_enqueue_script('gp-front-page-main', get_template_directory_uri() . '/static/js/new-front-page.js', array(), null, true); |
||||
} |
||||
add_action('wp_enqueue_scripts', 'theme_enqueue_scripts'); |
||||
|
||||
|
||||
include_component('blog', 'main-page-block'); |
||||
include_component('shop', 'product-card'); |
||||
|
||||
|
||||
$reviews_food_query = get_posts(array( |
||||
'post_type' => 'p_reviews', |
||||
'numberposts' => -1, |
||||
'meta_key' => 'food_enable', |
||||
'meta_value' => true, |
||||
'meta_compare' => '=' |
||||
)); |
||||
|
||||
$reviews_treats_query = get_posts(array( |
||||
'post_type' => 'p_reviews', |
||||
'numberposts' => -1, |
||||
'meta_key' => 'treats_enable', |
||||
'meta_value' => true, |
||||
'meta_compare' => '=' |
||||
)); |
||||
|
||||
$context = Timber::context(); |
||||
|
||||
if (function_exists('get_field')) { |
||||
//products |
||||
$context['reviews_treats_query'] = $reviews_treats_query; |
||||
$context['reviews_food_query'] = $reviews_food_query; |
||||
// main |
||||
$context['main_slider'] = get_field('main_slider'); |
||||
// about |
||||
$context['main_about_title'] = get_field('main_about-title'); |
||||
$context['main_about_image'] = get_field('main_about-image'); |
||||
$context['main_about_text'] = get_field('main_about-text'); |
||||
$context['main_about_banner_bg'] = get_field('main_about-banner-bg'); |
||||
$context['main_about_banner_title'] = get_field('main_about-banner-title'); |
||||
$context['main_about_banner_descr'] = get_field('main_about-banner-descr'); |
||||
// why |
||||
$context['main_why_title'] = get_field('main_why-title'); |
||||
$context['main_why_items'] = get_field('main_why-items'); |
||||
$context['main_why_text'] = get_field('main_why-text'); |
||||
$context['main_why_logos'] = get_field('main_why-logos'); |
||||
// ingredients |
||||
$context['main_ingredients_title'] = get_field('main_ingredients-title'); |
||||
$context['main_ingredients_slider'] = get_field('main_ingredients-slider'); |
||||
// specialists |
||||
$context['main_specialists_title'] = get_field('main_specialists-title'); |
||||
$context['main_specialists_items'] = get_field('main_specialists-items'); |
||||
// cosmopetx |
||||
$context['other_post'] = Timber::get_post(383); // Загружаем пост с ID 383 |
||||
//quiz |
||||
$context['q_title'] = get_field('q_title'); |
||||
$context['reviews_title'] = get_field('reviews_title'); |
||||
$context['q_1'] = get_field('q_1', 383); |
||||
$context['q_2'] = get_field('q_2', 383); |
||||
$context['q_3'] = get_field('q_3', 383); |
||||
$context['q_4'] = get_field('q_4', 383); |
||||
$context['q_5'] = get_field('q_5', 383); |
||||
|
||||
// |
||||
|
||||
$context['food_list'] = get_field('featured_food'); |
||||
$context['treats_list'] = get_field('featured_treats'); |
||||
} |
||||
|
||||
try { |
||||
Timber::render('_pages/new-front-page.twig', $context); // Рендерим отдельный Twig-шаблон |
||||
} catch (Exception $e) { |
||||
error_log('Ошибка рендеринга: ' . $e->getMessage()); |
||||
echo 'Произошла ошибка при рендеринге шаблона. Проверь логи: ' . $e->getMessage(); |
||||
} |
||||
?> |
@ -0,0 +1,86 @@ |
||||
{% set bodyClass = 'bg-white' %} |
||||
{% set mainClass = 'wrapper' %} |
||||
{% extends 'layout.twig' %} |
||||
|
||||
{% block content %} |
||||
|
||||
<div class="breadcrumbs"> |
||||
<a href="/" class="breadcrumbs__item"> |
||||
{{ function('pll_e', 'Главная') }} |
||||
</a> |
||||
<a href="/shop" class="breadcrumbs__item"> |
||||
{{ function('pll_e', 'Продукция') }} |
||||
</a> |
||||
{% if category %} |
||||
<a href="{{ category_link }}" class="breadcrumbs__item"> |
||||
{{ category_title }} |
||||
</a> |
||||
{% endif %} |
||||
</div> |
||||
|
||||
<div class="product"> |
||||
<div class="product__header"> |
||||
<h1 class="product__title"> |
||||
{% if category %} |
||||
{{ category.name }} |
||||
{% else %} |
||||
{{ function('pll_e', 'Продукция') }} |
||||
{% endif %} |
||||
</h1> |
||||
|
||||
<button class="button button--gradient button--high button--icon button--filter"> |
||||
{{ function('pll_e', 'Фильтры') }} |
||||
</button> |
||||
</div> |
||||
|
||||
{% if active_filters|length > 0 %} |
||||
<div class="active-filters"> |
||||
{% if active_filters is not empty %} |
||||
<div class="active-filters"> |
||||
{% for filter in active_filters %} |
||||
<span class="active-filter-tag" data-filter-id="{{ filter.id }}" data-filter-slug="{{ filter.slug }}" data-filter-taxonomy="{{ filter.taxonomy }}"> |
||||
{{ filter.name }} × |
||||
</span> |
||||
{% endfor %} |
||||
</div> |
||||
{% endif %} |
||||
|
||||
<button class="active-filters__clear button button--white"> |
||||
{% if current_lang == 'ru' %}{{ function('pll_e', 'Очистить все') }}{% elseif current_lang == 'en' %}{{ function('pll_e', 'Clear all') }}{% endif %} |
||||
</button> |
||||
</div> |
||||
{% endif %} |
||||
|
||||
<div class="product__main"> |
||||
|
||||
{% if posts|length > 0 %} |
||||
{% for post in posts %} |
||||
|
||||
|
||||
{% set class = post.getTasteClass %} |
||||
{% set section = class ~ ' product-archive-card' %} |
||||
|
||||
<!-- TO_DO (избавиться от wc_get_product) --> |
||||
{% include 'shop/product-card.twig' with {_product : fn('wc_get_product', post.id), section: section} %} |
||||
|
||||
|
||||
{% endfor %} |
||||
{% else %} |
||||
<div class="not-found"> |
||||
<img src="{{ fn('get_template_directory_uri') }}/static/img/sv.svg" alt=""> |
||||
<div class="not-found-title">{{ fn('pll_e', 'coming soon') }}</div> |
||||
<div class="not-found-text">{{ fn('pll_e', 'This item is not on our website yet, but it will be here very soon') }}</div> |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
|
||||
<div class="product__footer product__footer--error"> |
||||
{% if posts_per_page < count %} |
||||
<button class="button button--white" id="load-more-products" data-category_id="{{ category_id }}" data-category_type="{{ category_type }}"> |
||||
{{ function('pll_e', 'Загрузить еще') }} |
||||
</button> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
|
||||
{% endblock %} |
@ -1,6 +1,6 @@ |
||||
<div class="main-food_products"> |
||||
{% for product in product_list %} |
||||
{% include 'shop/product-card.twig' with {_product : fn('wc_get_product', product.product)} %} |
||||
{% include 'woocommerce/product-card.twig' with {item : product, addClass: ''} %} |
||||
{% endfor %} |
||||
{% if section == 'food' %} |
||||
<a href="/shop/" class="main-about_banner-btn"><span class="main-about_banner-btn-text">Вся продукция</span><span class="main-about_banner-btn-arrow"></span></a> |
@ -1,84 +0,0 @@ |
||||
{# TO_DO: |
||||
|
||||
1) в контроллер вынести получение всех переменных, а не тут выхывать функции fn() |
||||
2) переименовать в файл /shop/product-card.twig |
||||
3) _product, wc_product, s_product -- не понятно почему множество переменных с одинаковым смыслом => |
||||
надо сделать единый контенкст для всех контроллеров и там создать все нужные переменные |
||||
|
||||
#} |
||||
|
||||
{% set thumbnail = _product.get_image_id() ? function('wp_get_attachment_image_url', _product.get_image_id(), 'medium') : function('wc_placeholder_img_src') %} |
||||
{% set images = _product.get_gallery_image_ids() %} |
||||
{% set compound = fn('wc_get_product_terms', _product.get_id(), 'pa_compound') %} |
||||
|
||||
<div class="main-food_products-card {{section}} {% for item in compound %}{% set term = get_term(item) %}{{ fn('map_attr_slugs_to_class', term.slug) }} {% endfor %}"> |
||||
<a href="{{_product.get_permalink()}}" class="main-food_products-card-slider"> |
||||
|
||||
<div class="swiper-wrapper"> |
||||
<div class="swiper-slide"> |
||||
<div class="main-food_products-card-img"> |
||||
<img src="{{ thumbnail }}" alt="{{_product.get_name()}}"> |
||||
</div> |
||||
</div> |
||||
{% if images %} |
||||
{% for image in images %} |
||||
<div class="swiper-slide"> |
||||
<div class="main-food_products-card-img"> |
||||
<img src="{{ function('wp_get_attachment_image_url', image, 'medium') }}" alt="{{ _product.get_title() }}"> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
{% endif %} |
||||
<div class="swiper-dots"></div> |
||||
</div> |
||||
</a> |
||||
<div class=""> |
||||
{% set collection = fn('wc_get_product_terms', _product.id, 'pa_collection') %} |
||||
|
||||
|
||||
{% set cur_weight = function('get_product_info', _product.id, 'weight') %} |
||||
|
||||
|
||||
|
||||
<a href="{{_product.get_permalink()}}" class="main-food_products-card-title"> |
||||
{{_product.get_name()}} |
||||
</a> |
||||
|
||||
{% if collection %} |
||||
|
||||
<div class="main-food_products-card__weight"> |
||||
{% for option in collection %} |
||||
{% set term = get_term(option) %} |
||||
{% set siblings = function('get_collection_siblings' , term.id) %} |
||||
|
||||
{% for sibling in siblings %} |
||||
|
||||
{% set weight = function('get_product_info', sibling.ID, 'weight') %} |
||||
{% set s_product = TimberPost(sibling.ID) %} |
||||
{% set wc_product = fn('wc_get_product', sibling.ID) %} |
||||
{% set s_in_stock = s_product.meta('_stock_status') == 'instock' %} |
||||
{% set s_thumbnail = wc_product.get_image_id() ? function('wp_get_attachment_image_url', wc_product.get_image_id(), 'medium') : function('wc_placeholder_img_src') %} |
||||
{% set s_images = wc_product.get_gallery_image_ids() %} |
||||
{% set s_title = wc_product.get_title() %} |
||||
{% set all_images = [s_thumbnail]|merge(s_images|map(image => function('wp_get_attachment_image_url', image, 'medium'))) %} |
||||
{% if s_in_stock %} |
||||
{% set class = '' %} |
||||
{% if weight == cur_weight %} |
||||
{% set class = 'active' %} |
||||
{% endif %} |
||||
{% if weight %} |
||||
<button class="main-food_products-card__weight-item {{ class }}" data-image-set='{{ all_images|json_encode() }}' data-product_id="{{sibling.ID}}" data-product_price="{{ function('get_product_info', sibling.ID, 'price') }} {{ fn('get_woocommerce_currency_symbol') }}" data-title="{{s_title}}"> |
||||
{{ weight }} |
||||
</button> |
||||
{% endif %} |
||||
{% endif %} |
||||
{% endfor %} |
||||
{% endfor %} |
||||
</div>{% endif %} |
||||
<div class="main-food_products-card-bottom"> |
||||
<div class="main-food_products-card-bottom-price">{{ _product.get_price() }} {{ fn('get_woocommerce_currency_symbol') }}</div> |
||||
<a href="{{ _product.add_to_cart_url }}" class="main-food_products-cardbottom-btn ajax_add_to_cart add_to_cart_button" data-product_id="{{ _product.id }}" |
||||
data-product_sku="{{ _product.sku|e('html_attr') }}">{{ fn('pll_e', 'В корзину') }}</a> |
||||
</div> |
||||
</div> |
||||
</div> |
@ -0,0 +1,321 @@ |
||||
{% set bodyClass = 'bg-white' %} |
||||
{% set mainClass = '' %} |
||||
{% extends 'layout.twig' %} |
||||
|
||||
{% block content %} |
||||
<div class="product-single"> |
||||
<div class="wrapper"> |
||||
<div class="breadcrumbs"> |
||||
<a href="{{ fn('home_url') }}" class="breadcrumbs__item"> |
||||
{{ fn('pll_e', 'Главная') }} |
||||
</a> |
||||
{% set product_categories = post.get_terms('product_cat') %} |
||||
{% if product_categories %} |
||||
{% set category = product_categories[0] %} |
||||
<a href="{{ category.link }}" class="breadcrumbs__item"> |
||||
{{ category.name }} |
||||
</a> |
||||
{% endif %} |
||||
<a href="{{post.link}}" class="breadcrumbs__item"> |
||||
{{post.title}} |
||||
</a> |
||||
</div> |
||||
<div class="product_main {{ post.getTasteClass() }}"> |
||||
<div class="product-info"> |
||||
<h1 class="product-title --pc"> |
||||
{{post.title}} |
||||
</h1> |
||||
<div class="product-contains"> |
||||
<h2 class="product-block-title">{{ fn('pll_e', 'СОСТАВ') }}</h2> |
||||
<div class="product-contains-text">{{ post.getComposition }}</div> |
||||
</div> |
||||
<div class="product-values"> |
||||
<h2 class="product-values-title">{{ fn('pll_e', 'ПИЩЕВАЯ ЦЕННОСТЬ') }}</h2> |
||||
<div class="product-values-list"> |
||||
|
||||
{% set nutritional_value = post.nutritional_value %} |
||||
{% if nutritional_value.protein %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Сырой белок') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.protein}}</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if nutritional_value.fat %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Сырой жир') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.fat}}</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if nutritional_value.fiber %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Сырая клетчатка') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.fiber}}</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if nutritional_value.ash %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Сырая зола') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.ash}}</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if nutritional_value.wat %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Влажность') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.wat}}</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if nutritional_value.calcium %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Кальций') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.calcium}}</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if nutritional_value.phosphorus %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Фосфор') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.phosphorus}}</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if nutritional_value.omega_6 %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Омега 6') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.omega_6}}</div> |
||||
</div> |
||||
{% endif %} |
||||
{% if nutritional_value.omega_3 %} |
||||
<div class="product-values-item"> |
||||
<div class="product-values-item__name">{{ fn('pll_e', 'Омега 3') }}</div> |
||||
<div class="product-values-item-val">{{nutritional_value.omega_3}}</div> |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% set vitamins = post.vitamins %} |
||||
{% if vitamins %} |
||||
<div class="product-vitamins"> |
||||
<div class="product-vitamins-title"> |
||||
{{ fn('pll_e', 'Витамины на кг') }} |
||||
</div> |
||||
<div class="product-vitamins-list"> |
||||
|
||||
{% if vitamins.vitamin_a_me %} |
||||
<div class="product-vitamins-item">A, ME — {{vitamins.vitamin_a_me}}</div> |
||||
{% endif %} |
||||
{% if vitamins.vitamin_d3_me %} |
||||
<div class="product-vitamins-item">D3, ME — {{vitamins.vitamin_d3_me}}</div> |
||||
{% endif %} |
||||
{% if vitamins.vitamin_e %} |
||||
<div class="product-vitamins-item">E — {{vitamins.vitamin_e}}</div> |
||||
{% endif %} |
||||
{% if vitamins.tiamin %} |
||||
<div class="product-vitamins-item">{{ fn('pll_e', 'Тиамин') }} — {{vitamins.tiamin}}</div> |
||||
{% endif %} |
||||
{% if vitamins.riboflavin %} |
||||
<div class="product-vitamins-item">{{ fn('pll_e', 'Рибофлавин') }} — {{vitamins.riboflavin}}</div> |
||||
{% endif %} |
||||
{% if vitamins.pantothenic_acid %} |
||||
<div class="product-vitamins-item">{{ fn('pll_e', 'Пантотеновая кислота') }} — {{vitamins.pantothenic_acid}}</div> |
||||
{% endif %} |
||||
{% if vitamins.niaczin %} |
||||
<div class="product-vitamins-item">{{ fn('pll_e', 'Ниацин') }} — {{vitamins.niaczin}}</div> |
||||
{% endif %} |
||||
{% if vitamins.piridoksin %} |
||||
<div class="product-vitamins-item">{{ fn('pll_e', 'Пиридоксин') }} — {{vitamins.piridoksin}}</div> |
||||
{% endif %} |
||||
{% if vitamins.folic_acid %} |
||||
<div class="product-vitamins-item">{{ fn('pll_e', 'Фолиевая кислота') }} — {{vitamins.folic_acid}}</div> |
||||
{% endif %} |
||||
{% if vitamins.vitamin_b12 %} |
||||
<div class="product-vitamins-item">{{ fn('pll_e', 'Витамин B12') }} — {{vitamins.vitamin_b12}}</div> |
||||
{% endif %} |
||||
{% if vitamins.holin %} |
||||
<div class="product-vitamins-item">{{ fn('pll_e', 'Холин') }} — {{vitamins.holin}}</div> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
<div class="product-show"> |
||||
<div class="product-gallery"> |
||||
<div class="swiper product-gallery__mainSlider"> |
||||
<div class="swiper-wrapper"> |
||||
{% set image_list = post.getImageGallery('full') %} |
||||
{% for image in image_list %} |
||||
<div class="swiper-slide"> |
||||
<img src="{{ image.url }}" alt="{{image.alt}}"> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
<div thumbsSlider="" class="swiper product-gallery__thumbsSlider"> |
||||
<div class="swiper-wrapper"> |
||||
{% set image_list = post.getImageGallery('medium') %} |
||||
{% for image in image_list %} |
||||
<div class="swiper-slide"> |
||||
<img src="{{ image.url }}" alt="{{image.alt}}"> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
<div class="product-gallery-arrows"> |
||||
<button class="product-gallery-arrow product-gallery-prev"></button> |
||||
<button class="product-gallery-arrow product-gallery-next"></button> |
||||
</div> |
||||
</div> |
||||
<div class="product-gallery-bullets"></div> |
||||
</div> |
||||
<h1 class="product-title --m"> |
||||
{{post.title}} |
||||
</h1> |
||||
</div> |
||||
<div class="product-constructor"> |
||||
{% set constructor = post.getProductConstructor %} |
||||
{% for taxonomy, attribute_data in constructor %} |
||||
<div class="product-constructor__block"> |
||||
<div class="product-constructor__block-title">{{attribute_data.label}}</div> |
||||
<div class="product-constructor__block-list"> |
||||
{% for option_id, option in attribute_data.options %} |
||||
{% set first_product = option.products[0] %} |
||||
<a href="{{first_product.link}}" class="product-constructor__block-item{% if attribute_data.current_value == option.term_id %} active{% endif %}"> |
||||
{% if taxonomy == 'pa_compound' %} |
||||
{% set icon_map = { |
||||
'govyadina': 'beef', |
||||
'indejka': 'turkey', |
||||
'krolik': 'rabbit', |
||||
'losos': 'salmon', |
||||
'ryba': 'fish', |
||||
'utka': 'duck', |
||||
'yagnenok': 'lamb' |
||||
} %} |
||||
{% set icon_class = icon_map[option.slug] ?? 'default' %} |
||||
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/{{icon_class}}.svg" alt="" class="product-constructor__block-item-icon{% if attribute_data.current_value == option.term_id %} active{% endif %} svg"> |
||||
{% elseif taxonomy == 'pa_age-of-the-dog' %} |
||||
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/dog-face.svg" alt="" class="product-constructor__block-item-icon{% if attribute_data.current_value == option.term_id %} active{% endif %} svg"> |
||||
{% elseif taxonomy == 'pa_age-of-the-cat' %} |
||||
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/cat-face.svg" alt="" class="product-constructor__block-item-icon{% if attribute_data.current_value == option.term_id %} active{% endif %} svg"> |
||||
{% elseif taxonomy == 'pa_reproductive-status' %} |
||||
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/heart.svg" alt="" class="product-constructor__block-item-icon{% if attribute_data.current_value == option.term_id %} active{% endif %} svg"> |
||||
{% elseif taxonomy == 'pa_series' %} |
||||
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/star.svg" alt="" class="product-constructor__block-item-icon{% if attribute_data.current_value == option.term_id %} active{% endif %} svg"> |
||||
{% endif %} |
||||
<div class="product-constructor__block-item-name">{{option.name}}</div> |
||||
</a> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
|
||||
{% set size_siblings = post.getSizeSiblings %} |
||||
{% if size_siblings %} |
||||
<div class="product-constructor__block"> |
||||
<div class="product-constructor__block-title">{{fn('pll_e', 'ВЕС УПАКОВКИ')}}</div> |
||||
<div class="product-constructor__block-list"> |
||||
{% for sibling in size_siblings %} |
||||
<a href="{{sibling.link}}" class="product-constructor__block-item{% if post.get_weight == sibling.get_weight %} active{% endif %}"> |
||||
<div class="product-constructor__block-item-name">{{sibling.get_weight}}</div> |
||||
</a> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
|
||||
<div class="product-price"> |
||||
<div class="product-price-main"> |
||||
{{post.getPrice}} |
||||
</div> |
||||
{% if post.getRegularPrice %} |
||||
<div class="product-price-disc"> |
||||
<div class="product-price-old">{{post.getRegularPrice}}</div> |
||||
<div class="product-price-percent"> |
||||
{{ post.getPriceDifferenceInPercent }} |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
{% set in_stock = post.meta('_stock_status') == 'instock' %} |
||||
{% if in_stock %} |
||||
{{ function('do_action', 'woocommerce_' ~ product.get_type() ~ '_add_to_cart') }} |
||||
{% else %} |
||||
<div class="detail-block-form__item detail-block-form__item--tn"> |
||||
<button type="button" data-pname="{{ product.title }}" class="to-know open-to-know" > |
||||
<p>{{ function('pll_e', 'Узнать о поступлении') }}</p> |
||||
</button> |
||||
</div> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="product-desc"> |
||||
<div class="product-block-title"> |
||||
{{ fn('pll_e', 'ОПИСАНИЕ') }} |
||||
</div> |
||||
<div class="product-desc-text"> |
||||
{{post.content}} |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="product-reviews"> |
||||
<div class="product-reviews__head wrapper"> |
||||
<div class="product-block-title"> |
||||
{{ fn('pll_e', 'Отзывы Специалистов') }} |
||||
</div> |
||||
<div class="product-block-arrows"> |
||||
<button class="slider-button-prev slider-button product-reviews-prev"></button> |
||||
<button class="slider-button-next slider-button product-reviews-next"></button> |
||||
</div> |
||||
</div> |
||||
<div class="product-reviews-slider swiper"> |
||||
<div class="swiper-wrapper"> |
||||
{% for slide in post.getReviews %} |
||||
{% include "shop/reviews-slide_element.twig" with {slide: slide} %} |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="product-block-arrows--m"> |
||||
<button class="slider-button-prev slider-button product-reviews-prev"></button> |
||||
<button class="slider-button-next slider-button product-reviews-next"></button> |
||||
</div> |
||||
</div> |
||||
|
||||
{% if post.getRelatedProducts %} |
||||
<div class="product-similar "> |
||||
<div class="product-similar__head wrapper"> |
||||
<div class="product-block-title"> |
||||
{{ fn('pll_e', 'вашему питомцу может понравиться') }} |
||||
</div> |
||||
<div class="product-block-arrows"> |
||||
<button class="slider-button-prev slider-button product-similar-prev"></button> |
||||
<button class="slider-button-next slider-button product-similar-next"></button> |
||||
</div> |
||||
|
||||
</div> |
||||
<div class="product-similar-slider wrapper"> |
||||
<div class="swiper-wrapper"> |
||||
{% for related_product in post.getRelatedProducts %} |
||||
|
||||
{% set class = related_product.getTasteClass %} |
||||
{% set section = class ~ ' swiper-slide' %} |
||||
|
||||
<!-- TO_DO (избавиться от wc_get_product) --> |
||||
{% include 'shop/product-card.twig' with {_product : fn('wc_get_product', related_product.id), section: section} %} |
||||
|
||||
|
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
<div class="product-block-arrows--m"> |
||||
<button class="slider-button-prev slider-button product-similar-prev"></button> |
||||
<button class="slider-button-next slider-button product-similar-next"></button> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
|
||||
</div> |
||||
{% for slide in reviews %} |
||||
|
||||
{% include 'modal/rewiew_modal.twig' with {slide : slide} %} |
||||
|
||||
{% endfor %} |
||||
{% endblock %} |
@ -0,0 +1,52 @@ |
||||
|
||||
<div class="main-food_products-card {{addClass}} {{ item.getTasteClass() }}"> |
||||
<a href="{{item.link}}" class="main-food_products-card-slider"> |
||||
<div class="swiper-wrapper"> |
||||
{% set image_list = item.getImageGallery('medium') %} |
||||
{% if image_list %} |
||||
{% for image in image_list %} |
||||
<div class="swiper-slide"> |
||||
<div class="main-food_products-card-img"> |
||||
<img src="{{ image.url }}" alt="{{ image.alt }}"> |
||||
</div> |
||||
</div> |
||||
{% endfor %} |
||||
{% endif %} |
||||
<div class="swiper-dots"></div> |
||||
</div> |
||||
</a> |
||||
<div class=""> |
||||
|
||||
|
||||
<a href="{{item.link}}" class="main-food_products-card-title"> |
||||
{{item.title}} |
||||
</a> |
||||
|
||||
{% set size_siblings = post.getSizeSiblings %} |
||||
{% if size_siblings %} |
||||
<div class="main-food_products-card__weight"> |
||||
|
||||
{% for sibling in size_siblings %} |
||||
{% set class = '' %} |
||||
{% if sibling.get_weight == item.get_weight %} |
||||
{% set class = 'active' %} |
||||
{% endif %} |
||||
{% if sibling.get_weight %} |
||||
<button class="main-food_products-card__weight-item {{ class }}" data-image-set='{{ sibling.getImageGallery('medium')|json_encode() }}' data-product_id="{{sibling.id}}" data-product_price="{{sibling.getPriceWithCurrency}}" data-title="{{sibling.title}}"> |
||||
{{ sibling.get_weight }} |
||||
</button> |
||||
{% endif %} |
||||
|
||||
{% endfor %} |
||||
</div>{% endif %} |
||||
<div class="main-food_products-card-bottom"> |
||||
<div class="main-food_products-card-bottom-price">{{item.getPriceWithCurrency}}</div> |
||||
{% if item.meta('_stock_status') == 'instock' %} |
||||
<a href="{{ item.product.add_to_cart_url }}" class="main-food_products-cardbottom-btn ajax_add_to_cart add_to_cart_button" data-product_id="{{ item.id }}" |
||||
data-product_sku="{{ item.sku|e('html_attr') }}">{{ fn('pll_e', 'В корзину') }}</a> |
||||
{% else %} |
||||
<p class="main-food_products-card-bottom-nv">Нет в наличии</p> |
||||
{% endif %} |
||||
</div> |
||||
</div> |
||||
</div> |
Loading…
Reference in new issue