@import url("shops.css");

/* ==========================================================================
   Shop detail page
   ========================================================================== */

.page-shop .site-header__top,
.page-shop .site-header__bar {
  background-color: #FFFFFF;
  background-image: none;
}

.page-shop .site-header__top {
  background: #F5F5F5;
}

.page-shop .site-header__bar {
  background: #FFFFFF;
}

.page-shop .header-nav__link {
  color: #171A24;
}

.page-shop .burger__line {
  background-color: #171A24;
}

.shop-page {
  width: 100%;
  background: #F5F5F5;
  color: #171A24;
  padding-top: calc(var(--site-header-height-mobile) + 16px);
  padding-bottom: 60px;
}
.shop-page .news-page-card__date{
    display: flex;
    align-items: center;
    gap: 5px;
}
.shop-page .container {
  padding-left: 8px;
  padding-right: 8px;
}

.shop-page__head {
  margin-bottom: 16px;
}

/* Breadcrumbs */

.shop-page .breadcrumbs__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.shop-page .breadcrumbs__link,
.shop-page .breadcrumbs__current,
.shop-page .breadcrumbs__separator {
  display: inline-flex;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
}

.shop-page .breadcrumbs__link {
  color: rgba(23, 26, 36, 0.8);
  text-decoration: none;
}

.shop-page .breadcrumbs__separator,
.shop-page .breadcrumbs__current {
  color: rgba(23, 26, 36, 0.2);
}

/* Layout */

.shop-page__layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-page__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-page__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-page__title {
  margin: 0;
  font-family: "Golos", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.02em;
  color: #171A24;
}

.shop-page__logo {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
}

.shop-page__logo-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Contacts card */

.shop-page__contacts {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 16px 32px;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(23, 26, 36, 0.1);
  border-radius: 16px;
}

.shop-page__contacts-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.shop-page__contacts-title {
  margin: 0;
  font-family: "Golos", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  color: #171A24;
}

.shop-page__map-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-top: 2px;
  text-decoration: none;
  color: #FF6B35;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.02em;
}

.shop-page__map-link-text {
  text-decoration: underline;
}

.shop-page__map-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.shop-page__contacts-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 12px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.shop-page__contacts-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.shop-page__contacts-item:last-child{
    margin-top: 4px;
    border-top:1px solid rgba(23, 26, 36, 0.1);
    padding-top: 16px;
    width: 100%;
}
.shop-page__contacts-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

.shop-page__contacts-text {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: #171A24;
  opacity: 0.8;
}

.shop-page__contacts-link {
  color: inherit;
  text-decoration: none;
}

/* Tags */

.shop-page__tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.shop-page__tag {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 14px 5px 10px;
  gap: 6px;
  background: #FFFFFF;
  border: 2px solid #F0447C;
  border-radius: 30px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 19px;
  color: #171A24;
}

.shop-page__tag--shoes {
  border-color: #F87B14;
}

.shop-page__tag--other {
  border-color: #DA875A;
}

.shop-page__tag-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Description */

.shop-page__desc {
  margin: 0;
  max-width: 779px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 160%;
  letter-spacing: -0.02em;
  color: #171A24;
  opacity: 0.8;
}

.shop-page__desc p {
  margin: 0;
}

.shop-page__desc p + p {
  margin-top: 12px;
}

.shop-page__desc p + ul {
  margin-top: 0;
}

.shop-page__desc ul + p {
  margin-top: 12px;
}

.shop-page__desc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-page__desc li {
  margin: 0;
  padding-left: 0;
}

.shop-page__desc li::before {
  content: "— ";
}

.shop-page__desc li + li {
  margin-top: 0;
}
.shop-page__desc img{
  height: auto !important;
}

/* Section headings */

.shop-page__section-title {
  margin: 0 0 16px;
  font-family: "Golos", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.02em;
  color: #171A24;
}

/* Gallery */

.shop-page__photos {
  margin-top: 28px;
  overflow: visible;
}

.shop-gallery {
  position: relative;
  width: 100%;
}

.shop-gallery__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}

.shop-gallery__track {
  display: flex;
  flex-direction: row;
  width: 100%;
  transition: transform 0.35s ease;
}

.shop-gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.shop-gallery__image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid rgba(23, 26, 36, 0.1);
  border-radius: 16px;
}

.shop-gallery__nav {
  display: none;
}

