/* Variables */

:root {
  --color-primary-mid: #c09b56;
  --color-primary-mid-darker: #ac853d;
  /* --color-primary !do not use, already used in shoptet */
  --color-primary-darker: #c07f56;
  --color-primary-dark: #8b664f;
  --color-secondary: #eee9e5;
  --color-secondary-dark: #b7b2a9;
  --color-secondary-light: #fcf8f5;
  --color-secondary-hover: #dfbd7e;
  --color-neutral-dark: #161616;
  --color-neutral-darker: #767676;
  --color-neutral-light: #fff;
  --color-text-on-light: #161616;
  --color-text-positive: #368b60;
  --font-primary: 'Playfair Display', 'sans-serif';
  --font-secondary: 'Noto Sans', 'sans-serif';
  --font-tertiary: 'Jost', 'sans-serif';
}

/* Elements */

body {
  font-family: var(--font-secondary);
  color: var(--color-text-on-light);
  background: var(--color-secondary-light);
}

/* Utility */

.content-wrapper {
	background: transparent;
}

.content {
  padding: 0;

  &:has(*) {
    margin-block: 0 clamp(32px, 4vw, 56px);
  }
}

.base-heading {
  position: relative;
  margin-block: clamp(24px, 4vw, 48px) clamp(32px, 4vw, 56px);
  padding-top: 28px;
  text-align: center;
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 40px;
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text-on-light);

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 18px;
    height: 24px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-chocolate-primary-dark.svg') no-repeat center;
    background-size: contain;
  }
}

.base-heading--h2 {
  margin-block: clamp(24px, 4vw, 40px);
  line-height: 32px;
  font-size: 24px;
  font-weight: 600;

  &::before {
    display: none;
  }
}

.base-heading--align-left {
  text-align: left;

  &::before {
    left: 0;
    transform: translateX(0);
  }
}

.base-button {
  display: block;
  width: fit-content;
  padding: 13px 40px;
  line-height: 24px;
  font-size: 16px;
  font-weight: 600;
  background: var(--color-primary-mid);

  &:hover {
    color: var(--color-text-on-light);
    background: var(--color-secondary-hover);
  }
}

.btn.btn-cart,
.btn.btn-conversion, 
a.btn.btn-cart,
a.btn.btn-conversion {

  &:hover {
    color: var(--color-text-on-light);
  }
}

.homepage-box {
  border: 0;
}

@media only screen and (min-width: 1440px) {

  .container {
    width: 1420px;
  }
}

/* editor-content START */

.editor-content {
  font-family: var(--font-secondary);
  line-height: 24px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-on-light);
}

.editor-content h3 {
  margin-block: 0 32px;
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 32px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.15px;
}

.editor-content h4 {
  margin-block: 0 16px;
  line-height: 20px;
  font-size: 18px;
  font-weight: 700;
}

.editor-content p {
  margin-bottom: 24px;
  letter-spacing: 0.1px;
}

.editor-content table {
  margin-bottom: 24px;
}

.editor-content table tr {
  
  &:nth-child(2n) {
    background: var(--color-secondary);
  }
}

.editor-content table th,
.editor-content table td {
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

.editor-content table th {
  min-width: 200px;
  line-height: 24px;
  font-weight: 600;
  font-size: 16px;
}

.editor-content iframe {
  outline: none;
}

.editor-block {
  margin-bottom: 32px;
}

.editor-block__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.editor-block__row > div {
  flex-basis: calc(50% - 16px);
}

.editor-block__row--reverse {
  flex-direction: row-reverse;
}

@media only screen and (max-width: 767px) {

  .editor-content table tr {
    display: flex;
    flex-direction: column;
  }

  .editor-block__row > div {
    flex-basis: 100%;
  }
}

/* editor-content END */

/* header */

.site-msg.information > .container {
  width: 1418px;
}

.site-msg.information {
  position: relative;
  left: auto;
  bottom: auto;
  opacity: 1;
  max-width: 100%;
  height: auto;
  min-height: 40px;
  line-height: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-neutral-light);
  background: var(--color-primary-dark);
  box-shadow: none;
}

.site-msg.information .text {
  margin-top: 3px;
  text-align: center;
}

.site-msg .close {
  margin-top: -5px;
}

.container{

  &:has(.top-navigation-menu) {
    padding-inline: 0;
  }
}

.top-navigation-bar {
  padding-block: 5px;
  border: 0;
  background: var(--color-primary-mid);
}

.top-navigation-bar-menu {
  text-align: left;
  text-transform: none;
  line-height: 18px;
  font-size: 14px;
  font-weight: 600;
}

.top-navigation-bar-menu > li {
  padding-inline: 0;
  font-size: 14px;

  &::before {
    display: none;
  }
}

.top-navigation-bar-menu li a {
  padding: 4px 16px;
}

.top-navigation-bar-menu li:first-child a {
  padding-left: 0;
}

.top-navigation-bar .dropdown button,
.top-navigation-bar a {
  color: var(--color-text-on-light);
}

.top-navigation-contacts,
.top-navigation-menu {
  background: transparent;
}

.top-navigation-bar .container > .top-navigation-menu {
  flex: 0 1 auto;
}

