/**
 * Košarica (test) – CSS
 *
 * Svrha:
 *  - vizualni layout i UX košarice (redizajn)
 *  - nadogradnja postojećeg bamt.css (bez konflikata)
 *
 * MAPA:
 *  1) Layout & containeri
 *  2) Card / header / prazna košarica
 *  3) Stavke (BT1 cart rows)
 *  4) Količina i cijene
 *  5) Sažetak (totals + CTA)
 *  6) Dostava (procjena i rezultat)
 *  7) Mobile optimizacije
 *  8) Vizualni naglasci (grand total, sticky bar)
 *
 * Pravila:
 *  - Ne dira globalni layout
 *  - Sve je namespace-ano kroz .ct2 ili .bt1--cart
 *  - Funkcionalnost i selektori su nepromijenjeni
 */



/* kosarica-test.css
   Minimal additions to bamt.css to make BT1 product rows work as a cart.
*/

.ct2 {
  padding: 22px 0 44px;
}

.ct2__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}

/* When sidebar is hidden (empty basket), make items card full width */
.ct2__container:has(#ct2SummarySidebar[style*="display: none"]) {
  grid-template-columns: 1fr;
}

/* Fallback for browsers that don't support :has() */
.ct2__container.ct2__container--sidebar-hidden {
  grid-template-columns: 1fr;
}

.ct2__card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.ct2__itemsCard { padding: 18px; }
.ct2__sumCard { padding: 16px; position: sticky; top: 14px; }

