@charset "UTF-8";
/* ==========================================================================
   Alofok s.r.o. — e-shop stylesheet
   Loaded only by eshop.php and eshop-item.php. Depends on site.css.

   Contents
     1. Shared shop chrome (breadcrumbs, headers)
     2. Category layout & facets
     3. Toolbar, active filters, pagination
     4. Product grid & cards
     5. Price, stock, rating
     6. Product detail — gallery
     7. Product detail — buy box
     8. Specification table
     9. Trust row & related products
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shared shop chrome
   ----------------------------------------------------------------------- */

.shop-head {
  padding-block: calc(var(--header-h) + var(--space-l)) var(--space-l);
}

.shop-head__title {
  font-size: var(--step-4);
}

.shop-head__lede {
  max-width: var(--measure);
  margin-top: var(--space-s);
  font-size: var(--step-1);
}

.crumbs {
  margin-bottom: var(--space-m);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.crumbs li + li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  background: var(--line-strong);
  border-radius: 50%;
}

.crumbs a {
  color: var(--ink-faint);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs [aria-current="page"] {
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   2. Category layout & facets
   ----------------------------------------------------------------------- */

.shop-layout {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 62rem) {
  .shop-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .facets {
    position: sticky;
    top: calc(var(--header-h) + var(--space-m));
  }
}

.facets {
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.facets__title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-m);
  font-size: var(--step-0);
  font-weight: 650;
  color: var(--ink);
}

.facets__title .icon {
  color: var(--brand);
}

.facet {
  /* Reset the UA fieldset chrome; the separator below is the only rule we want. */
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.facet + .facet {
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

.facet__legend {
  margin-bottom: var(--space-2xs);
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.facet__list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facet__option {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.35rem 0.4rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.facet__option:hover {
  color: var(--ink);
  background: rgba(167, 176, 194, 0.06);
}

.facet__option input {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin: 0;
  accent-color: var(--brand);
}

.facet__count {
  margin-inline-start: auto;
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.facets__actions {
  display: grid;
  gap: var(--space-2xs);
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}

/* On mobile the facet panel collapses into a native disclosure. */
.facets__mobile-summary {
  display: none;
}

@media (max-width: 61.99rem) {
  /* Below the sidebar breakpoint the panel becomes a disclosure, so the
     product grid is not pushed under a full-height list of checkboxes.
     site.js collapses it on load; without scripting it stays open and
     everything is still reachable. */
  .facets__mobile-summary {
    display: flex;
    gap: 0.5em;
    align-items: center;
    font-size: var(--step-0);
    font-weight: 650;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  .facets__mobile-summary::-webkit-details-marker {
    display: none;
  }

  .facets__mobile-summary::marker {
    content: "";
  }

  .facets__mobile-summary .icon:first-child {
    color: var(--brand);
  }

  .facets > .facets__title {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   3. Toolbar, active filters, pagination
   ----------------------------------------------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-m);
}

.toolbar__count {
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.toolbar__count strong {
  color: var(--ink);
}

.toolbar__sort {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.toolbar__sort .select {
  width: auto;
  min-width: 12rem;
  padding-block: 0.45rem;
  font-size: var(--step--1);
  background-position: calc(100% - 1.05rem) 1rem, calc(100% - 0.75rem) 1rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: var(--space-m);
  padding-bottom: var(--space-m);
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
}

.filter-pill {
  display: inline-flex;
  gap: 0.45em;
  align-items: center;
  padding: 0.3rem 0.55rem 0.3rem 0.8rem;
  color: var(--brand);
  text-decoration: none;
  background: var(--brand-wash);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast) var(--ease);
}

.filter-pill:hover {
  color: var(--ink);
  background: rgba(9, 190, 139, 0.2);
}

.filter-pill .icon {
  font-size: 0.85em;
}

.empty-state {
  padding: var(--space-2xl) var(--space-m);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
}

.empty-state .icon {
  font-size: 2rem;
  color: var(--ink-faint);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   4. Product grid & cards
   ----------------------------------------------------------------------- */

.product-grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  grid-auto-rows: 1fr;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-m);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--space-s);
  background: radial-gradient(circle at 50% 45%, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--line);
}

.product-card__media img {
  width: 72%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.06);
}

.product-card__badges {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: calc(100% - 1rem);
}

.product-card__badges .badge {
  padding: 0.18em 0.55em;
  font-size: 0.7rem;
  background: rgba(10, 15, 26, 0.85);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--space-s) var(--space-m) var(--space-m);
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: var(--space-2xs);
}

.product-card__title {
  font-size: var(--step-0);
  font-weight: 650;
  line-height: 1.35;
}

.product-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.product-card__title a::after {
  /* Whole card is the hit area, but only the title is the semantic link. */
  content: "";
  position: absolute;
  inset: 0;
}

.product-card__title a:hover {
  color: var(--brand);
}

.product-card__summary {
  flex: 1 1 auto;
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.product-card__foot {
  /* Price and action are pinned to the bottom edge of every card. */
  margin-top: auto;
  padding-top: var(--space-s);
}

.product-card__buy {
  position: relative;
  z-index: 1;
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   5. Price, stock, rating
   ----------------------------------------------------------------------- */

.price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  align-items: baseline;
}

.price__now {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price__was {
  font-size: var(--step--1);
  color: var(--ink-faint);
  text-decoration: line-through;
  white-space: nowrap;
}

.price__save {
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--danger);
  white-space: nowrap;
}

.price__note {
  width: 100%;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.price--lg .price__now {
  font-size: var(--step-4);
}

.stock {
  display: inline-flex;
  gap: 0.45em;
  align-items: center;
  font-size: var(--step--1);
  font-weight: 560;
}

.stock::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.stock--in {
  color: var(--brand);
}

.stock--low {
  color: var(--accent);
}

.stock--preorder {
  color: var(--ink-faint);
}

.rating {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.rating__stars {
  display: inline-flex;
  gap: 0.08rem;
  font-size: 0.85rem;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. Product detail — gallery
   ----------------------------------------------------------------------- */

.pdp {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 62rem) {
  .pdp {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: var(--space-xl);
  }
}

.gallery {
  display: grid;
  gap: var(--space-s);
}

.gallery__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--space-l);
  background: radial-gradient(circle at 50% 42%, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.gallery__stage img {
  width: min(24rem, 82%);
  max-height: 100%;
  object-fit: contain;
}

.gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__thumb {
  display: grid;
  place-items: center;
  width: 4.6rem;
  aspect-ratio: 1;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__thumb:hover,
.gallery__thumb[aria-current="true"] {
  border-color: var(--brand);
}

/* --------------------------------------------------------------------------
   7. Product detail — buy box
   ----------------------------------------------------------------------- */

.pdp__head {
  margin-bottom: var(--space-m);
}

.pdp__title {
  font-family: var(--font-body);
  font-size: var(--step-3);
  font-weight: 700;
}

.pdp__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  align-items: center;
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.buybox {
  padding: var(--space-m);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

@media (min-width: 62rem) {
  .buybox {
    position: sticky;
    top: calc(var(--header-h) + var(--space-m));
  }
}

.buybox__price {
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--line);
}

.buybox__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-s);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-s);
  font-size: var(--step--1);
}

.buybox__row + .buybox__row {
  border-top: 1px solid var(--line);
}

.buybox__actions {
  display: grid;
  gap: var(--space-2xs);
  margin-top: var(--space-s);
}

.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stepper button {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.stepper button:hover {
  color: var(--brand);
  background: var(--brand-wash);
}

.stepper input {
  width: 3rem;
  padding: 0;
  font: inherit;
  font-size: var(--step-0);
  font-weight: 650;
  color: var(--ink);
  text-align: center;
  background: transparent;
  border: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper input:focus-visible {
  outline-offset: -2px;
}

/* --------------------------------------------------------------------------
   8. Specification table
   ----------------------------------------------------------------------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.spec-table th,
.spec-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  width: 42%;
  font-weight: 560;
  color: var(--ink-faint);
}

.spec-table td {
  color: var(--ink);
}

.spec-table tr:nth-child(odd) {
  background: rgba(167, 176, 194, 0.03);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

/* Long-form copy inside a product page. */
.prose-block {
  max-width: var(--measure);
}

.prose-block > * + * {
  margin-top: 1em;
}

/* Rounded surround for the specification table. */
.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.pdp-section {
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.pdp-section > h2 {
  margin-bottom: var(--space-m);
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. Trust row & related products
   ----------------------------------------------------------------------- */

.trust-row {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  margin-top: var(--space-l);
}

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: var(--space-s);
  font-size: var(--step--1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.trust-item .icon {
  margin-top: 0.15em;
  font-size: 1.25rem;
  color: var(--brand);
}

.trust-item strong {
  display: block;
  color: var(--ink);
}

.trust-item span {
  color: var(--ink-faint);
}

.seo-copy {
  max-width: var(--measure);
  margin-top: var(--space-2xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line);
}

.seo-copy h2 {
  margin-bottom: var(--space-s);
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 700;
}

.seo-copy p + p {
  margin-top: 1em;
}