.top-navigation-bar .container > .top-navigation-contacts {
  display: none;
}

.top-navigation-menu-trigger {

  &:before {
    color: var(--color-text-on-light);
  }
}

.top-navigation-bar  .top-nav-button-login {
  position: relative;
  padding-left: 25px;
  padding-right: 15px;
  line-height: 18px;
  font-size: 14px;
  font-weight: 600;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: block;
    width: 20px;
    height: 20px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-circle-user.svg') no-repeat center;
    background-size: contain;
  }
}

.top-navigation-tools__restration-link {
  padding-left: 16px;
  border-left: 1px solid var(--color-neutral-dark);
  line-height: 18px;
  font-size: 14px;
  font-weight: 600;
}

.popup-widget.login-widget {
  
  &::before {
    right: 120px;
  }
}

:where(body.ums_a11y_login--on) .top-nav-button-login {
  color: var(--color-text-on-light);
}

.navigation-wrapper {
  padding-inline: 0;
}

#header .site-name a img {
  max-height: 90px;
}

.header-top {
  position: relative;
  justify-content: space-between;
  height: 135px;

  &::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 100vw;
    height: 1px;
    background: var(--color-secondary);
  }
}

.header-top > .site-name-wrapper {
  flex: 0 1 91px;
}

.header-top > .search {
  flex: 0 1 33.8%;
}

:where(.ums_forms_redesign--off) .form-control {
  border-radius: 0;
}

.header-top > .header-top__contacts {
  flex: 0 1 172px;
}

.header-top > .navigation-buttons {
  flex: 0 1 9%;
}

.header-top__contacts {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 40px;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: block;
    width: 32px;
    height: 32px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-circle-phone.svg') no-repeat center;
    background-size: contain;
  }
}

.header-top__contacts > .project-phone {
  margin-bottom: 2px;
  line-height: 20px;
  font-size: 16px;
  font-weight: 700;
}

.header-top__contacts__opening-hours {
  line-height: 14px;
  font-size: 12px;
  font-weight: 400;
}

.header-top .btn.cart-count {
  
  &::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin-right: 16px;
    background: var(--color-neutral-dark) url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-mall.svg') no-repeat center;;
  }
}

.header-top .btn.cart-count:not(.full) > .cart-price{
  position: relative;
  font-size: 0;

  &::before {
    content: '0,00 Kč';
    position: relative;
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    font-size: 16px;
  }
}

#header .cart-count {
  display: flex;
  align-items: center;
  text-wrap: nowrap;
  line-height: 20px;
  font-size: 16px;
  font-weight: 700;
}

.navigation-buttons > a[data-target="cart"] i {
  left: 48px;
  transform: translateX(-50%) translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 14px;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--color-secondary-light);
  background: var(--color-primary-dark);
}

:where(.ums_forms_redesign--off) .form-control,
:where(.ums_forms_redesign--off) select {
  border: 0;
  background: var(--color-secondary);
}

:where(.ums_forms_redesign--off) .form-control {
  height: 48px;
  line-height: 18px;
  font-size: 14px;
  padding: 15px 16px;
}

:where(.ums_forms_redesign--off) input::placeholder {
  line-height: 18px;
  font-size: 14px;
  color: var(--color-text-on-light);
  opacity: 0.5;
}

:where(.ums_forms_redesign--off) .compact-form .btn {
  position: absolute;
  width: 48px;
  height: 48px;
  font-size: 0;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%)translateY(-50%);
    display: block;
    width: 24px;
    height: 24px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-search.svg') no-repeat center;
    background-size: contain;
  }
}

.btn.btn-default,
a.btn.btn-default {
  border: 0;
  background: var(--color-secondary);

  &:hover {
    border: 0;
    background: var(--color-primary-mid);
  }
}

#navigation {
  min-height: 64px;
  margin-inline: 0;
}

.navigation-in {
  background: transparent;
}

.navigation-in > ul > li {
  border: 0;
}

.navigation-in > ul > li > a {
  position: relative;
  margin-inline: clamp(32px, 4vw, 56px) 0;
  padding: 16px 8px;
  line-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-on-light);

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 0;
    background: var(--color-primary-dark);
    transition: 0.3s ease height;
  }

  &:hover {
    margin-inline: clamp(32px, 4vw, 56px) 0;
    padding-inline: 8px;
    
    &::before {
      height: 5px;
    }
  }
}

.navigation-in > ul > li:first-child > a {
  margin-left: 0;

  &:hover {
    padding-inline: 8px;
  }
}

.navigation-in > ul > li.ext.exp:first-child > a {
  padding-left: 8px;
}

.navigation-in > ul > li.ext.exp > a {
  margin-inline: clamp(32px, 4vw, 56px) 0;
  padding-inline: 8px;
}

.navigation-in ul li a b {
  font-weight: 600;
}

.menu-helper {
  top: 150px;
}

.navigation-in > ul > li.exp > ul,
.navigation-in ul.menu-level-2 {
  top: auto;
}

@media only screen and (max-width: 1439px) {

  .site-msg.information > .container {
    width: 1178px;
  }
}

@media only screen and (max-width: 1199px) {

  .site-msg.information > .container {
    width: 972px;
  }

  .header-top .btn.cart-count {
  
    &::before {
      margin-right: 0;
    }
  }
}

