:root {
  /* colour */
  --ink:        #26202b;   /* body copy */
  --plum:       #6c3f61;   /* brand */
  --plum-deep:  #3c2136;   /* bars, footer, headings */
  --plum-soft:  #efe6ec;   /* tints and hovers */
  --rose:       #b5476a;   /* sale prices, active states */
  --paper:      #f4eff1;   /* page background */
  --card:       #ffffff;
  --rule:       #ddd0d8;   /* hairlines */
  --muted:      #7c6f78;   /* secondary copy */
  --chrome:     #b9adb4;   /* pram-frame grey */

  /* type */
  --display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* metrics */
  --shell: 980px;
  --aside: 230px;
  --gutter: 20px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(60, 33, 54, .10);
  --shadow-lift: 0 6px 16px rgba(60, 33, 54, .13);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.55 var(--body);
}

img { border: 0; max-width: 100%; }

a {
  color: var(--plum);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--rose); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--plum-deep);
}
h1 { font-size: 28px; letter-spacing: .01em; }
h2 { font-size: 21px; }
h3 { font-size: 15px; }

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
input, button, select, textarea { font: inherit; }

::selection { background: var(--plum-soft); color: var(--plum-deep); }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* Signature: the pram-wheel bullet that marks every section heading. */
.listOfGoodsheading h2::before,
#col-left .heading-in::before,
#footer .box-heading-in::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 9px;
  vertical-align: -1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4.5px currentColor;
  opacity: .8;
}


/* ==========================================================================
   02. Top bar
   ========================================================================== */

#top-menu {
  background: var(--plum-deep);
  color: #e8d9e4;
  font-size: 13px;
}

#top-menu-in {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 36px;
}

#top-menu .contact {
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

#top-menu .menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

#top-menu .menu a { color: #e8d9e4; opacity: .85; }
#top-menu .menu a:hover { color: #fff; opacity: 1; }


/* ==========================================================================
   03. Page frame
   ========================================================================== */

#page-container,
#page-container-in,
#page-container-in1 { display: block; width: 100%; }

#container {
  position: relative;          /* anchor for the absolutely placed #logo */
  width: var(--shell);
  margin: 0 auto;
  padding: 0 0 44px;
}


/* ==========================================================================
   04. Head — search, basket, rail
   ========================================================================== */

#head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 26px;
}

#head .search { display: flex; }
#head .search form { margin: 0; }
#head .search form div {
  display: flex;
  align-items: center;
  gap: 6px;
}

#head .input-text {
  width: 210px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
}
#head .input-text::placeholder { color: var(--muted); }
#head .input-text:focus {
  border-color: var(--plum);
  outline: none;
  box-shadow: 0 0 0 3px var(--plum-soft);
}
#head .search input[type="image"] {
  display: block;
  opacity: .75;
  transition: opacity .15s ease;
}
#head .search input[type="image"]:hover { opacity: 1; }

#head-shopping-basket { display: flex; align-items: center; }
#head-shopping-basket-in { display: flex; align-items: center; gap: 8px; }
#head-shopping-basket-in .btn1 { display: none; }  /* duplicate small icon */
#head-shopping-basket-in .btn2 { display: block; }

/* the "handle rail": a chrome double rule closing the header */
#head-line {
  flex: 0 0 100%;
  height: 0;
  margin-top: 18px;
  padding-bottom: 3px;
  border-top: 2px solid var(--plum);
  border-bottom: 1px solid var(--rule);
}


/* ==========================================================================
   05. Logo
   ========================================================================== */

#logo {
  position: absolute;
  top: 30px;
  left: 0;
  line-height: 1.1;
}

#logo a {
  font-family: var(--display);
  font-size: 32px;              /* overrides the inline 30px on the wrapper */
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--plum-deep);
}
#logo a:hover { color: var(--plum); }


/* ==========================================================================
   06. Main two-column layout
   Source order is #col-main then #col-left, so flex `order` puts the
   sidebar on the left without touching the HTML.
   ========================================================================== */

#main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--gutter);
  padding-top: 24px;
}

/* breadcrumb — first child of #main on list/detail pages, must span
   the full width or it becomes a third column */
