/* =========================================================
   ZÁKLAD
========================================================= */
:root {
  --brown: #462d18;
  --brown-soft: #954a04;
  --cream: #ece0c7;
  --cream-light: #fff8ea;
  --cream-lighter: #f9f0e1;
  --beige: #ebe0c9;
  --beige-border: #cdbc9e;
  --beige-border-light: #dec9aa;
  --white: #fff;
  --text-dark: #2c1810;
  --text-medium: #4a3828;
  --text-light: #6b5747;
  --bg-image: url("/user/documents/upload/img/pozadi.jpg");
  --radius: 15px;
  --shadow-main: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
                 rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

body {
  background: var(--bg-image);
}

.content-wrapper.container {
  background: var(--cream);
  box-shadow: var(--shadow-main);
}

@media (min-width: 1200px) {
  .content-wrapper {
    background: var(--bg-image);
  }

  .container {
    max-width: 1440px;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    background-color: var(--cream);
  }
}

/* =========================================================
   TYPOGRAFIE
========================================================= */
h2 {
  font-size: 17px;
}

a.name,
strong.name,
h1,
.h1,
.prices strong,
.p-final-price-wrapper strong {
  font-family: "Cormorant Garamond", serif !important;
  font-weight: 700 !important;
  color: var(--brown) !important;
}

.link-like,
a {
  color: var(--brown);
  font-weight: bold;
}

/* Desktop */
@media (min-width: 992px) {
  h1,
  .h1 {
    font-size: 3.8rem !important;
  }

  .p-final-price-wrapper strong.price-final {
    font-size: 3.5rem !important;
  }

  .homepage-products-1 a.name {
    font-size: 2.5rem !important;
  }

  .homepage-products-1 .prices strong {
    font-size: 2rem !important
  }

  .homepage-products-2 a.name {
    font-size: 1.1rem !important;
  }

  .homepage-products-2 .prices strong {
    font-size: 1.3rem !important;
  }

  .products-top a.name {
    font-size: 1rem !important;
  }

  .products-top .prices strong {
    font-size: 1.2rem !important;
  }

  .products-page a.name {
    font-size: 1.9rem !important;
  }

  .products-page .prices strong {
    font-size: 1.7rem !important;
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991px) {
  h1,
  .h1 {
    font-size: 2rem !important;
  }

  .p-final-price-wrapper strong.price-final {
    font-size: 2.4rem !important;
  }

  .homepage-products-1 a.name,
  .homepage-products-1 .prices strong {
    font-size: 1.8rem !important;
  }

  .homepage-products-2 a.name {
    font-size: 1rem !important;
  }

  .homepage-products-2 .prices strong {
    font-size: 1.1rem !important;
  }

  .products-top a.name {
    font-size: 0.95rem !important;
  }

  .products-top .prices strong {
    font-size: 1.1rem !important;
  }

  .products-page a.name {
    font-size: 1.1rem !important;
  }

  .products-page .prices strong {
    font-size: 1.3rem !important;
  }
}

/* Mobil */
@media (max-width: 575px) {
  h1,
  .h1 {
    font-size: 2.6rem !important
  }

  .p-final-price-wrapper strong.price-final {
    font-size: 2rem !important;
  }

  .homepage-products-1 a.name {
    font-size: 1rem !important;
  }

  .homepage-products-1 .prices strong {
    font-size: 1.2rem !important;
  }

  .homepage-products-2 a.name {
    font-size: 0.9rem !important;
  }

  .homepage-products-2 .prices strong,
  .products-top .prices strong {
    font-size: 1rem !important;
  }

  .products-top a.name {
    font-size: 0.9rem !important;
  }

  .products-page a.name {
    font-size: 0.95rem !important;
  }

  .products-page .prices strong {
    font-size: 1.1rem !important;
  }
}

/* =========================================================
   OBECNÉ PRVKY
========================================================= */
ul.subcategories.with-image {
  display: none;
}

.navigation-buttons a[data-target="cart"] i {
  background-color: var(--brown);
}

.shp-tabs-wrapper.homepage-tabs-wrapper {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
}

@media (min-width: 992px) {
  .sidebar {
    width: 340px;
    margin: 3px;
    border-radius: var(--radius);
    border: 1px solid #452d1a;
    background: var(--white);
  }
}

@media (min-width: 992px) {
  .p-detail-inner {
    background: var(--cream);
    padding: 30px;
    margin-top: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-main);
  }
}

#product-detail-form {
  background: var(--cream-light);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 2px rgba(149, 74, 4, 0.15) !important;
  margin: 30px 0;
}

