/* === RESGO+ GLOBAL CSS ===
:root {
  --resgo-red: #ef321f;
  --resgo-red-soft: #fff1ee;
  --resgo-dark: #171717;
  --resgo-text: #333333;
  --resgo-muted: #666666;
  --resgo-bg: #f7f5f1;
  --resgo-card: #ffffff;
  --resgo-border: #ece7df;
  --resgo-radius: 22px;
  --resgo-radius-sm: 12px;
  --resgo-shadow: 0 14px 38px rgba(0,0,0,.07);
  --resgo-shadow-soft: 0 8px 24px rgba(0,0,0,.045);
}

/* === SKRYTÍ SHOPTET SIGNATURE / PATIČKA === */
#signature,
footer #signature,
.container.footer-bottom #signature,
body .footer .container.footer-bottom #signature,
.podpis {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
}

/* === ZÁKLADNÍ DESIGN === */
body {
  color: var(--resgo-text);
}

h1,
h2,
h3 {
  color: var(--resgo-dark);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

a {
  transition: color .18s ease, opacity .18s ease;
}

a:hover {
  color: var(--resgo-red);
}

/* === TLAČÍTKA === */
.btn,
.button,
a.btn,
input[type="submit"],
.add-to-cart-button,
.extended-banner-link,
.cart-widget-button a,
.products-block .btn {
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover,
.button:hover,
a.btn:hover,
input[type="submit"]:hover,
.add-to-cart-button:hover,
.extended-banner-link:hover,
.products-block .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.extended-banner-link {
  border-radius: 6px !important;
}

.extended-banner-texts .extended-banner-link {
  font-weight: 500 !important;
}

/* === MINI KOŠÍK – BEZPEČNÁ ÚPRAVA === */
.popup-widget-inner {
  padding: 10px !important;
}

.cart-widget-button {
  padding: 0 10px 10px 10px !important;
}

.cart-widget-button a,
.cart-widget-button .btn {
  border-radius: 10px !important;
}

/* === HERO CAROUSEL === */
#carousel .item a:hover img {
  transform: scale(1.05) !important;
}

#carousel .item .extended-banner-texts {
  display: flex;
  flex-direction: column;
}

#carousel .item .extended-banner-texts .extended-banner-title {
  order: 1;
}

#carousel .item .extended-banner-texts .extended-banner-text {
  order: 2;
}

#carousel .item .extended-banner-texts .extended-banner-link {
  order: 3;
  margin-top: 30px;
}

/* === WELCOME MESSAGE JAKO NÁPLAST  === */
.homepage-box.welcome-wrapper {
  position: relative !important;
  max-width: 980px !important;
  margin: 42px auto !important;
  padding: 46px 110px !important;
  background: #f1e4d5 !important;
  border: 1px solid #dfcbb8 !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.055) !important;
}

/* dírky vlevo */
.homepage-box.welcome-wrapper::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 26px;
  width: 72px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(139,105,78,.34) 0 2.5px, transparent 3px) 0 0 / 22px 22px;
  opacity: .75;
}

/* dírky vpravo */
.homepage-box.welcome-wrapper::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  right: 26px;
  width: 72px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(139,105,78,.34) 0 2.5px, transparent 3px) 0 0 / 22px 22px;
  opacity: .75;
}

/* vnitřní polštářek */
.homepage-box.welcome-wrapper .welcome {
  position: relative !important;
  z-index: 2 !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  padding: 30px 36px !important;
  background: #fffaf3 !important;
  border: 1px solid #e5d6c6 !important;
  border-radius: 24px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7) !important;
}

/* textura gázy */
.homepage-box.welcome-wrapper .welcome::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(45deg, rgba(210,190,170,.16) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(-45deg, rgba(210,190,170,.12) 0 1px, transparent 1px 10px);
  pointer-events: none;
}

.homepage-box.welcome-wrapper .welcome > * {
  position: relative;
  z-index: 2;
}

.homepage-box.welcome-wrapper p {
  max-width: 620px !important;
  margin: 0 auto 8px !important;
  text-align: center !important;
  color: #222 !important;
}

@media (max-width: 767px) {
  .homepage-box.welcome-wrapper {
    padding: 28px 18px !important;
    border-radius: 24px !important;
  }

  .homepage-box.welcome-wrapper::before,
  .homepage-box.welcome-wrapper::after {
    display: none !important;
  }

  .homepage-box.welcome-wrapper .welcome {
    padding: 24px 18px !important;
  }
}

