/* ===== VectorKZ custom overrides (loaded after main.css) ===== */

/* --- Callback modal (Bootstrap) --- */
#callbackModal .modal-content { position: relative; }

#callbackModal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);

  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  z-index: 5;
  padding: 0;
}

#callbackModal .modal-close span {
  font-size: 26px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
}

#callbackModal .modal-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

#callbackModal .modal-close:hover span { color: rgba(0, 0, 0, 0.75); }

#callbackModal .modal-close:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

#callbackModal .modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18), 0 10px 25px rgba(0, 0, 0, 0.10);
}

#callbackModal .button-center { text-align: center; margin-top: 1.5em; }

#callbackModal .modal-note {
  margin: 0.75em 0 1.25em;
  font-size: 0.95em;
  opacity: 0.75;
}

/* --- Breadcrumbs --- */
#main .breadcrumbs {
  font-size: 0.8em;
  margin: 0.75em 0 0.75em;
  opacity: 0.75;
}

#main .breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px dotted;
}

#main .breadcrumbs span { margin: 0 0.25em; }

/* --- Spacing tweaks --- */
#main .tiles { margin-top: 0.5em; margin-bottom: 2.5em; }
#main { padding-bottom: 1em; }
.page-catalog #footer { padding: 1em 0; }

/* --- Disable Phantom hover scale globally; keep only for category tiles (optional) --- */
#main .tiles article:hover { transform: none; }
#main .tiles article.category-tile:hover { transform: scale(1.02); z-index: 2; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0.75em 0;
}

.faq-item summary { cursor: pointer; font-weight: 700; }

.faq-item p { margin: 0.75em 0 0; opacity: 0.85; }

/* --- Product cards (shop-style, no overlay) --- */
#main .tiles { align-items: stretch; }

#main .tiles .product-card {
  background: #fff;
  border-radius: 0.35em;
  padding: 1.25em;
  box-shadow: 0 0.75em 2em rgba(0,0,0,0.06);

  height: 100%;
  display: flex;
  flex-direction: column;

  transform: none !important;
}

#main .tiles .product-card:hover { transform: none !important; }

/* Image */
#main .tiles .product-card .image {
  display: block;
  border-radius: 0.35em;
  overflow: hidden;
  margin-bottom: 1em;
}

#main .tiles .product-card .image img {
  width: 100%;
  height: auto;
  display: block;
  transform: none !important;
}

/* Text */
#main .tiles .product-card .title { margin: 0 0 0.35em; }

#main .tiles .product-card .product-meta {
  margin: 0 0 0.85em;
  font-size: 0.85em;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

#main .tiles .product-card .desc { margin: 0 0 0.75em; opacity: 0.85; }

#main .tiles .product-card .price-from { margin: 0 0 1.25em; opacity: 0.9; }

/* Button always at bottom */
#main .tiles .product-card .order-btn {
  margin-top: auto;
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
  min-width: 0 !important;

  padding: 0 1.75em !important;
  height: 3em;
  line-height: 3em;

  border: 0;
  cursor: pointer;
}

/* ===== Catalog tiles: force equal-height cards via CSS Grid ===== */
.page-catalog #main .tiles {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2em;
}

/* Адаптив */
@media (max-width: 980px) {
  .page-catalog #main .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 736px) {
  .page-catalog #main .tiles {
    grid-template-columns: 1fr;
  }
}

/* Убираем возможные внешние отступы Phantom у article внутри tiles */
.page-catalog #main .tiles > article {
  width: auto !important;
  margin: 0 !important;
}

/* Карточка занимает всю высоту grid-ячейки */
.page-catalog #main .tiles .product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Кнопка внизу */
.page-catalog #main .tiles .product-card .order-btn {
  margin-top: auto !important;
}

/* ссылки внутри карточки товара */
#main .tiles .product-card .product-link{
  text-decoration: none;
  border-bottom: none;
  color: inherit;
}
#main .tiles .product-card .product-link:hover{
  text-decoration: none;
  border-bottom: none;
}

/* ===== Equal height: Related products on product page ===== */
#main .related-products .tiles {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2em;
  align-items: stretch;
}

@media (max-width: 980px) {
  #main .related-products .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 736px) {
  #main .related-products .tiles {
    grid-template-columns: 1fr;
  }
}

/* Phantom иногда задаёт article ширину/маргины — сбрасываем */
#main .related-products .tiles > article {
  width: auto !important;
  margin: 0 !important;
}

#main .related-products .tiles .product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

#main .related-products .tiles .product-card .order-btn {
  margin-top: auto !important;
}

/* ===== Product detail (2-column) ===== */

.product-header { margin-bottom: 1.25em; }
.product-title { margin: 0 0 .4em 0; }
.product-meta-inline { opacity: .65; font-weight: 400; }
.product-lead { margin: 0; opacity: .85; }

.product-page .product-hero{
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 2.5em;
  align-items: start;
}

.product-page .product-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: .6em;
  box-shadow: 0 0.75em 2em rgba(0,0,0,.08);
}

.product-page .product-info .price-from{
  font-size: 1.1em;
  margin: 0 0 .4em 0;
}

.product-page .product-note{
  margin: 0 0 1em 0;
  opacity: .75;
}

.product-page .product-cta{
  margin-top: 1em;
}

.product-page .product-info .order-btn{
  width: auto;
  min-width: 260px;
}

.product-page .product-how{
  margin-top: .75em;
  padding: .85em 1em;
  border-radius: .6em;
  background: rgba(0,0,0,.04);
  opacity: .9;
  font-size: .95em;
}

.product-page .product-bullets{
  margin-top: 1.25em;
  opacity: .9;
}

/* Mobile */
@media (max-width: 980px){
  .product-page .product-hero{
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  .product-page .product-info .order-btn{
    width: 100%;
    min-width: 0;
  }
}

/* ===== Sticky product info (desktop only) ===== */
@media (min-width: 981px){
  .product-page .product-info{
    position: sticky;
    top: 2.5em; /* отступ от верхней границы при скролле */
    align-self: start;
  }
}

/* allow sticky to work */
.product-page,
.product-page .product-hero{
  overflow: visible;
}

/* Телефон в модалке: шире и по центру */
#callbackModal .callback-phone {
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Чуть больше отступ снизу, чтобы кнопка “дышала” */
#callbackModal .mb-3 {
    margin-bottom: 1.25rem;
}

#callbackModal .callback-phone {
    padding: 0.9rem 1rem;
}

.category-cta {
  margin: 18px 0 26px;
  text-align: center;
}

.category-cta p {
  margin: 0 0 10px;
  opacity: .9;
}

.category-cta--top { margin-top: 10px; }
.category-cta--bottom { margin-top: 24px; }

@media (max-width: 768px) {
  .category-cta { padding: 0 12px; }
}

.category-cta--bottom {
  margin: 36px 0 56px;
}

.product-note {
  margin-top: 6px;
  font-size: 12px;
  opacity: .75;
  text-align: center;
}


