/* ==========================================================================
   rabljene-knjige.si — visual refresh (CSS override for Shoppica/BurnEngine)
   Loaded last in <head> by template/common/header.twig, after the theme's
   compiled main/dynamic CSS. When changing this file, bump ?v= there.
   Numbers refer to the points in the site review.
   ========================================================================== */

:root {
  --rk-accent: #b31515;        /* from the logo red */
  --rk-accent-dark: #850d0d;   /* darker logo red, for hover */
  --rk-text: #2b2b2b;
  --rk-muted: #6b6b6b;
  --rk-line: #e6e1da;
  --rk-paper: #f7f4ef;         /* warm off-white, like old paper */
}

/* 7a. Plain background, no boxed shadow ---------------------------------- */
body {
  background: #fff !important;
  color: var(--rk-text);
}
#wrapper {
  box-shadow: none !important;
}

/* 1. Cookie / notification bar at the bottom, solid ----------------------- */
.noty_cont,
.noty_layout_topRight,
.noty_layout_topLeft,
.noty_layout_topCenter {
  top: auto !important;
  bottom: 16px !important;
  right: 16px !important;
  left: auto !important;
  margin: 0 !important;
  width: 360px !important;
  max-width: calc(100vw - 32px);
}
.noty_bar,
.noty_message {
  opacity: 1 !important;
}
.noty_message {
  margin: 0 !important;
  background: #fff !important;
  border-top: 4px solid var(--rk-accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18) !important;
}
.noty_message a {
  color: var(--rk-accent) !important;
}
@media (max-width: 768px) {
  .noty_bar {
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
}

/* 2. Bigger, clearer search ---------------------------------------------- */
#HeaderSearchSystem_NBBqu26L:not(.tb_style_4) .tb_search_wrap {
  width: 420px !important;
  max-width: 100%;
}
#HeaderSearchSystem_NBBqu26L .tb_search_wrap {
  display: flex !important;
  align-items: stretch;
}
#HeaderSearchSystem_NBBqu26L .tb_search_wrap > input,
#HeaderSearchSystem_NBBqu26L .tb_search_wrap > .twitter-typeahead {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}
#HeaderSearchSystem_NBBqu26L input#filter_keyword {
  height: 44px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  background: #fff !important;
  border: 2px solid var(--rk-line) !important;
  border-right: 0 !important;
  border-radius: 22px 0 0 22px !important;
  box-shadow: none !important;
}
#HeaderSearchSystem_NBBqu26L input#filter_keyword:focus {
  border-color: var(--rk-accent) !important;
}
#HeaderSearchSystem_NBBqu26L .tb_search_wrap a#search_button.tb_search_button {
  flex: 0 0 54px;
  position: static !important;
  margin: 0 !important;
  height: 44px !important;
  width: 54px !important;
  line-height: 44px !important;
  border-radius: 0 22px 22px 0 !important;
  background-color: var(--rk-accent) !important;
  color: #fff !important;
  font-size: 16px !important;
}
#HeaderSearchSystem_NBBqu26L .tb_search_wrap a#search_button.tb_search_button:hover {
  background-color: var(--rk-accent-dark) !important;
  color: #fff !important;
}

/* 8a. One cart link is enough: drop "Košarica" from the top links -------- */
#Menu_X9U19E5w .tb_menu_system_checkout_cart {
  display: none !important;
}
#Menu_X9U19E5w nav > ul > li > a {
  color: var(--rk-muted);
  font-size: 13px;
}
#Menu_X9U19E5w nav > ul > li > a:hover {
  color: var(--rk-accent);
}

/* 4. One brand colour: replace turquoise with logo red ------------------- */
html body .tb_main_color_bg,
html body .tb_hover_main_color_bg:hover,
html body .btn:not(.tb_no_text):not(.tb_search_button):not(.btn-default),
html body .button {
  background-color: var(--rk-accent) !important;
  border-color: var(--rk-accent) !important;
  color: #fff !important;
}
html body a.tb_main_color_bg:hover,
html body .tb_main_color_bg_hover:hover,
html body .btn:not(.tb_no_text):not(.tb_search_button):not(.btn-default):hover,
html body .button:hover {
  background-color: var(--rk-accent-dark) !important;
  border-color: var(--rk-accent-dark) !important;
}
#HeaderCartMenuSystem_HJ4nU3fO #cart > .nav > li:not(:hover) > .heading > a > .tb_icon,
#HeaderCartMenuSystem_HJ4nU3fO #cart > .nav > li:not(:hover) > .heading > a > .tb_total {
  color: var(--rk-accent) !important;
}
#HeaderCartMenuSystem_HJ4nU3fO #cart > .nav > li:hover > .heading > a {
  background-color: var(--rk-accent) !important;
}
#Menu_Ws3ho9XV nav > ul > li > a:hover,
#Menu_Ws3ho9XV nav > ul > li.tb_selected > a,
.tb_wt_menu .dropdown-menu a:hover,
a:hover {
  color: var(--rk-accent);
}
/* mobile toggle buttons (menu / cart) */
html body #header .tbToggleButtons .tb_toggle.btn {
  background-color: var(--rk-accent) !important;
  color: #fff !important;
  border-radius: 6px;
}

