/* =========================================================
   BULSILA – допълнения за OpenCart (истински снимки вместо рисунки)
   ========================================================= */

/* Снимките на продуктите */
.card-media { background: #ececec; }
/* Снимката се показва цяла (често е предна + задна страна една до друга) – без изрязване */
.card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.card:hover .card-media > img { transform: scale(1.04); }
.card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.main-img { background: #ececec; }
.main-img .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.main-img.zoom .photo { transform: scale(1.7); }
.main-img .note { color: #555; }
.thumb { padding: 0; background: #ececec; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb { padding: 0; overflow: hidden; background: #ececec; position: relative; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qa-photo { padding: 0; overflow: hidden; background: #ececec; }
.qa-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qa-measure { margin-top: 18px; display: grid; gap: 4px; }

/* Категория: без странична колона с филтри */
.cat-layout-full { grid-template-columns: 1fr; }
.cat-desc { max-width: 640px; color: var(--text-2); font-size: 15px; }
.cat-desc p { margin: 0 0 8px; }
.cat-desc img { display: none; }
.search-inline { display: flex; gap: 10px; max-width: 520px; margin-top: 16px; }
.search-inline input { flex: 1; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 18px; font: inherit; }

/* Страници (OpenCart pagination) */
.bs-pagination ul.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 28px 0 0; justify-content: center; }
.bs-pagination li a, .bs-pagination li span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-weight: 700; }
.bs-pagination li.active span { background: var(--accent); color: #111; border-color: var(--accent); }

/* Грешки при поръчка и при „Купи“ */
.form-error { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(195, 39, 43, .14); border: 1px solid rgba(195, 39, 43, .5); color: #ffb4b4; font-size: 14px; }
.pdp-desc { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.pdp-desc img { max-width: 100%; height: auto; border-radius: 12px; }

/* Мега менюто без иконите на спортовете */
.mega-sport { padding-left: 14px; }

/* Страниците, които темата не е преработила: стандартният вид на OpenCart върху бял фон */
body.oc-page #main { background: #fff; color: #333; padding: 28px 0 60px; }
body.oc-page #main a { color: #b07d00; }
body.oc-page #main .btn-primary { background: var(--accent); border-color: var(--accent); color: #111; }
body.oc-page #main h1, body.oc-page #main h2, body.oc-page #main h3 { color: #111; }

/* Поле за цвета на модела: жълт надпис отгоре вляво и жълт контур */
.color-label { display: block; margin: 0 0 8px 2px; color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.qa-color-label { margin-top: 18px; }
.color-field input { height: 54px; padding: 0 16px !important; border: 1.5px solid var(--accent) !important; border-radius: 14px; }
.color-field input::placeholder { color: var(--muted); opacity: 1; }
.color-field input:focus { box-shadow: 0 0 0 3px rgba(245, 190, 50, .25); outline: none; }
.color-field.err input { border-color: var(--red) !important; }

/* Кутията с ръст и тегло е винаги отворена – без стрелка и без клик */
.size-help-fixed { cursor: default; pointer-events: none; }
.size-help-fixed .icon:last-child { margin-left: 0; transform: none; }

/* Началната страница: златни стрелки „SCROLL“ между колажите */
.board-scroll { position: absolute; left: 50%; z-index: 3; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 24px; background: none; border: 0; cursor: pointer; color: #f5be32; }
.board-scroll b { font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.6vw, 26px); letter-spacing: .5em; padding-left: .5em; background: linear-gradient(180deg, #fff1b8 0%, #f5be32 45%, #b8811c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(245, 190, 50, .45)); animation: bs-scroll-glow 2.4s ease-in-out infinite; }
.board-scroll .chevs { display: flex; flex-direction: column; align-items: center; }
.board-scroll .chevs i { display: block; width: clamp(22px, 2.3vw, 38px); height: clamp(22px, 2.3vw, 38px); margin-top: clamp(-14px, -1vw, -8px); border-right: 4px solid #f5be32; border-bottom: 4px solid #f5be32; border-radius: 0 0 3px 0; transform: rotate(45deg); filter: drop-shadow(0 0 8px rgba(245, 190, 50, .85)); opacity: .2; animation: bs-chev 1.8s ease-in-out infinite; }
.board-scroll .chevs i:nth-child(2) { animation-delay: .2s; }
.board-scroll .chevs i:nth-child(3) { animation-delay: .4s; }
.board-scroll:hover .chevs i { border-color: #fff1b8; }
@keyframes bs-chev { 0%, 100% { opacity: .2; transform: translateY(-6px) rotate(45deg); } 50% { opacity: 1; transform: translateY(6px) rotate(45deg); } }
@keyframes bs-scroll-glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .board-scroll .chevs i, .board-scroll b { animation: none; opacity: 1; } }
/* Телефон: същите стрелки, закачени долу в средата на екрана */
.m-scroll { display: none; }
@media (max-width: 720px) {
  .board-scroll { display: none; }
  .m-scroll { display: flex; position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 8px; padding: 12px 22px 10px; border: 0; border-radius: 999px; background: radial-gradient(closest-side, rgba(0,0,0,.85), rgba(0,0,0,.55) 70%, transparent); cursor: pointer; transition: opacity .35s, transform .35s; }
  .m-scroll .chevs { display: flex; flex-direction: column; align-items: center; }
  .m-scroll .chevs i { display: block; width: 18px; height: 18px; margin-top: -8px; border-right: 3px solid #f5be32; border-bottom: 3px solid #f5be32; border-radius: 0 0 3px 0; filter: drop-shadow(0 0 6px rgba(245, 190, 50, .85)); opacity: .2; animation: bs-chev 1.8s ease-in-out infinite; }
  .m-scroll .chevs i:nth-child(2) { animation-delay: .2s; }
  .m-scroll .chevs i:nth-child(3) { animation-delay: .4s; }
  .m-scroll b { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .5em; padding-left: .5em; background: linear-gradient(180deg, #fff1b8 0%, #f5be32 45%, #b8811c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(245, 190, 50, .45)); animation: bs-scroll-glow 2.4s ease-in-out infinite; }
  .m-scroll.gone { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .m-scroll .chevs i, .m-scroll b { animation: none; opacity: 1; } }

/* „Прочети, за да завършиш поръчката си“: на тесен екран текстът се пренася, стрелката остава вътре */
.read-made { height: auto; min-height: var(--h); padding: 12px 18px; white-space: normal; text-align: center; line-height: 1.3; }
.read-made .icon { flex: 0 0 auto; }
@media (max-width: 720px) { .read-made { font-size: 13px; letter-spacing: .04em; gap: 8px; } }

/* Информационни страници, контакти, количка */
.info-page { padding-top: 32px; padding-bottom: 80px; max-width: 860px; }
.info-body { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.info-body h1, .info-body h2, .info-body h3, .info-body h4 { color: var(--text); margin: 24px 0 10px; }
.info-body p { margin: 0 0 12px; }
.info-body a { color: var(--accent); }
.info-body img { max-width: 100%; height: auto; border-radius: 12px; }
.info-body table { width: 100%; border-collapse: collapse; }
.info-body td, .info-body th { border: 1px solid var(--line-2); padding: 8px; }
.info-help { display: flex; gap: 10px; align-items: center; margin-top: 32px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; color: var(--text-2); }
.info-help .icon { color: var(--accent); }
.info-help a { color: var(--accent); font-weight: 700; }
.contact-page { max-width: 1000px; display: grid; gap: 20px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; margin: 0; }
.contact-card .icon { color: var(--accent); width: 26px; height: 26px; flex: 0 0 auto; }
.contact-card span { display: block; font-size: 13px; }
.contact-card b { font-size: 17px; word-break: break-word; }
.contact-form h3 { margin-top: 0; }
.cart-page { padding-top: 32px; padding-bottom: 80px; }
.cart-page h4 a { color: inherit; }
