/* ==========================================================================
   DG2 Plugin — Main Front Styles
   ========================================================================== */


/* --- 1. Layout & Wrapper -------------------------------------------------- */

.dg2-wrapper {
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 auto;
}

.dg2-col-sidebar {
  max-width: 300px;
  min-width: 220px;
  width: 18%;
  order: 1;
  padding-left: 10px;
}

.dg2-col-main {
  width: 80%;
  order: 2;
}

.d-flex {
  display: flex;
}

.dg2-col-50 { flex-basis: 50%; }
.dg2-col-70 { flex-basis: 69%; }
.dg2-col-30 { flex-basis: 29%; }


/* --- 2. Sidebar & Filters ------------------------------------------------- */

.sidebar-widget.list-widget {
  margin: 10px 0;
}

.dg2-widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #121212;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 10px;
  margin-top: 28px;
  padding-bottom: 8px;
  line-height: 28px;
}

.list-widget-wrapper {
  padding-left: 0;
}

.list-widget-wrapper a:hover {
  text-decoration: underline;
}

/* Category tree */
.categories {
  list-style-type: none;
}

.categories ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.categories .cat-item {
  position: relative;
  margin: 5px 0;
}

.categories .cat-item ul.children {
  display: none;
  padding: 2px 0 0 15px;
}

.categories .current-cat ul.children,
.categories .current-cat-ancestor ul.children,
.categories .current-cat-parent ul.children,
.categories .dg2-parent-cat ul.children {
  display: block;
}

.categories > ul > li span {
  position: absolute;
  right: 15px;
  cursor: pointer;
}

.active .catspan {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

.cat-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-count .cat-number, .post-number {
  text-align: right;
  color: #c1c1c1;
  font-size: 14px;
}

.current-cat > a,
.current-cat > .cat-count > a {
  font-weight: 700;
  color: #1c1c1e !important;
}

.current-cat:before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: #1c1c1e;
  border-radius: 2px;
  line-height: 1.2;
}

/* Filter lists */
.dg2-filteri a {
  font-size: 14px;
  line-height: 1.3;
  color: #333;
}

/* ---- Color swatch grid ---- */
.list-colors--swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 2px;
}

.dg2-color-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: auto !important;
  margin: 0 !important;
  justify-content: flex-start;
  text-decoration: none !important;
  cursor: pointer;
}

.dg2-filteri .list-colors a {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin: 2px 0;
}

.dg2-filteri a .dg2-onecolor {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px #d0d0d0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dg2-color-check {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s;
  color: #fff;
  pointer-events: none;
}

.dg2-onecolor--light .dg2-color-check {
  color: #333;
}

.dg2-color-item:hover .dg2-onecolor {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px #222;
}

.dg2-onecolor-title {
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.2;
  max-width: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  transition: color 0.15s;
}

.dg2-color-item:hover .dg2-onecolor-title {
  color: #111;
}

.list-colors.list-images {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.list-colors.list-images a {
  display: contents;
}

.dg2-filteri .list-colors.list-images .dg2-onecolor {
  width: 30px;
  height: 30px;
  border-radius: 30px;
  margin: 2px;
}

.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  gap: 4px;
}