.shop-gallery__controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.shop-gallery__arrows {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.shop-gallery__arrow {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(23, 26, 36, 0.1);
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-gallery__arrow-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.shop-gallery__dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.shop-gallery__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(195, 195, 195, 0.4);
  cursor: pointer;
}

.shop-gallery__dot--active {
  width: 8px;
  height: 8px;
  background: #FF6B35;
}

/* Similar shops */

.shop-page__similar {
  margin-top: 40px;
}

.shop-page__similar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.shop-page__similar-item {
  min-width: 0;
  list-style: none;
}

.shop-page__similar .shop-card {
  width: 100%;
  height: 130px;
}

.shop-page__similar .shop-card__meta {
  display: none;
}

@media (min-width: 768px) {
  .shop-page {
    padding-top: calc(var(--site-header-height-desktop) + 16px);
    padding-bottom: 80px;
  }
.shop-page .news-page-card__date{
    margin-bottom: 10px;
}
  .shop-page .container {
    padding-left: 0;
    padding-right: 0;
  }

  .shop-page .breadcrumbs__link,
  .shop-page .breadcrumbs__current,
  .shop-page .breadcrumbs__separator {
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
  }

  .shop-page__head {
    margin-bottom: 32px;
  }

  .shop-page__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .shop-page__aside {
    width: 393px;
    flex-shrink: 0;
    gap: 20px;
  }

  .shop-page__main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: 779px;
    gap: 0;
  }
    .static-page .shop-page__main, .static-page .shop-page__desc{
        max-width:100%;
    }
    
  .shop-page__title {
    font-size: 52px;
    line-height: 62px;
    margin-bottom: 16px;
  }

  .shop-page__logo {
    border-radius: 24px;
  }

  .shop-page__logo-image {
    min-height: 240px;
    object-fit: contain;
  }

  .shop-page__contacts {
    padding: 20px 24px 32px;
    border-radius: 24px;
  }

  .shop-page__contacts-title {
    font-size: 32px;
  }

  .shop-page__contacts-text {
    font-size: 17px;
    line-height: 23px;
  }

  .shop-page__contacts-item {
    gap: 8px;
  }

  .shop-page__tags {
    gap: 6px;
    margin-bottom: 12px;
  }

  .shop-page__tag {
    padding: 4px 16px 5px 12px;
    min-height: 35px;
    font-size: 15px;
    line-height: 20px;
  }

  .shop-page__tag-icon {
    width: 20px;
    height: 20px;
  }

  .shop-page__desc {
    font-size: 18px;
    line-height: 160%;
  }

  .shop-page__section-title {
    font-weight: 700;
    font-size: 38px;
    line-height: 100%;
    margin-bottom: 24px;
  }

  .shop-page__photos {
    margin-top: 48px;
    overflow: visible;
  }

  .shop-gallery__viewport {
    overflow: hidden;
    border-radius: 0;
  }

  .shop-gallery__track {
    gap: 20px;
    transform: none !important;
  }

  .shop-gallery__slide {
    flex: 1 1 0;
    min-width: 0;
  }

  .shop-gallery__image {
    width: 100%;
    height: 400px;
    border-radius: 24px;
  }

  .shop-gallery__controls {
    display: none;
  }

  .shop-gallery__nav {
    display: block;
  }

  .shop-gallery__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(23, 26, 36, 0.1);
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .shop-gallery__nav-btn--prev {
    left: 0;
  }

  .shop-gallery__nav-btn--next {
    right: 0;
  }

  .shop-page__similar {
    margin-top: 56px;
  }

  .shop-page__similar-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .shop-page__similar-item {
    flex: none;
  }

  .shop-page__similar .shop-card {
    width: 290px;
    height: 400px;
  }

  .shop-page__similar .shop-card__shadow {
    background: rgba(0, 0, 0, 0.5);
  }

  .shop-page__similar .shop-card__title {
    font-size: 32px;
    line-height: 38px;
  }

  .shop-page__similar .shop-card__meta {
    display: flex;
    bottom: 14px;
    left: 16px;
    right: 16px;
  }
}

@media (min-width: 768px) {
  .shop-page .container {
    overflow: visible;
  }
}

@media (max-width: 767px) {
  .shop-page__head {
    margin-bottom: 24px;
  }

  .shop-page__layout {
    gap: 12px;
  }

  .shop-page__main {
    display: contents;
  }

  .shop-page__title {
    order: 1;
    margin: 0;
  }

  .shop-page__aside {
    order: 2;
    gap: 8px;
  }

  .shop-page__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 92px;
    min-height: 92px;
    padding: 8px 16px;
  }

  .shop-page__logo-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 76px;
    object-fit: contain;
  }

  .shop-page__tags {
    order: 3;
    margin-bottom: 0;
  }

  .shop-page__desc {
    order: 4;
  }
}
