/* ===== Kluci z Myčky – detail produktu (Shoptet Apollo) ===== */

/* 1) Větší fotka: na desktopu fotka 60 % šířky, info 40 % */
@media (min-width: 992px) {
  .p-detail .product-top { display: flex; flex-wrap: wrap; align-items: flex-start; }
  .p-detail .p-image-wrapper { flex: 0 0 60%; max-width: 60%; width: 60%; }
  .p-detail .p-info-wrapper  { flex: 0 0 40%; max-width: 40%; width: 40%; padding-left: 40px; }
  /* info panel „jede" s fotkou při scrollu */
  .p-detail .p-info-wrapper { position: sticky; top: 24px; }
}

/* 2) Fotka přes celou šířku sloupce, bez bílého rámečku */
.p-detail .p-image,
.p-detail .p-image #wrap,
.p-detail .p-main-image { width: 100% !important; max-width: none !important; background: none !important; padding: 0 !important; }
.p-detail .p-main-image img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 16px;
  object-fit: cover;
}
.p-detail .p-image-wrapper { margin-top: 0 !important; }

/* 3) Úklid: kód produktu a sdílení na X/FB pryč */
.p-detail .p-code { display: none !important; }
.p-detail .social-buttons,
.p-detail .link-icon.share,
.p-detail .link-icon.print { display: none !important; }
.p-detail .social-buttons-wrapper { border-top: 0 !important; }

/* 4) Hlavní tlačítko v brandové oranžové (stejně jako popup a košík) */
.p-detail .add-to-cart-button {
  background: #fa4616 !important;
  border-color: #fa4616 !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  transition: transform .15s, filter .15s;
}
.p-detail .add-to-cart-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.p-detail .add-to-cart-button:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

/* 5) Mobil: fotka od okraje k okraji, víc prostoru pro cenu a tlačítko */
@media (max-width: 767px) {
  .p-detail .p-main-image img { border-radius: 0; }
  .p-detail .p-image-wrapper { padding-left: 0 !important; padding-right: 0 !important; }
  .p-detail .add-to-cart { display: flex; gap: 12px; }
  .p-detail .add-to-cart-button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .p-detail .add-to-cart-button { transition: none; } }
