Compare commits

...

6 Commits

  1. 1
      wp-content/themes/cosmopet/global-functions/multisite-functions.php
  2. 6
      wp-content/themes/cosmopet/modules/blog/components/featured-slider/assets/css/gp-style-desktop.css
  3. 2
      wp-content/themes/cosmopet/modules/layout/assets/css/core-styles.css
  4. 225
      wp-content/themes/cosmopet/modules/shop/components/product-card/assets/css/product-card.css
  5. 334
      wp-content/themes/cosmopet/modules/shop/components/reviews/assets/css/reviews.css
  6. 13
      wp-content/themes/cosmopet/modules/shop/components/reviews/assets/js/reviews.js
  7. 597
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/css/product-style.css
  8. 3
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/avg.svg
  9. 3
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/beef.svg
  10. 5
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/dog-face.svg
  11. 3
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/fish.svg
  12. 5
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/lamb.svg
  13. 3
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/lg.svg
  14. 3
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/mini.svg
  15. BIN
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/pet/cat.png
  16. BIN
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/pet/cat.png.webp
  17. BIN
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/pet/dog.png
  18. BIN
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/pet/dog.png.webp
  19. BIN
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/pet/mini-dog.png
  20. BIN
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/pet/mini-dog.png.webp
  21. 5
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/svg/main/arrow-back.svg
  22. 3
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/svg/main/arrow-breadcrumbs.svg
  23. 5
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/svg/main/arrow-left.svg
  24. 5
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/svg/main/arrow-right.svg
  25. 11
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/svg/main/arrow-selected.svg
  26. 11
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/svg/main/black-x.svg
  27. 3
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/turkey.svg
  28. 94
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/js/gp-main.js
  29. 29
      wp-content/themes/cosmopet/modules/shop/components/single-product_new/component-controller.php
  30. 2
      wp-content/themes/cosmopet/modules/static-pages/front-page/template-front-page.php
  31. 10
      wp-content/themes/cosmopet/modules/static-pages/new-front-page/template-new-front-page.php
  32. 11
      wp-content/themes/cosmopet/single-product.php
  33. 0
      wp-content/themes/cosmopet/static/css/front-page-style.css
  34. 560
      wp-content/themes/cosmopet/static/css/new-front-page-style.css
  35. 14
      wp-content/themes/cosmopet/static/js/new-front-page.js
  36. 2
      wp-content/themes/cosmopet/templates/blog/comments/comment-single.twig
  37. 2
      wp-content/themes/cosmopet/templates/layout.twig
  38. 29
      wp-content/themes/cosmopet/templates/shop/product-card_element.twig
  39. 2
      wp-content/themes/cosmopet/templates/shop/products-section_block.twig
  40. 41
      wp-content/themes/cosmopet/templates/shop/reviews-section_block.twig
  41. 40
      wp-content/themes/cosmopet/templates/shop/reviews-slide_element.twig
  42. 266
      wp-content/themes/cosmopet/templates/shop/single-product_page.twig

@ -27,6 +27,7 @@ add_filter('timber/twig', function (\Twig\Environment $twig) {
global $site_env;
$twig->addGlobal('site_region', $site_env->site_region);
$twig->addGlobal('site_env', $site_env);
$twig->addGlobal('site_mode', $site_env->site_mode);
$twig->addGlobal('header_scripts', get_field('header_scripts', 'option'));
return $twig;
});