@media only screen and (max-width: 991px) {

  .site-msg.information > .container {
    width: 747px;
  }
}

@media only screen and (max-width: 767px) {

  .type-index .overall-wrapper {
    padding-top: 60px;
  }

  .site-msg.information > .container {
    width: 100%;
  }

  #header .site-name a img {
    max-height: 50px;
  }

  .top-navigation-bar {
    border: 0;
    background: var(--color-secondary-light);
  }

  .top-navigation-tools__restration-link {
    display: none;
  }

  .header-top {
    height: 0;

    &::before {
      display: none;
    }
  }

  #header .cart-count {
    top: -36px;
    right: 45px;
  }

  .header-top .btn.cart-count {
  
    &::before {
      width: 32px;
      height: 32px;
      margin-right: 16px;
      background-size: 16px;
    }
  }

  .navigation-buttons > a[data-target="cart"] i {
    left: 32px;
  }

  .header-top__contacts {
    display: none;
  }

  .navigation-in > ul > li:first-child > a {
    margin-left: 32px;
  }
}

/* breadcrumbs START */

.breadcrumbs-wrapper {
  display: flex;
  min-height: 64px;
  margin-bottom: 24px;
}

.breadcrumbs {
  border-bottom: none;
  background: transparent;

  &::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-breadcrumbs-home.svg') no-repeat center;
  }
}

.breadcrumbs > span {
  border-left: 1px solid var(--color-neutral-dark);

  &:first-child {
    border-left: none;
  }
}

.breadcrumbs > span > a,
.breadcrumbs > span > span {
  min-height: 20px;
  padding: 0 8px;
  color: var(--color-text-on-light);
}

.breadcrumbs > span > a {
  text-decoration: underline;
  font-weight: 600;

  &::before,
  &::after {
    display: none;
  }
}

/* breadcrumbs END */

/* before-carousel section START */

.before-carousel {
  position: relative;
  background: var(--color-secondary);

  &::before,
  &::after {
    content: '';
    position: absolute;
    display: block;
  }

  &::before {
    top: 16px;
    right: 0;
    width: 25vw;
    max-width: 354px;
    aspect-ratio: 354 / 300;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/before-carousel-cocoa.svg') no-repeat right center;
    background-size: contain;
  }

  &::after {
    top: 100%;
    width: calc(100vw + 1px);
    height: 16px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/before-carousel-edge.svg') repeat-x center top;
  }
}

.before-carousel.homepage-box {
  margin-block: 0 clamp(32px, 4vw, 56px);
  padding-block: 24px;
}

.before-carousel > .content-wrapper-in > .container {
  padding-inline: 0;
}

.before-carousel > .content-wrapper-in > .container > .banners-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1.7%;

  &::before,
  &::after {
    position: absolute;
  }

  &::after {
    right: 0;
  }
}

.before-carousel > .content-wrapper-in > .container > .banners-row > div {

  &:has(.carousel) {
    width: 74.3%;
    max-width: 1055px;
    aspect-ratio: 1055 / 492;
  }

  &:has(.next-to-carousel-banners) {
    width: 24%;
    max-width: 341px;
    aspect-ratio: 341 / 492;
    padding-left: 0;
  }
}

.before-carousel .row {
  margin-inline: 0;
}

.before-carousel .banner-wrapper {
  margin-top: 0;
}

@media only screen and (max-width: 767px) {

  .before-carousel > .content-wrapper-in > .container {
    padding-inline: 10px;
  }

  .before-carousel > .content-wrapper-in > .container > .banners-row > div {

    &:has(.carousel),
    &:has(.next-to-carousel-banners) {
      padding-inline: 0;
    }
  }
}

/* before-carousel section END */

/* benefitBanner section START */

.benefitBanner {
  margin-block: 0;
  border-style: solid;
  border-width: 1px 0;
  border-color: var(--color-secondary);
}

.benefitBanner__item {
  margin-bottom: 0;
  border-right: 1px solid var(--color-secondary);

  &:last-child {
    border-right: 0;
  }

  &:has(.benefitBanner__link) {
    padding: 0;
  }
}

.benefitBanner__item,
.benefitBanner__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 40px);
}

.benefitBanner__picture {
  flex: 0 0 56px;
  margin-bottom: 24px;
  background: var(--color-secondary);
}

.benefitBanner__title {
  display: block;
  margin-bottom: 8px;
  line-height: 24px;
  letter-spacing: 0;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.benefitBanner__data {
  line-height: 16px;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-secondary);
}

@media only screen and (max-width: 991px) {

  .benefitBanner__item {
    border-top: 1px solid var(--color-secondary);

    &:first-child,
    &:nth-child(2) {
      border-top: 0;
    }
    
    &:nth-child(2n) {
      border-right: 0;
    }
  }
}

@media only screen and (max-width: 479px) {

  .benefitBanner__item {
    border-right: 0;

    &:nth-child(2) {
      border-top: 1px solid var(--color-secondary);
    }
  }
}

/* benefitBanner section END */

/* middle-banners section START */

.middle-banners-wrapper {
  margin-block: 0 clamp(32px, 4vw, 56px);
  padding-block: 0;
}

