body {
  background: #fff/*var(--site-background-color)*/;
}
body.has-offcanvas {
  overflow: hidden;
}
#page-container {
  min-height: 100vh;
  display: flex;
  flex-flow: column;
}
#content-wrapper {
  flex-grow: 1;
  margin: 0 0.5em;
}
@media (min-width: 1460px) {
  #content-wrapper {
    margin: 0;
  }
}
#important-notice {
  background: var(--important-notice-background-color);
  color: var(--important-notice-text-color);
  text-align: center;
}
#important-notice .fourteen-forty {
  padding: 0.5em var(--gutter-x);
}
@media (max-width: 991px) {
  #site-menu {
    position: sticky;
    display: block;
    top: 0;
    z-index: 999;
    transition: top 200ms linear;
  }
  #site-menu .navbar-header a {
    color: var(--navigation-text-color);
  }
}
@media (max-width: 991px) {
  #site-menu .container {
    padding: 0 !important;
  }
}
#site-menu .quick-access {
  display: flex;
  font-size: 0.8em;
  align-items: center;
  gap: 1em;
}
@media (min-width: 768px) {
  #site-menu .quick-access {
    font-size: 1em;
  }
}
@media (min-width: 992px) {
  #site-menu .quick-access {
    font-size: 1em;
  }
}
#site-menu .navbar {
  padding: 0.5rem 0.5rem;
}
@media (min-width: 992px) {
  #site-menu .navbar {
    margin-top: 5.5em;
    padding: 0.5rem 0.5rem;
  }
  #site-menu .navbar .dropdown-menu .nav-link {
    background: var(--dropdown-menu-item-background-color);
    color: var(--dropdown-menu-item-text-color);
  }
  #site-menu .navbar .dropdown-menu .nav-link:hover {
    filter: brightness(0.95);
  }
}
#site-menu .dropdown-menu {
  overflow: hidden;
  --gutter-y: 0.75em;
}
body.scrolling-down #site-menu {
  top: -8em;
}
.navbar{
	background-color: #ffffff;
}
.navbar-header {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 1em 1em;
  justify-content: space-between;
  background: var(--header-background-color);
  color: var(--header-text-color);
  width: 100%;  
  margin-top: 0.5em;
  margin-bottom: 0.5em;  
}
@media (min-width: 768px) {
  .navbar-header {
    gap: var(--gutter-x);
	margin-bottom: 0em;
  }
}
@media (min-width: 992px) {
  .navbar-header {
    position: absolute;
    top: -5rem;
    left: 0;
    right: 0;
    margin-bottom: var(--gutter-y);
	padding: 0.5rem 0.5rem;
    /*padding-left: 1em;
    padding-right: 1em;*/
  }
}
.navbar-header .fourteen-forty {
  display: inherit;
  flex-flow: inherit;
  gap: inherit;
  justify-content: inherit;
  align-items: inherit;
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-header .logotype {
  flex-grow: 1;
}
.navbar-header .logotype img {
  max-width: 201.6px;
  max-height: 46.08px;
}
@media (min-width: 768px) {
  .navbar-header .logotype img {
    max-width: 270px;
    max-height: 90px;
  }
}
@media (min-width: 768px) {
  .navbar-header .logotype {
    width: auto;
  }
}
@media (min-width: 992px) {
  .navbar-header .logotype {
    flex-grow: 0;
  }
}
.navbar-header .navbar-brand {
  display: none;
  width: calc(var(--sidebar-width) + var(--gutter-x)/2);
  font-size: 17px;
}
.navbar-header .navbar-brand:hover,
.navbar-header .navbar-brand:focus {
  text-decoration: none;
}
.navbar-header .navbar-brand > img {
  display: block;
}
@media (min-width: 768px) {
  .navbar-header .navbar-brand {
    display: block;
  }
}
.navbar-header form[name="search_form"] .input-group {
  background-color: #f1f3f5;
  height: 47px;
  border: none;
}
.navbar-header .navbar-search {
  flex: 1 1 auto;
  margin: 0 auto;
}
@media (max-width: 991px) {
  .navbar-header .navbar-search {
    width: 100%;
    order: 999;
  }
}
@media (min-width: 992px) {
  .navbar-header .navbar-search {
    max-width: 800px;
  }
}
.navbar-header .navbar-icon {
  font-size: 1.5em;
}
#cart {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}
#cart > a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px transparent solid;
  border-radius: var(--border-radius);
  color: inherit;
  white-space: nowrap;
}
#cart > a:hover {
  border-color: var(--default-border-color);
  text-decoration: none;
}
#cart img {
  max-width: 2em;
  max-height: 2em;
}
@media (min-width: 768px) {
  #cart img {
    font-size: 1.5em;
  }
}
#cart .badge {
  background: #c90000;
  border-radius: 2rem;
  padding: 0.25em 0em;
  display: inline-block;
  text-align: center;
  color: #fff;
  position: absolute;
  top: 15px;
  right: -10px;
  width: 2em;
  animation: pulsating 1.5s linear infinite;
  font-size: 10px;
}
#cart .badge:empty {
  display: none;
}
@media (max-width: calc(768px - 1px)) {
  #cart .details {
    display: none;
  }
  #cart #cart .badge {
    top: 15px;
    right: 0;
  }
}
#sidebar {
  position: relative;
  display: flex;
  flex-flow: column;
}
#footer {
  /*background-color: var(--footer-background-color);*/
  /*border-top: 1px solid var(--card-border-color);*/
  background-color: #f1f3f5;
  color: var(--footer-text-color);
  padding: var(--gutter-y) var(--gutter-x);
}
#footer a {
  color: inherit;
}
#footer .columns {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  grid-gap: var(--gutter-x);
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 768px) {
  #footer .columns {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 992px) {
  #footer .columns {
    grid-template-columns: repeat(5, 1fr);
  }
}
#footer .title {
  font-size: 1.3em;
  margin: 0 0 0.75em 0;
  color: var(--footer-title-color);
}
#footer ul.list-vertical li {
  padding: 0;
}
#footer .columns{
  font-size: 16px;
}
#copyright {
  /*background: var(--copyright-background-color);*/
  color: var(--copyright-text-color);
}
#copyright .container {
  padding: 1.75em var(--gutter-x);
}
#copyright .notice {
  text-align: center;
  font-size: 16px;
}
#copyright .notice a {
  color: inherit;
  text-decoration: underline;
}
/*#scroll-up {
  bottom: 120px;
  display: none;
  height: 48px;
  opacity: 0.3;
  position: fixed;
  right: 34px;
  width: 48px;
}*/
/* Boxes */
.box {
  margin-bottom: var(--gutter-y);  
}

