/* ===== General ===== */
p {
  font-size: 22px;
  line-height: 1.7;
}

li {
  font-size: 21px;
  line-height: 1.75;
}

h1, h2 {
  font-size: 1.7rem;
  margin: 20px 0 15px 0;
  line-height: 1.4;
  font-weight: normal;
  color: #333;
  padding: 10px 5px;
}

.h3, h3 {
  font-size: calc(1.4rem + .2vw);
  padding: 25px 0;
  font-weight: normal;
}

.top-deals-title {
    font-size: calc(1.3rem + .2vw);
    font-weight: normal;
}

.ccomment .pull-left {
  float: left;
  padding-left: 10px;
  margin-top: 9px;
}

.ccomment-add-new.btn.btn-mini {
  margin-top: 3px;
  padding: 10px;
  font-size: 18px;
}

.ccomment-captcha img {
  margin-top: 0;
}

.but {
  box-shadow: 0 11px 12px rgba(0,0,0,0.38);
  padding: 10px;
  margin-bottom: 10px;
  font-weight: bold;
  margin-right: 15px;
  background: #fff;
}

.but-block {
  margin-bottom: 40px;
  margin-top: 40px;
}

.page-header h2 {
  margin-top: 0;
}

.page-header a {
  color: #333;
}

.com-content-category-blog__item.blog-item img {
  margin-bottom: 0;
}

.extlink {
  color: rgb(30, 115, 190);
}

.page-link {
  color: #333;
}

.page-item.active .page-link {
  color: #fff;
  background: #333;
}

/* Most read list */
.mostread li:before {
  content: "";
  display: inline-block;
  margin-right: 8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #d3060a;
  position: relative;
  top: 1px;
}

ul.mostread.mod-list {
  display: block;
  border-radius: 5px;
  padding: 17px 18px;
  margin: 10px 10px 10px 0;
  list-style: none;
}

ul.mostread.mod-list li a {
  font-weight: normal;
  border-bottom: 1px solid;
  font-size: 18px;
  color: #333;
}

ul.mostread.mod-list li a:hover {
  border-bottom-style: none;
}

/* Grid layout */
@media (min-width: 992px) {
  .site-grid {
    grid-gap: 0 1em;
    grid-template-columns: [full-start] minmax(0,1fr) [main-start] repeat(3,minmax(0,13.875rem)) 333px [main-end] minmax(0,1fr) [full-end];
  }
}

.dj-megamenu-modern {
  font-family: Arial, Helvetica, sans-serif;
}

.back-to-top-link.visible {
  position: fixed;
  bottom: 60px;
  right: 15px;
}

/* ===== Slider – final version ===== */
.slider {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  overflow: hidden;
}

/* Fallback average ratio (width 1200 / typical height ~2900) — overridden precisely
   by JS once the real image dimensions are known, to minimize layout shift */
.slider-images {
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
  aspect-ratio: 1200 / 2900;
}

/* Block page scroll when zoomed */
.slider-images.zoomed {
  touch-action: none;
}

/* All slides hidden by default */
.slider-images img {
  width: 100%;
  height: auto;
  display: none;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.25);
  object-fit: cover;
  margin-bottom: 20px;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Active slide */
.slider-images img.active {
  display: block;
  pointer-events: auto;
}

/* Side arrows – static red, blue on hover/tap, no blinking animation */
.slider-arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  color: #d3060a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  text-decoration: none;
  font-size: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.arrow-left  { left: 5px; }
.arrow-right { right: 10px; }

.slider-arrow:hover,
.slider-arrow:focus-visible,
.slider-arrow:active {
  color: #fcc721;
  transform: translateY(-50%) scale(1.15);
}

.slider-arrow svg {
  width: 50px;
  height: 50px;
  stroke: currentColor;
  stroke-width: 5;
  fill: none;
}

/* Visually hidden accessible label */
.slider-arrow span {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Bottom navigation */
.slider-bottom-nav {
  margin-top: 20px;
  text-align: center;
}

/* Thumbnail carousel */
.slider-carousel {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 118px;
}

.slider-carousel::-webkit-scrollbar {
  display: none;
}

/* Inactive thumbnails */
.slider-thumb {
  flex: 0 0 auto;
  width: 70px;
  height: 90px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: opacity 0.2s ease;
  display: block;
  opacity: 0.45;
}

.slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Active thumbnail */
.slider-thumb-active {
  border-color: #cc0000;
  opacity: 1;
}

/* Desktop hover */
@media (hover: hover) {
  .slider-thumb:hover {
    opacity: 1;
  }
}

/* Mobile touch-scroll highlight */
.slider-thumb-hover {
  opacity: 1;
}

/* Nav buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-wrap: nowrap;
}

/* Counter between buttons */
.slider-counter {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  flex-shrink: 0;
  padding: 0 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  min-width: 140px;
  background: #cc0000;
  color: white;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  gap: 10px;
}

.nav-btn:hover {
  background: #e60000;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(204,0,0,0.45);
}

.nav-btn:active {
  transform: scale(0.96);
}

/* Chevron icons */
.chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}

.btn-prev .chevron {
  border-width: 7px 11px 7px 0;
  border-color: transparent white transparent transparent;
}

.btn-next .chevron {
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent white;
}

.slider-explanation {
  margin-top: 20px;
  font-size: 1.5rem;
  color: #cc0000;
  font-style: italic;
}

/* Tablet */
@media (max-width: 768px) {
  .slider {
    margin: 20px auto;
  }
  .slider-arrow {
    width: 44px;
    height: 44px;
  }
  .slider-arrow svg {
    width: 44px;
    height: 44px;
    stroke-width: 3.5;
  }
  .arrow-left  { left: 1px; }
  .arrow-right { right: 1px; }

  .nav-buttons {
    padding: 0 15px;
  }
  .nav-btn {
    padding: 12px 26px;
    min-width: 120px;
    font-size: 1.05rem;
  }
  .btn-prev .chevron {
    border-width: 6px 10px 6px 0;
  }
  .btn-next .chevron {
    border-width: 6px 0 6px 10px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .slider-thumb {
    width: 52px;
    height: 68px;
  }
  .slider-carousel {
    min-height: 96px;
  }
  .nav-buttons {
    padding: 0 10px;
  }
  .nav-btn {
    padding: 12px 18px;
    min-width: 100px;
    font-size: 1rem;
  }
  .btn-prev .chevron {
    border-width: 6px 9px 6px 0;
  }
  .btn-next .chevron {
    border-width: 6px 0 6px 9px;
  }
  .slider-explanation {
    font-size: 1.2rem;
  }
}
