@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* === GRID ZA HOME BODY === */
.page-layout {
  display: grid;
  grid-template-columns: 1400px 350px; /* fiksne širine */
  column-gap: 60px; /* razmak između kolona */
  max-width: 1800px; /* ukupna širina */
  margin: 0 auto;
  padding: 30px 0;
}

/* LEVA KOLONA */
.sidebar-left {
  background: #fff; /* bela pozadina */
  padding: 0;
  border-right: none; /* nema linije ka sredini */
}

/* WP meni u sidebaru */
.sidebar-left nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-left nav ul li {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #e6e6e6; /* linija ispod svake stavke */
}

.sidebar-left nav ul li:last-child {
  border-bottom: none; /* poslednja bez linije */
}

/* Linkovi u levom meniju */
.sidebar-left nav ul li a {
  display: block;
  font-family: 'Inter', sans-serif !important; /* prisilno Inter */
  font-size: 14px !important; /* precizna veličina */
  font-weight: 300 !important; /* tanji izgled */
  line-height: 1.0 !important;
  text-decoration: none;
  color: #111 !important;
  transition: color 0.2s ease;
}

/* Hover efekat */
.sidebar-left nav ul li a:hover {
  color: #ff1493 !important; /* Candyloo pink hover */
}

/* SREDNJA KOLONA */
.main-content {
  background: #f8f8f8;
  min-height: 400px;
}

/* DESNA KOLONA */
.sidebar-right {
  padding: 1px;
  min-height: 200px;
}

.sidebar-right:hover {
  background-color: #fafafa;
}

/* RESPONSIVE - na mobilnom sve ispod jedno ispod drugog */
@media (max-width: 1200px) {
  .page-layout {
    grid-template-columns: 1fr; /* sve u jedan stubac */
    column-gap: 0;
  }
}


/* === TAGESANGEBOT === */
.tagesangebot-box {
  background: #fff;
  padding: 1px;
  text-align: center;
}

.tagesangebot-box:hover {
  background: #fafafa;
}

.tagesangebot-box h3 {
  font-size: 20px;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  text-align: left;
  margin-bottom: 20px;
  margin-top: 1px;
}

.tagesangebot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.tagesangebot-datebox {
  width: 40px;
  height: 50px;
  border: 1px solid #ddd;
  text-align: center;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.tagesangebot-datebox .day {
  font-size: 18px;
  font-weight: bold;
  color: #111;
}

.tagesangebot-datebox .month {
  font-size: 10px;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 0.5px;
}

.tagesangebot-title {
  font-size: 20px !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  margin: 0 !important;
}


.tagesangebot-image img {
  max-width: 100%;
  transition: all 0.3s ease;
}

.tagesangebot-image.soldout img {
  opacity: 0.4;
  filter: grayscale(80%);
}

.tagesangebot-info h4 {
	font-size: 16px;
	font-family: "Inter", sans-serif;
	text-align: left;
	margin-top: 30px;
	margin-bottom: 1px;
}	

.tagesangebot-info h4 a {
	text-decoration: none;
}	

.tagesangebot-prices {
  text-align: left;
}

.aktionspreis {
  text-align: left;
  font-size: 15px;
  font-family: "Inter", sans-serif;
}

.normalpreis {
  font-size: 13px;
  font-family: "Inter", sans-serif;
  text-decoration: none;
}



.tagesangebot-prices .aktionspreis {
  font-size: 20px;
  font-weight: bold;
  color: #ff1493;
  margin-right: 8px;
}

.tagesangebot-prices .normalpreis del {
  color: #888;
}

.tagesangebot-progress {
  margin: 10px 0;
}
.tagesangebot-progress .progress-bar {
  width: 100%;
  height: 5px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-text {
  font-size: 12px;
  text-align: left;
  margin-bottom: 4px;
}

.tagesangebot-progress .progress-fill {
  background: #6cc24a; /* zelena kao na slici */
  height: 100%;
  transition: width 0.3s ease;
}

.aktion-beendet {
  color: #999;
  font-style: italic;
}

/* Candyloo dugme za Tagesangebot */
.tagesangebot-cart .button.alt {
  display: block;
  width: 100%;              /* 100% širine */
  background: #ff1493;      /* Candyloo pink */
  border: none;
  color: #fff;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}

/* Hover efekat – malo tamnija */
.tagesangebot-cart .button.alt:hover {
  background: #e01383; /* tamnija Candyloo pink */
  color: #fff;
}


/* ✅ Okvir za Tagesangebot box */
.tagesangebot-single-box {
    margin-bottom: 20px;
}

/* ✅ Banner iznad naslova */
.tagesangebot-banner {
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ✅ Progress bar tekst */
.tagesangebot-progress .progress-bar-text {
    font-size: 14px;
    margin-bottom: 6px;
    text-align: left;
}

/* ✅ Sama progress bar traka */
.tagesangebot-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

/* ✅ Ispunjeni deo progress bara */
.tagesangebot-progress .progress-fill {
    height: 100%;
    background: #ff1493;
    transition: width 0.4s ease;
}

/* ✅ Regularna (normalna) cena u Tagesangebot boxu */
.tagesangebot-prices .normalpreis {
  font-size: 14px;       /* malo manja od akcijske */
  color: #777;           /* siva */
  font-weight: 400;      /* normalan font */
  margin-left: 4px;      /* mali razmak od akcijske */
}

/* ✅ Kada je box soldout */
.tagesangebot-box.soldout-box {
    opacity: 0.5;            /* providnost */
    pointer-events: none;    /* onemogućava klik */
    filter: grayscale(50%);  /* blago posivljen efekat */
    transition: opacity 0.3s ease;
}

/* ✅ Poruka za ausverkauft */
.tagesangebot-box .aktion-beendet {
    text-align: center;
    color: #ff1493;          /* Candyloo pink */
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* 🎯 Slider koji zauzima punu širinu unutar glavnog contenta */
/* 🧱 Slider Wrapper - puni roditeljski kontejner bez dodatnog paddinga */
.candyloo-slider-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🎯 Slider - centriran i poravnat kao ostatak sadržaja */
.candyloo-slider {
  width: 100%;
  max-width: 100%; /* ako koristiš šablon koji ima max-width: 1200px */
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

/* 🎞️ Slide */
.candyloo-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  top: 0;
  left: 0;
}

.candyloo-slider .slide.active {
  display: block;
}

.candyloo-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px; /* za slučaj da direktno slika izlazi */
}


/* Slajdovi */
.candyloo-slider .slide {
  display: none;
  transition: opacity 0.3s ease-in-out;
}
.candyloo-slider .slide.active {
  display: block;
}

/* Tačke */
.slider-dots {
  text-align: center;
  margin-top: 15px;
}
.slider-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}
.slider-dots .dot.active {
  background: #ff1493; /* Candyloo pink */
}


.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: attr(data-label);
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 7px;
  left: 12px;
  transition: .4s;
}

.slider:after {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #cc33ff;
}

.switch input:checked + .slider:after {
  transform: translateX(30px);
}

.switch input:checked + .slider:before {
  content: "ON";
  left: 16px;
}

.switch input:not(:checked) + .slider:before {
  content: "OFF";
  left: 12px;
}


/* Stil za red bannera */
.product-banner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 30px;
}

/* Stil za svaki banner */
.product-banner {
  position: relative;
  flex: 1 1 calc(33.333% - 20px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.product-banner:hover {
  transform: scale(1.02);
}

/* Dugme preko bannera */
.banner-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e6007e;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none !important;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.banner-button:hover {
  background-color: #cc0066;
	color: white;
}
