/* =========================================================
   LFaudio, shop.css
   Styly specifické pro produkty/e-shop (products.html a produkt-*.html):
   velký produkt, varianty, specifikace, katalog, stránka produktu,
   souhrn objednávky.
   ========================================================= */

.shop-hero { padding: 56px 0 24px; }
.shop-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.shop-hero p { color: var(--muted); max-width: 720px; }

/* ---------- Featured product ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; margin-top: 20px; }
.product-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); min-height: 420px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .tag { position: absolute; top: 16px; left: 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: var(--radius-chip); }
.product-info { display: flex; flex-direction: column; }
.product-info .ptitle { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.product-info .pprice { font-size: 1.7rem; font-weight: 800; color: var(--accent-2); font-family: var(--display); margin: 6px 0 4px; }
.product-info .punit { color: var(--muted-2); font-size: .9rem; }
.product-info > p { color: var(--muted); margin: 16px 0; }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; border-top: 1px solid var(--line); margin-top: 6px; }
.specs .spec { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs .spec span:first-child { color: var(--muted); }
.specs .spec span:last-child { font-weight: 600; text-align: right; }

.variant { display: flex; gap: 10px; margin: 22px 0 18px; flex-wrap: wrap; }
.variant .v {
  flex: 1; min-width: 110px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-family: inherit; line-height: 1.4; border-radius: var(--radius-input); padding: 12px; cursor: pointer;
  text-align: center; font-weight: 600; font-size: .92rem; transition: .2s; position: relative;
}
.variant .v small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; margin-top: 2px; }
.variant .v.soldout { opacity: .6; border-style: dashed; }
.variant .v .vstate { font-weight: 700; }
.variant .v .vstate.instock { color: var(--ok); }
.variant .v .vstate.order { color: var(--warn); }
.variant .v .vstate.soldout { color: var(--danger); }
:root[data-theme="light"] .variant .v .vstate.instock { color: #0f7a4d; }
:root[data-theme="light"] .variant .v .vstate.order { color: #b35c00; }
:root[data-theme="light"] .variant .v .vstate.soldout { color: #b3261e; }
.variant .v.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }

.product-buy { display: flex; gap: 12px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-btn); overflow: hidden; background: var(--bg-3); }
.qty button { width: 42px; height: 46px; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; transition: background .2s; }
.qty button:hover { background: var(--surface); }
.qty input { width: 44px; height: 46px; text-align: center; background: none; border: none; color: var(--text); font-size: 1rem; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Catalog grid ---------- */
.product-filter { margin: 0 0 26px; }
.product-filter[hidden] { display: none; }
.price-info { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.pc-avail { display: inline-block; align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: var(--radius-chip); font-size: .78rem; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.pc-avail.instock { color: var(--ok); border-color: var(--ok); background: rgba(52, 211, 153, .12); }
.pc-avail.order { color: var(--warn); border-color: var(--warn); background: rgba(255, 159, 26, .12); }
:root[data-theme="light"] .pc-avail.instock { color: #0f7a4d; border-color: #0f7a4d; background: rgba(15, 122, 77, .08); }
:root[data-theme="light"] .pc-avail.order { color: #b35c00; border-color: #b35c00; background: rgba(179, 92, 0, .08); }
.pc-avail.soldout { color: var(--danger); border-color: var(--danger); }
:root[data-theme="light"] .pc-avail.soldout { color: #b3261e; border-color: #b3261e; }
.pd-avail { margin-bottom: 12px; }
.pd-avail:empty { display: none; }
.product-info .pd-avail { margin: 4px 0 0; }
.product-info .ptitle a { color: inherit; text-decoration: none; }
.product-info .ptitle a:hover { text-decoration: underline; }

/* ---------- Stránka jednoho produktu ---------- */
.product-page { padding: calc(var(--header-h) + 24px) 0 70px; }   /* hlavička je pevná, obsah musí začínat pod ní */
.product-page .product { margin-top: 0; }
.pno { color: var(--muted-2); font-size: .85rem; margin: 2px 0 0; }
.pno b { color: var(--muted); font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.product-info .variant + .pno { margin: -8px 0 14px; }
.product-info .pno-solo { margin: 14px 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs [aria-current] { color: var(--text); }
.product-back { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product-card { position: relative; }
/* celá karta je klikací přes odkaz v nadpisu (odkaz vede na stránku produktu, v katalogu ho JS změní na okno s detailem) */
.product-card .pc-link { color: inherit; text-decoration: none; }
.product-card .pc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card .pc-link:focus-visible { outline: none; }
.product-card:has(.pc-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-card:hover { transform: translateY(var(--lift)); border-color: var(--accent); box-shadow: var(--shadow); }
.product-card .pc-media { position: relative; aspect-ratio: 4/3; background: var(--bg-2); overflow: hidden; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .pc-media img { transform: scale(1.05); }
.product-card .pc-tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .74rem; padding: 5px 10px; border-radius: var(--radius-chip); }
.product-card .pc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-body h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 6px; letter-spacing: normal; }
.product-card .pc-body p { color: var(--muted); font-size: .92rem; flex: 1; margin-bottom: 16px; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card .pc-price { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--accent-2); }

.product-card.cta { border-style: dashed; background: var(--bg-2); align-items: center; justify-content: center; text-align: center; padding: 34px 24px; }
.product-card.cta .ico { width: 56px; height: 56px; border-radius: calc(var(--radius) * 0.875); background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; margin: 0 auto 16px; }
.product-card.cta .ico svg { width: 28px; height: 28px; }
.product-card.cta h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 8px; letter-spacing: normal; }
.product-card.cta p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.product-card.cta.span-all { grid-column: 1 / -1; }

/* ---------- Order summary / inquiry section ---------- */
.order-summary { background: var(--bg-3); border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.75); padding: 14px 16px; margin-bottom: 20px; font-size: .92rem; }
.order-summary .osl { display: flex; justify-content: space-between; padding: 4px 0; gap: 12px; }
.order-summary .ostot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.order-summary .ostot b { color: var(--accent-2); }
.order-summary .osempty { color: var(--muted); text-align: center; padding: 8px 0; }

.order-section { background: var(--bg-2); }
.order-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: start; margin-top: 50px; }
.order-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 16px; font-size: .9rem; color: var(--muted); }

@media (max-width: 980px) {
  .product { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .order-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .specs { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