#whereIAm {
  order: 0;
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
#whereIAm a { color: var(--muted); }
#whereIAm a:hover { color: var(--plum); }
#whereIAm a.selected {
  color: var(--plum-deep);
  font-weight: 600;
}
#whereIAm img { display: block; opacity: .55; }

#col-main {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;                 /* lets long titles wrap instead of stretching */
}

#col-left {
  order: 1;
  flex: 0 0 var(--aside);
}

#col-left-in { font-size: 13.5px; }

/* trailing clearer divs are meaningless inside a flex container */
#main > .clearer { display: none; }


/* ==========================================================================
   07. Banner slider
   ========================================================================== */

.title-banner { margin-bottom: 22px; }

.slider-content,
#JSTitleBanners { position: relative; }

.round-box2 {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.round-box2.round-box-without-heading { padding: 0; }

/* slider viewport: slides sit in one unwrapped row and are clipped */
.slidered-items {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  font-size: 0;
}
.slidered-items > a {
  flex: 0 0 100%;
  display: block;
}
.slidered-items img {
  display: block;
  width: 100%;
  height: auto;
}

.navigation-bar { margin-top: 10px; }

.navigation-bar-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.arrow2 { display: flex; }
.arrow2 a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--card);
  color: var(--plum);
  font-size: 14px;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.arrow2 a:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.arrow2.back a span { margin-right: 1px; }
.arrow2.forward a span { margin-left: 1px; }

.pagination { display: flex; align-items: center; gap: 7px; }
.pagination a,
.pagination span {
  display: block;
  width: 9px;
  height: 9px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--chrome);
  text-indent: -999em;
  transition: background .15s ease, transform .15s ease;
}
.pagination a:hover,
.pagination .active,
.pagination .selected {
  background: var(--plum);
  transform: scale(1.15);
}


/* ==========================================================================
   08. Content panels & the promo block
   ========================================================================== */

.round-box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 24px;
}
.round-box.round-box-without-heading { padding-top: 22px; }

#text-page { margin-bottom: 4px; }

#text-page h1 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
#text-page h2 { font-size: 19px; margin-bottom: .35em; }
#text-page h2 a { color: inherit; }
#text-page h2 a:hover { color: var(--rose); }

/* the promo layout is a legacy <table>; keep it fluid inside 730px */
#text-page table {
  max-width: 100%;
  margin: 0 auto;
}
#text-page td {
  vertical-align: top;
  padding: 0 10px;
}
#text-page img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
#text-page br + br { line-height: .6; }

/* price injected into the promo box by private_homepage.php */
#JS_price {
  display: inline-block;
  font-family: var(--body);
  font-size: 26px;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: .01em;
}


/* ==========================================================================
   09. Product grid
   ========================================================================== */

.listOfGoods {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 -6px;
}
.listOfGoods.listOfGoodsWithOutSetup { margin-top: 4px; }