/* BEGINNING OF CHANGES */
.table-sm{
	
}

#mobile-menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 999998 !important; /* One step below the menu */
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  #mobile-menu-overlay.active {
      opacity: 0.35;
      visibility: visible;
  }
  
  #offcanvas {
      z-index: 999999 !important; /* Top level */
  }

/* 1. Prepreči raztezanje levega stolpca z višino teksta */
.cat-col-image {
    align-self: flex-start;
}

/* 2. Prisili okvir slike v popoln kvadrat 1:1 */
.cat-image-1x1 {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.cat-image-1x1 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zagotovi, da slika lepo zapolni kvadrat */
}

/* 3. Logika za "Preberi več" */
.cat-desc-content {
    max-height: 182px; /* TUKAJ NASTAVITE ŽELENO MEJO ODREZA BESEDILA */
    overflow: hidden;
    position: relative;
	/*text-align: justify;
    word-break: break-all;*/
	/* Aligns text to both the left and right margins */
  text-align: justify;
  
  /* Prevents words from breaking anywhere */
  word-break: keep-all; 
  
  /* Ensures standard word wrapping without breaking mid-word */
  overflow-wrap: normal; 
  
  /* Disables automatic hyphenation */
  hyphens: none;
    /* transition: max-height 0.3s ease; - Opcijsko za animacijo, če uporabite točno višino namesto "none" */
}

/* Ko skripta doda ta razred, se besedilo odpre do konca */
.cat-desc-content.expanded {
    max-height: none;
}

