/* Auratech – dodaci za PHP verziju (upit za rate, forme, korpa, mobilni detalji) */
.at-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* "Zatraži na rate" – dugme na artiklu (isti izgled kao ranije, sada <button>) */
button.at-rate-cta { width: 100%; text-align: left; font: inherit; cursor: pointer; }
button.at-rate-cta:hover { background: #dcecef; }
button.at-rate-cta img { flex: 0 0 auto; }

/* modal */
.at-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(16, 46, 79, .55); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.at-modal[hidden] { display: none; }
.at-modal-box { position: relative; background: #fff; width: 100%; max-width: 46rem; max-height: 92vh; overflow-y: auto; border-radius: 1.6rem 1.6rem 0 0; padding: 2.4rem 2rem 2rem; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: atUp .22s ease-out; }
@media (min-width: 576px) { .at-modal { align-items: center; padding: 2rem; } .at-modal-box { border-radius: 1.6rem; } }
@keyframes atUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.at-modal-box h2 { font-size: 2rem; color: #102E4F; margin: 0 3rem 1.6rem 0; display: flex; align-items: center; gap: 1rem; }
.at-modal-box h2 i { color: #18677D; }
.at-modal-x { position: absolute; top: 1rem; right: 1rem; width: 4rem; height: 4rem; border: 0; background: #f1f4f6; border-radius: 50%; font-size: 2.4rem; line-height: 1; color: #102E4F; cursor: pointer; }
html.at-qo-lock { overflow: hidden; }

/* forma za rate (modal i stranica "Kupovina na rate") */
.at-rate-form .at-rf-product { display: flex; gap: 1.2rem; align-items: center; background: #f3f8f9; border-radius: 1rem; padding: 1rem; margin-bottom: 1.6rem; }
.at-rate-form .at-rf-product img { width: 5.6rem; height: 5.6rem; object-fit: contain; background: #fff; border-radius: .8rem; flex: 0 0 auto; }
.at-rate-form .at-rf-product strong { display: block; font-size: 1.4rem; color: #102E4F; line-height: 1.35; }
.at-rate-form .at-rf-product span { font-size: 1.4rem; color: #18677D; font-weight: 700; }
.at-rf-f { margin-bottom: 1.2rem; }
.at-rf-f label { display: block; font-size: 1.3rem; font-weight: 600; color: #102E4F; margin-bottom: .4rem; }
.at-rf-f label small { font-weight: 400; color: #8a96a1; }
.at-rf-f input { width: 100%; height: 4.6rem; border: 1px solid #d5dde2; border-radius: 8px; padding: 0 1.2rem; font-size: 1.6rem; color: #333; }
.at-rf-f input:focus { outline: 0; border-color: #18677D; box-shadow: 0 0 0 3px rgba(24, 103, 125, .15); }
.at-rf-f input.is-invalid, .contact-us-form .is-invalid { border-color: #E9573F; background: #fff7f5; }
.at-rf-err, .at-form-err { color: #c0392b; font-size: 1.35rem; min-height: 0; margin: 0 0 .8rem; }
.at-rf-err:empty, .at-form-err:empty { display: none; }
.at-rate-form .btn { height: 4.8rem; font-size: 1.5rem; }
.at-rf-note { font-size: 1.2rem; color: #6b7682; margin: 1rem 0 0; line-height: 1.5; }
.at-form-done { text-align: center; padding: 2rem 1rem; }
.at-form-done i { font-size: 4rem; color: #1e7a45; }
.at-form-done h3 { font-size: 2rem; color: #102E4F; margin: 1rem 0 .6rem; }
.at-form-done p { color: #4b5560; }
.at-rate-ask-card p { color: #4b5560; }

/* korpa (stranica) */
.at-cart-page-box { text-align: center; padding: 4rem 1rem; border: 1px dashed #cfd8de; border-radius: 1.2rem; }
.at-cart-page-box i { font-size: 4.4rem; color: #18677D; }
.at-cart-page-box p { max-width: 42rem; margin: 1.2rem auto 2rem; color: #4b5560; }

/* artikal na mobitelu: bez sive strelice za bočnu traku (bočni sadržaj je ispod) */
.product-sidebar .sidebar-toggle { display: none !important; }

/* pretraga – zadržan upit */
.at-search input[name="q"]::-webkit-search-cancel-button { cursor: pointer; }

/* rate – "ili od X KM mjesečno" (prikazuje se tek kad se izračun uključi u adminu) */
.at-rate-from { font-size: 1.25rem; color: #5b6672; margin: -.2rem 0 .6rem; }
.at-rate-from strong { color: #18677D; }
.at-rf-product .at-rate-plan { display: block; font-size: 1.2rem; color: #5b6672; margin-top: .2rem; }

/* rate odmah ispod cijene na artiklu */
.at-rate-under { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; width: 100%; margin: 1.2rem 0 1.4rem; padding: 1.2rem 1.4rem; text-align: left; font: inherit; cursor: pointer;
  background: linear-gradient(90deg, #e8f3f5, #f4f9fa); border: 1px solid rgba(24,103,125,.35); border-radius: 1rem; transition: border-color .2s, box-shadow .2s; }
.at-rate-under:hover { border-color: #18677D; box-shadow: 0 4px 14px rgba(24,103,125,.15); }
.at-ru-label { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.4rem; color: #18677D; text-transform: uppercase; letter-spacing: .03em; }
.at-ru-label i { font-size: 1.8rem; }
.at-ru-plans { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; flex: 1 1 auto; }
.at-ru-plan { font-size: 1.5rem; color: #4b5560; white-space: nowrap; }
.at-ru-plan b { font-weight: 600; color: #102E4F; }
.at-ru-plan strong { font-size: 2rem; font-weight: 700; color: #102E4F; }
.at-ru-cta { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.35rem; color: #fff; background: #18677D; border-radius: 2rem; padding: .6rem 1.4rem; }
@media (max-width: 575px) { .at-ru-cta { margin-left: auto; } .at-ru-plan strong { font-size: 1.8rem; } }
.at-bb-price .at-bb-rate { color: #18677D; font-weight: 700; }
@media (max-width: 767px) { .product-single .at-pd > .at-rate-under { order: 3; margin-top: .8rem; margin-bottom: 1rem; } }

/* ---- Čitljivost i upotrebljivost (PageSpeed / pristupačnost) ---- */
/* dovoljan kontrast sitnog teksta (WCAG AA 4.5:1) */
.at-cat-count { color: #67727e; }
.at-nav-badge { background: #c0392b; }
/* dodirne tačke na mobitelu: najmanje 24 px (Google preporuka) */
.swiper-pagination-bullet { width: 1rem; height: 1rem; }
.swiper-pagination-bullets .swiper-pagination-bullet { margin: 0 .6rem; }
.at-foot-contact a[href^="tel:"], .at-foot-contact a[href^="mailto:"], .widget-body a[href^="tel:"] { display: inline-block; padding: .3rem 0; }

/* ---------- poštarina u korpi (razredi po iznosu narudžbe) ---------- */
.at-qo-shipcost { color: #102e4f; font-weight: 600; }
.at-qo-free.is-paid { color: #102e4f; }                      /* natpis uz način preuzimanja kad poštarina nije 0 */
.at-qo-sum .at-qo-tofree { color: #1e7a45; font-size: 1.3rem; }
.at-qo-sum .at-qo-tofree span:last-child { font-weight: 600; }
.at-ship-note { color: #4a5a68; }
.at-ship-rows { list-style: none; margin: 0; padding: 0; }
.at-ship-rows li { padding: .25rem 0; }
.at-ship-table { width: 100%; max-width: 46rem; border-collapse: collapse; margin: 1.2rem 0; font-size: 1.5rem; }
.at-ship-table th, .at-ship-table td { border: 1px solid #e1e8ec; padding: .9rem 1.2rem; text-align: left; }
.at-ship-table thead th { background: #f6f9fa; font-weight: 600; color: #102e4f; }
.at-ship-table td:last-child, .at-ship-table th:last-child { text-align: right; white-space: nowrap; }