.listOfGoodsheading {
  flex: 0 0 100%;
  margin: 0 6px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.listOfGoodsheading h2 {
  margin: 0;
  font-size: 20px;
}

/* category page title */
.heading-description {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.heading-description h1 { margin: 0; }
.heading-description p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* sort bar, above and below the grid */
.listOfGoods > .pageSetup { flex: 0 0 100%; }
.pageSetup-in,
.pageSetup-in1 { display: block; }

.pageSetup.pageSetupTop { margin-bottom: 18px; }
.pageSetup.pageSetupBottom { margin-top: 6px; }

.pageSetup .sort {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.pageSetup .sort a {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.pageSetup .sort a:hover {
  background: var(--plum-soft);
  color: var(--plum);
}
.pageSetup .sort a.selected {
  background: var(--plum);
  color: #fff;
}
.pageSetup .sort a.selected:hover { background: var(--plum-deep); color: #fff; }
.pageSetup .sort .clearer { display: none; }

/* four per row; the template's .clearer divs become the row breaks */
.goodOneInList {
  display: flex;
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 6px;
  margin-bottom: 16px;
}
.listOfGoods > .clearer {
  flex: 0 0 100%;
  width: 100%;
}

.goodOneInList-in {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 10px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.goodOneInList-in:hover {
  border-color: var(--chrome);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

/* photo */
.goodOneInList .img {
  position: relative;
  margin-bottom: 10px;
}
.goodOneInList .img > table { width: 100%; }
.goodOneInList .img td { padding: 0; text-align: center; }
.goodOneInList .img a { display: block; }
.goodOneInList .img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* akce / sleva / nejprodávanější ribbons */
.goodOneInList .flags {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  pointer-events: none;
  z-index: 2;
}
.goodOneInList .flags a { pointer-events: auto; display: block; }
.goodOneInList .flags img { display: block; height: auto; }
.goodOneInList .flags .flag1 { max-width: 62px; }
.goodOneInList .flags .flag2 { max-width: 62px; }

/* short description, revealed over the photo on hover */
.goodOneInList .short-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  border-radius: 3px;
  background: linear-gradient(to top,
              rgba(255, 255, 255, .97) 55%, rgba(255, 255, 255, .80));
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 1;
}
.goodOneInList-in:hover .short-text,
.goodOneInList-in:focus-within .short-text { opacity: 1; }

.goodOneInList .short-text-in {
  max-height: 100%;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.goodOneInList .short-text-in a { color: var(--muted); }
.goodOneInList .short-text-in a:hover { color: var(--plum); }

/* title */
.goodOneInList table.heading {
  width: 100%;
  margin: 0 0 8px;
}
.goodOneInList table.heading td { padding: 0; }
.goodOneInList h3 {
  margin: 0;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}
.goodOneInList h3 a { color: var(--ink); }
.goodOneInList h3 a:hover { color: var(--rose); }

/* price — pinned to the bottom so every card in a row lines up */
.goodOneInList-in > table:not(.heading) {
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dotted var(--rule);
}
/* the homepage marks prices with td.grey, category pages use a bare <td> —
   style the cell itself so both render identically */
.goodOneInList-in > table:not(.heading) td {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--plum-deep);
}
.goodOneInList td.clrDiscount { color: var(--rose); text-align: right; }

.line-through {
  text-decoration: line-through;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

/* dotted separator sitting inside each row-break */
.clearer .line {
  height: 1px;
  margin: 2px 6px 18px;
  background: repeating-linear-gradient(
    to right, var(--rule) 0 4px, transparent 4px 8px);
}


/* ==========================================================================
   10. Sidebar
   ========================================================================== */

#col-left .category {
  padding: 6px 0;
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

#col-left .category ul { display: block; }
#col-left .category li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--plum-soft);
}
#col-left .category li:last-child { border-bottom: 0; }
#col-left .category li .clearer { display: none; }

#col-left .category a {
  flex: 1 1 auto;
  padding: 9px 14px;
  color: var(--ink);
  font-weight: 500;
}
#col-left .category a:hover {
  background: var(--plum-soft);
  color: var(--plum);
}
#col-left .category a.break { flex: 1 1 100%; }

/* current category */
#col-left .category li.selected {
  background: var(--plum-soft);
  box-shadow: inset 3px 0 0 var(--plum);
}
#col-left .category li.selected > a,
#col-left .category a.actual {
  color: var(--plum-deep);
  font-weight: 700;
}

/* empty toggle anchors -> chevrons, pushed to the right of the row */
#col-left .category a.open {
  order: 2;
  flex: 0 0 30px;
  padding: 9px 0;
  text-align: center;
}
#col-left .category a.open::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  vertical-align: 2px;
  border-right: 1.5px solid var(--chrome);
  border-bottom: 1.5px solid var(--chrome);
  transform: rotate(45deg);
  transition: border-color .15s ease;
}
#col-left .category a.open:hover { background: none; }
#col-left .category a.open:hover::after { border-color: var(--plum); }

#col-left .heading { margin: 0; }
#col-left .heading-in {
  padding: 0 0 8px;
  border-bottom: 2px solid var(--plum);
  color: var(--plum-deep);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#col-left .box,
#col-left .box2 {
  padding: 12px 0 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
#col-left .box:last-child,
#col-left .box2:last-child { border-bottom: 0; margin-bottom: 0; }