.body-banners {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;

  &::before {
    margin-right: -8px;
  }

  &::after {
    margin-left: -8px;
  }
}

.body-banners > div {

  &:has(.banner-wrapper) {
    position: relative;
    width: calc(25% - 6px);
    aspect-ratio: 349 / 228;
    padding-inline: 0;
    text-align: center;
  }
}

.banner-wrapper {
  margin: auto;
}

.category-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 -20px;
  padding: 0;
}

.category-list__item {
  flex-basis: calc(25% - 6px);
}

.category-list__item__link,
.category-list__item__link > picture,
.category-list__item__link > picture > img {
  display: block;
  width: 100%;
  height: 100%;
}

.category-list__item__link {

  &:hover {
    transform: scale(1.02);
  }
}

.category-list__item__link > picture > img {
  object-fit: contain;
}

@media only screen and (max-width: 991px) {

  .body-banners {
    margin-inline: -10px;
  }

  .body-banners > div {
    
    &:has(.banner-wrapper) {
      width: calc(50% - 4px);
    }
  }

  .category-list__item {
    flex-basis: calc(50% - 4px);
  }
}

@media only screen and (max-width: 767px) {
  
  .category-list {
    margin: 0 -10px;
  }
}

@media only screen and (max-width: 479px) {

  .body-banners > div {
    
    &:has(.banner-wrapper) {
      width: 100%;
    }
  }

  .category-list__item {
    flex-basis: 100%;
  }
}

/* middle-banners section END */

/* products section START */

.h4.homepage-group-title {
  position: relative;
  margin-block: clamp(48px, 4vw, 86px) clamp(32px, 4vw, 56px);
  padding-top: 28px;
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 40px;
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text-on-light);

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 18px;
    height: 24px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-chocolate-primary-dark.svg') no-repeat center;
    background-size: contain;
  }
}

.products-block > div {
  width: 25%;
  border-top: 1px solid var(--color-secondary);
  border-right: 1px solid var(--color-secondary);

  &:nth-child(3n) {
    border-right-style: solid;
  }

  &:nth-child(-n+4) {
    border-top: none;
  }

  &:nth-child(4n) {
    border-right: none;
  }

  &:last-child {
    border-right: none;
  }
}

.products-block.products > div {
  padding: clamp(12px, 4vw, 24px);
}

.products-block .p a.image {
  display: flex;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-secondary);
  background: var(--color-neutral-light);
}

.products-block .p a.image img {
  object-fit: contain;
}

.products-block .p-code,
.products-block .p-bottom .p-desc {
  display: none;
}

.products-block .ratings-wrapper {
  display: none;
}

.product-in__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block: 24px;
}

.availability {
  font-weight: 500;
}

.availability--in-stock {
  color: var(--color-text-positive);
}

.products-block.products .p .price {
  padding: 4px 8px;
  line-height: 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-on-light);
  background: var(--color-secondary);
}

.products-block.products .p .name {
  height: 42px;
  margin-bottom: 24px;
  line-height: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-on-light);
}

.products-block .p-bottom > div {
  justify-content: flex-end;
}

.btn.add-to-cart-button {
  padding: 15px clamp(32px, 4vw, 56px);
  line-height: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-on-light);
  background: var(--color-primary-mid);

  &::before {
    display: none;
  }
}

@media only screen and (max-width: 991px) {
  
  .products-block > div {
    width: 50%;

    &:nth-child(-n+4) {
      border-top: 1px solid var(--color-secondary) !important;
    }

    &:nth-child(-n+2) {
      border-top: none !important;
    }

    &:nth-child(2n) {
      border-right: none !important;
    }
  }
}

@media only screen and (max-width: 320px) {

  .products-block > div {
    width: 100%;
    border-right: none !important;

    &:nth-child(-n+2) {
      border-top: 1px solid var(--color-secondary) !important;
    }

    &:nth-child(1) {
      border-top: none !important;
    }

    &:nth-child(2n) {
      border-right: none !important;
    }
  }
}

/* products section END */

/* process section START */

.process-section {
  position: relative;
  margin-block: clamp(24px, 4vw, 48px) clamp(64px, 10vw, 104px);
  padding-block: clamp(24px, 4vw, 48px) clamp(32px, 4vw, 64px);

  &::before,
  &::after {
    content: '';
    position: absolute;
    left: 50%;
    display: block;
    width: calc(100vw + 1px);
  }

  &::before {
    z-index: -1;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    height: 100%;
    background: var(--color-primary-dark);
  }

  &::after {
    top: 100%;
    transform: translateX(-50%) translateY(-1px);
    height: 16px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/process-section-edge.svg') repeat-x center top;
  }
}

.process-section__content {
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: -12px;
    left: calc(50% - clamp(4px, 4vw, 16px));
    transform: translateX(-50%);
    display: block;
    width: calc(100vw - clamp(4px, 4vw, 16px));
    height: 25vw;
    max-height: 206px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/process-section-chocolate.svg') no-repeat right top;
    background-size: contain;
  }
}

.process-section__heading {
  margin-top: 0;
  color: var(--color-neutral-light);

  &::before {
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-chocolate-neutral-dark.svg') no-repeat center;
  }
}

.process-section__list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