.cat-read-more-btn {
    display: none; /* Privzeto skrito, pokaže JS če je tekst predolg */
    cursor: pointer;
    margin-top: 15px;
    color: var(--default-link-color); /* Uporabi barvo linkov iz vaše teme */
    font-weight: bold;
	font-size: 17px;
}

/* Ensure the link centers everything */
.category-top-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Set up the container for the ghost text */
.category-top-nav .name {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

/* The Magic: Create an invisible bold copy */
.category-top-nav .name::after {
    content: attr(data-text); /* Duplicate the text from HTML */
    font-weight: 700;         /* Make it bold (or whatever your hover weight is) */
    height: 0;                /* Hide it vertically */
    visibility: hidden;       /* Make it invisible */
    overflow: hidden;         /* Ensure it doesn't spill out */
    user-select: none;        /* Prevent selecting invisible text */
    pointer-events: none;     /* Prevent clicking invisible text */
    display: block;           /* Make it take up width */
}

/* 1. CONTAINER: Strict limits */
ul.category-top-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    width: 100%;
    max-width: 100vw; /* Hard limit: Never exceed screen width */
    padding: 15px 0 15px;
    margin: 50px 0 0;
    list-style: none;
    box-sizing: border-box; /* Include padding in width calculation */
}

/* 2. ITEMS: The "Force Fit" logic */
.category-top-nav li {
    /* Grow to 1, Shrink to 1, Start at 0px width */
    flex: 1 1 0px; 
    
    /* Critical: Allows item to shrink smaller than the text inside it */
    min-width: 0; 
    
    padding: 0 2px; /* Very small padding to save space */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 3. ICON: Fluid relative to screen width */
.category-top-nav .svg-container {
    /* CHANGED: Replace "width: 100%" with clamp logic.
       - 35px: Don't get tinier than this.
       - 5vw:  Shrink nicely as screen gets smaller.
       - 60px: Cap at max size.
    */
    width: clamp(35px, 5vw, 60px); 
    
    /* Keep these the same */
    max-width: 60px; 
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3px;
}

.category-top-nav .svg-container svg,
.category-top-nav .svg-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* 4. TEXT: Allow wrapping and shrinking */
.category-top-nav .name {
    width: 100%;
    font-size: 13px;
    line-height: 1.1;
    
    /* Allow wrapping */
    white-space: normal; 
    word-wrap: break-word; 
    overflow: hidden; /* Cut off if it spills out */
    
    /* No-Jitter Hover Effect */
    font-weight: 400; 
    transition: color 0.2s ease;
}

/* Fake Bold on Hover (No size change) */
.category-top-nav li:hover .name,
.category-top-nav li.active .name {
    /*text-shadow: 1px 0 0 currentColor;*/
	font-weight: 700;
}

/* 5. RESPONSIVE TEXT: Shrink font on small screens */
@media (max-width: 1200px) {
    .category-top-nav .name { font-size: 11px; }
	
}
@media (max-width: 1000px) {
    .category-top-nav .name { font-size: 10px; }
}

.mim-text{
	font-size: 16px;
}

/*---*/
.category-front {
  border: 1px solid var(--default-border-color);
  border-radius: var(--border-radius);
  grid-gap: var(--gutter-y) 0;  
}

.category-front-right {
  padding: 0.5em 0.7em 0 1.2em;
}

.category-front-right .description{
	font-size: 18px;
}

.thumbnail {
	background-color: none;
	border: none;
	/*height: 100%;*/
	display: flex;
    align-items: center;       /* Centers vertically */
    justify-content: center;   /* Centers horizontally (optional) */
}

/* Disable hover animation/shadow for the Sidebar Product */
.product.no-hover-effect {
	border: 1px solid #e0e0e0 !important;
}
.product.no-hover-effect:hover {
    box-shadow: none !important;      /* Removes the shadow pop-up */    
    transform: none !important;       /* Stops the card from scaling/moving up */
    z-index: 0 !important;            /* Prevents it from layering on top */
}

/* Optional: Stop image zoom if your theme has it */
.product.no-hover-effect:hover img {
    transform: none !important;
    opacity: 1 !important;
}

.info.popular{
	text-align: center;
	padding: 15px;
}

.info.popular .price-wrapper{
	margin-top: 10px;
}

.custom-windows {
	display: inline-block;
}

.custom-windows svg {
	vertical-align: text-bottom;
	margin-right: 3px;
}

.hamburger {	
    margin-left: 18px;
    vertical-align: middle;
    width: 53px;
	display: inline-block;
}
/* --- MINIMAL HEADER META BAR --- */
.header-meta-bar {
    display: flex;
    justify-content: space-between; /* Pushes content to edges */
    align-items: flex-end;          /* Aligns text to bottom */
	width: 100%;
	margin-top: 0px;
}

/* Left Side (Address) */
.meta-left {
    text-align: left;
}

/* Right Side (Links) */
.meta-right {
    display: flex;
    gap: 20px; /* Space between the two links */
	font-size: 15px;
}

/* --- MOBILE VERSION --- */
@media (max-width: 768px) {
    .header-meta-bar {
        flex-direction: column; /* Stack vertically */
        align-items: center;    /* Center everything */
        text-align: center;
        gap: 10px;              /* Space between address and links */
        margin-bottom: 15px;
    }

    .meta-left {
        width: 100%;
        margin-bottom: 5px;
    }
}

#site-menu{
	width: 100%;
}