#col-left .box li a {
  position: relative;
  display: block;
  padding: 5px 0 5px 14px;
  color: var(--ink);
}
#col-left .box li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--chrome);
  transition: background .15s ease;
}
#col-left .box li a:hover { color: var(--rose); }
#col-left .box li a:hover::before { background: var(--rose); }

#col-left .box .tar {
  margin-top: 10px;
  text-align: right;
  font-size: 12.5px;
}
#col-left .box .tar a { font-weight: 600; }


/* ==========================================================================
   11. Footer
   ========================================================================== */

#footer {
  background: var(--plum-deep);
  color: #d9c9d4;
  padding: 34px 0 22px;
}

#footer-in {
  display: flex;
  flex-wrap: wrap;
  width: var(--shell);
  margin: 0 auto;
}

#footer .small-box {
  flex: 1 1 0;
  min-width: 200px;
  padding-right: 30px;
}
#footer .small-box.last { padding-right: 0; }
#footer .small-box-in { height: 100%; }

#footer .box-heading { margin: 0; }
#footer .box-heading-in {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: #f3e8f0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#footer .box,
#footer .box2 { font-size: 13.5px; }
#footer .box ul { margin-bottom: 4px; }
#footer .box li a {
  display: inline-block;
  padding: 3px 0;
  color: #d9c9d4;
}
#footer .box li a:hover { color: #fff; }

#footer .box2 .font20 {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}

#footer .box p { margin: 8px 0 0; line-height: 1.6; }
#footer .box img { opacity: .8; }

/* counter.religis.cz tracking pixels sit directly in #footer-in and would
   otherwise become flex items — keep them loading, out of the layout */
#footer-in > img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#sign {
  flex: 0 0 100%;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
  font-size: 12px;
  color: rgba(217, 201, 212, .7);
}
#footer br { display: none; }


/* ==========================================================================
   12. Utilities & dead template hooks
   ========================================================================== */

.clearer { clear: both; }
.float-l { float: left; }
.bold { font-weight: 700; }
.font18 { font-size: 18px; }
.font20 { font-size: 20px; }
.no-wrap { white-space: nowrap; }
.tar { text-align: right; }
.clrPrice { color: var(--rose); }
.clrDiscount { color: var(--rose); }

/* corner-image placeholders left over from template 034 */
.decor1, .decor2, .decor3, .decor4, .decor5, .decor6,
.decor-top, .decor-bottom,
.heading-decor1, .heading-decor2, .heading-decor3, .heading-decor4 {
  display: none;
}

/* .hide-from-js / .hide-no-js are defined by the inline script in <head> */


/* ==========================================================================
   13. Responsive
   ========================================================================== */

@media (max-width: 1010px) {
  #top-menu-in,
  #container,
  #footer-in {
    width: auto;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  #top-menu-in { padding-top: 6px; padding-bottom: 6px; }

  #logo { position: static; margin: 16px 0 2px; }
  #head { padding-top: 14px; }

  #main { flex-wrap: wrap; }
  #col-main { flex: 1 1 100%; }
  #col-left { flex: 1 1 100%; order: 3; margin-top: 30px; }
}

@media (max-width: 760px) {
  .goodOneInList { flex-basis: 50%; max-width: 50%; }
  #head { justify-content: flex-start; }
  #head .search { flex: 1 1 auto; }
  #head .search form div { width: 100%; }
  #head .input-text { flex: 1 1 auto; width: auto; }
  #footer .small-box { flex: 1 1 100%; padding-right: 0; margin-bottom: 24px; }
  #text-page td { display: block; padding: 0; }
  .round-box { padding: 18px; }
}

@media (max-width: 430px) {
  .goodOneInList { flex-basis: 100%; max-width: 100%; }
  .goodOneInList .short-text { display: none; }
  #logo a { font-size: 26px; }
  h1 { font-size: 23px; }
}


/* ==========================================================================
   14. Motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .goodOneInList-in:hover { transform: none; }
}

@media print {
  #top-menu, #head, .title-banner, #col-left, #footer { display: none; }
  #container { width: auto; }
  body { background: #fff; }
  .goodOneInList-in { border-color: #999; box-shadow: none; }
}