.list-group .list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-group.list-box {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.list-group.list-box a {
  border-radius: 5px;
  background: #eee;
  min-width: 35px;
  margin: 2px;
  text-align: center;
  padding: 6px 8px;
  width: auto;
  color:#121212;
}
.list-group.list-box a:hover{
  color:#000000;
  background: #f5f6fa;
  text-decoration: none;
}

.dg2-izabrani-filteri {
  font-size: 14px;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1;
}

.dg2-izabrani-filteri a {
  display: block;
  text-align: left;
}

.chip {
  justify-content: space-between;
  width: auto;
  margin-left: 5px;
  font-size: 14px;
  line-height: 1;
}

svg.chip-svg {
  width: 13px;
  margin: 0 4px;
  font-size: 14px;
}

/* Color filter selected state */
.dg2-filter-boja-span {
  width: 32px;
  height: 32px;
  margin-right: 5px;
  position: relative;
  border-radius: 0;
}

.dg2-filter-boja-stampa {
  width: 32px;
  height: 32px;
  margin-right: 5px;
  position: relative;
  border-radius: 0;
}

.dg2-filter-boja-span.showb::after {
  content: '';
  background-image: url(img/correcttw.svg);
  background-size: 15px;
  display: block;
  padding: 15px;
  background-repeat: no-repeat;
  position: absolute;
  top: 8px;
  left: 9px;
}

.dg2-filter-boja-span.c12.showb::after,
.dg2-filter-boja-span.c15.showb::after,
.dg2-filter-boja-span.c16.showb::after,
.dg2-filter-boja-span.c22.showb::after,
.dg2-filter-boja-span.c40.showb::after,
.dg2-filter-boja-span.c51.showb::after,
.dg2-filter-boja-span.c71.showb::after,
.dg2-filter-boja-span.c90.showb::after {
  background-image: url(img/correctt.svg);
}

.dg2-filter-boja-span.c90 {
  border: 1px solid #cccccc;
}

.dg2-boja-filter {
  font-size: 14px;
  color: #999999;
  flex: 1 0 45%;
  margin: 5px;
  cursor: pointer;
}

/* Toolbar filter toggle */
.toolbar-filteri,
.close-filteri {
  display: none;
}

.toolbar-filteri span,
.close-filteri span {
  font-weight: 700;
}

.toolbar-filteri span:after { content: ' \00BB'; }
.close-filteri span:after   { content: ' x'; }


/* --- 3. Price Range Slider ------------------------------------------------ */

/* Container */
.dg2-price-filter {
  padding: 4px 0 8px;
}

/* Dual-range slider track */
.dg2-range-slider-wrap {
  position: relative;
  height: 28px;
  margin: 10px 4px 18px;
}

.dg2-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}

.dg2-range-fill {
  position: absolute;
  height: 100%;
  background: #222;
  border-radius: 2px;
  left: 0;
  width: 100%;
}

/* Both range inputs overlap the track */
.dg2-range-input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  margin: 0;
  padding: 0;
}

.dg2-range-input:focus { outline: none; }

/* Thumb styles — webkit */
.dg2-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #222;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 3;
}

.dg2-range-input::-webkit-slider-thumb:hover,
.dg2-range-input:active::-webkit-slider-thumb {
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}

/* Thumb styles — moz */
.dg2-range-input::-moz-range-thumb {
  pointer-events: all;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #222;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

/* Number inputs row */
.dg2-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dg2-price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dg2-price-field label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0;
}
button.dg2-price-submit {
  width: 50px;
  margin-top: 26px;
  background: #323232;
  color:#fff;
  padding: 6px;
}
button.dg2-price-submit svg{
  width: 24px;
  height: 24px;
}
.dg2-price-input-wrap {
  position: relative;
}

.dg2-price-inputs input[type="number"] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 14px;
  text-align: center;
  color: #222;
  background: #fafafa;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

.dg2-price-inputs input[type="number"]::-webkit-inner-spin-button,
.dg2-price-inputs input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dg2-price-inputs input[type="number"]:focus {
  border-color: #222;
  outline: none;
  background: #fff;
}

.dg2-price-sep {
  font-size: 14px;
  color: #bbb;
  padding-top: 18px;
  flex-shrink: 0;
}

/* Submit button */
.dg2-price-submit {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: #1c1c1e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s;
}

.dg2-price-submit:hover {
  background: #3a3a3c;
}

/* Legacy compat — keep old number input rule scoped */
input[type="number"] {
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  padding: 0;
}


/* --- 4. Toolbar ----------------------------------------------------------- */

.dg2-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #f9f9f9;
  border: 1px solid #ebebeb;
  border-radius: 8px;
}

.dg2-toolbar .d-flex {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

#selectsort,
#selectshow {
  appearance: none;
  -webkit-appearance: none;
  padding: 5px 28px 5px 10px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 9px center;
  background-size: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

#selectsort { width: 160px; }
#selectshow { width: 72px; }

#selectsort:focus,
#selectshow:focus {
  outline: none;
  border-color: #aaa;
}