/* Top Promo Bar */
.top-promo-bar {
    width: 100%;
    padding: 13px 0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Info Below Logo */
.header-contact-info {    
	margin-left: 0px;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
    white-space: pre-wrap; /* Respects line breaks from admin */
	display: flex;
  justify-content: flex-start;
  text-align: left !important;
  padding-left: 0px;
}

@media (max-width: 768px) {
    .header-contact-info {
        text-align: center;
        margin-bottom: 10px;
    }
}

.align-with-menu {
	margin-top: 44.9844px;
}

/* Level 3 Indentation */
.mim-opened-sublist {
    list-style: none !important;
    padding: 0 0 0 15px !important;
    margin: 0 !important;
}
.mim-opened-sublist a {
    font-size: 12px;
    color: #888;
}

/* =========================================
   1. MAIN SIDEBAR CONTAINER (The Anchor)
   ========================================= */
#box-category-tree.box-categories {
    position: relative !important; /* Critical: Anchors the popover to this box */
    background: #fff;
    border: 1px solid #e0e0e0;     /* Card Border */
    border-radius: var(--border-radius);            /* Card Radius */
    margin-bottom: 20px;
}

/* Card Header */
#box-category-tree .card-header {
    padding: 15px 20px;
    /*border-bottom: 1px solid #e0e0e0;
    background: #fff;*/
}

#sidebar .card-title {
    font-size: 1.4em;
    font-weight: 100;
    margin-bottom: 1rem;
    margin-left: 3px;
	display: inline-block;
}

#box-category-tree .card-body {
    padding: 0;
}

/* =========================================
   2. SIDEBAR LIST ITEMS
   ========================================= */
.mim-side-menu {
    list-style: none !important; /* Removes bullet points */
    padding: 0 !important;
    margin: 0 !important;
}

/* 1. Change .mim-item to RELATIVE (was static) */
.mim-item {
    position: relative !important; /* This makes the popover align to THIS row */
    border-bottom: 1px solid #f4f4f4;
}

.mim-item:last-child {
    border-bottom: none;
}

/* =========================================
   3. SIDEBAR LINKS (Icon | Text)
   ========================================= */
.mim-link {
    display: flex !important;  /* flexbox forces horizontal alignment */
    align-items: center;       /* Vertically centers icon, line, and text */
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    transition: background 0.1s;
    width: 100%;
    box-sizing: border-box;
}

/* Hover & Active States */
.mim-item:hover > .mim-link,
.mim-item.active > .mim-link {
    background-color: #f9f9f9;
    color: #c90000;
    font-weight: 600;
	/*border-radius: var(--border-radius);*/
}

/* =========================================
   4. ICONS & SEPARATOR
   ========================================= */
.mim-svg-icon {
    width: 32px;      /* Fixed width container for icon */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;   /* Prevents icon from shrinking */
}