/* 7b. Section headings on one baseline; arrows sit next to their heading */
.tb_wt .panel-heading.tb_mt_20 {
  margin-top: 0 !important;
}
.tb_wt .panel-title {
  font-size: 20px;
  color: var(--rk-text);
  letter-spacing: 0.01em;
}
.tb_wt.has_slider .tb_prev,
.tb_wt.has_slider .tb_next,
.tb_wt.has_slider [class*="swiper-button"] {
  color: var(--rk-accent) !important;
}

/* 6. Categories as a compact list (desktop) / chips (mobile) ------------- */
#Categories_YiG035xr .tb_subcategory .thumbnail {
  display: none !important;
}
#Categories_YiG035xr .tb_subcategories {
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
  text-align: left !important;
}
#Categories_YiG035xr .tb_subcategories > div {
  display: block !important;
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#Categories_YiG035xr .tb_subcategory {
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
}
#Categories_YiG035xr .tb_subcategory h3 {
  margin: 0 !important;
  font-size: 15px !important;
  border-bottom: 1px solid var(--rk-line);
}
#Categories_YiG035xr .tb_subcategory h3 a {
  display: block;
  padding: 11px 4px;
  color: var(--rk-text);
}
#Categories_YiG035xr .tb_subcategory h3 a:hover {
  color: var(--rk-accent);
  padding-left: 8px;
  transition: padding 0.15s, color 0.15s;
}
@media (max-width: 1199px) {
  #Categories_YiG035xr .tb_subcategories {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  #Categories_YiG035xr .tb_subcategories > div {
    width: auto !important;
  }
  #Categories_YiG035xr .tb_subcategory h3 {
    border: 0;
  }
  #Categories_YiG035xr .tb_subcategory h3 a {
    padding: 8px 14px;
    font-size: 14px;
    background: var(--rk-paper);
    border: 1px solid var(--rk-line);
    border-radius: 999px;
  }
  #Categories_YiG035xr .tb_subcategory h3 a:hover {
    padding-left: 14px;
    border-color: var(--rk-accent);
  }
}

/* 5. Product cards -------------------------------------------------------- */
/* cover: every image sits in a tile of the same size. The image files are
   white-padded squares; multiply blending turns that white into the tile colour,
   so wide puzzles and tall book covers line up alike. */