/* --- 5. Cards ------------------------------------------------------------- */

.card-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 16px;
}

.dg2-card {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dg2-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
  /*transform: translateY(-3px);*/
}

/* Inside Owl Carousel items take full width */
.item .dg2-card {
  width: 100%;
  transform: none;
}

/* Card body */
.card-block {
  padding: 12px 14px 10px 14px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-block-data {
  flex: 1;
}

.card-sifra {
  font-size: 14px;
  font-weight: 500;
  color: #b0b0b0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h2.card-title {
  line-height: 1.25;
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 3px 0;
}

.card-title a:link,
.card-title a:visited {
  color: #1c1c1e;
  text-transform: uppercase;
}

.card-title a:hover {
  color: #444;
}

.card-description {
  font-size: 14px;
  color: #aaa;
  line-height: 1.45;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cena {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
  margin: 8px 0 2px 0;
  letter-spacing: -0.01em;
}

.card-zalihe {
  font-size: 14px;
  color: #999;
  margin-top: 1px;
}

/* Ribbons */
.card-ribbon {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  color: #ffffff;
  font-size: 10px;
  padding: 4px 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  background: rgb(8, 177,177);
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(8, 136, 136, 0.35);
}

.card-ribbon-new-sale {
  top: 36px;
}

.card-ribbon-sale, .card-ribbon-akcija {
  background: #e70a1f;
  box-shadow: 0 2px 6px rgba(182, 26, 41, 0.35);
  color: #ffffff;
}


/* Sticker attributes */
.cart-attributes {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

/* Image wrapper — aspect ratio box with light background */
.imageWrapper {
  width: 100%;
  position: relative;
  background: #f5f5f5;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.imageWrapper > div {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.imageWrapper > div .dg2-image-hover {
  display: contents;
}

.imageWrapper > div .dg2-image-hover img {
  width: auto;
  height: 100%;
  margin: auto;
}

/* Hover image crossfade — opacity transition */
.dg2-image-hover .img1,
.dg2-image-hover .img2,
.owl-carousel .owl-item .dg2-image-hover .img1,
.owl-carousel .owl-item .dg2-image-hover .img2 {
  transition: opacity 0.3s ease;
}

.dg2-image-hover .img1,
.owl-carousel .owl-item .dg2-image-hover .img1 {
  opacity: 1;
  display: block;
  position: relative;
}

.dg2-image-hover .img2,
.owl-carousel .owl-item .dg2-image-hover .img2 {
  display: block;
  opacity: 0;
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: 100%;
}

.dg2-image-hover:hover .img1,
.owl-carousel .owl-item .dg2-image-hover:hover .img1 {
  opacity: 0;
}

.dg2-image-hover:hover .img2,
.owl-carousel .owl-item .dg2-image-hover:hover .img2 {
  opacity: 1;
}

/* Color swatches on cards */
.card-block-boje {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  padding-top: 8px;
}

.card-boje {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1px;
}

.card-boja {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  background-size: cover;
}

.card-boja:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.25);
}

.card-boja.last {
  flex-grow: unset;
  width: auto;
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  border: none;
  cursor: pointer;
  align-self: center;
  line-height: 1;
}
.card-boja.last.lasto {
  position: absolute;
  top: 5px;
  right: 0;
}
.card-boja.last.lasto svg{
  width: 12px;
  height: 12px;
  color:#121212;
}

.card-boja.last:hover {
  transform: none;
  box-shadow: none;
}

/* Expanded color panel */
.card-boje-o {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  position: absolute;
  z-index: 99;
  background: #ffffff;
  padding: 10px 16px 10px 10px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  border: 1px solid #ebebeb;
}

.card-boje-hidden {
  display: none;
}

.card-boja-90 {
  border: 1.5px solid #d8d8d8;
}

/* Card button — pinned to card bottom */
.card-button {
  display: block;
  text-align: center;
  padding: 10px 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #1c1c1e;
  color: #ffffff;
  border-radius: 0 0 12px 12px;
  transition: background 0.2s ease;
}

.card-button:hover {
  background: #3a3a3c;
  color: #ffffff;
  text-decoration: none;
}


/* --- 6. Buttons ----------------------------------------------------------- */

.dg2-btndark {
  background: #3f3f3f;
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 0;
  font-size: 14px;
  text-align: center;
  margin: 5px;
}

.dg2-btndark:hover {
  background: #232323;
  color: #ffffff;
}

.dg2_dropdown-list {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dg2_dropdown-list a {
  color: black;
  padding: 12px 16px;
  font-size: 14px;
  text-decoration: none;
  display: block;
}

.dg2_dropdown-list a:hover {
  background-color: #ddd;
}

.dg2_dropdown:hover .dg2_dropdown-list {
  display: block;
  max-height: 200px;
  overflow-x: hidden;
  overflow-y: scroll;
}

.dg2-button-zalihe {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  margin-top: 4px;
  padding: 3px 0;
  letter-spacing: 0.02em;
  border-bottom: 1px dashed #ccc;
  width: fit-content;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dg2-button-zalihe:hover {
  color: #1c1c1e;
  border-color: #888;
  text-decoration: none;
}

.b-btn {
  display: block;
  background: #efefef;
  padding: 4px 16px;
  border: none;
  border-radius: 25px;
  margin: 0 0 15px 6px;
  width: fit-content;
  font-size: 14px;
  color: #111111;
}

.btn-show-stampa {
  padding: 0 1rem 0.5rem 1.6rem;
  font-size: 14px;
  cursor: pointer;
}


/* --- 7. Tables ------------------------------------------------------------ */

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table,
.table {
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid #eee;
}

table th,
table td {
  padding: 5px;
  text-align: center;
  border: 1px solid #eee;
  font-size: 13px;
}

.table td,
.table th {
  padding: 5px;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

table .td-40  { width: 40px; }
table .td-100 { width: 100px; }

table.product-info-table td {
  text-align: left;
  line-height: 1.2;
}

span.dg2-dol,.dg2-dol {
  display: block;
  line-height: 1;
  color: #2980b9;
}

span.dg2-tooltip {
  position: relative;
  cursor: default;
}
span.dg2-tooltip::after {
  content: attr(data-dg2-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}
span.dg2-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}
span.dg2-tooltip:hover::after,
span.dg2-tooltip:hover::before {
  opacity: 1;
}


/* --- 8. Model Page -------------------------------------------------------- */

/* Full-width inner col (used in stocks, specs, additional) */
.dg2-col-100-inner {
  width: 100%;
}

/* Breadcrumb row */
.dg2-model-breadcrumb-row {
  padding: 12px 0 4px;
}

/* Hero layout */
.dg2-model-hero {
  gap: 40px;
  align-items: flex-start;
  padding: 16px 0 40px;
}

.dg2-model-gallery-col {
  flex: 0 0 42%;
  max-width: 42%;
}

.dg2-model-details-col {
  flex: 1;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Detail sections */
.dg2-detail-section {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.dg2-detail-section:first-child { padding-top: 0; }
.dg2-detail-section:last-child  { border-bottom: none; }

/* Title */
.dg2-model-naslov-h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #1c1c1e;
  margin: 0 0 6px;
}

.dg2-model-productcode {
  font-size: 14px;
  font-weight: 500;
  color: #b0b0b0;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Price */
.dg2-detail-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dg2-price-amount {
  font-size: 28px;
  font-weight: 700;
  color: #1c1c1e;
  letter-spacing: -.02em;
}

.dg2-price-currency {
  font-size: 16px;
  font-weight: 600;
  color: #555;
}

.dg2-price-on-request {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

/* Description */
.dg2-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
}

.dg2-product-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 10px;
}

.dg2-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dg2-badge-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Color section */
.dg2-detail-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: 10px;
}

/* Color swatches */
.dg2-bojemodel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  margin: 0;
  max-width: none;
}

.dg2-bojaokvir {
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  border: 2px solid transparent;
  padding: 2px;
  transition: border-color 0.15s;
}

.dg2-bojaokvir:hover {
  border-color: #bbb;
}

.dg2-bojaokvir.active {
  border-color: #1c1c1e;
}

.dg2-tabela-boja-span {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 20px;
  background-size: cover !important;
}

.dg2-bojaokvir.dg2-bojaokvir-90 .dg2-tabela-boja-span {
  border: 1px solid #ddd;
}

/* NEW badge on swatch */
.dg2-bojaokvir.dg2-bojaokvir-newcolor::before {
  content: 'NEW';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  background: #1c1c1e;
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 2;
}

/* Color name label */
.dg2-color-name-label {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  margin-top: 8px;
  min-height: 18px;
}

/* Action buttons row */
.dg2-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dg2-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}

.dg2-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dg2-action-btn--outline {
  border: 1.5px solid #50505d;
  background: transparent;
  color: #50505d;
}

.dg2-action-btn--outline:hover {
  background: #50505d;
  color: #fff;
}

/* Stocks section */
.dg2-model-fullstocks {
  padding: 40px 0;
}

.dg2-anchor {
  position: absolute;
  margin-top: -100px;
}

.dg2-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #1c1c1e;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1c1c1e;
  display: inline-block;
}

/* Stocks table */
.dg2-model-zalihe table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.dg2-model-zalihe th {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #888;
  padding: 8px 12px;
  border-bottom: 2px solid #ebebeb;
  text-align: left;
  white-space: nowrap;
}

.dg2-model-zalihe td {
  padding: 10px 12px;
  border-bottom: 1px solid #f4f4f4;
  vertical-align: middle;
}

/*.dg2-model-zalihe tr:last-child td {
  border-bottom: none;
}*/

.dg2-tabela-boja-span.td-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.1);
}