.ct2__head {
  padding: 4px 0 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.ct2__title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ct2__empty {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.ct2__emptyIcon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.ct2__emptyTitle {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.ct2__emptyText {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  max-width: 400px;
  line-height: 1.5;
}

.ct2__emptyCategories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 500px;
  width: 100%;
  align-items: center;
}

.ct2__emptyCategoryLink {
  display: block;
  padding: 10px 20px;
  background-color: #f8f9fa;
  color: #0f766e;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.ct2__emptyCategoryLink:hover {
  background-color: #0f766e;
  color: #fff;
  border-color: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.ct2__emptyCategoryLink:active {
  transform: translateY(0);
}

.ct2__emptyBtn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0f766e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.ct2__emptyBtn:hover {
  background-color: #0d5d56;
  transform: translateY(-1px);
}

.ct2__emptyBtn:active {
  transform: translateY(0);
}

/* Responsive: Empty basket category links */
@media (max-width: 768px) {
  .ct2__emptyCategories {
    max-width: 100%;
    padding: 0 12px;
  }
  
  .ct2__emptyCategoryLink {
    font-size: 14px;
    padding: 10px 16px;
  }
}

.bt1--cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bt1--cart .bt1__itemRow--cart {
  align-items: center;
}

.ct2__meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ct2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  font-weight: 800;
  font-size: 12px;
  opacity: .9;
}

.ct2__badge img {
  width: 16px;
  height: 16px;
}

.ct2__remove {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  opacity: .8;
}

.ct2__remove:hover { opacity: 1; }

.ct2__priceCard { width: 100%; }

.ct2__qtyRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ct2__qtyLabel {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: .8;
  text-transform: uppercase;
}

.ct2__qty {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  padding: 0 10px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
  cursor: pointer;
}

.ct2__priceTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ct2__priceLabel {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: .8;
  text-transform: uppercase;
}

.ct2__below {
  padding-top: 14px;
}

.ct2__toggle {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
  font-weight: 900;
}

.ct2__sumHead {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

.ct2__sumLine {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.ct2__sumLine:first-of-type { border-top: 0; padding-top: 0; }

.ct2__sumLabel {
  font-weight: 900;
  opacity: .85;
}

.ct2__sumVal {
  font-weight: 900;
  font-size: 16px;
}

.ct2__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  font-size: 12px;
  font-weight: 900;
  margin-left: 6px;
  opacity: .75;
}

/* CTA button – aligned with checkout "Nastavi" style */
.ct2__cta{
  width: 100%;
  height: 46px;
  border-radius: 14px;

  background: transparent;
  border: 1px solid #0f766e;   /* ista forward boja */
  color: #0f766e;

  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  opacity: 1;
  
  font-family: inherit;
font-size: 16px;
line-height: 1;
letter-spacing: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: geometricPrecision;

}

/* Hover */
.ct2__cta:hover{
  border-color: #0c5f58;
  background: rgba(15,118,110,.06);
  color: #0c5f58;
}

.ct2__cta[disabled]{
  background: transparent;
  border-color: rgba(0,0,0,.25);
  color: rgba(0,0,0,.4);
  cursor: not-allowed;
}


.ct2__ship {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  margin-top: 10px;
  opacity: 1;
}

.ct2__ship[disabled]{
  opacity: .55;
  cursor: not-allowed;
}


.ct2__steps {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: grid;
  gap: 6px;
}

.ct2__step {
  font-weight: 900;
  opacity: .65;
}

.ct2__step--active {
  opacity: 1;
}

@media (max-width: 980px) {
  .ct2__container { grid-template-columns: 1fr; }
  .ct2__sumCard { position: static; }
}

@media (max-width: 560px) {
  .ct2__title { font-size: 26px; }
}
.bt1__priceNote{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  line-height: 1.3;
}
/* Spriječi lomljenje "1.344,92 EUR" u novi red u sažetku */
.ct2__sumVal{
  white-space: nowrap;
}
.bt1__priceNow,
.bt1__priceOld{
  white-space: nowrap;
}
/* manji "EUR" kao na prikazu proizvoda */
.bt1__priceNow .cur,
.bt1__priceOld .cur,
.ct2__sumVal .cur{
  font-size: 0.62em;
  font-weight: 900;
  opacity: .7;
  margin-left: 6px;
  position: relative;
  top: -0.02em;
  letter-spacing: .06em;
  white-space: nowrap;
}
/* === PROCJENA DOSTAVE (inline) === */
/* When "Preuzimanje u trgovini" is checked: hide PROCJENA DOSTAVE, Poštanski broj, and Dostava row; keep the pickup checkbox visible */
body[data-ct2-pickup="true"] #ct2ShipBox .ct2__shipLabel,
body[data-ct2-pickup="true"] #ct2ShipBox .ct2__shipResult,
body[data-ct2-pickup="true"] #ct2ShipBox #postanski-broj,
body[data-ct2-pickup="true"] #ct2ShipBox #insertPostalCodeTip,
body[data-ct2-pickup="true"] #ct2ShipBox .ct2__shipCheck:first-of-type,
body[data-ct2-pickup="true"] .ct2__sumLine--delivery {
  display: none !important;
}

.ct2__shipBox{
  margin-bottom: 14px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fafafa;
}
.ct2__shipKicker{
  /* Render as a simple label (not a pill/button) */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 10px;
}
.ct2__shipIcon{ width: 18px; height: 18px; }
.ct2__shipLabel{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 8px;
}
.ct2__shipTitle{
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.02em; margin: 0 0 6px;
}
.ct2__shipTip{
  font-size: 13px; font-weight: 700;
  color: #666; line-height: 1.35;
  margin-bottom: 10px;
}
.ct2__shipInput{
  width: 100%; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  padding: 0 12px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
}
.ct2__shipInput--invalid {
  border: 1px solid #c00;
}
.ct2__shipInput::placeholder{
  font-size: 16px;
  opacity: 0.7;
}
.ct2__shipCheck{
  display:flex; align-items:center; gap:10px;
  margin-top: 10px;
  font-weight: 900; font-size: 13px;
}
.ct2__shipCheck input{ width: 16px; height: 16px; }
.ct2__shipCalc{
  width: 100%; height: 44px;
  border: 0; border-radius: 14px;
  font-weight: 900; cursor: pointer;
  background: #2469FF; color:#fff;
  margin-top: 10px;
}
.ct2__shipResult{
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
}
.ct2__shipResultLabel{
  font-size: 12px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: .75; margin-bottom: 4px;
}
.ct2__shipResultVal{
  font-size: 16px; font-weight: 900;
  white-space: nowrap;
}

/* === Način prikaza cijena (jednokratno / na rate) === */
/* Hide mobile payment method on desktop, hide desktop version on mobile */
@media (min-width: 981px) {
  .ct2__priceMode--mobile {
    display: none;
  }
}
@media (max-width: 980px) {
  .ct2__priceMode--desktop {
    display: none;
  }
  /* Mobile: Keep accordion open and hide button, payment method appears first */
  .ct2__acc--ship .ct2__accBody {
    display: block !important;
  }
  .ct2__acc--ship .ct2__accBtn {
    display: none;
  }
  /* Payment method appears first in accordion body on mobile */
  .ct2__accBody .ct2__priceMode--mobile {
    margin-bottom: 14px;
  }
}

.ct2__priceMode{
  margin-bottom: 14px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fafafa;
}
.ct2__priceModeLabel{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 8px;
}
.ct2__priceModeOptions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.ct2__priceModeOption{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ct2__priceModeOption input[type="radio"]{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
  position: relative;
  /* Ensure native radio button appearance is maintained - use radio explicitly for better mobile support */
  -webkit-appearance: radio;
  -moz-appearance: radio;
  appearance: radio;
}
.ct2__priceModeText {
  position: relative;
}
.ct2__priceModeTitle{
  font-weight: 800;
  font-size: 14px;
}
.ct2__priceModeOption:hover{
  border-color: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.ct2__priceModeOption input:checked + .ct2__priceModeText,
.ct2__priceModeOption input:checked + .ct2__priceModeText .ct2__priceModeTitle{
  color: #0f766e;
}
.ct2__priceModeOption input:checked ~ .ct2__priceModeText .ct2__priceModeTitle{
  color: #0f766e;
}
/* Visual indicator for checked state on the label */
.ct2__priceModeOption input[type="radio"]:checked {
  accent-color: #0f766e !important;
  /* Ensure the radio button dot is visible */
  background-color: transparent !important;
  background-image: none !important;
}

/* Custom dot for mobile browsers that don't show native radio dots */
/* Use label's ::after pseudo-element positioned over the radio button center */
.ct2__priceModeOption {
  position: relative;
}
.ct2__priceModeOption.ct2__priceModeOption--has-dot::after {
  content: '';
  position: absolute;
  left: 18px; /* 10px padding + 8px = exact center of 16px radio */
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0f766e;
  pointer-events: none;
  z-index: 10;
  display: block;
}
/* Style the label when input is checked (using adjacent sibling) */
.ct2__priceModeOption input:checked + .ct2__priceModeText {
  /* Text color already set above */
}
/* Alternative: style parent label when child input is checked - use JavaScript to add class instead */
.ct2__priceModeOption.ct2__priceModeOption--checked {
  border-color: #0f766e;
  background-color: #f0f9f8;
}

/* Desktop: use custom ring + dot so Safari shows same as Firefox (Safari native radio fills entire circle). */
@media (min-width: 981px) {
  .ct2__priceModeOption input[type="radio"],
  .ct2__priceMode--desktop .ct2__priceModeOption input[type="radio"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid rgba(0,0,0,.4) !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-image: none !important;
    box-sizing: border-box !important;
  }
  .ct2__priceModeOption input[type="radio"]:checked,
  .ct2__priceMode--desktop .ct2__priceModeOption input[type="radio"]:checked {
    border-color: #0f766e !important;
    background: transparent !important;
    background-image: none !important;
    accent-color: unset;
  }
  /* Ensure our custom dot (::after) is used on desktop too */
  .ct2__priceModeOption.ct2__priceModeOption--has-dot::after,
  .ct2__priceMode--desktop .ct2__priceModeOption.ct2__priceModeOption--has-dot::after {
    display: block !important;
  }
}

/* === ISTAKNI "ZA PLATITI" (grand total) === */
.ct2__sumLine--grand{
  margin-top: 6px;
  padding: 12px 12px;
  border-top: 0;
  border: 1px solid rgba(36,105,255,0.22);
  border-radius: 14px;
  background: rgba(36,105,255,0.08);
  box-shadow: 0 8px 18px rgba(36,105,255,0.10);
}

.ct2__sumLine--grand .ct2__sumLabel{
  opacity: 1;
  font-weight: 900;
  letter-spacing: .02em;
}

.ct2__sumLine--grand .ct2__sumVal{
  font-size: 20px;
  letter-spacing: -0.01em;
}

.ct2__sumLine--grand .ct2__sumVal strong{
  font-weight: 900;
}

/* Dostava se računa automatski – gumb "Izračunaj" nije potreban */
.ct2__shipCalc{
  display: none;
}
/* === ZAKLJUČAN POŠTANSKI BROJ === */
.ct2__shipInput.is-disabled{
  background: #f3f4f6;
  color: #777;
  border-color: rgba(0,0,0,0.08);
  cursor: not-allowed;
}

.ct2__shipInput.is-disabled::placeholder{
  color: #888;
  font-weight: 800;
  font-size: 16px;
}

.ct2__shipInfo{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  line-height: 1.35;
}


/* === MOBILE FLOW OPTIMIZATION === */
@media (max-width: 980px){
  /* keep content above sticky bar */
  .ct2{ padding-bottom: 96px; }

  /* reduce card padding slightly */
  .ct2__itemsCard{ padding: 14px; }
  .ct2__sumCard{ padding: 14px; }

  /* sticky bottom bar */
  .ct2__mobileBar{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.10);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    z-index: 9999;
  }
  .ct2__mobileBarInner{
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .ct2__mobilePay{
    font-weight: 900;
    line-height: 1.1;
  }
  .ct2__mobilePay small{
    display: block;
    font-size: 12px;
    opacity: .7;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  #ct2MobileGrand{
    font-size: 18px;
    white-space: nowrap;
  }
  .ct2__mobileCta{
    height: 46px;
    border-radius: 14px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid #0f766e;
    color: #0f766e;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  .ct2__mobileCta[disabled]{
    background: transparent;
    border-color: rgba(0,0,0,.25);
    color: rgba(0,0,0,.4);
    cursor: not-allowed;
  }
  .ct2__mobileCta:not([disabled]):hover{
    border-color: #0c5f58;
    background: rgba(15,118,110,.06);
    color: #0c5f58;
  }

  /* === Mobile accordion (Dostava + Sažetak) === */
  .ct2__acc{ margin-bottom: 12px; }
  .ct2__accBtn{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 16px;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
  }
  .ct2__accTitle{ 
    display:flex; 
    align-items:center; 
    gap:8px; 
    font-size: 20px;
    font-weight: 900;
  }
  /* Hide icon before "Procjena dostave" on mobile */
  .ct2__accTitle .ct2__shipIcon {
    display: none;
  }
  .ct2__accChevron{
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(0,0,0,0.55);
    border-bottom: 2px solid rgba(0,0,0,0.55);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-right: 2px;
  }
  .ct2__accBody{
    margin-top: 10px;
  }
  /* collapsed by default on mobile */
  .ct2__acc:not(.is-open) .ct2__accBody{ display:none; }
  .ct2__acc.is-open .ct2__accChevron{ transform: rotate(-135deg); }

  /* remove double borders: inner boxes should look like content, not another card */
  .ct2__accBody .ct2__shipBox{ border: 0; padding: 0; margin: 0; }
  /* Ensure radio buttons in accordion body work (for both desktop and mobile versions) */
  .ct2__accBody .ct2__priceModeOption input[type="radio"],
  .ct2__accBody .ct2__priceMode--mobile .ct2__priceModeOption input[type="radio"] {
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    appearance: radio !important;
    accent-color: #0f766e !important;
    width: 16px !important;
    height: 16px !important;
    background-color: transparent !important;
    background-image: none !important;
    position: relative !important;
  }
  .ct2__accBody .ct2__priceModeOption input[type="radio"]:checked,
  .ct2__accBody .ct2__priceMode--mobile .ct2__priceModeOption input[type="radio"]:checked {
    accent-color: #0f766e !important;
    background-color: transparent !important;
    background-image: none !important;
  }
  /* Custom dot for mobile - use label's ::after positioned over radio button center */
  .ct2__accBody .ct2__priceModeOption.ct2__priceModeOption--has-dot::after,
  .ct2__accBody .ct2__priceMode--mobile .ct2__priceModeOption.ct2__priceModeOption--has-dot::after {
    content: '' !important;
    position: absolute !important;
    left: 18px !important; /* 10px padding + 8px = exact center of 16px radio */
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #0f766e !important;
    pointer-events: none !important;
    z-index: 10 !important;
    display: block !important;
  }
}

/* Desktop: do NOT show accordion toggle buttons (show content directly) */
@media (min-width: 981px){
  .ct2__accBtn{ display: none; }
  .ct2__accBody{ display: block !important; margin-top: 0; }
  .ct2__acc{ margin-bottom: 0; }
}


/* mobile polish: keep key info, reduce friction */
@media (max-width: 560px){
  /* show short description under name (like desktop), clamp to 2 lines */
  .bt1__itemDesc{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    line-height: 1.35;
  }

  /* keep badges optional; hide for cleaner list */
  .ct2__meta{ display: none; }

  .ct2__title{ font-size: 24px; }

  /* ensure name and remove don't end up on same line */
  .bt1__itemName{ display:block; }

  /* move/remove link styling: keep it compact and away from the title */
  .ct2__remove{
    margin-top: 10px;
    padding: 0;
    text-decoration: underline;
    font-size: 13px;
  }

  /* quantity: dropdown under label, not hugging the edge */
  .ct2__qtyRow{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ct2__qty{
    width: 96px;
  }

  /* price: allow EUR to go to next line, right-aligned */
  .bt1__priceNow,
  .bt1__priceOld{
    display:flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: normal;
  }
  .bt1__priceNow .cur,
  .bt1__priceOld .cur{
    display:block;
    margin-left: 0;
    top: 0;
    font-size: 12px;
    opacity: .7;
    letter-spacing: .06em;
  }
}


/* === EXTRA MOBILE POLISH (reduce scroll + improve readability) === */
@media (max-width: 560px){
  /* tighter item spacing */
  .bt1--cart .bt1__itemRow--cart{
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* make image area more consistent and not overly tall */
  .bt1__itemImg{
    max-width: 170px;
  }
  .bt1__itemImg img{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
  }

  /* slightly smaller type/kicker */
  .bt1__itemType{
    font-size: 12px;
    letter-spacing: .06em;
    opacity: .75;
  }

  /* keep title readable but avoid huge blocks */
  .bt1__itemName{
    font-size: 18px;
    line-height: 1.2;
  }

  /* right column: prevent text squeezing and keep neat alignment */
  .bt1__itemRight{
    min-width: 150px;
  }

  /* price label closer, less vertical waste */
  .ct2__priceTop{ margin-bottom: 6px; }
  .ct2__qtyRow{ padding-bottom: 8px; margin-bottom: 8px; }

  /* shipping box + summary: reduce padding a touch */
  .ct2__shipBox{ padding: 10px; border-radius: 14px; }
  .ct2__sumHead{ margin-bottom: 10px; }
}

/* very small phones */
@media (max-width: 390px){
  .bt1__itemImg{ max-width: 150px; }
  .bt1__itemName{ font-size: 17px; }
  .bt1__itemRight{ min-width: 140px; }
  .ct2__qty{ width: 92px; }
}
/* === Sažetak: podnapomena ispod iznosa (npr. niža dostava) === */
.ct2__sumVal{ text-align: right; }
.ct2__sumSubnote{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: .7;
  line-height: 1.25;
}

/* omogućava wrap unutar summary flex retka */
.ct2__sumLine {
  min-width: 0;
}

/* napomena ispod / uz dostavu */
.ct2__shipNote,
.ct2__sumLine--shipNote {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
  text-align: center;
}

/* ako je napomena unutar labela (flex child) */
.ct2__sumLine .ct2__sumLabel {
  min-width: 0;
}
/* Popis naselja ispod procjene dostave – mali razmak ispod */
#ct2ShipSettlements,
.ct2__shipSettlements {
  margin-bottom: 8px; /* ili 6px ako želiš još zbijenije */
}
#ct2ShipSettlements{
  font-size: 13px;
  font-weight: 700;
  color: #666;
  line-height: 1.35;
  margin-bottom: 8px;
}

#ct2ShipSettlements { margin-bottom: 8px; }

/* Napomena ispod košarice ako je u košarici madrac a nema štep deke*/

.ct2__upsellNote{
  margin: 18px 0;
  padding: 16px;
  border-radius: 10px;
  background: #f6f3ee;
  border: 1px solid rgba(0,0,0,.08);
}
.ct2__upsellTitle{ font-weight: 800; margin-bottom: 6px; }
.ct2__upsellText{ line-height: 1.35; margin-bottom: 10px; }
.ct2__upsellLink{ font-weight: 800; text-decoration: underline; }

.ct2__upsellNote{
  width: 100%;
  clear: both;
}
/* upsell note – mobile fix */
@media (max-width: 768px) {
  .ct2__upsellNote {
    position: relative !important;
    inset: auto !important;
    margin: 16px 0 !important;
    width: 100%;
    z-index: 1;
  }
}
@media (max-width: 768px) {
  .ct2__upsellNote {
    clear: both;
  }
}
.ct2__upsellNote{
  width: 100%;
  grid-column: 1 / -1;
}
.ct2__upsellNote{
  width: 100%;
  display: block;
  margin: 16px 0;
  grid-column: 1 / -1; /* ako parent koristi grid */
}
.ct2__upsellNote{
  width: 100%;
  display: block;
  margin: 16px 0;
  grid-column: 1 / -1;
}

/* Prikaz roka isporuke */
.ct2__eta {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
  opacity: 0.9;
}
.ct2__etaLabel {
  cursor: help;
  border-bottom: 1px dotted rgba(0,0,0,0.4);
}
.ct2__etaInfo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #555;
  user-select: none;
}

.ct2__etaInfo:hover {
  color: #000;
}
.ct2__etaInfo:focus {
  outline: 2px solid #999;
  outline-offset: 2px;
}

  .ct2hdr{ background:#fff; border-bottom:1px solid rgba(0,0,0,.08); position:sticky; top:0; z-index:9; }
  .ct2hdr__in{ max-width:1100px; margin:0 auto; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
  .ct2hdr__logo{ text-decoration:none; color:#111; font-weight:800; letter-spacing:.2px; }
  .ct2hdr__steps{ display:flex; gap:10px; font-size:12px; color:rgba(0,0,0,.55); }
  .ct2hdr__step--active{ color:#111; font-weight:700; }