.container--bannersBenefit {
  background: var(--white);
  border: 1px solid var(--beige-border);
  border-radius: var(--radius);
  margin-top: 30px;
  width: 100%;
}

.benefitBanner.position--benefitCategory {
  background: var(--white);
  margin-top: 30px;
}

.benefitBanner__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  flex: 1;
  min-width: 180px;
  border-right: 1px solid #e2d5bf;
}

@media (min-width: 1200px) {
  .tab-content {
    margin-bottom: 10rem;
    padding: 15px;
  }
}

/* =========================================================
   BREADCRUMBS
========================================================= */
.breadcrumbs.navigation-home-icon-wrapper {
  background: var(--brown);
  color: #fff;
  padding: 7px;
  border-radius: var(--radius);
}

.breadcrumbs,
.breadcrumbs a,
.breadcrumbs a:hover {
  color: #fff;
}

@media (min-width: 992px) {
  .breadcrumbs > span > a:hover {
    text-decoration: underline;
    color: var(--cream-lighter);
  }
}

/* =========================================================
   TABS / SORTING
========================================================= */
@media (min-width: 992px) {
  .listSorting__control {
    padding-left: 30px;
    padding-right: 30px;
    background: #fff;
    border-radius: 7px;
    border: none;
  }
}

.listSorting__control--current,
.listSorting__control--current:focus-visible {
  border-bottom: 4px solid var(--brown);
  border-radius: 7px;
}

.shp-tabs-holder ul.shp-tabs li a {
  padding-left: 30px;
  padding-right: 30px;
  background: #f9f3e6;
  border-radius: 15px 15px 0 0;
  border: none;
}

.shp-tab.active {
  border-top-color: var(--colors-foregrounds-content-primary-dark);
  border-bottom: 4px solid var(--brown);
  border-radius: 7px;
}

@media (min-width: 1200px) {
  .wide .p-detail-tabs-wrapper {
    padding: 50px;
    background: var(--beige);
    margin-top: 30px;
    border-radius: var(--radius);
    border: 1px solid #bfbab7;
  }
}

@media (max-width: 1199px) {
  .wide .p-detail-tabs-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    background: var(--white);
    margin-top: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--beige-border);
  }
}

/* =========================================================
   PRODUKT DETAIL
========================================================= */
.p-to-cart-block {
  border: none;
}

.p-basic-info-block {
  border-top: none;
  border-bottom: 2px solid var(--cream);
}

.p-to-cart-block .add-to-cart-button.btn-conversion {
  flex: 1 1 auto;
  padding: 15px 40px;
  border-radius: 10px;
}

.p-variants-block .detail-parameters select {
  width: 100%;
  background: var(--cream-light);
  border: 2px solid var(--beige-border-light);
  text-align: center;
  border-radius: 7px;
}

.p-variants-block .detail-parameters select:hover {
  cursor: pointer;
}