.mim-svg-icon img, 
.mim-svg-icon svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.mim-separator {
    width: 1px;
    height: 24px;       /* Height of the vertical line */
    background-color: #ddd;
    margin: 0 15px;     /* Spacing around the line */
    display: block;
}

.mim-item:hover .mim-separator,
.mim-item.active .mim-separator {
    background-color: #c90000; /* Line turns red on active */
}

/* =========================================
   ACCORDION (Open State Fixes)
   ========================================= */
.mim-opened-list {
    list-style: none !important;
    padding: 10px 0 10px 68px !important; /* Indent from the left */
    margin: 0 !important;
    background: #fff;
}

.mim-opened-list li {
    /*margin-bottom: 2px;*/
}

/* Base Link Style */
.mim-opened-list li > a {
    display: block;
    padding: 6px 0;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    position: relative;
}

/* FIX: Only highlight the DIRECT link, not children */
.mim-opened-list li.current > a {
    color: #c90000;
    font-weight: 700;
}

/* ARROW: Level 2 */
.mim-opened-list li > a::before {
    content: "\203A"; /* Single Chevron › */
    font-size: 18px;
    line-height: 1;
    margin-right: 8px;
    color: #999;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* Highlight Arrow on Active */
.mim-opened-list li.current > a,
.mim-opened-list li > a:hover,
.mim-opened-list li.current > a::before,
.mim-opened-list li > a:hover::before {
    color: #c90000;
}

/* --- Level 3 (Sub-Sub) Styling --- */
.mim-opened-sublist {
    list-style: none !important;
    padding: 0 0 0 15px !important; /* Extra indentation */
    margin: 0 !important;
}

.mim-opened-sublist li > a {
    font-size: 13px;
    color: #888;
}

/* Level 3 Arrow */
.mim-opened-sublist li > a::before {
    content: "\00BB"; /* Double Chevron » */
    font-size: 14px;
    top: -1px;
}

/* Level 3 Active */
.mim-opened-sublist li.current > a {
    color: #c90000;
    font-weight: 700;
}

/* Style for Active Top Menu Item */
.category-top-nav li.active > a .name {
    color: #c90000;
    font-weight: bold;    
}

.category-top-nav {
	/*background-color: #f1f3f5;*/
/*background: linear-gradient(
  to bottom,
  rgba(0,0,0,0.05) 0%,
  rgba(0,0,0,0.02) 5%,
  rgba(0,0,0,0.00) 15%,
  rgba(0,0,0,0.00) 85%,
  rgba(0,0,0,0.02) 95%,
  rgba(0,0,0,0.05) 100%
);*/
	
}

/* =========================================
   6. MEGA MENU POPOVER (The Right Side)
   ========================================= */
.mim-popover {
    display: none;
    position: absolute;
    /* Anchors to the Top-Right of the Main Box (#box-category-tree) */
    top: -1px; 
    left: 100%; 
    
    /* SPREMEMBA: Dinamična širina, ki se prilagodi ekranu, a ne preseže 850px */
    width: calc(100vw - 300px); /* 100% širine ekrana MINUS približna širina levega stolpca in robov */
    max-width: 850px;           /* Na velikih zaslonih ostane 850px (kot Mimovrste) */
    
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 30px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    box-shadow: 10px 5px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    border-radius: var(--border-radius);
}

/* Show on Hover */
.mim-item:hover .mim-popover {
    display: none;
}

/* Grid Layout */
.mim-grid {
    display: flex;
    height: 100%;
}

/* Categories Section (Left) */
.mim-cats {
    flex: 1;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Privzeto 3 stolpci */
    gap: 19px 10px;
    align-content: start;
}

.mim-block{
    text-align: center;
}

/* Promo Section (Right) */
.mim-promo {
    /* SPREMEMBA: Omogočimo, da se promo sekcija skrči na manjših zaslonih */
    width: 260px;
    max-width: 35%; /* Nikoli ne zavzame več kot 35% menija */
    
    padding: 25px;
    border-left: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================
   RESPONZIVNOST (Za srednje velike zaslone)
   ========================================= */
@media (max-width: 1199px) {
    /* Ko zaslon postane ožji, zmanjšamo število stolpcev znotraj menija na 2 */
    .mim-cats {
        grid-template-columns: repeat(2, 1fr); 
        padding: 15px;
    }
    
    /* Zmanjšamo obrobe pri promo sliki */
    .mim-promo {
        padding: 15px;
    }
}

/* Subcategory Blocks */
.mim-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mim-header a {
    font-weight: 700;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
}

.mim-header a:hover {
    color: #c90000;
}

.mim-header img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Sub-links (Level 3) */
.mim-sublinks {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
	text-align: left;
}

.mim-sublinks li {
    margin-bottom: 4px;
}

.mim-sublinks a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.1s;
}

.mim-sublinks a:hover {
    color: #c90000;
}

/* Promo Button */
.mim-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    /*background-color: #333;*/
    color: #fff;
	font-size: 14px;
    /*font-size: 12px;
    font-weight: bold;*/
    text-decoration: none;
    border-radius: 4px;
}