.tb_products .product-thumb .image > a {
  display: block;
  padding: 10px;
  background: var(--rk-paper);
  border-radius: 8px;
}
.tb_products .product-thumb .image > a > span > span {
  background: var(--rk-paper);
  border-radius: 4px;
}
.tb_products .product-thumb .image img {
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* 5a. price as plain text under the title, not a badge over the cover */
.tb_listing:not(.tb_compact_view) .product-thumb .price {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  color: var(--rk-accent) !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.3 !important;
}
.tb_listing:not(.tb_compact_view) .product-thumb .price:after {
  display: none !important;
}
.tb_listing:not(.tb_compact_view) .product-thumb .price > :not(.price-old) {
  position: static !important;
  width: auto !important;
  height: auto !important;
  line-height: inherit !important;
  border-radius: 0 !important;
  background: none !important;
  color: inherit !important;
}
.product-thumb .price .tb_decimal_point {
  display: inline !important;
}
.product-thumb .price .tb_decimal {
  vertical-align: baseline !important;
  font-size: inherit !important;
  top: 0 !important;
}
.product-thumb .price .tb_currency {
  margin-left: 0.2em;
}
/* add-to-cart: the theme colours it with its own, more specific rule */
html body .product-thumb .tb_button_add_to_cart .btn.btn:not(:hover) {
  background-color: var(--rk-accent) !important;
}
html body .product-thumb .tb_button_add_to_cart .btn.btn:hover {
  background-color: var(--rk-accent-dark) !important;
}
html body .product-thumb .tb_button_add_to_cart .btn.btn {
  padding: 0 18px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 13px;
}
/* 5b. no empty star ratings */
.product-thumb .rating {
  display: none !important;
}
/* 5c. titles max two lines, same height in every card */
html body .tb_products .product-thumb .caption h4 {
  min-height: 2.8em;
  max-height: 2.8em;
  margin-bottom: 0 !important;
  font-size: 14px !important;
  line-height: 1.4em !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-thumb .caption h4 a {
  color: var(--rk-text);
}
.product-thumb .caption h4 a:hover {
  color: var(--rk-accent);
}

/* 3. Banner: text in the image is unreadable on phones, so hide it there */
@media (max-width: 767px) {
  #FireSlider_SiA2YJ10 {
    display: none !important;
  }
}

/* Footer headings were turquoise too */
.row_TdcVT h1, .row_TdcVT h2, .row_TdcVT h3, .row_TdcVT h4,
.row_TdcVT .panel-heading, .row_TdcVT .box-heading {
  color: var(--rk-accent) !important;
}

/* ==========================================================================
   Product page (template: product/product.twig, controller: product/product.php)
   ========================================================================== */

/* One title: the breadcrumb band at the top keeps only the breadcrumb */
.tb_page_product_product #intro,
.tb_page_product_product #intro .row-wrap,
.tb_page_product_product #intro .row,
.tb_page_product_product #intro .col {
  background: none !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.tb_page_product_product #intro .tb_system_page_title {
  display: none !important;
}
html body.tb_page_product_product #intro {
  margin-bottom: 14px !important;
}
.tb_page_product_product #intro .breadcrumb {
  margin: 4px 0 0 !important;
  font-size: 13px;
}
.tb_page_product_product #intro .breadcrumb a {
  color: var(--rk-muted) !important;
}
.tb_page_product_product #intro .breadcrumb li:last-child a {
  color: var(--rk-text) !important;
}
.tb_page_product_product #content .tb_system_page_title h1 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.2;
}

/* Author, condition */
.rk-author {
  font-size: 17px;
  color: var(--rk-accent) !important;
}
.rk-author:hover {
  text-decoration: underline;
}
.rk-condition {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
}
.rk-condition-label {
  color: var(--rk-muted);
}
.rk-condition-scale {
  display: inline-flex;
  gap: 3px;
}
.rk-condition-scale i {
  width: 18px;
  height: 8px;
  border-radius: 2px;
  background: var(--rk-line);
}
.rk-condition-scale i.rk-on {
  background: #2e8b57;
}
.rk-condition b {
  color: #2e8b57;
}
.rk-condition-help {
  font-size: 13px;
  color: var(--rk-muted) !important;
  text-decoration: underline;
}
.rk-condition-text {
  margin: 6px 0 0;
  font-size: 14px;
}

/* New goods (puzzles): brand · pieces · size, and a "Nov izdelek" badge */
.rk-keyfacts {
  font-size: 17px;
}
.rk-dot-sep {
  margin: 0 8px;
  color: var(--rk-muted);
}
.rk-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e6f3ec;
  color: #2e8b57;
  font-weight: 600;
}