.wide .image360 img,
.wide .p-image img {
  max-height: 670px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

/* =========================================================
   BUTTONY
========================================================= */
.btn.btn-cart,
.btn.btn-conversion,
a.btn.btn-cart,
a.btn.btn-conversion {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: var(--colors-foregrounds-content-inverted);
}

.btn.btn-cart:hover,
.btn.btn-conversion:hover,
a.btn.btn-cart:hover,
a.btn.btn-conversion:hover {
  background-color: var(--cream-lighter);
  border-color: var(--brown);
  color: var(--brown);
}

/* =========================================================
   HERO CAROUSEL
========================================================= */
.wide-carousel .carousel-inner {
  min-height: 0 !important;
}

.wide-carousel .carousel-inner img,
.wide-carousel .carousel-inner .item img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.wide-carousel .extended-banner-texts {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
  text-align: center !important;
  white-space: nowrap;
  z-index: 20;
}

.wide-carousel .extended-banner-text,
.wide-carousel .extended-banner-link {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  position: static !important;
}

.hero-shopins {
  text-align: center;
}

.hero-shopins-hlavni {
  font-family: "Cinzel", serif;
  font-size: 68px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 8px;
  text-shadow: 2px 4px 24px rgba(0, 0, 0, 0.65);
  line-height: 1.1;
  display: block;
  white-space: nowrap;
}

.hero-shopins-sub {
  font-family: "Dancing Script", cursive;
  font-size: 34px;
  font-weight: 600;
  color: #f9e8c0;
  text-shadow: 1px 2px 12px rgba(0, 0, 0, 0.55);
  margin-top: 6px;
  display: block;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .wide-carousel .carousel-inner img,
  .wide-carousel .carousel-inner .item img {
    height: 360px;
  }

  .hero-shopins-hlavni {
    font-size: 38px;
    letter-spacing: 4px;
    white-space: normal;
  }

  .hero-shopins-sub {
    font-size: 22px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .wide-carousel .carousel-inner img,
  .wide-carousel .carousel-inner .item img {
    height: 220px;
  }

  .hero-shopins-hlavni {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .hero-shopins-sub {
    font-size: 16px;
  }
}

/* =========================================================
   O NÁS / WELCOME
========================================================= */
.welcome-wrapper {
  background: var(--cream-lighter);
  padding: 48px 20px 32px;
}

.welcome h1[data-testid="eshopHeader"] {
  font-family: "Cinzel", serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px !important;
}

.welcome > div > p:first-of-type {
  text-align: center;
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 15px;
  max-width: 760px;
  margin: 0 auto 40px;
}

/* =========================================================
   ROK 1997 SEKCE
========================================================= */
.rok-sekce {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--white);
  border-radius: 6px;
  padding: 40px;
  margin: 0 0 40px;
  box-shadow: 0 2px 16px rgba(44, 24, 16, 0.07);
  border: 1px solid #e2d5bf;
}

.rok-fotky {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.rok-fotky img {
  width: 33.33%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
}

.rok-info {
  flex: 0 0 240px;
  text-align: center;
}

.rok-cislo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rok-od,
.rok-roku {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #7a6555;
}

.rok-cislo {
  font-family: "Cinzel", serif;
  font-size: 96px;
  font-weight: 700;
  color: var(--brown-soft);
  line-height: 1;
  display: block;
}

.rok-text {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.75;
  margin-top: 16px;
  border-top: 1px solid #e2d5bf;
  padding-top: 14px;
}

@media (max-width: 768px) {
  .rok-sekce {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }

  .rok-fotky,
  .rok-info {
    width: 100%;
    flex: none;
  }

  .rok-cislo {
    font-size: 72px;
  }
}

/* =========================================================
   PROČ PRÁVĚ OD NÁS
========================================================= */
.proc-sekce {
  padding: 0 0 40px;
}

.proc-heading {
  text-align: center;
  margin-bottom: 32px;
}

.proc-h2 {
  font-family: "Cinzel", serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 0 0 6px !important;
}

.proc-sub {
  font-family: "Dancing Script", cursive;
  font-size: 20px;
  color: var(--brown-soft);
  display: block;
}

.proc-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.proc-foto {
  flex: 0 0 40%;
}

.proc-foto img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.15);
  display: block;
}

.proc-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
  align-content: start;
  background: var(--white);
  padding: 15px;
  border-radius: var(--radius);
}

.proc-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proc-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.proc-item h3 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proc-item p {
  font-size: 13px !important;
  color: var(--text-light) !important;
  line-height: 1.6;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .proc-content {
    flex-direction: column;
    gap: 24px;
  }

  .proc-foto {
    width: 100%;
    flex: none;
  }

  .proc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =========================================================
   TOP PRODUKTY
========================================================= */
.top-products-wrapper {
  padding: 32px 20px;
}

.top-products-wrapper .pageElement__heading {
  font-family: "Cinzel", serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px !important;
}

.product .p {
  border: 1px solid #ecdfc8 !important;
  background: var(--white);
  transition: box-shadow 0.3s, transform 0.3s;
  border-radius: 10px;
}

.product:hover .p {
  box-shadow: 0 8px 30px rgba(42, 26, 10, 0.11);
  transform: translateY(-3px);
}

/* =========================================================
   KOŠÍK / POKLADNA
========================================================= */
.order-items-table .count,
.order-items-table .amount,
td.count,
td.amount,
td.qty,
[class*="quantity"],
[class*="picking"] .number {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* Bílé pozadí košíku a pokladny */
body.in-kosik .content-wrapper.container,
body.in-kosik .content-wrapper,
body[class*="in-objednavka"] .content-wrapper.container,
body[class*="in-objednavka"] .content-wrapper,
body[class*="ordering"] .content-wrapper.container,
body[class*="ordering"] .content-wrapper {
  background: var(--white) !important;
  box-shadow: none !important;
}

@media (min-width: 1200px) {
  body.in-kosik .content-wrapper,
  body[class*="in-objednavka"] .content-wrapper,
  body[class*="ordering"] .content-wrapper {
    background: var(--white) !important;
  }
}