.category-top-nav {
    list-style: none;
    padding: 25px 0 0px;
    margin-top: 3.2em;
    margin-bottom: 0em;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 1.5em;
    
    /* The Border Fix */
    border-top: 1px solid var(--card-border-color);
    border-bottom: 1px solid var(--card-border-color);
    width: 100%;
    box-sizing: border-box; /* Ensures padding/border don't add to width */
}

/* 3. Add to your 'li' to ensure the whole block stays centered */
.category-top-nav li {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers children (a, name) horizontally */
    text-align: center;
}

.category-top-nav li a {
    text-decoration: none;
    display: block;
    transition: color 0.2s;
	color: currentColor;
}

.category-top-nav li a .name {
    color: var(--pills-text-color);
    display: block;
    margin-top: 5px;
    font-weight: 400;
    /*white-space: nowrap;*/
	font-size: 15px;
	/*height: 31px;*/
	padding: 0 2px 0;
}

/* Hover logic: when link 'a' is hovered, change .name color */
.category-top-nav li a:hover .name {
    color: #c90000;
	font-weight: bold;
}

/* 1. Ensure the container itself is centered */
.category-top-nav .svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Centers the container within the <li> */
}

/* 2. Ensure the SVG inside respects the centering */
.category-top-nav .svg-container svg {
    width: 100%;
    height: auto;
    fill: currentColor;
    display: block; 
    margin: 0 auto; /* Horizontal centering */
}
/* END OF CHANGES */

