/* Stilovi važe isključivo za index-beta.php. */
.home-beta { background: #f7f9fc; color: #1c3048; }
.home-beta .slider__block,
.home-beta .slider__item { border-radius: 18px !important; }
.home-beta .slider__block { background: #fff; }
.home-beta .marketing__boxes .box .title { border-radius: 12px; height: auto; min-height: 58px; gap: 16px; padding: 14px 20px; }
.home-beta .marketing__boxes .box .title a { white-space: nowrap; }
.home-beta .marketing__boxes .box .products .item,
.home-beta .marketing-category-card > div,
.home-beta .cart-suggestions__card { background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; box-shadow: 0 3px 12px rgb(22 50 80 / 3%); transition: border-color .2s, box-shadow .2s, transform .2s; }
.home-beta .marketing__boxes .box .products .item:hover,
.home-beta .marketing-category-card:hover > div,
.home-beta .cart-suggestions__card:hover { border-color: #80cdef; box-shadow: 0 12px 28px rgb(22 50 80 / 9%); transform: translateY(-3px); }
.home-beta .marketing__boxes .box .products .item { display: flex; flex-direction: column; }
.home-beta .marketing__boxes .box .products .item > :is(h3,h4) { height: auto; min-height: 54px; margin-top: 12px; line-height: 1.45; }
.home-beta .marketing__boxes .box .products .item .price { margin-top: auto; padding-top: 20px; }
.home-beta .marketing__boxes .box .products .item .price span,
.home-beta .home-product-details .price span { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.home-beta .marketing__boxes .price button,
.home-beta .home-product-details .price button { border-radius: 11px; }
.home-beta .featured__item-border { border-radius: 16px; overflow: hidden; }
.home-beta .featured__item-border > div { border-radius: 0; }
.home-beta .cart-suggestions { padding: 0; }
.home-beta .cart-suggestions__card { padding: 18px; }
.home-beta .cart-suggestions__image { border: 0; padding: 4px; }
.home-beta .cart-suggestions__add { border-radius: 10px; min-height: 44px; background: #0ea5e9; }
.home-beta .cart-suggestions__heading h2 { color: #243b55; font-size: clamp(22px, 2vw, 30px); }
.home-beta .cart-suggestions__track { padding: 4px 4px 22px; }
@media (min-width: 1024px) {
  /* Širina je usklađena od zaglavlja do podnožja. */
  .home-beta .container { width: calc(100% - 80px) !important; max-width: 1840px !important; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  .home-beta .header .middle { padding-top: 10px; padding-bottom: 10px; }
  .home-beta .header .search input { border-radius: 12px; min-height: 48px; }
  .home-beta .slider { padding-top: 28px; margin-bottom: 24px; }
  .home-beta .slider .slider__items .slider__item { height: clamp(330px, 23vw, 470px); box-shadow: 0 8px 30px rgb(22 50 80 / 6%); border-color: #e6ebf2; }
  .home-beta .slider .slider__items .slider__item > img { width: 74%; height: 100%; object-fit: contain; object-position: center; background: #fff; }
  .home-beta .slider .slider__items .slider__item .slider__item-content { width: 26%; padding: 24px 28px; box-sizing: border-box; }
  .home-beta .slider .slider__items .slider__item .slider__item-content :is(h5,.pk-banner-kicker) { padding: 10px 0 24px; color: #64748b; }
  .home-beta .slider .slider__items .slider__item .slider__item-content :is(h3,.pk-banner-title) { font-size: clamp(22px, 1.6vw, 30px); line-height: 1.2; }
  .home-beta .slider .slider__items .slider__item .slider__item-content p { font-size: 15px; line-height: 1.65; color: #526175; }
  .home-beta .slider .slider__arrows { right: 24px; bottom: 18px; }
  .home-beta .featured__navigation { padding: 26px 0 16px; }
  .home-beta .featured__navigation .container { justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
  .home-beta .featured__navigation .container .item { flex: 1; width: auto; min-width: 0; padding: 18px 8px; border-radius: 16px; }
  .home-beta .featured__navigation .container .item:hover { background: #edf5fb; }
  .home-beta .featured__navigation .item .image { width: 140px; height: 140px; max-width: 100%; }
  .home-beta .featured__navigation .item .image img { width: 140px !important; height: 140px !important; max-width: 100%; }
  .home-beta .featured__navigation .item .image .background__square { width: 100%; height: 100%; transform: translate(-50%, -50%); border-radius: 24px; background: #e4f3fc; box-shadow: none; }
  .home-beta .featured__navigation .item .title { margin-top: 18px; font-size: 15px; font-weight: 600; color: #334155; }
  .home-beta .marketing__boxes { padding: 12px 0 28px; }
  .home-beta .marketing__boxes .container { gap: 24px; }
  .home-beta .marketing__boxes .container .box { width: calc(50% - 12px); margin-top: 12px; }
  .home-beta .marketing__boxes .box .products { gap: 20px; align-items: stretch; }
  .home-beta .marketing__boxes .box .products .item { flex: 1; min-width: 0; width: auto; margin: 0; padding: 24px; }
  .home-beta .marketing__boxes .box .products .item > div:first-child > img { height: clamp(230px, 16vw, 320px); }
  .home-beta .marketing__boxes .box .products .item :is(h3,h4) { font-size: 17px; }
  .home-beta .marketing__boxes .box .products .item .price span { font-size: clamp(20px, 1.4vw, 26px); }
  .home-beta .featured { padding-top: 28px; padding-bottom: 24px; }
  .home-beta .marketing-category-row { min-height: 790px; }
  .home-beta .marketing-category-card { padding: 10px; }
  .home-beta .marketing-category-card > div { padding: 12px; }
  .home-beta .marketing-category-card .home-product-image { height: clamp(230px, 15vw, 300px) !important; }
  .home-beta .home-product-title { font-size: 17px; padding: 8px 0; min-height: 64px; }
  .home-beta .home-product-details .price { padding-bottom: 12px; }
  .home-beta .cart-suggestions__image { height: clamp(240px, 16vw, 310px); }
  .home-beta .cart-suggestions__link h3 { font-size: 16px; line-height: 1.45; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .home-beta .container { width: calc(100% - 48px) !important; }
  .home-beta .slider .slider__items .slider__item .slider__item-content { padding: 18px; }
  .home-beta .slider .slider__items .slider__item .slider__item-content p { font-size: 13px; line-height: 1.5; }
  .home-beta .marketing__boxes .box .products .item { padding: 16px; }
  .home-beta .marketing__boxes .box .title .main__title { font-size: 17px; }
}
@media (max-width: 1023px) {
  .home-beta .marketing__boxes .box .products .item { padding: 16px; }
  .home-beta .cart-suggestions__card { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-beta .marketing__boxes .box .products .item,
  .home-beta .marketing-category-card > div,
  .home-beta .cart-suggestions__card { transition: none; transform: none; }
}
/* Slick određuje širinu slajdova; razmak ostaje između kartica. */
.home-beta .marketing__boxes .box .products.slick-initialized { display: block; }
.home-beta .marketing__boxes .box .products .slick-list { margin: 0 -10px; }
.home-beta .marketing__boxes .box .products .slick-slide.item { margin: 0 10px; }

/* Mobilni prikaz: gornje ponude u karuselu, donje ponude u dve kolone. */
@media (max-width: 1023px) {
  .home-beta .container { width: calc(100% - 24px) !important; max-width: none !important; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  .home-beta .slider { padding-top: 12px; margin-bottom: 6px; }
  .home-beta .slider .slider__items .slider__item { height: auto; background: #fff; box-shadow: 0 3px 12px rgb(22 50 80 / 4%); }
  .home-beta .slider .slider__items .slider__item > img { width: 100%; height: auto; max-height: 430px; position: relative; left: auto; top: auto; object-fit: contain; }
  .home-beta .slider .slider__items .slider__item .slider__item-content { position: relative; width: 100%; top: auto; right: auto; transform: none; padding: 14px 18px 44px; }
  .home-beta .slider .slider__item-content :is(h5,.pk-banner-kicker) { padding: 0 0 10px !important; }
  .home-beta .slider .slider__item-content :is(h3,.pk-banner-title) { font-size: 22px !important; line-height: 1.25 !important; }
  .home-beta .slider .slider__item-content p { font-size: 14px !important; line-height: 1.55; padding-top: 10px !important; }
  .home-beta .slider .slider__arrows { right: 16px; bottom: 18px; }
  .home-beta .slider .slider__arrow { width: 34px; height: 34px; }
  .home-beta .slider .slick-dots { position: static !important; display: flex; justify-content: center; gap: 5px; height: auto !important; margin: 6px 0 0; }
  .home-beta .featured__navigation { padding: 4px 0 16px; }
  .home-beta .featured__navigation .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
  .home-beta .featured__navigation .container .item { width: 100%; min-width: 0; margin: 0; }
  .home-beta .featured__navigation .item .image { width: 100%; max-width: 96px; height: 80px; }
  .home-beta .featured__navigation .item .image img { width: 100% !important; height: 80px !important; padding: 8px; }
  .home-beta .featured__navigation .item .image .background__square { width: 100%; height: 80px; background: #e4f3fc; border-radius: 16px; box-shadow: none; transform: translate(-50%, -50%); }
  .home-beta .featured__navigation .item .title { margin-top: 8px; font-size: 12px; font-weight: 600; line-height: 1.35; }
  .home-beta .marketing__boxes { padding: 8px 0 12px; }
  .home-beta .marketing__boxes .container { gap: 24px; }
  .home-beta .marketing__boxes .container .box { width: 100%; margin-top: 0; min-width: 0; }
  .home-beta .marketing__boxes .box .title { min-height: 54px; padding: 12px 14px; gap: 10px; }
  .home-beta .marketing__boxes .box .title .main__title { font-size: 17px; line-height: 1.3; }
  .home-beta .marketing__boxes .box .title a { font-size: 13px; }
  .home-beta .marketing__boxes .box .products { margin-top: 12px; }
  .home-beta .marketing__boxes .box .products .slick-track { display: flex; align-items: stretch; }
  .home-beta .marketing__boxes .box .products .slick-slide.item { display: flex; height: auto; padding: 18px; margin: 0 6px; }
  .home-beta .marketing__boxes .box .products .slick-list { margin: 0 -6px; }
  .home-beta .marketing__boxes .box .products .item > div:first-child > img:first-child { height: 220px; object-fit: contain; }
  .home-beta .marketing__boxes .box .products .item > :is(h3,h4) { font-size: 16px; min-height: 48px; margin-top: 12px; }
  .home-beta .marketing__boxes .box .products .item .price { padding-top: 14px; flex-direction: row; }
  .home-beta .marketing__boxes .box .products .item .price span { font-size: 22px; flex-direction: row; gap: 12px; }
  .home-beta .marketing__boxes .price button { min-width: 44px; min-height: 44px; }
  .home-beta .marketing__boxes .slick-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 0; }
  .home-beta .marketing__boxes .slick-dots button { display: block; width: 8px; height: 8px; padding: 0; font-size: 0; border-radius: 50%; background: #cbd5e1; }
  .home-beta .marketing__boxes .slick-dots .slick-active button { background: #0ea5e9; width: 22px; border-radius: 8px; }
  .home-beta .featured { padding: 20px 0 8px; }
  .home-beta .featured > .container > div:first-child { flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-bottom: 14px; }
  .home-beta .featured > .container > div:first-child > :is(h2,h4) { font-size: 22px; line-height: 1.25; }
  .home-beta .featured > .container > div:first-child > a { font-size: 13px; padding: 10px 14px; margin: 0; border-radius: 10px; }
  .home-beta .marketing-category-row { display: flex; flex-wrap: wrap; height: auto; min-height: 0; gap: 14px; }
  .home-beta .marketing-category-row > a { width: 100%; height: auto; }
  .home-beta .marketing-category-row .featured__item-border { display: grid; grid-template-columns: 45% 55%; height: auto; min-height: 150px; border: 0; background: #e4f3fc; }
  .home-beta .marketing-category-row .featured__image--adjustment { width: 100%; height: 100%; max-height: 230px; min-height: 150px; object-fit: cover; border-radius: 0; }
  .home-beta .marketing-category-row .featured__item-border > div { height: auto; justify-content: center; padding: 16px; }
  .home-beta .marketing-category-row .featured__item-border :is(h3,h4,p) { font-size: 18px; line-height: 1.3; }
  .home-beta .marketing-category-row .featured__item-border p { font-size: 13px; line-height: 1.4; }
  .home-beta .marketing-category-row > div { width: 100%; padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-beta .marketing-category-row .marketing-category-card { display: flex !important; width: 100%; height: auto; min-width: 0; padding: 0; }
  .home-beta .marketing-category-card > div { padding: 10px; height: 100%; min-width: 0; }
  .home-beta .marketing-category-card .home-product-image { height: 160px !important; padding: 8px 0; }
  .home-beta .marketing-category-card .home-product-details { padding: 0; }
  .home-beta .marketing-category-card .home-product-title { font-size: 13px; font-weight: 600; min-height: 72px; line-height: 1.4; padding: 8px 0; overflow-wrap: anywhere; }
  .home-beta .marketing-category-card .price { flex-direction: row; padding-top: 12px; }
  .home-beta .marketing-category-card .price span { width: 100%; font-size: 16px; line-height: 1.3; flex-direction: column; gap: 10px; }
  .home-beta .marketing-category-card .price button { min-height: 44px; width: 100%; }
  .home-beta .cart-suggestions { margin: 24px 0 12px; }
  .home-beta .cart-suggestions__heading { gap: 8px; margin-bottom: 14px; }
  .home-beta .cart-suggestions__heading h2 { font-size: 21px; }
  .home-beta .cart-suggestions__track { gap: 12px; }
  .home-beta .cart-suggestions__card { flex-basis: 72%; }
  .home-beta .cart-suggestions__image { height: 190px; }
  .home-beta .cart-suggestions__price strong { font-size: 20px; }
}
@media (min-width: 620px) and (max-width: 1023px) {
  .home-beta .marketing-category-row > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-beta .cart-suggestions__card { flex-basis: calc((100% - 24px) / 3); }
}
@media (max-width: 480px) {
  .home-beta .header .middle { height: auto; padding: 12px 0; }
  .home-beta .header .middle .container { flex-wrap: wrap; gap: 12px; }
  .home-beta .header .middle .identity img { width: 110px; height: auto; }
  .home-beta .header .middle .search { width: 100%; }
  .home-beta .header .middle .search input { min-height: 44px; border-radius: 12px; font-size: 16px; }
  .home-beta .featured__navigation .item .image,
  .home-beta .featured__navigation .item .image img,
  .home-beta .featured__navigation .item .image .background__square { height: 66px !important; }
  .home-beta .marketing-category-card .home-product-image { height: 140px !important; }
  .home-beta .marketing-category-card .home-product-title { min-height: 76px; }
  .home-beta .marketing-category-card .price span { font-size: 15px; }
  .home-beta .marketing-category-row .featured__item-border > div { padding: 12px; }
}

/* Kompaktna dugmad ostaju u istom redu i na uskim karticama. */
.home-beta .beta-product-actions,
.home-beta .marketing__boxes .box .products .item .price .beta-product-actions,
.home-beta .marketing-category-card .price .beta-product-actions {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); width: 100%; max-width: 180px;
  align-items: stretch; gap: 6px; margin-top: 8px;
}
.home-beta .beta-product-actions > button,
.home-beta .marketing__boxes .box .products .item .price .beta-product-actions > button,
.home-beta .marketing-category-card .price .beta-product-actions > button {
  width: 100%; min-width: 0; min-height: 36px; margin: 0; padding: 7px 6px;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1.2; white-space: nowrap;
}
.home-beta .beta-product-actions > button:first-child svg { width: 16px; height: 16px; }
.home-beta .beta-product-actions .beta-buy-now { background: #003d77; color: #fff; font-weight: 600; cursor: pointer; }
.home-beta .beta-product-actions .beta-buy-now:hover { background: #002d58; }
.home-beta .beta-product-actions .beta-buy-now:disabled { opacity: .65; cursor: wait; }
.home-beta .beta-product-actions button:focus-visible { outline: 2px solid #0284c7; outline-offset: 3px; }
@media (max-width: 480px) {
  .home-beta .marketing-category-card .price .beta-product-actions > button { font-size: 11px; padding: 7px 4px; }
}

/* Promo art contains text: preserve its full composition instead of cropping it. */
.home-beta .marketing-category-row .featured__item-border { height: auto; background: #e4f3fc; }
.home-beta .marketing-category-row .featured__image--adjustment { display: block; width: 100%; height: auto; min-height: 0; max-height: none; object-fit: contain; border-radius: 0; }
.home-beta .marketing-category-row .featured__item-border > div { height: auto; }
@media (max-width: 1023px) {
  .home-beta .marketing-category-row .featured__image--adjustment { align-self: center; max-height: 260px; }
}

/* Keep long marketing offer links within the mobile viewport. */
@media (max-width: 1023px) {
  .home-beta .marketing__boxes .box .title { flex-direction: column; align-items: flex-start; }
  .home-beta .marketing__boxes .box .title a { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
}