/* === PRODUKTOVÉ KARTY === */
.products-block .product,
.products-block .p,
.products .product,
.products .p {
  border-radius: var(--resgo-radius) !important;
  overflow: hidden;
  border: 1px solid var(--resgo-border);
  background: var(--resgo-card);
  box-shadow: var(--resgo-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.products-block .product:hover,
.products-block .p:hover,
.products .product:hover,
.products .p:hover {
  transform: translateY(-4px);
  box-shadow: var(--resgo-shadow);
  border-color: rgba(239,50,31,.25);
}

.products-block .image img,
.products .image img {
  transition: transform .25s ease;
}

.products-block .product:hover .image img,
.products-block .p:hover .image img,
.products .product:hover .image img,
.products .p:hover .image img {
  transform: scale(1.04);
}

.products-block .name,
.products .name,
.products-block .p-name,
.products .p-name {
  font-weight: 800;
  line-height: 1.3;
}

.products-block .price,
.products .price,
.products-block .prices,
.products .prices {
  color: var(--resgo-dark);
  font-weight: 800;
}

/* === ŠTÍTKY === */
.flag,
.flags-default .flag,
.availability,
.p .availability {
  border-radius: 999px !important;
  font-weight: 700;
}

/* === KATEGORIE / BOXY MIMO SIDEBAR === */
.categories a,
.subcategories a,
.category a {
  border-radius: var(--resgo-radius-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.categories a:hover,
.subcategories a:hover,
.category a:hover {
  transform: translateY(-2px);
  box-shadow: var(--resgo-shadow-soft);
}

/* === FILTRY / ŘAZENÍ / CATEGORY HEADER === */
.filters-wrapper,
.filter-section,
.products-top,
.category-header,
.pagination-wrapper {
  border-radius: 18px;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  font-size: 13px;
  color: var(--resgo-muted);
}

.breadcrumbs a {
  color: var(--resgo-muted);
}

/* === SIDEBAR – UCELENÝ DESIGN === */
aside.sidebar,
.sidebar.sidebar-left {
  font-size: 14px;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

aside.sidebar .box,
.sidebar.sidebar-left .box {
  background: var(--resgo-card) !important;
  border: 1px solid var(--resgo-border) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  margin-bottom: 18px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.04) !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

aside.sidebar .box h4,
aside.sidebar .box .box-heading,
.sidebar.sidebar-left .box h4,
.sidebar.sidebar-left .box .box-heading {
  margin: 0 0 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--resgo-dark) !important;
}

aside.sidebar .categories,
.sidebar.sidebar-left .categories {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

aside.sidebar .categories *,
.sidebar.sidebar-left .categories * {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

aside.sidebar .categories a,
.sidebar.sidebar-left .categories a {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  color: #222 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  white-space: normal !important;
  box-sizing: border-box !important;
  transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

aside.sidebar .categories a:hover,
.sidebar.sidebar-left .categories a:hover {
  background: var(--resgo-bg) !important;
  color: var(--resgo-red) !important;
  transform: translateX(2px) !important;
  box-shadow: none !important;
}

aside.sidebar .categories .active > a,
aside.sidebar .categories a.active,
.sidebar.sidebar-left .categories .active > a,
.sidebar.sidebar-left .categories a.active {
  background: var(--resgo-red-soft) !important;
  color: var(--resgo-red) !important;
  font-weight: 800 !important;
}

aside.sidebar .categories ul,
.sidebar.sidebar-left .categories ul {
  margin: 6px 0 8px 8px !important;
  padding-left: 12px !important;
  border-left: 1px solid var(--resgo-border) !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

aside.sidebar .filter-section,
.sidebar.sidebar-left .filter-section {
  border: 0 !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

aside.sidebar .filter-label,
.sidebar.sidebar-left .filter-label {
  max-width: 100% !important;
  white-space: normal !important;
  border-radius: 999px !important;
}

aside.sidebar .filter-count,
.sidebar.sidebar-left .filter-count {
  border-radius: 999px !important;
}

aside.sidebar .top-products li,
.sidebar.sidebar-left .top-products li {
  border-radius: 12px !important;
  padding: 8px !important;
  transition: background .18s ease !important;
}

aside.sidebar .top-products li:hover,
.sidebar.sidebar-left .top-products li:hover {
  background: var(--resgo-bg) !important;
}

/* === FOOTER === */
.footer {
  margin-top: 60px;
}

.footer h4,
.footer h3 {
  font-weight: 800;
}

/* === MOBIL === */
@media (max-width: 767px) {
  h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  #carousel .item .extended-banner-texts {
    align-items: center;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  #carousel .item .extended-banner-texts .extended-banner-title {
    width: 100%;
    text-align: center;
    display: block;
  }

  #carousel .item .extended-banner-texts .extended-banner-title,
  #carousel .item .extended-banner-texts .extended-banner-text,
  #carousel .item .extended-banner-texts .extended-banner-link {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .homepage-box.welcome-wrapper,
  .welcome-wrapper {
    margin: 30px auto !important;
    padding: 28px 20px !important;
    border-radius: 18px !important;
  }

  .homepage-box.welcome-wrapper p,
  .welcome-wrapper p {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
  }

  .products-block .product:hover,
  .products-block .p:hover,
  .products .product:hover,
  .products .p:hover,
  #carousel .item a:hover img,
  .categories a:hover,
  .subcategories a:hover,
  .category a:hover,
  aside.sidebar .categories a:hover,
  .sidebar.sidebar-left .categories a:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}