.process-section__item {
  position: relative;
  flex-basis: 25%;
  padding: 16px;

  &::before {
    content: '';
    z-index: -1;
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: var(--color-neutral-dark);
  }

  &:first-child {

    &::before {
      transform: translateX(0);
      width: 50%;
    }
  }

  &:last-child {

    &::before {
      left: 0;
      transform: translateX(0);
      width: 50%;
    }
  }
}

.process-section__item__link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;

  &:hover {

    .process-section__item__image {
      transform: scale(1.02);
      transition: all .3s ease-out;
    }
  }
}

.process-section__item__header {
  text-align: center;
}

.process-section__item__title {
  margin-bottom: 32px;
  color: var(--color-neutral-light)
}

.process-section__item__number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  margin: auto;
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 32px;
  font-size: 24px;
  font-weight: 600;
  border: 8px solid var(--color-primary-dark);
  background: var(--color-primary-mid);
}

.process-section__item__image {
  width: 100%;
  aspect-ratio: 323 / 261.42;
}

.process-section__item__image picture {
  width: 100%;
  height: 100%;
}

.process-section__item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media only screen and (max-width: 991px) {

  .process-section__item {
    flex-basis: 50%;
  }
}

@media only screen and (max-width: 320px) {

  .process-section__item {
    flex-basis: 100%;
  }
}

/* process section END */

/* text-and-media section START */

.welcome-wrapper {
  margin-block: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--color-secondary);
}

.welcome {
  margin-block: clamp(32px, 4vw, 56px);
  padding-block: clamp(24px, 4vw, 48px);
}

.welcome div {
  max-width: 100%;
}

.text-and-media {
  display: flex;
  flex-wrap: wrap;
  row-gap: 24px;
}

.text-and-media__col {
  flex-basis: 50%;

  &:first-child {
    padding-right: clamp(32px, 4vw, 56px);
  }
}

.text-and-media__heading {
  margin-bottom: clamp(16px, 4vw, 40px);
}

.text-and-media__text p {
  margin-bottom: clamp(16px, 4vw, 40px);
  line-height: 24px;
  font-size: 16px;
}

.welcome-wrapper a {
  text-decoration: none;

  &:hover {
    text-decoration: none;
  }
}

@media only screen and (max-width: 767px) {

  .text-and-media__col {
    flex-basis: 100%;

    &:first-child {
      padding-right: 0;
    }
  }
}

/* text-and-media section END */

/* blog section START */

.blog-wrapper.row {
  margin-inline: 0;
}

.blog-wrapper .news-item {
  flex-basis: calc(100% / 3);
  padding: clamp(12px, 4vw, 24px);
  border-right: 1px solid var(--color-secondary);

  &:nth-child(3n+1) {
    border-right: none;
  }

  &:nth-last-child(1 of .news-item) {
    margin-bottom: clamp(32px, 4vw, 56px);
    border-right: none;
  }
}

.blog-wrapper .news-item .image {
  aspect-ratio: 426 / 281;
}

.blog-wrapper .news-item .image img {
  object-fit: cover;
  height: 100%;
}

.news-item .text .title {
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 32px;
  font-size: 24px;
  font-weight: 600;
}

.news-item .text .description {
  font-size: 16px;
}

.blog-buttons {
  display: flex;
  justify-content: center;
  flex-basis: 100%;
  margin-block: clamp(24px, 4vw, 48px);
}

@media only screen and (max-width: 991px) {

  .blog-wrapper .news-item {
    flex-basis: 50%;

    &:nth-child(2n+1) {
      border-right: none;
    }

    &:nth-child(3n+1) {
      border-right: 1px solid var(--color-secondary);
    }

    &:last-child {
      border-right: none;
    }
  }
}

/* blog section END */

/* follow section START */

.follow-section {
  position: relative;
  padding-block: clamp(56px, 10vw, 88px) clamp(24px, 4vw, 48px);

  &::before,
  &::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: calc(100vw + 1px);
  }

  &::before {
    top: 0;
    height: 16px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/follow-section-edge.svg') repeat-x center top;
  }

  &::after {
    z-index: -1;
    top: 16px;
    height: calc(100% - 15px);
    background: var(--color-neutral-dark);
  }
}

.follow-section__container {
  position: relative;
  text-align: center;

  &::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 25vw;
    max-width: 376px;
    aspect-ratio: 376 / 221;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/follow-section-cocoa.svg') no-repeat center;
    background-size: contain;
  }
}

.follow-section__heading {
  margin-top: 0;
  color: var(--color-neutral-light);

  &::before {
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-chocolate-primary-mid.svg') no-repeat center;
  }
}

.follow-section__instagram-link {
  position: relative;
  display: inline-block;
  margin-bottom: clamp(32px, 4vw, 56px);
  margin-inline: auto;
  padding-block: 1px;
  padding-left: clamp(32px, 6vw, 64px);
  line-height: 40px;
  font-size: clamp(14px, 6vw, 34px);
  font-weight: 600;
  color: var(--color-primary-mid);

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: block;
    width: clamp(24px, 4vw, 48px);
    height: clamp(24px, 4vw, 48px);
    margin-right: 16px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-instagram.svg') no-repeat center;
    background-size: contain;
  }

  &:hover {
    color: var(--color-primary-mid);
  }
}