#box-filter .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
#box-filter .filters > * {
  flex: 1 1 auto;
  min-width: fit-content;
}
#box-filter .filters [data-toggle="dropdown"] {
  cursor: pointer;
}
#box-filter .filters .dropdown-menu li {
  margin: 0.5em 1em;
}
#box-filter .filters .dropdown-menu .option {
  white-space: nowrap;
}
/*#box-filter .manufacturers ul {
  max-height: 200px;
  overflow-y: auto;
}*/
#box-filter .tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#box-filter .tokens:not(:empty) {
  padding-top: var(--gutter-y);
}
#box-filter .tokens .token {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: var(--border-radius);
  cursor: default;
}
#box-filter .tokens .token[data-group="name"] {
  background: #cbe2b6;
}
/*#box-filter .tokens .token[data-group="manufacturer"] {
  background: #b6c2e2;
}*/
#box-filter .tokens .token[data-group^="attribute"] {
  background: #e2c6b6;
}
#box-filter .tokens .token .remove {
  padding-inline-start: 0.5em;
  color: inherit;
  font-weight: 600;
}
#box-cookie-notice {
  background: var(--cookie-notice-background-color);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1em;
  backdrop-filter: saturate(200%) blur(5px);
  color: var(--cookie-notice-text-color);
  z-index: 2147483647 !important; /* Maksimalen možen z-index, da je vedno čez vse */
}
#box-cookie-notice .notice {
  margin-bottom: 1em;
}
#box-cookie-notice .notice a {
  color: inherit;
  text-decoration: underline;
}
#box-cookie-notice button {
  margin: 0 0.5em;
}
@media (min-width: 768px) {
  #box-cookie-notice {
    max-width: 480px;
    margin: 0 auto;
    bottom: var(--gutter-y);
    border-radius: var(--border-radius);
  }
}
#box-recently-viewed-products .link img {
  transition: all 100ms linear;
}
#box-recently-viewed-products .link img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
}
@media (min-width: 992px) {
  #box-also-purchased-products {
    position: sticky;
    top: 0;
  }
  
  .right-side-upper-space{
	margin-top: 49.41px;
}
}
/*#box-manufacturer-logotypes img {
  max-height: 60px;
}*/
#box-recently-viewed-products .listing {
  grid-template-columns: repeat(auto-fill, minmax(48px, 0.5fr));
}
.listing {
  display: grid;
  grid-gap: var(--gutter-x);
}
@media (min-width: 768px) {
  .listing {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
.listing.products.columns {
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
}
@media (min-width: 768px) {
  .listing.products.columns {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
@media (min-width: 992px) {
  .listing.products.columns {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  }
}
.listing.products.rows {
  grid-auto-flow: row;
  grid-template-columns: initial;
}
.listing.categories {
  grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
}
/*.listing.manufacturers {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}*/
/*@media (min-width: 768px) {
  .listing.manufacturers {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}*/
.listing h1,
.listing h2,
.listing h3 {
  padding-bottom: 0;
  border: none;
}
.listing a {
  color: inherit;
  text-decoration: none;
}
/*.listing .category,
.listing .manufacturer,*/
.listing .product {
  position: relative;
  overflow: hidden;
  background: var(--image-whitespace-color);
  border: 1px solid var(--default-border-color);
  border-radius: var(--border-radius);
  transform: scale(1);
  transition: all 100ms linear;
  color: inherit;
  text-decoration: none;
}
.listing .category-no-box{
  text-align: center;
  padding-top: var(--gutter-y);
  padding-bottom: var(--gutter-y);
}
@media (min-width: 768px) {
  /*.listing .category:hover,
  .listing .manufacturer:hover,*/
  .listing .product:hover {
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.15);
    transform: scale(1.01);
  }
}
/*.listing .category {
  position: relative;
  background: var(--whitespace-color);
}*/
/*.listing .category .caption {
  background: var(--whitespace-color);
  padding: calc(var(--gutter-y)/2) var(--gutter-x);
  color: var(--default-text-color);
  text-align: center;
}
.listing .category .caption * {
  font-weight: normal;
  color: inherit;
  margin: 0;
}
.listing .category .caption .name {
  font-size: 1.15em;
}*/
/*.listing .manufacturer {
  position: relative;
  background: var(--whitespace-color);
}
.listing .manufacturer img {
  width: 100%;
  height: auto;
  padding: 1rem;
}
.listing .manufacturer .caption {
  margin: 0;
  padding: calc(var(--gutter-y)/2) var(--gutter-x);
  background: #f2f2f2;
  color: var(--default-text-color);
  text-align: center;
}*/
.listing .product {
  position: relative;
  background: var(--whitespace-color);
}
.listing .product .link {
  text-decoration: none;
}
.listing .product .image-wrapper {
  background: var(--image-whitespace-color);
}
.listing .product .image-wrapper .sticker {
  position: absolute;
  top: 20px;
  left: -32px;
  width: 125px;
  padding: 0.25rem 0;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
}
.listing .product .image-wrapper .sticker.new {
  background: rgba(251, 184, 41, 0.9);
}
.listing .product .image-wrapper .sticker.sale {
  background: rgba(237, 60, 50, 0.9);
}
.listing .product .name {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  height: 40px;
  font-size: 1em;
  font-weight: 400;
  line-height: 115%;
  border-bottom: 0;
  margin: 0;
}
/*.listing .product .manufacturer-name {
  color: var(--default-text-color);
  font-size: 0.9em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 200%;
  opacity: 0.75;
}*/
.listing .product .description {
  max-width: 640px;
  text-align: left;
}
#box-product .description h1{
  font-size: 1.1em;
}
#box-product .description h2{
  font-size: 1.0em;
}
#box-product .description h3{
  font-size: 0.9em;
}
.listing .product .stock-available .value {
  color: #009900;
}
.listing .product .stock-partly-available .value {
  color: #ff9900;
}
.listing .product .stock-unavailable .value {
  color: #cc0000;
}
.listing .product .price-wrapper {
  font-size: 1.25em;
}
.listing .product .price-wrapper .price {
  font-weight: bold;
  white-space: nowrap;
}
.listing .product .price-wrapper .regular-price,
.listing .product .price-wrapper .recommended-price {
  color: var(--default-text-color);
  font-size: 0.75em;
  font-weight: normal;
  white-space: nowrap;
}
.listing .product .price-wrapper .campaign-price {
  font-weight: bold;
  color: #c00;
  white-space: nowrap;
}
.listing .product .preview {
  margin: 0 -1px -1px -1px;
  display: none;
  position: absolute;
  top: 1em;
  right: 1em;
  padding: var(--input-padding-y);
  width: 3em;
  box-shadow: none;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .listing .product:hover .preview {
    /*display: inline-block;*/
	display: flex;
  }
}
.listing.columns .product .image {
  width: 100%;
  height: auto;
}
.listing.columns .product .info {
  padding: 0.5rem 0;
  text-align: center;
}
.listing.columns .product .description {
  display: none;
}
.listing.columns .product .price-wrapper {
  position: initial;
}
.listing.rows .product .link {
  display: flex;
  gap: var(--gutter-x);
  padding: var(--gutter-y) var(--gutter-x);
}
.listing.rows .product .info {
  flex: 1 1 auto;
}
.listing.rows .product .image-wrapper {
  width: 175px;
}
@media (min-width: 768px) {
  .listing.rows .product .image-wrapper {
    width: 160px;
  }
}
@media (min-width: 768px) {
  .listing.rows .product {
    height: auto;
  }
  .listing.rows .product .description {
    margin-bottom: 1em;
  }
}
#box-product form[name="buy_now_form"] {
  padding: var(--gutter-y) var(--gutter-x);
  margin: 1em 0;
  border: 1px solid var(--default-border-color);
  border-radius: var(--border-radius);
}
#box-product .images {
  margin-bottom: var(--gutter-y);
}
#box-product .main-image {
  position: relative;
  background: var(--whitespace-color);
  overflow: hidden;
}
#box-product .main-image .sticker {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  top: 15px;
  left: -35px;
  padding: 0.25rem 0;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  width: 140px;
}
#box-product .main-image .sticker.new {
  background: rgba(251, 184, 41, 0.85);
}
#box-product .main-image .sticker.sale {
  background: rgba(237, 60, 50, 0.85);
}
#box-product .price-wrapper {
  font-size: 1.75em;
}
#box-product .price-wrapper .regular-price,
#box-product .price-wrapper .recommended-price {
  font-size: 0.75em;
}
#box-product .price-wrapper .campaign-price {
  color: #cc0000;
}
#box-product .tax {
  color: #999;
}
#box-product .stock-available .value {
  color: #009900;
}
#box-product .stock-partly-available .value {
  color: #ff9900;
}
#box-product .stock-unavailable .value {
  color: #cc0000;
}
#box-product .out-of-stock-notice {
  background: var(--default-background-color);
  border: 1px solid var(--default-border-color);
  padding: var(--gutter-y) var(--gutter-x);
  border-radius: var(--border-radius);
}
#box-product .stock-notice {
  margin-top: 1em;
  padding: 0.5em;
  border-radius: var(--border-radius);
  border: 1px #86cb00 solid;
  color: #86cb00;
}
#box-product .stock-notice:empty {
  display: none;
}
#box-product .stock-notice.notice {
  color: #e58310;
  border-color: #e58310;
}
#box-product .stock-notice.warning {
  color: #c00;
  border-color: #c00;
}
#box-product .stock-notice .description {
  margin-top: 1em;
  font-size: 0.8em;
}
#box-product .social-bookmarks {
  font-size: 1.75em;
  margin-top: 1em;
}
#box-product .social-bookmarks a {
  margin: 0 0.25em;
}
#box-product .description p:first-child {
  margin-top: 0;
}
#box-product .description p:last-child {
  margin-bottom: 0;
}
#box-product .description a {
  text-decoration: underline;
}