span.zalihe     { display: block; font-weight: 600; color: #1c1c1e; }
span.reserve    { display: block; font-size: 14px; color: #e07c00; }
span.potencijal { display: block; font-size: 14px; color: #2980b9; }

.dg2-table-dolazak { color: #2980b9; font-size: 14px; }
span.dg2-dol { display: block; font-size: 14px; color: #999; line-height: 1; }

/* Full-stock table shared styles */
.dg2-stock-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.dg2-stock-table thead th {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #999;
  padding: 8px 10px;
  border-bottom: 2px solid #ebebeb;
  text-align: center;
  white-space: nowrap;
}

.dg2-stock-table tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid #f4f4f4;
  vertical-align: top;
  line-height: 1.4;
}

/*.dg2-stock-table tbody tr:last-child td { border-bottom: none; }*/

.dg2-stock-table tbody tr:hover td { background: #fafafa; }

/* Swatch col */
.dg2-st-swatch { width: 36px; }

.dg2-stock-table .dg2-tabela-boja-span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.1);
  display: block;
  background-size: cover !important;
}

/* ID col */
.dg2-st-id { font-size: 14px; color: #888; white-space: nowrap; }

/* Label column in bv/bvc tables */
.dg2-st-label-col { white-space: nowrap; }

.dg2-st-lbl {
  font-size: 14px;
  color: #1c1c1e;
  font-weight: 600;
  line-height: 1.8;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100px;
}

.dg2-st-lbl--reserve  { color: #e07c00; }
.dg2-st-lbl--potential { color: #2980b9; }
.dg2-st-lbl--price    { color: #555; }
.dg2-st-lbl--arrival  { color: #2980b9; font-size: 14px; }

/* Data cells */
.dg2-st-data { vertical-align: top; }
.dg2-st-data div, .dg2-st-data span {
  line-height: 1.8;
}
.dg2-st-data .dg2-st-price { font-weight: 600; font-size: 14px; color: #555; }
.dg2-st-none { color: #ccc; }

/* Spec col */
.dg2-st-spec { width: 36px; text-align: center; }
.dg2-spec-link img { width: 18px; opacity: .5; transition: opacity .15s; }
.dg2-spec-link:hover img { opacity: 1; }

/* Arrival spans in b table */
.dg2-ist-arr-qty  { display: inline;font-size: 12px; font-weight: 600; color: #2980b9; }
.dg2-ist-arr-date { display: inline; font-size: 12px; color: #2980b9; margin-left: 4px; }

/* ── Inline stock panel (dg2-kolicina-boja) ───────────────────────────── */

.dg2-inline-stock {
  width: 100%;
}

/* Multi-size table */
.dg2-inline-stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dg2-inline-stock-table thead th {
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #999;
  border-bottom: 1px solid #ebebeb;
  text-align: center;
}

.dg2-ist-label-col { text-align: left !important; width: 90px; }

.dg2-inline-stock-table tbody td {
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid #f4f4f4;
  vertical-align: middle;
  font-size: 14px;
}

/*.dg2-inline-stock-table tbody tr:last-child td { border-bottom: none; } */

.dg2-ist-label {
  text-align: left !important;
  font-size: 14px;
  font-weight: 700;
  color: #999;
  white-space: nowrap;
}

/* Qty */
.dg2-ist-qty {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: #1c1c1e;
}

.dg2-ist-qty--in  { color: #1c1c1e; }
.dg2-ist-qty--out { color: #ccc; }

.dg2-ist-reserve   { font-size: 14px; color: #e07c00; font-weight: 600; }
.dg2-ist-potential { font-size: 14px; color: #2980b9; font-weight: 600; }
.dg2-ist-price     { font-size: 14px; color: #555;    font-weight: 600; }
.dg2-ist-dash      { color: #ddd; }

.dg2-ist-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.dg2-ist-tag--sold { background: #f0f0f0; color: #999; }

.dg2-ist-arrival { vertical-align: top; }

/* Simple stock table (dg2-kolicina-boja) */
.dg2-stock-table.dg2-stock-table-single {
  width: auto;
}

.dg2-stock-table tr + tr td {
  border-top: 1px solid #f0f0f0;
}

.dg2-stock-table__label {
  color: #999;
  padding: 3px 8px 3px 0;
  white-space: nowrap;
  font-size: 14px;
  text-align: left;
  font-weight: 600;
}

.dg2-stock-table__qty {
  font-weight: 600;
  padding: 3px 0;
  text-align: right;
  white-space: nowrap;
}

.dg2-stock-table__sold {
  color: #999;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 0;
}

.dg2-stock-table--in  .dg2-stock-table__qty ,
.dg2-stock-table--out .dg2-stock-table__qty ,
.dg2-stock-table--reserve  .dg2-stock-table__qty ,
.dg2-stock-table--potential .dg2-stock-table__qty { font-size: 14px; color:#111111; }
.dg2-stock-table--arrival  .dg2-stock-table__qty { color: #2980b9;font-size: 14px }

/* ── Accordion ── */
.dg2-accordion-wrap {
  border-top: 1px solid #e8e8e8;
}
.dg2-accordion-wrap:last-of-type {
  border-bottom: 1px solid #e8e8e8;
}
.dg2-accordion {
  width: 100%;
}
.dg2-accordion-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1c1c1e;
  text-align: left;
}

.dg2-accordion-hdr:hover {
  color: #444;
}

.dg2-acc-chevron {
  width: 16px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #1c1c1e;
}

.dg2-accordion-hdr[aria-expanded="false"] .dg2-acc-chevron {
  transform: rotate(180deg);
}

.dg2-accordion-body {
  padding-bottom: 32px;
}

/* ── Spec two-column layout ── */
.dg2-spec-cols {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.dg2-spec-col--left {
  flex: 1 1 55%;
  min-width: 0;
}

.dg2-spec-col--right {
  flex: 1 1 40%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dg2-spec-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #888;
  margin: 0 0 12px;
}

.dg2-spec-sub + .dg2-spec-sub {
  padding-top: 0;
}

/* ── Spec table ── */
.dg2-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dg2-spec-table tr {
  border-bottom: 1px solid #f4f4f4;
}

.dg2-spec-table tr:last-child {
  border-bottom: none;
}

.dg2-spec-table td {
  padding: 6px 10px;
  vertical-align: top;
  line-height: 1.5;
  text-align: left;
}

.dg2-spec-label {
  width: 42%;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #999;
  white-space: nowrap;
  text-align: left;
}

/* ── Opis (description) ── */
.dg2-product-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* Additional info */
.dg2-model-additional {
  padding: 20px 0 40px;
  flex-direction: column;
}

.dg2-additional-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #1c1c1e;
  margin: 24px 0 8px;
}

.dg2-additional-text {
  font-size: 14px;
  color: #666;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.65;
}

.dg2-additional-figure {
  margin: 0 0 12px;
}

.dg2-wp-image {
  width: 100%;
  display: block;
}

/* Misc legacy */
.dg2-podnaslov {
  display: flex;
  align-items: center;
  line-height: 1;
  margin-bottom: 1rem;
}

.dg2-podnaslov h3 { font-size: 1.4rem; }
.dg2-podnaslov h5 { font-size: 1rem; }

.h3-title {
  text-transform: uppercase;
  color: #333;
  font-weight: 700;
  font-size: 16px;
  margin: 25px 10px;
}

/* Dropdown boje wrapper (print/stamp modal) */
.dropdown-boje-wrapper-col {
  position: relative;
  background: #fff;
  right: 16px;
}

.dropdown-boje-wrapper {
  border: 1px solid #dedede;
  border-radius: 3px;
  position: absolute;
  background: #fff;
  top: 35px;
}

.dropdown-boje {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  font-size: 14px;
  color: #000;
  font-weight: 400;
}

.dropdown-boje img { width: 10px; }

.dropdown-boje::after {
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
}

#stampeModal .dropdown-boje-wrapper {
  top: 0;
  width: 90%;
  z-index: 9;
}


/* --- 9. Splide Gallery ---------------------------------------------------- */

.dg2-gallery-wrap {
  position: sticky;
  top: 20px;
}

.dg2-gallery-main {
  border-radius: 8px;
  overflow: hidden;
  background: #f8f8f8;
  margin-bottom: 10px;
}

.dg2-gallery-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
}

.dg2-gallery-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.dg2-gallery-thumbs {
  margin: 0;
}

.dg2-gallery-thumb {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: .6;
  transition: opacity 0.15s;
  border: 2px solid transparent;
}

.dg2-gallery-thumb.is-active,
.dg2-gallery-thumb:hover {
  opacity: 1;
  border-color: #1c1c1e;
}

.dg2-gallery-thumb-img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.splide__arrow {
  position: absolute;
  z-index: 1;
  font-size: 1rem;
  color: #fff;
  transition: color 0.2s ease;
  padding: 0;
  margin: 0;
}

.splide__arrow--prev { left: 0; }
.splide__arrow--next { right: 0; }

#secondary-slider .splide__track {
  width: 80%;
  margin: 0 auto;
}

.splide--nav > .splide__track > .splide__list > .splide__slide {
  border: 2px solid transparent;
}

.splide--nav > .splide__track > .splide__list > .splide__slide.is-active {
  border-color: #1c1c1e;
}


/* --- 10. Owl Carousel ----------------------------------------------------- */

.owl-nav {
  position: absolute;
  top: 35%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  border: 0;
  border-radius: 100%;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  line-height: 110%;
  font-size: 25px;
}


/* --- 11. Pagination ------------------------------------------------------- */

/* --- 11. Pagination ------------------------------------------------------- */

.dg2-pagination-wrap {
  padding: 24px 0 8px;
}

nav.navigation.pagination {
  padding: 0;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

a.page-numbers,
span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

span.page-numbers.current {
  background: #1c1c1e;
  border-color: #1c1c1e;
  color: #fff;
  font-weight: 700;
}

a.page-numbers:hover {
  background: #f4f4f4;
  border-color: #bbb;
  color: #1c1c1e;
  text-decoration: none;
}

/* Dots */
span.page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: #bbb;
  min-width: 20px;
  cursor: default;
}

/* Prev / Next arrows */
.prev.page-numbers,
.next.page-numbers {
  border-color: #e0e0e0;
  background: #fff;
  color: #444;
  padding: 0 8px;
}

.prev.page-numbers:hover,
.next.page-numbers:hover {
  background: #1c1c1e;
  border-color: #1c1c1e;
  color: #fff;
}

.prev.page-numbers svg,
.next.page-numbers svg {
  width: 16px;
  height: 16px;
  display: block;
}


/* --- 12. Breadcrumb ------------------------------------------------------- */

.dg2-breadcrumb {
  padding: 10px;
  font-size: 14px;
  color: silver;
}

.dg2-breadcrumb span,
.dg2-breadcrumb span a {
  font-size: 14px;
  color: silver;
}

.dg2-breadcrumb span a.current-item span {
  color: #333333;
  font-weight: 600;
}


/* --- 13. Modals ----------------------------------------------------------- */

/* Stock modal */
@media (min-width: 1200px) {
  .modal-dialog {
    max-width: 60%;
    margin: 1.75rem auto;
  }
}

@media (min-width: 1500px) {
  .modal-dialog {
    max-width: 900px;
    margin: 1.75rem auto;
  }
}

/* Print / stamp modal */
@media (min-width: 1200px) {
  #stampeModal .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
  }
}

@media (min-width: 1500px) {
  #stampeModal .modal-dialog {
    max-width: 1270px;
    margin: 1.75rem auto;
  }
}

#exampleModal .modal-content {
  min-height: 100vh;
}

.dg2-modal-close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.2rem;
}

.print-info {
  font-size: 14px;
}

.print-info .image {
  border: 1px solid #f3f3f4;
  border-radius: 5px;
  position: relative;
  padding: 0 25px;
  min-height: 270px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.print-info .image-download {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.print-info .content {
  background: #f3f3f4;
  border-radius: 5px;
  padding: 10px;
  margin-top: 5px;
}


/* --- 14. Responsive ------------------------------------------------------- */

@media (max-width: 800px) {
  .dg2-wrapper {
    flex-direction: column;
    padding: 0 10px;
  }

  .dg2-col-main {
    max-width: 100%;
    width: 100%;
    order: 1;
  }

  .dg2-col-50,
  .dg2-col-70,
  .dg2-col-30 {
    flex-basis: 100%;
    width: 100%;
  }

  /* Model page hero stacks on mobile */
  .dg2-model-hero {
    flex-direction: column;
    gap: 24px;
  }

  .dg2-model-gallery-col,
  .dg2-model-details-col {
    flex: none;
    max-width: 100%;
    width: 100%;
    position: static;
  }

  .dg2-gallery-wrap {
    position: static;
  }

  .dg2-model-naslov-h1 {
    font-size: 20px;
  }

  .dg2-price-amount {
    font-size: 22px;
  }

  .dg2-spec-cols {
    flex-direction: column;
    gap: 32px;
  }

  .dg2-spec-col--left,
  .dg2-spec-col--right {
    flex: none;
    width: 100%;
  }

  .toolbar-filteri,
  .close-filteri {
    display: block;
  }

  .dg2-col-sidebar {
    position: absolute;
    top: 0;
    right: 100%;
    width: 300px;
    background: #ffffff;
    transition: all 0.35s ease;
    visibility: hidden;
    z-index: 9;
    height: 100vh;
    overflow-y: auto;
  }

  .dg2-col-sidebar.show {
    transform: translateX(300px);
    opacity: 1;
    visibility: visible;
    z-index: 999999;
    padding: 20px;
    background-color: #ffffff;
  }

  .bg-opacity {
    position: fixed;
    overflow: hidden;
  }

  .bg-opacity::after {
    content: "";
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
  }
}

@media (max-width: 500px) {
  .dg2-toolbar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .card-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  h2.card-title {
    font-size: 14px;
  }
}