.follow-section__images {
  list-style-type: none;
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
}

.follow-section__images__item {
  display: block;
  flex-basis: calc(20% - 12px);
  aspect-ratio: 272 / 340;
}

.follow-section__images__item__link,
.follow-section__images__item__link > picture
.follow-section__images__item__link > picture > img {
  display: block;
  width: 100%;
  height: 100%;
}

.follow-section__images__item img {
  object-fit: cover;
}

.follow-section__images__item__link {

  &:hover {
    transform: scale(1.02);
  }
}

@media only screen and (max-width: 767px) {

  .follow-section__images__item {
    flex-basis: calc(50% - 7.5px);
  }
}

@media only screen and (max-width: 320px) {

  .follow-section__images__item {
    flex-basis: 100%;
  }
}

/* follow section END */

/* category sidebar START */

.sidebar {
  margin-bottom: clamp(32px, 4vw, 56px);
  margin-right: 24px;
  background: transparent;
}

.sidebar .categories {
  margin-left: -16px;
  margin-right: -16px;
}

.sidebar-inner {
  padding: 0;
}

.sidebar-inner > div {
  border: none;
}

.box.box-bg-variant.box-categories {
  margin-bottom: 40px;
  padding: 16px;
  padding-bottom: 4px;
  background-color: var(--color-secondary);
}

.box-bg-variant .categories a {
  color: var(--color-text-on-light);

  &:hover {
    color: var(--color-text-on-light);
  }
}

:where(body.ums_page_element_headings--off) .sidebar .h4,
:where(body.ums_page_element_headings--off) .sidebar h4 {
  text-transform: none;
  font-family: var(--font-secondary);
  line-height: 24px;
  font-size: 18px;
  font-weight: 600;
}

.categories ul {
  margin-bottom: 8px;
}

.categories ul a {
  padding-inline: 24px 40px;
}

.categories li.active > a,
.categories li.active > a:hover {
  padding-left: 20px;
  border-left: 4px solid var(--color-primary-dark);
  font-weight: 700;
  color: var(--color-text-on-light);
  background: transparent;
}

.categories .topic {
  margin-bottom: 8px;
}

.categories .topic > a {
  padding-inline: 16px 40px;
}

.categories .topic.active > a {
  position: relative;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary-dark);
  font-weight: 700;
  color: var(--color-text-on-light);
  background: transparent;
}

#categories .expandable > .topic > a > span,
#categories .expandable > a > span {
  position: absolute;
  top: 4px;
  left: calc(100% - 32px);
  width: 16px;
  height: 16px;

  &::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    display: block;
    width: 0;
    height: 0;
    border-top: 4px solid var(--color-neutral-dark);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
  }
}

#categories .expandable.expanded > .topic > a > span,
#categories .expandable.expanded > a > span {

  &::before {
    content: '';
    transform: rotate(180deg);
  }
}

.box.box-bg-variant.box-topProducts {
  padding: 16px;
  border: 1px solid var(--color-secondary);
}

ol.top-products li {
  margin-bottom: 24px;

  &::before {
    content: '';
    counter-increment: none;
    flex: 0 0 8px;
    width: 8px;
    height: 56px;
    border-radius: 0;
    background: var(--color-secondary);
  }

  &:first-child {

    &::before {
      background: var(--color-primary-mid);
    }
  }

  &:nth-child(2) {

    &::before {
      background: var(--color-secondary-dark);
    }
  }

  &:nth-child(3) {

    &::before {
      background: var(--color-primary-darker);
    }
  }
}

ol.top-products li a {
  display: flex;
  padding-left: 8px;
}

ol.top-products li a.top-products-image {
  flex: 0 0 64px;
}

.top-products-content {
  flex-direction: column;
  justify-content: space-between;
  min-height: 56px;
  padding-block: 4px;
  color: var(--color-text-on-light);
}

ol.top-products li a .top-products-name {
  line-height: 16px;
  font-size: 12px;
  font-weight: 500;
}

/* category sidebar END */

/* category content START */

.category-header {
  margin-bottom: 0;
}

.category-content-wrapper {
  padding-bottom: clamp(24px, 4vw, 40px);
}

.category-content-wrapper .products > div {
  width: calc(100% / 3);

  &:nth-child(4n) {
    border-right: 1px solid var(--color-secondary);
  }

  &:nth-child(-n+3) {
    border-top: none;
  }

  &:nth-child(4) {
    border-top: 1px solid var(--color-secondary);
  }

  &:nth-child(3n),
  &:last-child {
    border-right: none;
  }
}

.subcategories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}

.subcategories li {
  width: 100%;
  height: 100%;
}

.subcategories li a {
  width: auto;
  height: 100%;
  min-height: 56px;
  padding-right: 56px;
  border: none;
  background: var(--color-secondary);

  &::before {
    content: '';
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin-top: 0;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-arrow.svg') no-repeat center;
  }
}

.subcategories li a .text {
  max-height: fit-content;
}

.subcategories.with-image li a .text {
  width: 100%;
  line-height: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-on-light);
}

.position--benefitCategory {
  margin-bottom: clamp(32px, 4vw, 56px);
}