@ -33,7 +33,7 @@
border-radius: 60px;
overflow: hidden;
display: flex;
align-items: flex-start;
align-items: stretch;
gap: 24px;
position: relative;
}
@ -54,7 +54,7 @@
width: 395px;
border-radius: 60px;
overflow: hidden;
height: 393px;
height: auto;
flex-shrink: 0;
}
.home-card__img:hover img{
@ -69,7 +69,7 @@
}
.home-card__content {
padding: 32px 79px 0 0;
padding: 32px 79px 100px 0;
}
.home-card__content-title {

@ -474,6 +474,8 @@ textarea{
.wrapper {
margin: 0 auto;
max-width: 1600px;
padding-left: 24px;
padding-right: 24px;
}

@ -1,3 +1,177 @@
.main-food_products-card-title{
padding: 8px 16px 8px 16px;
border-radius: 36px;
background: #fff;
font-weight: 600;
font-size: 12px;
text-transform: uppercase;
}
.main-food_products-card-bottom {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-top: 10px;
}
.main-food_products-card {
--accent-color: #121212;
border-radius: 30px;
padding: 8px;
width: 265px;
min-width: 194px;
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: var(--accent-color);
background-image: linear-gradient(
rgba(255, 255, 255, 0.6),
rgba(255, 255, 255, 0.6)
);
}
.main-food_products-card.acc{
background: #e7e7e7;
}
.main-food_products-card.acc .main-food_products-cardbottom-btn,
.main-food_products-card.acc .main-food_products-card-slider .swiper-pagination-bullet.swiper-pagination-bullet-active{
background: radial-gradient(278.91% 196.13% at 128.36% -48.29%, #ee6868 0%, #569ef0 57.69%);
}
.swiper-slide .main-food_products-card {
width: 100%;
}
.main-food_products-card-img {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 8px 0px 32px;
padding-bottom: 42px;
/* filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1)); */
}
/* .shadow-svg {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-65%);
width: 80%;
height: auto;
z-index: 0;
pointer-events: none;
} */
.main-food_products-card-img img {
position: relative;
z-index: 1;
display: block;
max-width: 100%;
height: auto;
aspect-ratio: 1/1;
object-fit: contain;
}
.main-food_products-card-title{
padding: 8px 16px 8px 16px;
border-radius: 36px;
background: #fff;
font-weight: 500;
font-size: 12px;
text-transform: uppercase;
color: var(--accent-color);
}
.food.lamb.main-food_products-card {
--accent-color: #863300;
}
.food.turkey.main-food_products-card {
--accent-color: #CD0003;
}
.food.beef.main-food_products-card{
--accent-color: #7e0092;
}
.food.fish.main-food_products-card{
--accent-color: #48c1ed;
}
.treats.lamb.main-food_products-card {
--accent-color: #44006c;
}
.treats.rabbit.main-food_products-card {
--accent-color: #601094;
}
.treats.beef.main-food_products-card{
--accent-color: #004c31;
}
.treats.salmon.main-food_products-card{
--accent-color: #7c007a;
}
.treats.duck.main-food_products-card{
--accent-color: #326e70;
}
.main-food_products-card-bottom {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 8px;
}
.main-food_products-card-bottom-price{
border-radius: 36px;
padding: 10px;
background: #fff;
font-weight: 600;
font-size: 18px;
text-transform: uppercase;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
color: var(--accent-color);
}
.main-food_products-cardbottom-btn{
border: 2px solid #fff;
border-radius: 36px;
padding: 0px 32px;
height: 42px;
font-weight: 900;
font-size: 12px;
text-align: center;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
transition: all .3s;
background-color: var(--accent-color);
}
.main-food_products-card-slider .swiper-pagination-bullet {
background: #fff;
height: 10px;
width: 10px;
border-radius: 50%;
opacity: 1;
}
.main-food_products-card-slider .swiper-pagination-bullet.swiper-pagination-bullet-active{
background-color: var(--accent-color);
}
.swiper-dots{
position: absolute;
bottom: 16px !important;
display: flex;
justify-content: center;
z-index: 5;
}
.main-food_products-cardbottom-btn .spinner{
height: 17px;
width: 17px;
@ -36,9 +210,60 @@
border: 2px solid var(--accent-color);
color: var(--accent-color);
}
@media (max-width: 940px) {
.main-food_products-card-img img{
height: 50vw;
}
.main-food_products-card-title{
font-size: 10px;
}
.main-food_products-card-bottom-price{
font-size: 12px;
height: 44px;
padding-left: 10px;
padding-right: 10px;
}
.main-food_products-cardbottom-btn{
font-size: 0;
height: 44px;
width: 44px;
position: relative;
padding: 0;
flex-grow: 0;
}
.main-food_products-cardbottom-btn::after{
background-image: url("data:image/svg+xml,%3Csvg width='18' height='20' viewBox='0 0 18 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.99891 0C10.0882 1.85362e-05 11.1353 0.416463 11.908 1.15941L12.0484 1.30206C12.7329 2.02913 13.1164 2.97793 13.1165 3.96649V5.03207L14.9288 5.02729L15.0941 5.03207C15.4787 5.05208 15.8566 5.14206 16.208 5.29727L16.357 5.36716C16.6986 5.54015 17.0042 5.7742 17.257 6.05744L17.3621 6.18191C17.5979 6.47719 17.7739 6.81389 17.8808 7.17377L17.9228 7.32887C17.9969 7.64101 18.0178 7.96276 17.9849 8.28147L17.9639 8.4404L16.6522 16.6376C16.5114 17.5178 16.0674 18.3238 15.3969 18.9287L15.2603 19.0464C14.5603 19.6238 13.6814 19.9569 12.7659 19.9962L12.5815 20H5.41634C4.49677 19.9999 3.60472 19.7028 2.88179 19.1584L2.73944 19.0464C2.03929 18.4688 1.56066 17.6815 1.37998 16.8119L1.3475 16.6376L0.0357986 8.4404C-0.03187 8.0173 -0.00329994 7.58521 0.118914 7.17377L0.168592 7.02058C0.295244 6.6677 0.489965 6.34073 0.742759 6.05744L0.854535 5.93968C1.12207 5.67071 1.44011 5.45265 1.79174 5.29727L1.94364 5.23408C2.25097 5.11719 2.57599 5.04922 2.90568 5.03207L3.07095 5.02729H4.60525L4.87155 5.03207L4.8823 3.96649C4.88242 2.91203 5.31814 1.90251 6.09082 1.15941L6.2389 1.02346C6.99437 0.365708 7.97783 0.000101636 8.99891 0ZM3.07095 6.92772C2.95004 6.92773 2.83041 6.94761 2.71652 6.9842L2.60378 7.02633C2.49444 7.07468 2.39447 7.13951 2.30763 7.21781L2.22451 7.3011C2.14669 7.38833 2.08465 7.48682 2.04013 7.59215L2.00191 7.69938C1.95855 7.84531 1.94843 7.99859 1.9723 8.1484L3.28495 16.3456L3.32221 16.5256C3.42862 16.9407 3.66723 17.3168 4.00911 17.5989L4.16101 17.7128C4.47324 17.927 4.83998 18.0579 5.22336 18.091L5.41634 18.0996H12.5824L12.7754 18.091C13.223 18.0525 13.6486 17.8809 13.9906 17.5989L14.1301 17.4725C14.4421 17.1647 14.6468 16.7708 14.7148 16.3456L16.0274 8.14935L16.0389 8.03638C16.0424 7.96081 16.0379 7.88502 16.0246 7.81044L15.9978 7.69938C15.9653 7.58999 15.9149 7.48606 15.8478 7.39205L15.7752 7.3011C15.6974 7.21384 15.6049 7.13906 15.502 7.07994L15.3959 7.02633C15.2863 6.9779 15.1689 6.94689 15.0492 6.93442L14.9288 6.92772H13.1165V8.99473C13.1163 9.52694 12.6697 9.94443 12.1363 9.94447C11.6029 9.94439 11.1562 9.52691 11.1561 8.99473V6.92772H6.84172V8.99473C6.84159 9.52685 6.39576 9.9443 5.86249 9.94447C5.32907 9.94447 4.88244 9.52696 4.8823 8.99473V6.92772H3.07095ZM8.99891 1.90043C8.49608 1.90053 8.01257 2.06912 7.62893 2.37147L7.4713 2.50838C7.0677 2.89647 6.84185 3.4213 6.84172 3.96649V4.74102H11.1561V3.96649C11.156 3.48959 10.9841 3.0284 10.6708 2.6606L10.5275 2.50838C10.1235 2.12005 9.57346 1.90045 8.99891 1.90043Z' fill='white' /%3E%3C/svg%3E");
height: 20px;
width: 18px;
background-size: contain;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
content: '';
background-repeat: no-repeat;
}
}
@media (max-width: 640px) {
.main-food_products-card__weight{
display: none;
}
}
/* GP | Mobile */
@media (max-width: 768px) {
.main-food{
padding-top: 2rem;
}
}
.mform__review__media{
display: block;
width: 100%;
max-width: 350px;
}

@ -0,0 +1,334 @@
.main-food_reviews {
border-radius: 40px;
padding: 24px;
max-width: 395px;
height: 672px;
flex-grow: 1;
position: relative;
box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.12);
background: #fff;
}
.main-food_reviews-title {
font-weight: 700;
font-size: 32px;
text-transform: uppercase;
color: #121212;
}
.main-food_reviews-slider {
position: relative;
}
.main-food_reviews-slide {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
border-radius: 8px;
min-height: 580px;
}
.main-food_reviews-slide-img {
border: 2px solid #fff;
border-radius: 32px;
object-fit: cover;
margin-bottom: 10px;
}
.main-food_reviews-slide-name {
font-weight: 700;
font-size: 16px;
text-transform: uppercase;
color: #121212;
margin-bottom: 10px;
}
.main-food_reviews-slide-position {
font-weight: 500;
font-size: 14px;
line-height: 140%;
color: #121212;
margin-bottom: 10px;
}
.main-food_reviews-slide-position:not(.--no-min-height){
min-height: 60px;
}
.main-food_reviews-slide-text {
font-weight: 500;
font-size: 16px;
line-height: 140%;
color: #121212;
margin-bottom: 10px;
}
.main-food_reviews-slide-text a{
color: #569ef0;
font-weight: 600;
text-decoration: underline;
}
.main-food_reviews-slide-head, .main-food_reviews-slide-position{
width: 100%;
}
.main-food_reviews-slide-text p {
margin-bottom: .5em;
}
.main-food_reviews-slider {
position: relative;
height: 97%;
}
.main-food_reviews-slider-index {
position: absolute;
left: 40%;
transform: translateX(-50%);
bottom: 30px;
z-index: 100;
font-weight: 500;
font-size: 16px;
line-height: 140%;
color: #121212;
}
.main-food_products-card-img{
padding-bottom: 20px;
}
.main-food_arrows .swiper-button-next{
right: var(--swiper-navigation-sides-offset, -65px)!important;
left: auto;
}
.main-food_arrows .swiper-button-prev{
left: var(--swiper-navigation-sides-offset, -65px)!important;
right: auto;
}
.main-food_reviews-star {
position: absolute;
top: 0%;
right: 0%;
z-index: 100;
}
.main-food_reviews-slide-top {
display: flex;
justify-content: flex-start;
gap: 20px;
align-items: center;
width: 100%;
}
.main-food_reviews-slide-top img {
width: 48px;
height: 48px;
border-radius: 100%;
}
@media(max-width: 940px){
.main-food_reviews-title{
font-size: 24px;
}
.main-food_reviews-star{
width: 82px;
top: -20px;
}
.main-reviews_title{
font-size: 32px;
}
}
@media (max-width: 767px) {
.main-food_reviews {
padding: 16px 24px;
border-radius: 30px;
}
.main-food_reviews-slide-img {
width: 100%;
}
.main-food_reviews-slide-name {
font-size: 18px;
}
.main-food_reviews-slide-position{
font-weight: 500;
font-size: 14px;
background: radial-gradient(278.91% 196.13% at 128.36% -48.29%, rgb(238, 104, 104) 0%, rgb(86, 158, 240) 57.692307233810425%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.main-food_reviews-slide-text {
font-size: 14px;
}
.main-food_reviews-slider-index {
font-size: 14px;
}
.main-food_reviews-slide{
padding-left: 0;
padding-right: 0;
}
.main-reviews_title{
font-size: 32px;
}
}
/* Main Reviews */
.main-food_reviews-slide-head{
position: relative;
}
.main-food_reviews-slide-photo{
height: 48px;
width: 48px;
flex-shrink: 0;
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
object-fit: cover;
}
.main-food_reviews-slide-name, .main-food_reviews-slide-position{
padding-left: 64px;
}
.main-food_reviews-slide-name.--no-padding-left, .main-food_reviews-slide-position.--no-padding-left{
padding-left: 0;
}
.main-food_reviews-slide-name, .main-food_reviews-slide-position, .main-food_reviews-slide-head{
width: 100%;
}
.main-food_reviews-slide-media_file{
height: 220px;
width: 100%;
border-radius: 32px;
margin-bottom: 1rem;
object-fit: cover;
}
.main-food_reviews-slide-media_file-wrap{
width: 100%;
display: block;
}
@media (max-width: 640px) {
.main-food_reviews-slide-name{
min-height: 48px;
display: flex;
align-items: center;
}
.main-food_reviews-slide-position{
padding-left: 0;
}
}
.main-food_reviews-slide-media_main{
border-radius: 25px;
width: 168px;
height: 115px;
overflow: hidden;
}
.main-food_reviews-slide-media_main img{
width: 168px;
height: 115px;
}
.main-food_reviews-slide-media_mini{
width: 56px;
height: 70px;
border-radius: 16px;
overflow: hidden;
}
.main-food_reviews-slide-media_wrap{
display: flex;
gap: 6px;
align-items: center;
margin-bottom: 20px;
}
.main-food_reviews-slide-media_wrap img{
object-fit: cover;
}
.main-food_reviews-slide-media_mini img{
width: 56px;
height: 70px;
}
.mform__review{
max-height: 90vh;
overflow: auto;
}
.mform__review-wrap{
background-color: #fff;
max-width: 1200px;
width: calc(100% - 20px);
border-radius: 32px;
padding: 40px;
margin: auto;
max-width: 1200px;
width: calc(100% - 20px); position: relative;
}
.read-more{
font-weight: 500;
font-size: 16px;
line-height: 140%;
text-decoration: underline;
text-decoration-skip-ink: none;
background: radial-gradient(278.91% 196.13% at 128.36% -48.29%, rgb(238, 104, 104) 0%, rgb(86, 158, 240) 57.692307233810425%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-top: 2rem;
border-bottom: 1px rgb(86, 158, 240) solid;
display: block;
width: max-content;
}
@media (max-width: 640px) {
.mform__review-wrap{
padding: 24px;
padding-top: 60px;
padding-right: 10px;
}
.mform__review{
padding-right: 16px;
}
}
/* Для Chrome, Edge и Safari */
.mform__review::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.mform__review::-webkit-scrollbar-track {
background: #f5f5f5;
border-radius: 10px;
}
.mform__review::-webkit-scrollbar-thumb {
background-color: #81bafc;
border-radius: 10px;
border: 2px solid #f5f5f5;
}
.mform__review::-webkit-scrollbar-thumb:hover {
background-color: #63acff;
}
@media (max-width: 576px) {
.main-food_reviews {
min-height: 720px;
height: 80vh;
max-height: 850px;
}
.main-food_reviews-slide {
min-height: 640px;
height: calc(80vh - 80px);
max-height: 770px;
}
}
.mform__review__media{
display: block;
width: 100%;
max-width: 350px;
}

@ -0,0 +1,13 @@
jQuery('.main-food_reviews-slide-media_mini').on('click', function(){
var main = jQuery(this).closest('.main-food_reviews-slide-media_wrap').find('.main-food_reviews-slide-media_main')
var src = jQuery(this).attr('src')
var href = jQuery(this).data('video')
if (!href){
href = src
}
jQuery(main).attr('href', href)
jQuery(main).attr('src', src)
})
jQuery('.main-food_reviews-slide-media_wrap').each(function(){
jQuery(this).find('.main-food_reviews-slide-media_mini')[0].click()
})

@ -0,0 +1,597 @@
/* 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.--fish{
--bg-color: #C1DDE6;
--accent-color: #48c1ed;
}
/* 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;
width: 40px;
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);
}
.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{
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);
}
/* 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{
}
.mySwiper::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;
}
.mySwiper::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;
}
.mySwiper2 {
height: 80%;
width: 100%;
}
.mySwiper {
height: 20%;
box-sizing: border-box;
padding: 10px;
height: 110px;
}
.mySwiper .swiper-slide {
width: 90px;
height: 90px;
background-color: #fff;
border-radius: 24px;
padding: 10px 20px;
position: relative;
}
.mySwiper .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;
padding-left: 20px;
padding-right: 20px;
}
.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-similar-slider .swiper-slide > div{
flex-grow: 1;
}
.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;
}
.mySwiper{
display: none;
}
.mySwiper2{
width: 100%;
height: auto;
aspect-ratio: 1 / 1.25;
max-height: 540px;
}
.breadcrumbs{
display: none;
}
.product_main{
margin-top: -45px;
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;
}
}

@ -0,0 +1,3 @@
<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22.5 4.42414C22.5 3.82477 22.0107 3.33842 21.4077 3.33842C20.9265 3.33842 20.5187 3.64831 20.3734 4.07779C19.6032 3.91446 18.7684 3.58269 18.282 2.91259C17.2059 1.43021 16.5706 0.409387 14.1154 0.506365C11.6602 0.603343 9.4551 4.95424 9.9928 6.58245C10.2092 7.23797 10.7513 7.77681 11.3205 8.1866L10.9589 9.33722H5.08895C4.95544 9.33722 4.8234 9.34669 4.69503 9.36492C4.67889 9.25992 4.64661 9.15565 4.59673 9.05576L2.51048 4.88205C2.25007 4.3607 1.61334 4.14779 1.08884 4.40737C0.564347 4.66622 0.350147 5.29913 0.611294 5.82048L2.69754 9.99419C2.75843 10.1152 2.83985 10.2188 2.93448 10.3048C2.48628 10.8094 2.21339 11.4715 2.21339 12.197V13.7457C2.21339 13.7968 2.21486 13.8471 2.21779 13.8966C2.21632 13.9229 2.21339 13.9499 2.21339 13.9761V21.2881C2.21339 21.9575 2.75916 22.5 3.43257 22.5C4.10598 22.5 4.65175 21.9575 4.65175 21.2881V16.5719C4.78599 16.5924 4.9239 16.6033 5.06401 16.604V21.2881C5.06401 21.9575 5.60978 22.5 6.28318 22.5C6.95659 22.5 7.50236 21.9575 7.50236 21.2881V16.6047H11.4548V21.2881C11.4548 21.9575 12.0006 22.5 12.674 22.5C13.3474 22.5 13.8931 21.9575 13.8931 21.2881V16.604C14.0332 16.6026 14.1712 16.5924 14.3054 16.5719V21.2881C14.3054 21.9575 14.8512 22.5 15.5246 22.5C16.198 22.5 16.7438 21.9575 16.7438 21.2881V13.4293V12.1962C16.7438 11.9943 16.7225 11.7967 16.6821 11.6064C16.7122 11.5342 16.7401 11.4605 16.7636 11.3847L17.3394 9.5545C17.3717 9.45169 17.3959 9.34815 17.415 9.24461C18.8227 9.18993 20.2098 9.00836 20.9456 8.55993C22.1772 7.80817 22.3027 6.15006 22.2469 5.11684C22.4039 4.92872 22.4985 4.68737 22.4985 4.42414H22.5ZM16.8758 5.63527C16.3366 5.63527 15.8994 5.20069 15.8994 4.66476C15.8994 4.12883 16.3366 3.69425 16.8758 3.69425C17.415 3.69425 17.8522 4.12883 17.8522 4.66476C17.8522 5.20069 17.415 5.63527 16.8758 5.63527Z" fill="#898989"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -0,0 +1,3 @@
<svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2822 0.737514C21.4202 0.176452 22.2084 0.14664 22.3876 0.696498C23.4544 3.97515 23.918 9.65475 20.8557 9.64542C20.272 9.6436 19.754 9.64138 19.295 9.63995C19.4119 10.0672 19.4755 10.5109 19.4755 10.9668C19.4755 13.0251 18.2187 14.8433 16.2968 15.9447C16.7679 16.6195 17.0398 17.4134 17.0398 18.2635C17.0398 20.714 14.7825 22.6999 11.997 22.7C9.21134 22.7 6.95342 20.7141 6.95342 18.2635C6.95342 17.4135 7.22539 16.6194 7.69649 15.9447C5.77466 14.8432 4.51777 13.025 4.51777 10.9668C4.5178 10.5109 4.58142 10.0672 4.69824 9.63995C4.23937 9.64138 3.72113 9.6436 3.1376 9.64542C0.0765202 9.65438 0.538946 3.97505 1.60566 0.696498C1.78485 0.146663 2.57302 0.17652 2.71103 0.737514L3.58945 4.32296C3.7594 5.01597 4.38333 5.50267 5.09814 5.50079L8.73281 5.48986C9.71915 5.09984 10.8268 4.88077 11.997 4.88077C13.167 4.8808 14.2742 5.09993 15.2605 5.48986L18.8958 5.50079C19.6106 5.5026 20.2346 5.01597 20.4045 4.32296L21.2822 0.737514ZM10.8397 18.6429C10.5546 18.643 10.3242 18.8736 10.3242 19.1583C10.3243 19.4429 10.5546 19.6729 10.8397 19.6731C11.1248 19.6731 11.3556 19.443 11.3558 19.1583C11.3558 18.8735 11.1249 18.6429 10.8397 18.6429ZM13.1536 18.6429C12.8684 18.6429 12.6375 18.8735 12.6375 19.1583C12.6376 19.443 12.8685 19.673 13.1536 19.6731C13.4388 19.6731 13.6696 19.443 13.6697 19.1583C13.6697 18.8735 13.4388 18.6429 13.1536 18.6429ZM9.14707 8.78068C8.66154 8.78079 8.24337 9.06482 8.04785 9.47521L8.00957 9.63038C8.00957 9.63038 8.00184 9.63034 7.98565 9.63038C7.94915 9.74594 7.92959 9.86917 7.92959 9.99679C7.9297 10.6683 8.47455 11.2121 9.14707 11.2122C9.81972 11.2122 10.3651 10.6684 10.3652 9.99679C10.3652 9.32513 9.81979 8.78068 9.14707 8.78068ZM14.6069 8.78068C13.9342 8.78069 13.3895 9.32514 13.3895 9.99679C13.3896 10.6683 13.9343 11.2122 14.6069 11.2122C15.2796 11.2122 15.825 10.6684 15.8251 9.99679C15.8251 9.32513 15.2797 8.78068 14.6069 8.78068Z" fill="#121212" fill-opacity="0.5"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -0,0 +1,5 @@
<svg width="23" height="21" viewBox="0 0 23 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.5018 0.700005C4.14693 0.700005 4.53443 10.313 4.3402 14.6029C4.14693 18.8918 9.24347 20.3705 11.5018 20.2974C13.7602 20.3714 18.8567 18.8927 18.6625 14.6029C18.4683 10.313 18.8558 0.700005 11.5018 0.700005ZM7.38594 8.87895C7.38594 8.22459 7.91721 7.69465 8.5732 7.69465C9.22919 7.69465 9.76045 8.22459 9.76045 8.87895C9.76045 9.5333 9.22919 10.0632 8.5732 10.0632C7.91721 10.0632 7.38594 9.5333 7.38594 8.87895ZM14.9741 16.7065C14.5942 17.3039 13.7002 17.9858 12.8271 17.9858C12.6824 17.9858 12.5387 17.9668 12.3987 17.9259C12.1435 17.8519 11.8674 17.6989 11.6361 17.4007C11.4047 17.6999 11.1286 17.8528 10.8734 17.9259C10.7325 17.9668 10.5888 17.9858 10.445 17.9858C9.57194 17.9858 8.67698 17.3039 8.29804 16.7065C8.14285 16.4624 8.21617 16.1405 8.4599 15.9857C8.70459 15.8309 9.02735 15.904 9.18254 16.1471C9.46245 16.5868 10.1765 17.0408 10.5821 16.923C10.9144 16.8271 11.1124 16.2364 11.1124 15.3427C11.1124 15.3218 11.1143 15.3009 11.1162 15.28C10.2241 15.0901 9.57194 14.488 9.57194 13.7728C9.57194 12.9057 10.5307 12.2029 11.7132 12.2029C12.8957 12.2029 13.8544 12.9057 13.8544 13.7728C13.8544 14.5278 13.127 15.1585 12.1569 15.3085C12.1569 15.3199 12.1588 15.3313 12.1588 15.3427C12.1588 16.2364 12.3568 16.8271 12.6891 16.923C13.0947 17.0398 13.8087 16.5868 14.0887 16.1471C14.2439 15.903 14.5666 15.8309 14.8113 15.9857C15.056 16.1405 15.1283 16.4624 14.9732 16.7065H14.9741ZM14.5314 10.0632C13.8754 10.0632 13.3441 9.5333 13.3441 8.87895C13.3441 8.22459 13.8754 7.69465 14.5314 7.69465C15.1874 7.69465 15.7186 8.22459 15.7186 8.87895C15.7186 9.5333 15.1874 10.0632 14.5314 10.0632Z" fill="#898989"/>
<path d="M6.42909 2.40189C6.25486 2.43988 6.07586 2.48547 5.8902 2.5377C3.14533 3.30887 -3.74591 13.2419 3.8156 13.7662C3.81941 13.6437 3.82322 13.5193 3.82702 13.391C3.89938 11.031 3.99745 7.79912 4.94763 5.12093C5.33133 4.0392 5.82641 3.13317 6.42909 2.40189Z" fill="#898989"/>
<path d="M17.1135 2.53675C16.9278 2.48452 16.7488 2.43988 16.5746 2.40094C17.1772 3.13222 17.6723 4.03825 18.056 5.11998C19.0062 7.79817 19.1043 11.0301 19.1766 13.3901C19.1804 13.5174 19.1843 13.6418 19.1881 13.7652C26.7505 13.2419 19.8583 3.30792 17.1135 2.53675Z" fill="#898989"/>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -0,0 +1,3 @@
<svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.25797 9.90178C4.25797 9.90178 6.23105 5.99078 9.63303 4.1477C8.47245 2.87237 5.19619 3.55349 5.19619 3.55349C5.19619 3.55349 6.35301 0.299988 10.2626 0.299988C13.2602 0.299988 14.4555 2.45387 14.8505 3.45808C19.5866 4.8496 23.1969 11.5767 23.1969 11.5767C23.1969 11.5767 18.9336 19.5215 13.5942 19.9287C13.2058 20.6731 12.4177 21.6745 10.8555 22.2715C8.1347 23.3107 8.3852 22.2082 8.63477 21.6102C8.79614 21.2248 9.3966 19.9542 9.80473 19.0964C6.29766 17.294 4.25797 13.2516 4.25797 13.2516L0.796875 16.6157V6.5387L4.25797 9.90273V9.90178ZM19.1137 11.4577C19.7874 11.4577 20.3334 10.9079 20.3334 10.2296C20.3334 9.5513 19.7874 9.0015 19.1137 9.0015C18.4401 9.0015 17.8941 9.5513 17.8941 10.2296C17.8941 10.9079 18.4401 11.4577 19.1137 11.4577ZM15.6189 16.781C15.6433 16.8622 15.7183 16.9151 15.7981 16.9151C15.8159 16.9151 15.8347 16.9123 15.8534 16.9066C15.9529 16.8764 16.0082 16.7706 15.9782 16.6705C14.9124 13.1695 14.9115 9.74308 15.9773 6.48769C16.0101 6.38849 15.9566 6.28174 15.8581 6.24868C15.7596 6.21562 15.6536 6.27041 15.6208 6.36865C14.5305 9.69962 14.5305 13.2025 15.6198 16.78L15.6189 16.781Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -0,0 +1,5 @@
<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.9585 8.5556C12.3534 8.7365 12.6644 9.91991 13.4887 9.57789C14.0797 9.33197 13.7912 8.3078 12.9585 8.5556Z" fill="#121212" fill-opacity="0.5"/>
<path d="M9.45451 8.55842C9.0199 8.68185 8.96558 9.45069 9.47699 9.60616C10.4577 9.90484 10.5757 8.23807 9.45451 8.55842Z" fill="#121212" fill-opacity="0.5"/>
<path d="M22.6941 11.5019C22.6941 10.522 22.1667 9.58072 21.3144 8.92212C21.8726 8.36998 22.207 7.67558 22.207 6.91616C22.207 5.91082 21.6216 5.01102 20.6981 4.4146C20.9219 4.131 21.0568 3.80217 21.0568 3.44601C21.0568 2.83358 20.6737 2.2937 20.0874 1.9545C19.6518 1.49753 18.9615 1.19791 18.1766 1.19791C17.6708 1.19791 17.2044 1.32228 16.8213 1.53051C16.0607 0.780513 14.8861 0.299988 13.5673 0.299988C12.641 0.299988 11.7858 0.539308 11.0955 0.94163V0.954821C10.3996 0.546846 9.54068 0.299988 8.60216 0.299988C7.31426 0.299988 6.81596 0.758842 6.0554 1.47775C5.69386 1.30438 5.27049 1.19791 4.81341 1.19791C4.02849 1.19791 3.33818 1.49753 2.90264 1.9545C2.31723 2.29275 1.9332 2.8317 1.9332 3.44601C1.9332 3.80217 2.06808 4.13194 2.29194 4.4146C1.37215 5.01102 0.782997 5.908 0.782997 6.91616C0.782997 7.67275 1.11738 8.3681 1.67563 8.92212C0.824209 9.58072 0.296875 10.4928 0.296875 11.5019C0.296875 12.511 0.797046 13.3703 1.60631 14.0232C1.09396 14.5622 0.78487 15.2302 0.78487 15.9538C0.78487 16.9846 1.40119 17.9013 2.36125 18.4949C2.09431 18.7964 1.93508 19.1601 1.93508 19.554C1.93508 20.1664 2.31817 20.7063 2.90451 21.0455C3.34005 21.5024 4.03037 21.8021 4.81528 21.8021C5.27236 21.8021 5.69573 21.6956 6.05728 21.5222C6.82065 22.2411 7.31614 22.7 8.60403 22.7C9.53975 22.7 10.4015 22.455 11.0974 22.0452V22.0583C11.7905 22.4588 12.6429 22.7 13.5692 22.7C14.888 22.7 16.0626 22.2176 16.8231 21.4695C17.21 21.6777 17.6755 21.8021 18.1785 21.8021C18.9634 21.8021 19.6537 21.5024 20.0892 21.0455C20.6747 20.7053 21.0587 20.1683 21.0587 19.554C21.0587 19.1592 20.8994 18.7955 20.6325 18.4949C21.5926 17.9004 22.2089 16.9827 22.2089 15.9538C22.2089 15.2302 21.9026 14.5622 21.3874 14.0232C22.1967 13.3703 22.6969 12.4818 22.6969 11.5019H22.6941ZM18.4782 6.89731H18.4763C17.9509 7.44568 16.7098 7.64825 15.9652 7.6068C17.8141 11.6658 13.7116 15.7965 9.44795 14.0449C6.90869 13.0009 5.78565 10.033 6.93679 7.6068C5.9889 7.78205 3.44496 7.01697 4.26921 5.74311C5.03633 4.55405 7.93152 4.58137 8.9815 5.47176C10.5204 4.61623 12.3797 4.61435 13.9223 5.47176C14.9658 4.74626 16.4054 4.64167 17.6034 5.04494C18.4361 5.32571 19.2538 6.08702 18.4782 6.89731Z" fill="#121212" fill-opacity="0.5"/>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

@ -0,0 +1,3 @@
<svg width="25" height="23" viewBox="0 0 25 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M24.9994 6.09482C24.9994 5.6801 24.6582 5.34355 24.2377 5.34355C24.0526 5.34355 23.8829 5.40891 23.751 5.51702C23.0191 5.28553 22.1671 4.90989 22.0011 4.38462C21.7002 3.43118 20.0537 3.16976 20.0537 3.16976L19.5595 0.5L17.5836 3.10624L15.9947 0.500611C15.9947 0.500611 15.0497 0.98802 15.0497 3.72069C15.0497 5.57932 15.3476 6.52604 15.5383 6.94199C15.5371 6.94932 15.5352 6.95604 15.5346 6.96276L15.1612 9.26482H7.89029C7.01966 9.26482 6.23696 9.63801 5.69824 10.2311C5.69453 10.2244 5.69143 10.2176 5.6871 10.2109C5.39111 9.74123 4.76569 9.59709 4.29013 9.88904L0.479443 12.2241C0.00326141 12.516 -0.142876 13.1329 0.153112 13.6026C0.4491 14.0723 1.07451 14.2165 1.55008 13.9245L4.96756 11.8301C4.95456 11.9407 4.94712 12.0531 4.94712 12.1679V13.5153C4.94712 13.5202 4.94712 13.5245 4.94712 13.5287C4.94712 13.5312 4.94712 13.533 4.94712 13.5355V21.1984C4.94712 21.9173 5.53786 22.5 6.26669 22.5C6.99551 22.5 7.58625 21.9173 7.58625 21.1984V16.4031C7.68594 16.4135 7.7875 16.4184 7.89029 16.4184H8.03271V21.1984C8.03271 21.9173 8.62344 22.5 9.35227 22.5C10.0811 22.5 10.6718 21.9173 10.6718 21.1984V16.4184H14.5618V21.1984C14.5618 21.9173 15.1525 22.5 15.8813 22.5C16.6102 22.5 17.2009 21.9173 17.2009 21.1984V16.4184H17.3433C17.4461 16.4184 17.547 16.4129 17.6474 16.4031V21.1984C17.6474 21.9173 18.2381 22.5 18.9669 22.5C19.6957 22.5 20.2865 21.9173 20.2865 21.1984V14.1432C20.2865 14.0565 20.2772 13.9722 20.2611 13.8903C20.2772 13.7676 20.2865 13.6423 20.2865 13.5147V12.1673C20.2865 12.0024 20.2716 11.8411 20.245 11.6835L20.6017 9.4847C21.7249 9.4847 23.042 9.36377 23.5554 8.84643C24.0978 8.29977 24.4439 7.40741 24.6433 6.72882C24.8576 6.59567 25 6.36113 25 6.0936L24.9994 6.09482ZM20.3781 5.89937C19.9793 5.89937 19.6561 5.58054 19.6561 5.18719C19.6561 4.79385 19.9793 4.47501 20.3781 4.47501C20.7769 4.47501 21.1001 4.79385 21.1001 5.18719C21.1001 5.58054 20.7769 5.89937 20.3781 5.89937Z" fill="#898989"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -0,0 +1,3 @@
<svg width="21" height="23" viewBox="0 0 21 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M19.6759 6.68902L19.2777 6.68367C18.4787 2.8023 15.739 2.89153 15.739 2.89153V0.700121C15.739 0.536836 15.5351 0.469024 15.4423 0.602864L13.7723 3.01109L11.0361 0.601079C10.8053 0.398534 10.4487 0.515421 10.375 0.8179C10.0549 2.12507 9.52394 5.17841 10.7454 7.63125C10.7958 7.73297 10.8478 7.83112 10.9007 7.92749V10.5856H5.15499C5.03527 10.5856 4.91815 10.5945 4.80364 10.6114C4.83053 10.3723 4.79323 10.1225 4.68131 9.89137L2.87769 6.15812C2.56971 5.52015 1.81669 5.25961 1.19639 5.57725C0.576099 5.89401 0.322777 6.6685 0.631622 7.30647L2.43524 11.0397C2.58186 11.344 2.82998 11.5608 3.11627 11.6714C2.82737 12.0908 2.65647 12.603 2.65647 13.1562V14.5597C2.65647 14.6266 2.65994 14.6918 2.66428 14.7569C2.65907 14.8042 2.65647 14.8515 2.65647 14.8997V21.2098C2.65647 21.9218 3.21777 22.5 3.91094 22.5C4.6041 22.5 5.1654 21.9227 5.1654 21.2098V17.1303H5.66424V21.2098C5.66424 21.9218 6.22554 22.5 6.91871 22.5C7.61101 22.5 8.17318 21.9227 8.17318 21.2098V17.1303H9.82151V21.2098C9.82151 21.9218 10.3828 22.5 11.076 22.5C11.7691 22.5 12.3304 21.9227 12.3304 21.2098V17.1303H12.7547V21.2098C12.7547 21.9218 13.316 22.5 14.0091 22.5C14.7023 22.5 15.2636 21.9227 15.2636 21.2098V14.3741V13.1562C15.2636 13.0857 15.2601 13.0152 15.2549 12.9456C15.2601 12.8796 15.2636 12.8135 15.2636 12.7466V11.6081C15.4232 11.6839 15.6774 11.7428 16.0852 11.7482C19.7037 11.7928 20.1904 9.18648 20.4836 7.69996C20.586 7.17888 20.1956 6.6917 19.6785 6.68902H19.6759ZM16.9649 7.46262C16.3116 7.46262 15.7815 6.91744 15.7815 6.24556C15.7815 5.57369 16.3116 5.02851 16.9649 5.02851C17.6181 5.02851 18.1482 5.57369 18.1482 6.24556C18.1482 6.91744 17.6181 7.46262 16.9649 7.46262Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@ -0,0 +1,5 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.5 12.3643H21" stroke="#121212" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4.5 12.3643L10.864 18.7282" stroke="#121212" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4.5 12.3643L10.864 6.0003" stroke="#121212" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 459 B

@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7369 3.29777C11.1247 3.15233 11.557 3.34884 11.7025 3.73668L14.7025 11.7367C14.7661 11.9065 14.7661 12.0936 14.7025 12.2634L11.7025 20.2634C11.557 20.6512 11.1247 20.8477 10.7369 20.7023C10.349 20.5568 10.1525 20.1245 10.298 19.7367L13.1992 12L10.298 4.26336C10.1525 3.87552 10.349 3.44321 10.7369 3.29777Z" fill="#666666"/>
</svg>

After

Width:  |  Height:  |  Size: 481 B

@ -0,0 +1,5 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6 16.4854H28" stroke="#666666" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6 16.4854L14.4853 24.9706" stroke="#666666" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6 16.4854L14.4853 8.00007" stroke="#666666" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 456 B

@ -0,0 +1,5 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M26 16.4854H4" stroke="#666666" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M26 16.4854L17.5147 24.9706" stroke="#666666" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M26 16.4854L17.5147 8.00007" stroke="#666666" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 458 B

@ -0,0 +1,11 @@
<svg width="16" height="12" viewBox="0 0 16 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.7071 0.292893C16.0976 0.683417 16.0976 1.31658 15.7071 1.70711L5.70711 11.7071C5.31658 12.0976 4.68342 12.0976 4.29289 11.7071L0.292893 7.70711C-0.0976311 7.31658 -0.0976311 6.68342 0.292893 6.29289C0.683417 5.90237 1.31658 5.90237 1.70711 6.29289L5 9.58579L14.2929 0.292893C14.6834 -0.0976311 15.3166 -0.0976311 15.7071 0.292893Z" fill="url(#paint0_radial_79_10214)" />
<defs>
<radialGradient id="paint0_radial_79_10214" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(23.9562 -7.00625) rotate(143.344) scale(34.5677 45.2811)">
<stop stop-color="#0F5881" />
<stop offset="0.512169" stop-color="#1EA49C" />
<stop offset="0.807073" stop-color="#76CE75" />
<stop offset="0.911458" stop-color="#ECF39F" />
</radialGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 954 B

@ -0,0 +1,11 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1_2483)">
<path d="M18 6L6 18" stroke="#121212" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6 6L18 18" stroke="#121212" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_1_2483">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 455 B

@ -0,0 +1,3 @@
<svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5.66439 1.55626L11.6061 6.12257C11.6061 6.12257 13.4197 5.88332 15.8384 7.09738C15.8384 7.09738 14.9415 3.72448 15.7549 2.16141C16.5693 0.597403 17.5075 0.299988 18.5705 0.299988C19.6335 0.299988 20.8635 0.638684 21.2079 2.12951C21.2079 2.12951 22.8845 2.18205 23.1875 3.75545C23.1875 3.75545 22.7475 4.90195 20.1739 5.12149C20.127 5.12524 20.0829 5.12993 20.0379 5.13463C19.976 5.76042 20.0323 6.7615 20.7988 7.58244C22.011 8.87999 21.9988 9.48045 21.252 9.958C20.5051 10.4356 19.3539 9.17459 19.1335 8.45216C18.9674 7.908 18.9477 6.32898 19.0734 5.30538C17.8031 5.67973 18.2393 6.48847 18.487 7.63404C18.7891 9.03104 19.4252 10.8137 19.4252 13.1067C19.4252 15.3997 17.7993 17.9854 14.7135 19.07C14.6319 19.0991 14.5493 19.1253 14.4677 19.1516V20.2221C14.4677 20.2221 15.0625 20.2634 15.6883 20.2634C16.5853 20.2634 16.543 21.5459 15.6883 21.5459H15.0841C15.5429 21.7336 15.647 22.6924 14.8758 22.6999C14.1046 22.7075 12.5931 21.7026 12.5931 21.2223C12.5931 20.7419 12.8952 21.0552 13.2912 20.3985C13.4826 20.0814 13.5032 19.7089 13.4741 19.4087C12.2329 19.6554 11.0432 19.6151 9.97551 19.3768V20.2212C9.97551 20.2212 10.5703 20.2625 11.1961 20.2625C12.0931 20.2625 12.0508 21.545 11.1961 21.545H10.5919C11.0507 21.7326 11.1548 22.6915 10.3836 22.699C9.61242 22.7065 8.10095 21.7017 8.10095 21.2213C8.10095 20.7409 8.40305 21.0543 8.79898 20.3976C9.07294 19.9425 8.99789 19.373 8.92564 19.0662C8.18164 18.7895 7.52207 18.416 6.98071 17.9845C6.98071 17.9845 0.829756 18.1308 0.809114 11.3963C0.788473 4.66176 3.77013 2.4729 5.66721 1.55532L5.66439 1.55626ZM19.2066 3.46929C19.7771 3.46929 20.2387 3.00769 20.2387 2.43725C20.2387 1.86681 19.7771 1.40521 19.2066 1.40521C18.6362 1.40521 18.1746 1.86681 18.1746 2.43725C18.1746 3.00769 18.6362 3.46929 19.2066 3.46929Z" fill="#121212" fill-opacity="0.5"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -0,0 +1,94 @@
document.addEventListener('DOMContentLoaded', function() {
var swiper = new Swiper(".mySwiper", {
loop: true,
spaceBetween: 10,
slidesPerView: 'auto',
freeMode: true,
watchSlidesProgress: true,
navigation: {
nextEl: '.product-gallery-next',
prevEl: '.product-gallery-prev',
},
});
var swiper2 = new Swiper(".mySwiper2", {
loop: true,
spaceBetween: 10,
thumbs: {
swiper: swiper,
},
});
var reviewsSwiper = new Swiper(".product-reviews-slider", {
loop: false,
spaceBetween: 20,
slidesPerView: 1,
breakpoints: {
300: {
slidesPerView: 1,
spaceBetween: 20,
},
776: {
slidesPerView: 2,
spaceBetween: 40,
},
991: {
slidesPerView: 3,
spaceBetween: 40,
},
1440: {
slidesPerView: 4,
spaceBetween: 40,
},
}
});
var productsRelatedSwiper = new Swiper(".product-similar-slider", {
loop: false,
spaceBetween: 20,
slidesPerView: 1,
breakpoints: {
300: {
slidesPerView: 1.8,
spaceBetween: 10,
},
776: {
slidesPerView: 2,
spaceBetween: 20,
},
991: {
slidesPerView: 3,
spaceBetween: 20,
},
1440: {
slidesPerView: 4,
spaceBetween: 20,
},
}
});
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
jQuery.get(imgURL, function(data) {
var $svg = jQuery(data).find('svg');
if(typeof imgID !== 'undefined') {
$svg = $svg.attr('id', imgID);
}
if(typeof imgClass !== 'undefined') {
$svg = $svg.attr('class', imgClass+' replaced-svg');
}
$svg = $svg.removeAttr('xmlns:a');
if(!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) {
$svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width'))
}
$img.replaceWith($svg);
}, 'xml');
});
});

@ -0,0 +1,29 @@
<?php
$context = Timber::get_context();
include_component('shop', 'reviews');
include_component('shop', 'product-card');
$reviews = get_posts(array(
'post_type' => 'p_reviews',
'numberposts' => -1,
));
$product_id = get_the_ID();
$product = wc_get_product($product_id);
$context['related_products'] = array();
$related_products_ids = $product->get_upsell_ids();
if ($related_products_ids) {
foreach ($related_products_ids as $related_id) {
$related_product = wc_get_product($related_id);
if ($related_product) {
$context['related_products'][] = $related_product;
}
}
}
$context['reviews'] = $reviews;
Timber::render('shop/single-product_page.twig', $context);

@ -11,7 +11,7 @@ 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-shop-style', get_template_directory_uri() . '/static/css/shop.css');
wp_enqueue_style('gp-forms-style', get_template_directory_uri() . '/static/css/forms.css');
wp_enqueue_style('gp-front-page-style', get_template_directory_uri() . '/static/css/front-page.css');
wp_enqueue_style('gp-front-page-style', get_template_directory_uri() . '/static/css/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/front-page.js', [], filemtime(get_template_directory_uri() . '/static/js/front-page.js'), true );
}

@ -40,16 +40,16 @@ 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.css',
get_template_directory_uri() . '/static/css/front-page-style.css',
array(),
filemtime(get_template_directory() . '/static/css/front-page.css')
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.css',
get_template_directory_uri() . '/static/css/new-front-page-style.css',
array(),
filemtime(get_template_directory() . '/static/css/new-front-page.css')
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);
@ -59,7 +59,7 @@ add_action('wp_enqueue_scripts', 'theme_enqueue_scripts');
include_component('blog', 'main-page-block');
include_component('shop', 'product-card');
include_component('shop', 'reviews');
$reviews_food_query = get_posts(array(
'post_type' => 'p_reviews',

@ -7,6 +7,15 @@ if ( ! defined( 'ABSPATH' ) ) {
if (is_product()) {
include_module('shop');
include_component('shop', 'single-product');
global $product;
// Get the product ID
$product_id = get_the_ID();
if ($product_id == 1105){
include_component('shop', 'single-product_new');
}
else{
include_component('shop', 'single-product');
}
}

@ -794,227 +794,8 @@ background: radial-gradient(161.08% 232.33% at 133.99% -48.29%, #EE6868 0%, #569
flex-wrap: wrap;
gap: 10px;
}
.main-food_products-card {
--accent-color: #121212;
border-radius: 30px;
padding: 8px;
width: 265px;
min-width: 194px;
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: var(--accent-color);
background-image: linear-gradient(
rgba(255, 255, 255, 0.6),
rgba(255, 255, 255, 0.6)
);
}
.main-food_products-card-img {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 8px 0px 32px;
padding-bottom: 42px;
/* filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1)); */
}
/* .shadow-svg {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-65%);
width: 80%;
height: auto;
z-index: 0;
pointer-events: none;
} */
.main-food_products-card-img img {
position: relative;
z-index: 1;
display: block;
max-width: 100%;
height: auto;
aspect-ratio: 1/1;
object-fit: contain;
}
.main-food_products-card-title{
padding: 8px 16px 8px 16px;
border-radius: 36px;
background: #fff;
font-weight: 500;
font-size: 12px;
text-transform: uppercase;
color: var(--accent-color);
}
.food.lamb.main-food_products-card {
--accent-color: #863300;
}
.food.turkey.main-food_products-card {
--accent-color: #CD0003;
}
.food.beef.main-food_products-card{
--accent-color: #7e0092;
}
.food.fish.main-food_products-card{
--accent-color: #48c1ed;
}
.treats.lamb.main-food_products-card {
--accent-color: #44006c;
}
.treats.rabbit.main-food_products-card {
--accent-color: #601094;
}
.treats.beef.main-food_products-card{
--accent-color: #004c31;
}
.treats.salmon.main-food_products-card{
--accent-color: #7c007a;
}
.treats.duck.main-food_products-card{
--accent-color: #326e70;
}
.main-food_products-card-bottom {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 8px;
}
.main-food_products-card-bottom-price{
border-radius: 36px;
padding: 10px;
background: #fff;
font-weight: 600;
font-size: 18px;
text-transform: uppercase;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
color: var(--accent-color);
}
.main-food_products-cardbottom-btn{
border: 2px solid #fff;
border-radius: 36px;
padding: 0px 32px;
height: 42px;
font-weight: 900;
font-size: 12px;
text-align: center;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
transition: all .3s;
background-color: var(--accent-color);
}
.main-food_reviews {
border-radius: 40px;
padding: 24px;
max-width: 395px;
height: 672px;
flex-grow: 1;
position: relative;
box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.12);
background: #fff;
}
.main-food_reviews-title {
font-weight: 700;
font-size: 32px;
text-transform: uppercase;
color: #121212;
}
.main-food_reviews-slider {
position: relative;
}
.main-food_reviews-slide {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
border-radius: 8px;
min-height: 580px;
}
.main-food_reviews-slide-img {
border: 2px solid #fff;
border-radius: 32px;
object-fit: cover;
margin-bottom: 10px;
}
.main-food_reviews-slide-name {
font-weight: 700;
font-size: 16px;
text-transform: uppercase;
color: #121212;
margin-bottom: 10px;
}
.main-food_reviews-slide-position {
font-weight: 500;
font-size: 14px;
line-height: 140%;
color: #121212;
margin-bottom: 10px;
}
.main-food_reviews-slide-position:not(.--no-min-height){
min-height: 60px;
}
.main-food_reviews-slide-text {
font-weight: 500;
font-size: 16px;
line-height: 140%;
color: #121212;
margin-bottom: 10px;
}
.main-food_reviews-slide-text a{
color: #569ef0;
font-weight: 600;
text-decoration: underline;
}
.main-food_reviews-slide-head, .main-food_reviews-slide-position{
width: 100%;
}
.main-food_reviews-slide-text p {
margin-bottom: .5em;
}
.main-food_reviews-slider {
position: relative;
height: 97%;
}
.main-food_reviews-slider-index {
position: absolute;
left: 40%;
transform: translateX(-50%);
bottom: 30px;
z-index: 100;
font-weight: 500;
font-size: 16px;
line-height: 140%;
color: #121212;
}
.main-food_arrows {
position: absolute;
right: 20%;
@ -1039,84 +820,14 @@ background: radial-gradient(161.08% 232.33% at 133.99% -48.29%, #EE6868 0%, #569
content: none;
}
.main-food_products-card-slider .swiper-pagination-bullet {
background: #fff;
height: 10px;
width: 10px;
border-radius: 50%;
opacity: 1;
}
.main-food_products-card-slider .swiper-pagination-bullet.swiper-pagination-bullet-active{
background-color: var(--accent-color);
}
.swiper-dots{
position: absolute;
bottom: 16px !important;
display: flex;
justify-content: center;
z-index: 5;
}
.main-food_products-card-img{
padding-bottom: 20px;
}
.main-food_arrows .swiper-button-next{
right: var(--swiper-navigation-sides-offset, -65px)!important;
left: auto;
}
.main-food_arrows .swiper-button-prev{
left: var(--swiper-navigation-sides-offset, -65px)!important;
right: auto;
}
.main-food_reviews-star {
position: absolute;
top: 0%;
right: 0%;
z-index: 100;
}
.main-food_link {
max-width: 240px;
justify-content: space-between;
padding: 0 8px;
}
@media (max-width: 767px) {
.main-food_reviews {
padding: 16px 24px;
border-radius: 30px;
}
.main-food_reviews-slide-img {
width: 100%;
}
.main-food_reviews-slide-name {
font-size: 18px;
}
.main-food_reviews-slide-position{
font-weight: 500;
font-size: 14px;
background: radial-gradient(278.91% 196.13% at 128.36% -48.29%, rgb(238, 104, 104) 0%, rgb(86, 158, 240) 57.692307233810425%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.main-food_reviews-slide-text {
font-size: 14px;
}
.main-food_reviews-slider-index {
font-size: 14px;
}
.main-food_reviews-slide{
padding-left: 0;
padding-right: 0;
}
.main-reviews_title{
font-size: 32px;
}
}
/* Main Reviews */
.main-reviews {
background: #f4f1f0;
@ -1177,21 +888,6 @@ background: radial-gradient(161.08% 232.33% at 133.99% -48.29%, #EE6868 0%, #569
border-radius: 0px 0px 60px 60px;
}
.main-food_products-card-title{
padding: 8px 16px 8px 16px;
border-radius: 36px;
background: #fff;
font-weight: 600;
font-size: 12px;
text-transform: uppercase;
}
.main-food_products-card-bottom {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-top: 10px;
}
.main-treats_products-card-bottom-price{
border-radius: 100px;
@ -1281,18 +977,7 @@ background: radial-gradient(161.08% 232.33% at 133.99% -48.29%, #EE6868 0%, #569
right: auto;
}
.main-food_reviews-slide-top {
display: flex;
justify-content: flex-start;
gap: 20px;
align-items: center;
width: 100%;
}
.main-food_reviews-slide-top img {
width: 48px;
height: 48px;
border-radius: 100%;
}
/* Main Smi */
@ -2387,7 +2072,7 @@ background: #e5f1fa;
.about_slider .slide_title{
text-transform: uppercase;
font-size: 24px;
font-weight: 900;
font-weight: 900 !important;
line-height: 28.8px;
color: var(--grey-black, #121212);
}
@ -2840,48 +2525,7 @@ font-size: 32px;
width: calc(50% - 5px);
min-width: 0;
}
.main-food_products-card-img img{
height: 50vw;
}
.main-food_products-card-title{
font-size: 10px;
}
.main-food_products-card-bottom-price{
font-size: 12px;
height: 44px;
padding-left: 10px;
padding-right: 10px;
}
.main-food_products-cardbottom-btn{
font-size: 0;
height: 44px;
width: 44px;
position: relative;
padding: 0;
flex-grow: 0;
}
.main-food_products-cardbottom-btn::after{
background-image: url("data:image/svg+xml,%3Csvg width='18' height='20' viewBox='0 0 18 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.99891 0C10.0882 1.85362e-05 11.1353 0.416463 11.908 1.15941L12.0484 1.30206C12.7329 2.02913 13.1164 2.97793 13.1165 3.96649V5.03207L14.9288 5.02729L15.0941 5.03207C15.4787 5.05208 15.8566 5.14206 16.208 5.29727L16.357 5.36716C16.6986 5.54015 17.0042 5.7742 17.257 6.05744L17.3621 6.18191C17.5979 6.47719 17.7739 6.81389 17.8808 7.17377L17.9228 7.32887C17.9969 7.64101 18.0178 7.96276 17.9849 8.28147L17.9639 8.4404L16.6522 16.6376C16.5114 17.5178 16.0674 18.3238 15.3969 18.9287L15.2603 19.0464C14.5603 19.6238 13.6814 19.9569 12.7659 19.9962L12.5815 20H5.41634C4.49677 19.9999 3.60472 19.7028 2.88179 19.1584L2.73944 19.0464C2.03929 18.4688 1.56066 17.6815 1.37998 16.8119L1.3475 16.6376L0.0357986 8.4404C-0.03187 8.0173 -0.00329994 7.58521 0.118914 7.17377L0.168592 7.02058C0.295244 6.6677 0.489965 6.34073 0.742759 6.05744L0.854535 5.93968C1.12207 5.67071 1.44011 5.45265 1.79174 5.29727L1.94364 5.23408C2.25097 5.11719 2.57599 5.04922 2.90568 5.03207L3.07095 5.02729H4.60525L4.87155 5.03207L4.8823 3.96649C4.88242 2.91203 5.31814 1.90251 6.09082 1.15941L6.2389 1.02346C6.99437 0.365708 7.97783 0.000101636 8.99891 0ZM3.07095 6.92772C2.95004 6.92773 2.83041 6.94761 2.71652 6.9842L2.60378 7.02633C2.49444 7.07468 2.39447 7.13951 2.30763 7.21781L2.22451 7.3011C2.14669 7.38833 2.08465 7.48682 2.04013 7.59215L2.00191 7.69938C1.95855 7.84531 1.94843 7.99859 1.9723 8.1484L3.28495 16.3456L3.32221 16.5256C3.42862 16.9407 3.66723 17.3168 4.00911 17.5989L4.16101 17.7128C4.47324 17.927 4.83998 18.0579 5.22336 18.091L5.41634 18.0996H12.5824L12.7754 18.091C13.223 18.0525 13.6486 17.8809 13.9906 17.5989L14.1301 17.4725C14.4421 17.1647 14.6468 16.7708 14.7148 16.3456L16.0274 8.14935L16.0389 8.03638C16.0424 7.96081 16.0379 7.88502 16.0246 7.81044L15.9978 7.69938C15.9653 7.58999 15.9149 7.48606 15.8478 7.39205L15.7752 7.3011C15.6974 7.21384 15.6049 7.13906 15.502 7.07994L15.3959 7.02633C15.2863 6.9779 15.1689 6.94689 15.0492 6.93442L14.9288 6.92772H13.1165V8.99473C13.1163 9.52694 12.6697 9.94443 12.1363 9.94447C11.6029 9.94439 11.1562 9.52691 11.1561 8.99473V6.92772H6.84172V8.99473C6.84159 9.52685 6.39576 9.9443 5.86249 9.94447C5.32907 9.94447 4.88244 9.52696 4.8823 8.99473V6.92772H3.07095ZM8.99891 1.90043C8.49608 1.90053 8.01257 2.06912 7.62893 2.37147L7.4713 2.50838C7.0677 2.89647 6.84185 3.4213 6.84172 3.96649V4.74102H11.1561V3.96649C11.156 3.48959 10.9841 3.0284 10.6708 2.6606L10.5275 2.50838C10.1235 2.12005 9.57346 1.90045 8.99891 1.90043Z' fill='white' /%3E%3C/svg%3E");
height: 20px;
width: 18px;
background-size: contain;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
content: '';
background-repeat: no-repeat;
}
.main-food_reviews-title{
font-size: 24px;
}
.main-food_reviews-star{
width: 82px;
top: -20px;
}
.main-reviews_title{
font-size: 32px;
}
.marketplace__swiper{
overflow: visible;
}
@ -3152,16 +2796,16 @@ position: absolute;
gap: 12px;
}
.about_slider .carousel .carousel-item {
#about .about_slider .carousel .carousel-item {
padding: 10px 39px;
width: 290px;
height: 290px;
border-radius: 100%;
border-radius: 100% !important;
}
.about_slider .carousel .carousel-item::after {
background-image: url(../img/border-mobile.png);
border-radius: 100%;
border-radius: 100% !important;
}
.about_slider .prev {
@ -3812,116 +3456,34 @@ background-color: #fff;
}
.main-food_reviews-slide-head{
position: relative;
}
.main-food_reviews-slide-photo{
height: 48px;
width: 48px;
flex-shrink: 0;
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
object-fit: cover;
}
.main-food_reviews-slide-name, .main-food_reviews-slide-position{
padding-left: 64px;
}
.main-food_reviews-slide-name.--no-padding-left, .main-food_reviews-slide-position.--no-padding-left{
padding-left: 0;
}
.main-food_reviews-slide-name, .main-food_reviews-slide-position, .main-food_reviews-slide-head{
width: 100%;
}
.main-food_reviews-slide-media_file{
height: 220px;
width: 100%;
border-radius: 32px;
margin-bottom: 1rem;
object-fit: cover;
}
.main-food_reviews-slide-media_file-wrap{
width: 100%;
display: block;
}
@media (max-width: 640px) {
.main-food_reviews-slide-name{
min-height: 48px;
display: flex;
align-items: center;
}
.main-food_reviews-slide-position{
padding-left: 0;
}
}
.main-food_reviews-slide-media_main{
border-radius: 25px;
width: 168px;
height: 115px;
overflow: hidden;
}
.main-food_reviews-slide-media_main img{
width: 168px;
height: 115px;
}
.main-food_reviews-slide-media_mini{
width: 56px;
height: 70px;
border-radius: 16px;
overflow: hidden;
}
.main-food_reviews-slide-media_wrap{
display: flex;
gap: 6px;
align-items: center;
margin-bottom: 20px;
}
.main-food_reviews-slide-media_wrap img{
object-fit: cover;
}
.main-food_reviews-slide-media_mini img{
width: 56px;
height: 70px;
}
@media (max-width: 576px) {
.about_slider .slide {
padding: 10px 39px;
width: 280px;
height: 280px;
border-radius: 100%;
gap: 12px;
padding: 10px 39px !important;
width: 280px!important;
height: 280px!important;
border-radius: 100% !important;
gap: 12px!important;
}
.about_slider .carousel .carousel-item {
padding: 10px 39px;
width: 290px;
height: 290px;
border-radius: 100%;
padding: 10px 39px !important;
width: 290px!important;
height: 290px!important;
border-radius: 100% !important;
}
.about_slider .carousel .carousel-item::after {
background-image: url(../img/border-mobile.png);
border-radius: 100%;
border-radius: 100% !important;
}
.about_slider .prev {
left: 10vw;
left: 10vw!important;
}
.about_slider .next {
right: 10vw;
right: 10vw!important;
}
.about_slider .slide.active {
@ -3929,8 +3491,8 @@ background-color: #fff;
}
.about_slider .slide img {
width: 113px;
height: 113px;
width: 113px !important;
height: 113px !important;
}
.about_slider .slide_info {
@ -3939,8 +3501,8 @@ background-color: #fff;
.about_slider .slide_text,
.about_slider .slide_title {
font-size: 12px;
line-height: 14.4px;
font-size: 12px !important;
line-height: 14.4px !important;
text-align: center;
}
.truth_end-text{
@ -3955,81 +3517,9 @@ background-color: #fff;
position: relative;
}
.mform__review{
max-height: 90vh;
overflow: auto;
}
.mform__review-wrap{
background-color: #fff;
max-width: 1200px;
width: calc(100% - 20px);
border-radius: 32px;
padding: 40px;
margin: auto;
max-width: 1200px;
width: calc(100% - 20px); position: relative;
}
.read-more{
font-weight: 500;
font-size: 16px;
line-height: 140%;
text-decoration: underline;
text-decoration-skip-ink: none;
background: radial-gradient(278.91% 196.13% at 128.36% -48.29%, rgb(238, 104, 104) 0%, rgb(86, 158, 240) 57.692307233810425%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-top: 2rem;
border-bottom: 1px rgb(86, 158, 240) solid;
display: block;
width: max-content;
}
@media (max-width: 640px) {
.mform__review-wrap{
padding: 24px;
padding-top: 60px;
padding-right: 10px;
}
.mform__review{
padding-right: 16px;
}
}
/* Для Chrome, Edge и Safari */
.mform__review::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.mform__review::-webkit-scrollbar-track {
background: #f5f5f5;
border-radius: 10px;
}
.mform__review::-webkit-scrollbar-thumb {
background-color: #81bafc;
border-radius: 10px;
border: 2px solid #f5f5f5;
}
.mform__review::-webkit-scrollbar-thumb:hover {
background-color: #63acff;
}
@media (max-width: 576px) {
.main-food_reviews {
min-height: 720px;
height: 80vh;
max-height: 850px;
}
.main-food_reviews-slide {
min-height: 640px;
height: calc(80vh - 80px);
max-height: 770px;
}
.main-bot .swiper-pagination-bullet{
width: 91px;
}

@ -415,19 +415,7 @@ document.addEventListener('DOMContentLoaded', function () {
}
})
jQuery('.main-food_reviews-slide-media_mini').on('click', function(){
var main = jQuery(this).closest('.main-food_reviews-slide-media_wrap').find('.main-food_reviews-slide-media_main')
var src = jQuery(this).attr('src')
var href = jQuery(this).data('video')
if (!href){
href = src
}
jQuery(main).attr('href', href)
jQuery(main).attr('src', src)
})
jQuery('.main-food_reviews-slide-media_wrap').each(function(){
jQuery(this).find('.main-food_reviews-slide-media_mini')[0].click()
})
});

@ -57,7 +57,7 @@
</button>
{% for reply in comment.replies %}
{% include 'partials/comment.twig' with { comment: reply, depth: depth + 1 } %}
{% include 'blog/comments/comment-single.twig' with { comment: reply, depth: depth + 1 } %}
{% endfor %}
{% endif %}
</div>

@ -1,12 +1,14 @@
<!DOCTYPE html>
<html lang="ru">
<head>
{{ function('wp_head') }}
<title>{{ function('wp_title') }} </title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if site_mode == 'production' %}
{{ header_scripts }}
{% endif %}

@ -1,21 +1,21 @@
{% 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') %}
{% 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">
<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()}}">
<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() }}">
<img src="{{ function('wp_get_attachment_image_url', image, 'medium') }}" alt="{{ _product.get_title() }}">
</div>
</div>
{% endfor %}
@ -23,15 +23,16 @@
<div class="swiper-dots"></div>
</div>
</a>
<div class="">{% set collection = fn('wc_get_product_terms', product.id, 'pa_collection') %}{% if collection %}
{% set cur_weight = function('get_product_info', product.id, 'weight') %}
<div class="">
{% set collection = fn('wc_get_product_terms', _product.id, 'pa_collection') %}{% if collection %}
{% set cur_weight = function('get_product_info', _product.id, 'weight') %}
<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) %}
@ -54,13 +55,13 @@
{% endfor %}
{% endfor %}
</div>{% endif %}
<a href="{{product.get_permalink()}}" class="main-food_products-card-title">
{{product.get_name()}}
<a href="{{_product.get_permalink()}}" class="main-food_products-card-title">
{{_product.get_name()}}
</a>
<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 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>

@ -1,6 +1,6 @@
<div class="main-food_products">
{% for product in product_list %}
{% include 'shop/product-card_element.twig' with {product : fn('wc_get_product', product.product)} %}
{% include 'shop/product-card_element.twig' with {_product : fn('wc_get_product', product.product)} %}
{% 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>

@ -4,46 +4,7 @@
<div class="main-{{section}}_reviews-slider swiper">
<div class="swiper-wrapper">
{% for slide in rev_list %}
<div class="main-food_reviews-slide swiper-slide">
{% if fn('get_field', 'media_file', slide) %}
<a class="main-food_reviews-slide-media_file-wrap" href="{{fn('get_field', 'media_file', slide)}}" data-fancybox><img class="main-food_reviews-slide-media_file" src="{{fn('get_field', 'media_file', slide)}}"></a>
{% endif %}
{% if fn('get_field', 'media', slide) %}
<div class="main-food_reviews-slide-media_wrap">
<a href="{{fn('get_field', 'media_file', slide)}}" data-fancybox><img class="main-food_reviews-slide-media_main" src="{{fn('get_field', 'media_file', slide)}}"></a>
{% for file in fn('get_field', 'media', slide) %}
<img {% if file.video %}data-video="{{file.video}}"{% endif %} class="main-food_reviews-slide-media_mini {% if file.video %}--video{% endif %}" src="{{file.img}}">
{% endfor %}
</div>
{% endif %}
<div class="main-food_reviews-slide-head">
{% if fn('get_field', 'photo', slide) %}
<img class="main-food_reviews-slide-photo" src="{{fn('get_field', 'photo', slide)}}">
{% endif %}
<p class="main-food_reviews-slide-name {% if not fn('get_field', 'photo', slide) %}--no-padding-left{% endif %}">{{fn('get_the_title', slide)}}</p>
</div>
<p class="main-food_reviews-slide-position {% if not fn('get_field', 'photo', slide) %}--no-padding-left{% endif %} {% if fn('get_field', 'type', slide) == 'media' %}--no-min-height{% endif %}">{{fn('get_field', 'desc', slide)}}</p>
{% if fn('get_field', 'text', slide) %}
{% if fn('get_field', 'type', slide) == 'media' %}
{% set maxLength = 160 %}
{% else %}
{% set maxLength = 350 %}
{% endif %}
{% set content = fn('get_field', 'text', slide) %}
{% if content|length > maxLength %}
<div class="main-food_reviews-slide-text">{{ content[:maxLength] ~ '...' }}
<button class="read-more" onclick="showModal('modal-rev_{{slide.ID}}')">
Читать полностью
</button>
</div>
{% else %}
<div class="main-food_reviews-slide-text">{{ content }}</div>
{% endif %}
{% endif %}
</div>
{% include "shop/reviews-slide_element.twig" with {slide: slide} %}
{% endfor %}
</div>
<div class="main-{{section}}_reviews-slider-index "></div>

@ -0,0 +1,40 @@
<div class="main-food_reviews-slide swiper-slide">
{% if fn('get_field', 'media_file', slide) %}
<a class="main-food_reviews-slide-media_file-wrap" href="{{fn('get_field', 'media_file', slide)}}" data-fancybox><img class="main-food_reviews-slide-media_file" src="{{fn('get_field', 'media_file', slide)}}"></a>
{% endif %}
{% if fn('get_field', 'media', slide) %}
<div class="main-food_reviews-slide-media_wrap">
<a href="{{fn('get_field', 'media_file', slide)}}" data-fancybox><img class="main-food_reviews-slide-media_main" src="{{fn('get_field', 'media_file', slide)}}"></a>
{% for file in fn('get_field', 'media', slide) %}
<img {% if file.video %}data-video="{{file.video}}"{% endif %} class="main-food_reviews-slide-media_mini {% if file.video %}--video{% endif %}" src="{{file.img}}">
{% endfor %}
</div>
{% endif %}
<div class="main-food_reviews-slide-head">
{% if fn('get_field', 'photo', slide) %}
<img class="main-food_reviews-slide-photo" src="{{fn('get_field', 'photo', slide)}}">
{% endif %}
<p class="main-food_reviews-slide-name {% if not fn('get_field', 'photo', slide) %}--no-padding-left{% endif %}">{{fn('get_the_title', slide)}}</p>
</div>
<p class="main-food_reviews-slide-position {% if not fn('get_field', 'photo', slide) %}--no-padding-left{% endif %} {% if fn('get_field', 'type', slide) == 'media' %}--no-min-height{% endif %}">{{fn('get_field', 'desc', slide)}}</p>
{% if fn('get_field', 'text', slide) %}
{% if fn('get_field', 'type', slide) == 'media' %}
{% set maxLength = 160 %}
{% else %}
{% set maxLength = 350 %}
{% endif %}
{% set content = fn('get_field', 'text', slide) %}
{% if content|length > maxLength %}
<div class="main-food_reviews-slide-text">{{ content[:maxLength] ~ '...' }}
<button class="read-more" onclick="showModal('modal-rev_{{slide.ID}}')">
Читать полностью
</button>
</div>
{% else %}
<div class="main-food_reviews-slide-text">{{ content }}</div>
{% endif %}
{% endif %}
</div>

@ -0,0 +1,266 @@
{% set bodyClass = 'bg-white' %}
{% set mainClass = '' %}
{% extends 'layout.twig' %}
{% block content %}
<div class="product-single">
<div class="wrapper">
<div class="breadcrumbs">
<a href="https://cosmopet-test-dumb.cp.good-production.xyz/" class="breadcrumbs__item">
Главная
</a>
<a href="https://cosmopet-test-dumb.cp.good-production.xyz/product-category/dlia-sobak/korm-dlya-sobak/" class="breadcrumbs__item">
Корм для собак
</a>
<a href="" class="breadcrumbs__item">
{{ post.title }}
</a>
</div>
<div class="product_main --fish">
<div class="product-info">
<h1 class="product-title --pc">
Сухой корм,
для&nbsp;средних
и&nbsp;крупных пород
</h1>
<div class="product-contains">
<h2 class="product-block-title">СОСТАВ</h2>
<div class="product-contains-text">Животные белки 49% (Дегидрированная индейка 33%, белковый концентрат из Черной львинки 10%, печеночный гидролизат 5%, сухая плазма крови 1%), цельный рис, горошек, жир индейки, автолизат пивных дрожжей, витаминно-минеральный комплекс, лососевое масло (источник незаменимых Омега-3 жирных кислот), клетчатка гороха, таурин, комплекс пребиотиков (натуральные пребиотики FOS и MOS), экстракт граната, юкка Шидигера, экстракт розмарина (натуральный антиоксидант).</div>
</div>
<div class="product-values">
<h2 class="product-values-title">ПИЩЕВАЯ ЦЕННОСТЬ</h2>
<div class="product-values-list">
<div class="product-values-item">
<div class="product-values-item__name">Сырой белок</div>
<div class="product-values-item-val">14%</div>
</div>
<div class="product-values-item">
<div class="product-values-item__name">Сырой жир</div>
<div class="product-values-item-val">8%</div>
</div>
<div class="product-values-item">
<div class="product-values-item__name">Сырая клетчатка</div>
<div class="product-values-item-val">26%</div>
</div>
</div>
<div class="product-vitamins">
<div class="product-vitamins-title">
Витамины на кг
</div>
<div class="product-vitamins-list">
<div class="product-vitamins-item">A, ME — 34000</div>
<div class="product-vitamins-item">D3, ME — 1600</div>
</div>
</div>
</div>
</div>
{% set thumbnail = product.get_image_id() ? function('wp_get_attachment_image_url', product.get_image_id(), '') : function('wc_placeholder_img_src') %}
{% set images = product.get_gallery_image_ids() %}
<div class="product-gallery">
<div style="--swiper-navigation-color: #fff; --swiper-pagination-color: #fff" class="swiper mySwiper2">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="{{ thumbnail }}" alt="">
</div>
{% if images %}
{% for image in images %}
<div class="swiper-slide"><img src="{{ function('wp_get_attachment_image_url', image, '') }}" alt=""></div>
{% endfor %}
{% endif %}
</div>
</div>
<div thumbsSlider="" class="swiper mySwiper">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="{{ thumbnail }}" alt="">
</div>
{% if images %}
{% for image in images %}
<div class="swiper-slide"><img src="{{ function('wp_get_attachment_image_url', image, '') }}" alt=""></div>
{% endfor %}
{% endif %}
</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>
<h1 class="product-title --m">
Сухой корм,
для&nbsp;средних
и&nbsp;крупных пород
</h1>
<div class="product-constructor">
<div class="product-constructor__block">
<div class="product-constructor__block-title">ВКУС КОРМА</div>
<div class="product-constructor__block-list">
<a href="" class="product-constructor__block-item">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/beef.svg" alt="" class="product-constructor__block-item-icon svg">
<div class="product-constructor__block-item-name">Говядина</div>
</a>
<a href="" class="product-constructor__block-item active">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/fish.svg" alt="" class="product-constructor__block-item-icon active svg">
<div class="product-constructor__block-item-name">Рыба</div>
</a>
<a href="" class="product-constructor__block-item">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/turkey.svg" alt="" class="product-constructor__block-item-icon svg">
<div class="product-constructor__block-item-name">Индейка</div>
</a>
<a href="" class="product-constructor__block-item">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/lamb.svg" alt="" class="product-constructor__block-item-icon svg">
<div class="product-constructor__block-item-name">Ягненок</div>
</a>
</div>
</div>
<div class="product-constructor__block">
<div class="product-constructor__block-title">РАЗМЕР СОБАКИ</div>
<div class="product-constructor__block-list">
<a href="" class="product-constructor__block-item active">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/mini.svg" alt="" class="product-constructor__block-item-icon svg">
<div class="product-constructor__block-item-name">Мини</div>
</a>
<a href="" class="product-constructor__block-item">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/avg.svg" alt="" class="product-constructor__block-item-icon active svg">
<div class="product-constructor__block-item-name">Мелкие</div>
</a>
<a href="" class="product-constructor__block-item">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/lg.svg" alt="" class="product-constructor__block-item-icon svg">
<div class="product-constructor__block-item-name">Средние и крупные</div>
</a>
</div>
</div>
<div class="product-constructor__block">
<div class="product-constructor__block-title">ВОЗРАСТ СОБАКИ</div>
<div class="product-constructor__block-list">
<a href="" class="product-constructor__block-item active">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/dog-face.svg" alt="" class="product-constructor__block-item-icon svg">
<div class="product-constructor__block-item-name">до 1 года</div>
</a>
<a href="" class="product-constructor__block-item">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/dog-face.svg" alt="" class="product-constructor__block-item-icon active svg">
<div class="product-constructor__block-item-name">1-7 лет</div>
</a>
<a href="" class="product-constructor__block-item">
<img src="/wp-content/themes/cosmopet/modules/shop/components/single-product_new/assets/img/dog-face.svg" alt="" class="product-constructor__block-item-icon svg">
<div class="product-constructor__block-item-name">7+ лет</div>
</a>
</div>
</div>
<div class="product-constructor__block">
<div class="product-constructor__block-title">ВЕС УПАКОВКИ</div>
<div class="product-constructor__block-list">
<a href="" class="product-constructor__block-item active">
<div class="product-constructor__block-item-name">0.8 кг</div>
</a>
<a href="" class="product-constructor__block-item">
<div class="product-constructor__block-item-name">2 кг</div>
</a>
<a href="" class="product-constructor__block-item">
<div class="product-constructor__block-item-name">5 кг</div>
</a>
</div>
</div>
<div class="product-constructor__block">
<div class="product-constructor__block-title">СЕРИЯ</div>
<div class="product-constructor__block-list">
<a href="" class="product-constructor__block-item active">
<div class="product-constructor__block-item-name">Стандартная</div>
</a>
<a href="" class="product-constructor__block-item">
<div class="product-constructor__block-item-name">PRO - с пробиотиками</div>
</a>
</div>
</div>
<div class="product-price">
<div class="product-price-main">
1303
</div>
<div class="product-price-disc">
<div class="product-price-old">1449₽</div>
<div class="product-price-percent">
- 10%
</div>
</div>
</div>
<button class="product-btn">
<span>Добавить в корзину</span>
</button>
</div>
</div>
<div class="product-desc">
<div class="product-block-title">
ОПИСАНИЕ
</div>
<div class="product-desc-text">
Этот легкоусвояемый рацион содержит исключительно натуральные ингредиенты. Он обогащён белком, витаминами, минералами и антиоксидантами. Благодаря своей высокопитательной рецептуре, Cosmocat способствует здоровому росту и развитию котёнка
</div>
</div>
</div>
<div class="product-reviews">
<div class="product-reviews__head wrapper">
<div class="product-block-title">
Отзывы Специалистов
</div>
</div>
<div class="product-reviews-slider swiper">
<div class="swiper-wrapper">
{% for slide in reviews %}
{% include "shop/reviews-slide_element.twig" with {slide: slide} %}
{% endfor %}
</div>
</div>
</div>
{% if related_products %}
<div class="product-similar">
<div class="product-similar__head wrapper">
<div class="product-block-title">
вашему питомцу может понравиться
</div>
<div class="product-similar-slider">
<div class="swiper-wrapper">
{% for related_product in related_products %}
<div class="swiper-slide">
{% set categories = related_product.get_category_ids() %}
{% set section = '' %}
{% for cat in categories %}
{% if cat == 365 %}
{% set section = 'food' %}
{% elseif cat == 367 %}
{% set section = 'treats' %}
{% endif %}
{% endfor %}
{% if section == '' %}
{% set section = 'acc' %}
{% endif %}
{% include 'shop/product-card_element.twig' with {_product : fn('wc_get_product', related_product), section: section} %}
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% for slide in rev_list %}
{% include 'modal/rewiew_modal.twig' with {slide : slide} %}
{% endfor %}
{% endblock %}
Loading…
Cancel
Save