/* Buy box: the price widget is its top half, the add-to-cart widget the bottom */
.tb_page_product_product .tb_system_product_price.tb_system_product_price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px 12px;
  margin-top: 22px !important;
  padding: 20px 22px 0;
  text-align: left !important;
  background: var(--rk-paper);
  border: 1px solid var(--rk-line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0 !important;
}
.tb_page_product_product .tb_system_product_price > * {
  flex: 0 1 auto !important; /* the theme makes every child 100% wide */
}
.tb_page_product_product .tb_system_product_price:before,
.tb_page_product_product .tb_system_product_price:after {
  display: none !important; /* clearfix pseudo-elements would take a flex gap */
}
.tb_page_product_product .tb_system_product_price .tb_label {
  display: none !important;
}
.tb_page_product_product .tb_system_product_price .price {
  font-size: 34px !important;
  font-weight: 700;
  line-height: 1.1 !important;
  color: var(--rk-accent) !important;
}
.tb_page_product_product .tb_system_product_price .price-regular,
.tb_page_product_product .tb_system_product_price .price-new,
.tb_page_product_product .tb_system_product_price .price-regular > span,
.tb_page_product_product .tb_system_product_price .price-new > span {
  font-size: inherit !important;
}
.tb_page_product_product .tb_system_product_price .price .tb_currency {
  margin-left: 0.2em;
}
.rk-stock {
  margin-left: auto;
  font-size: 14px;
  color: #2e8b57;
}
/* sold out: no add-to-cart widget below, so the price box closes itself */
.tb_page_product_product .tb_system_product_price.tb_system_product_price:has(.rk-sold-out) {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rk-line);
  border-radius: 10px;
}
.tb_page_product_product .tb_system_product_price .price.rk-sold-out {
  font-size: 18px !important;
  color: var(--rk-muted) !important;
}
.rk-stock:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tb_page_product_product .tb_system_product_buy.tb_system_product_buy {
  flex: 1 1 100% !important;
  margin-top: 0 !important;
  padding: 16px 22px 18px;
  background: var(--rk-paper);
  border: 1px solid var(--rk-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
/* quick view has no price widget above, so the add-to-cart box closes itself */
.tb_quickview .tb_page_product_product .tb_system_product_buy.tb_system_product_buy {
  padding-top: 18px;
  border-top: 1px solid var(--rk-line);
  border-radius: 10px;
}
.tb_page_product_product .tb_system_product_buy .tb_purchase_button {
  display: flex !important;
  align-items: stretch;
  gap: 10px;
}
.tb_page_product_product .tb_system_product_buy .tb_purchase_button > label,
.tb_page_product_product .tb_system_product_buy .tb_purchase_button > br,
.tb_page_product_product .tb_system_product_buy .tb_actions:empty {
  display: none !important;
}
.tb_page_product_product .tb_system_product_buy .tb_input_wrap {
  flex: 0 0 64px;
  margin: 0 !important;
}
.tb_page_product_product .tb_system_product_buy .tb_input_wrap input {
  height: 50px !important;
  background: #fff !important;
}
html body.tb_page_product_product #button-cart.btn {
  flex: 1 1 auto !important;
  width: auto !important;
  height: 50px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  font-size: 17px !important;
  font-weight: 600;
  box-shadow: none !important;
}
.rk-buy-facts {
  margin: 16px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--rk-line);
  font-size: 14px;
}
.rk-buy-facts li {
  margin: 5px 0;
}
.rk-buy-facts i {
  width: 22px;
  color: var(--rk-accent);
}

/* The product image sits in a tile like the cards. The photo is a CSS background
   of the slider's .mSCover element, so it is blended with its own background colour. */
.tb_page_product_product #product_images .mSCover {
  background-color: var(--rk-paper) !important;
  background-blend-mode: multiply;
  border-radius: 10px;
}

/* Zoom button in the brand colour */
html body #product_images .tbGoFullscreen.btn.btn,
html body #product_images .tbGoFullscreen.btn.btn:not(:hover) {
  background-color: var(--rk-accent) !important;
  border-radius: 50% !important;
  color: #fff !important;
}

/* Description (only when there is one) and details */
.rk-description {
  margin-bottom: 26px;
}
.rk-section-title,
.tb_page_product_product .tb_product_attributes thead th {
  padding-left: 0 !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rk-muted);
  background: none !important;
}
.rk-section-title {
  margin: 0 0 10px;
}
.tb_page_product_product .tb_product_attributes td {
  padding-left: 0 !important;
  font-size: 14px;
}
.tb_page_product_product .tb_product_attributes td:first-child {
  color: var(--rk-muted);
}

/* Phones: a buy bar appears once the real button has scrolled away */
.rk-sticky-buy {
  display: none;
}
@media (max-width: 767px) {
  .tb_page_product_product #content .tb_system_page_title h1 {
    font-size: 25px;
  }
  .tb_page_product_product .tb_system_product_price.tb_system_product_price,
  .tb_page_product_product .tb_system_product_buy.tb_system_product_buy {
    padding-left: 16px;
    padding-right: 16px;
  }
  .rk-sticky-buy.rk-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid var(--rk-line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }
  .rk-sticky-buy-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
  }
  .rk-sticky-buy-text span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    color: var(--rk-muted);
  }
  .rk-sticky-buy-text b {
    font-size: 20px;
    color: var(--rk-accent);
  }
  .rk-sticky-buy-text b span {
    font-size: inherit !important;
    color: inherit !important;
  }
  .rk-sticky-buy-text b .tb_currency {
    margin-left: 0.2em;
  }
  html body .rk-sticky-buy .btn {
    height: 46px !important;
    padding: 0 22px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }
}