@media only screen and (max-width: 991px) {
  
  .category-content-wrapper .products-block > div {
    width: 50%;

    &:nth-child(3n) {
      border-right: 1px solid var(--color-secondary);
    }

    &:last-child {
      border-right: none;
    }
  }

  .subcategories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 320px) {

  .category-content-wrapper .products-block > div {
    width: 100%;
  }

  .subcategories {
    grid-template-columns: 1fr;
  }
}

/* category content END */

/* product detail START */

.p-image-wrapper {
  width: 53.5%;
  max-width: 756px;
  padding-right: clamp(24px, 4vw, 48px);
}

.p-image {
  aspect-ratio: 1 / 1;
  margin-bottom: 24px;
  border: 1px solid var(--color-secondary);
  background: var(--color-neutral-light);
}

.p-image #wrap,
.p-image #wrap > a {
  width: 100%;
  height: 100%;
}

.p-image #wrap > a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-thumbnails a:has(img) {
  margin-left: 18px;

  &:first-child {
    margin-left: 0;
  }
}

.p-thumbnail.highlighted,
.p-thumbnail:hover {

  &::before {
    display: none;
  }
}

.p-thumbnail.highlighted img,
.p-thumbnail:hover img {
  border-color: var(--color-primary-mid);
}

.p-thumbnails a img {
  width: 88px;
  height: 88px;
  border-color: var(--color-secondary);
}

.p-thumbnails.overflow-prev {
  
  &::before {
    height: 86px;
    background-image: linear-gradient(90deg,var(--color-secondary-light) 50%,hsla(0,0%,100%,0));
  }
}

.p-thumbnails .thumbnail-prev {
  margin-top: -16px;

  &::before {
    content: '';
    transform: rotate(180deg);
    width: 20px;
    height: 20px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-arrow-right.svg') no-repeat center;
    background-size: contain;
  }
}

.p-thumbnails.overflow-next {

  &::after {
    height: 86px;
    background-image: linear-gradient(90deg,hsla(0,0%,100%,0) 0,var(--color-secondary-light) 50%);
  }
}

.p-thumbnails .thumbnail-next {
  margin-top: -16px;
  
  &::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-arrow-right.svg') no-repeat center;
    background-size: contain;
  }
}

.col-xs-12:has(.p-detail-info) {
  display: none;
}

.p-info-wrapper {
  width: 46.5%;
  max-width: 684px;
  padding-inline: clamp(24px, 4vw, 48px) 12px;
}

.p-detail-inner-header {
  margin-block: 0 8px;
}

.p-detail-inner-header h1 {
  margin-block: 0;
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 40px;
  font-size: 32px;
  font-weight: 600;
}

.p-detail-inner-header .p-code {
  display: none;
}

.p-detail__short-description {
  margin-bottom: 40px;
  padding-bottom: 16px;
}

.p-detail__short-description p {
  display: block;
  margin-bottom: 12px;
}

/* FIX: "Zobrazit více" link už nepřidáváme v JS — pravidlo .chevron-after odstraněno */

/* FIX: Mock varianty skryté na úrovni CSS jako pojistka (JS už je nevytváří, ale kdyby zůstaly v cache) */
.p-detail__product-variants {
  display: none;
}

.p-detail__product-variants h4 {
  margin-bottom: 16px;
  line-height: 18px;
  font-size: 14px;
  font-weight: 700;
}

.p-detail__product-variants ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.p-detail__product-variants li {
  width: 88px;
  height: 88px;
  padding: 0 !important;
}

.p-detail__product-variants a {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-secondary);
  background: var(--color-neutral-light);

  &:hover {
    border-color: var(--color-primary-mid);
  }
}

.p-detail__product-variants a picture {
  display: block;
  width: 100%;
  height: 100%;
}

.p-detail__product-variants a picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.availability-value {
  padding-block: 17px;
  line-height: 18px;
  font-size: 14px;
  font-weight: 500;
}

.availability-value--in-stock {
  color: var(--color-text-positive);
}

.p-final-price-wrapper {
  float: right;
  padding: 10px 16px 4px;
  line-height: 40px;
  font-size: 32px;
  font-weight: 700;
  background: var(--color-secondary);
}

.price-measure {
  margin-top: 8px;
}

.p-info-wrapper .add-to-cart-button {
  flex-grow: 1;
  min-height: 66px;
}

.p-info-wrapper .quantity {
  padding: 8px;
  border: 1px solid var(--color-secondary);
  border-right: none;
  border-radius: 0;
}

.p-info-wrapper .decrease-tooltip,
.p-info-wrapper .js-decrease-tooltip {
  top: 8px;
  left: 8px;
  right: auto;
}

.p-info-wrapper .quantity .decrease,
.p-info-wrapper .quantity .increase {
  top: 8px;
  height: calc(100% - 16px);
  border: none;
  background: transparent;

  &::before {
    content: '';
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
  }
}

.p-info-wrapper .quantity .decrease {
  left: 8px;
  right: auto;
  background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-decrease.svg') no-repeat center;
}

.p-info-wrapper .quantity .increase {
  right: 8px;
  background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-increase.svg') no-repeat center;
}

.quantity label {
  margin-inline: 28px;
}

.p-info-wrapper .quantity input {
  width: 80px;
  height: 46px;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  font-weight: 600;
}

.social-buttons-wrapper {
  display: none;
}

.position--benefitProduct {
  margin-block: 0 clamp(32px, 4vw, 56px);
}

.shp-tabs-row.responsive-nav {
  display: none;
}

.description-inner,
.basic-description,
.extended-description {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.description-inner {
  padding: 0;
  border-bottom: 1px solid var(--color-secondary);
}

.extended-description h3 {
  margin-block: 0 32px;
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 32px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.15px;
}

/* === Tabulky v popisu produktu (výživové údaje, složení, parametry) === */
.basic-description table,
.extended-description table {
  width: 100%;
  margin-block: 24px 32px;
  border-collapse: collapse;
  border: 1px solid var(--color-secondary);
  line-height: 22px;
  font-size: 15px;
}

/* Hlavička: tmavé pozadí, světlý text */
.basic-description table thead th,
.extended-description table thead th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-primary);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-neutral-light);
  background: var(--color-primary-dark);
  border: none;
}

/* Tělo tabulky - buňky */
.basic-description table tbody td,
.basic-description table tbody th,
.extended-description table tbody td,
.extended-description table tbody th {
  padding: 12px 16px;
  vertical-align: top;
  text-align: left;
  border-top: 1px solid var(--color-secondary);
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-on-light);
}

/* Pravý sloupec (hodnota) - zarovnaný doprava, mírně tučnější */
.basic-description table tbody tr td:last-child:not(:only-child),
.extended-description table tbody tr td:last-child:not(:only-child) {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

/* Zebra striping pro lepší čitelnost */
.basic-description table tbody tr:nth-child(2n),
.extended-description table tbody tr:nth-child(2n) {
  background: var(--color-secondary-light);
}

/* Single-cell tabulky (jen <th> s blokem textu — složení, alergeny, skladování) */
.basic-description table:has(tbody th:only-child) thead,
.extended-description table:has(tbody th:only-child) thead {
  display: none;
}

.basic-description table tbody th:only-child,
.extended-description table tbody th:only-child {
  font-weight: 400;
}

.tab-content .detail-parameters td {
  font-weight: 400;
}

.extended-description table td a,
.basic-description table td a {
  text-decoration: underline;
  color: var(--color-primary-mid-darker);
}

/* Mobile: tabulky se přizpůsobí */
@media only screen and (max-width: 480px) {

  .basic-description table tbody td,
  .extended-description table tbody td {
    padding: 10px 12px;
  }

  .basic-description table tbody tr td:last-child:not(:only-child),
  .extended-description table tbody tr td:last-child:not(:only-child) {
    white-space: normal;
  }
}

@media only screen and (max-width: 1199px) {

  .p-image-wrapper {
    width: inherit;
    max-width: inherit;
    padding-right: 20px;
  }

  .p-info-wrapper {
    width: inherit;
    max-width: inherit;
    padding-inline: 20px;
  }
}

@media only screen and (max-width: 767px) {
  
  .p-image-wrapper {
    padding-right: inherit;
  }

  .p-info-wrapper {
    padding-inline: inherit;
  }
}

/* product detail END */

/* footer START */

#footer {
  background: var(--color-neutral-dark);
}

#footer > .container {
  background: transparent;
}

#footer h3,
#footer h4 {
  margin-bottom: 16px;
  font-family: var(--color-secondary);
  text-transform: none;
  line-height: 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-neutral-light);
}

.custom-footer {
  padding-left: 0;
  border: 0;
}

.custom-footer ul li {
  margin-bottom: 16px;
  padding-bottom: 0;
  line-height: 20px;
  font-size: 16px;
  font-weight: 500;
}

#footer ul a {
  font-family: var(--font-tertiary);
  color: var(--color-neutral-light);

  &:hover {
    color: var(--color-neutral-light);
  }
}

.custom-footer__payments,
.custom-footer__shipping {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.custom-footer ul.custom-footer__payments li,
.custom-footer ul.custom-footer__shipping li {
  margin-bottom: 0;
}

.custom-footer__promo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.custom-footer__logo {
  margin-bottom: 40px;
}

.custom-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.custom-footer__socials li {
  padding: 12px;
}

.custom-footer__socials__icon--facebook,
.custom-footer__socials__icon--instagram,
.custom-footer__socials__icon--youtube {
  display: block;
  width: 16px;
  height: 16px;
  background-size: contain;
}

.custom-footer__socials__icon--facebook {
  background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-socials-facebook.svg') no-repeat center;
}

.custom-footer__socials__icon--instagram {
  background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-socials-instagram.svg') no-repeat center;
}

.custom-footer__socials__icon--youtube {
  background: url('/user/documents/upload/assets/images/chocolatehill-only/icons/icon-socials-youtube.svg') no-repeat center;
}

.footer-bottom {
  color: var(--color-neutral-light);
}

.footer-bottom a {
  color: var(--color-neutral-darker);

  &:hover {
    color: var(--color-neutral-light);
  }
}

#signature a {

  &:hover {
    color: var(--color-neutral-light);
  }
}

@media only screen and (max-width: 767px) {

  .custom-footer__promo {
    align-items: flex-start;
  }
}

/* footer END */
