/*
 * MODUL E-SHOP – neutrálny vzhľad šablón modules/shop (karty produktov, detail, košík, účet zákazníka, vysúvací košík,
 * našepkávač vyhľadávania, lightbox). Načíta ho layout webu, ak je modul e-shop na webe (core/modules.php).
 * Web s vlastným dizajnom ho môže vynechať a štýly napísať po svojom; farby a zaoblenie sú v premenných --shop-*.
 * Ikony: assets/shop/icons (Bootstrap Icons, podmnožina použitých ikon).
 */

:root {
	--shop-gold: #e8590c;        /* hlavné tlačidlo, zvýraznenie (názov z prvého webu: btn-gold, text-gold) */
	--shop-gold-soft: #fff4e6;   /* svetlé pozadie ikon a štítkov */
	--shop-gold-text: #b34700;   /* zvýraznený text na svetlom pozadí */
	--shop-charcoal: #343a40;    /* tmavé tlačidlá a plochy */
	--shop-ink: #1c1c1c;         /* hlavný text */
	--shop-muted: #5c5c5c;       /* sekundárny text */
	--shop-muted-2: #6b6b6b;     /* drobné popisky */
	--shop-bg: #faf9f7;          /* pozadie stránky */
	--shop-sand: #f1f3f5;        /* svetlé plochy */
	--shop-sand-2: #f8f9fa;      /* pozadie fotiek produktov */
	--shop-line: #e7e5e1;        /* orámovanie kariet */
	--shop-line-2: #f1f0ed;      /* jemné deliace čiary */
	--shop-footer: #343a40;
	--shop-green: #2b8a3e;       /* skladom, zadarmo */
	--shop-green-soft: #ebfbee;
	--shop-red: #c92a2a;
	--shop-red-soft: #fff5f5;
	--shop-radius: 12px;
	--shop-radius-sm: 8px;
}

/* hlavné tlačidlo na farebnom pozadí má biely text */
.btn-gold,
.btn-gold:hover {
	color: #fff !important;
}

/* ---------- Tlačidlá ---------- */

.btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--shop-radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}

.btn-g:hover {
  filter: brightness(0.95);
}

.btn-g-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-gold {
  background: var(--shop-gold);
  color: var(--shop-ink);
}

.btn-gold:hover {
  color: var(--shop-ink);
}

.btn-dark-g {
  background: var(--shop-charcoal);
  color: #FFFFFF;
}

.btn-dark-g:hover {
  color: #FFFFFF;
}

.btn-outline-g {
  background: transparent;
  border-color: #CFC6B2;
  color: var(--shop-ink);
}

.btn-outline-light-g {
  background: transparent;
  border-color: #8C8989;
  color: #FFFFFF;
}

.btn-outline-light-g:hover {
  color: #FFFFFF;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--shop-radius);
  background: transparent;
  color: var(--shop-muted-2);
  display: inline-grid;
  place-items: center;
}

.link-arrow {
  font-weight: 700;
  font-size: 15px;
  text-underline-offset: 4px;
}


/* ---------- Karty a štítky ---------- */

.card-g {
  background: #FFFFFF;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  padding: 24px;
}

.card-g-title {
  margin: 0 0 16px;
  font-size: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
  font-size: 13px;
  font-weight: 700;
}

.chip-gold {
  background: var(--shop-gold-soft);
}

.chip-green {
  background: var(--shop-green-soft);
  color: #2F5A35;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.filter-chip .count {
  font-size: 13px;
  font-weight: 600;
  color: var(--shop-muted-2);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--shop-sand-2);
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  color: var(--shop-charcoal);
}

.icon-circle-gold {
  background: var(--shop-gold-soft);
  color: var(--shop-ink);
}

.icon-circle-green {
  background: var(--shop-green-soft);
  color: #2F5A35;
}


/* Tmavý CTA blok (registrácia) */
.cta-dark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--shop-radius);
  background: var(--shop-charcoal);
  color: #FFFFFF;
}

.cta-dark h2 {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
}

.cta-dark p {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: #E4E2E0;
}

.cta-dark .eyebrow {
  color: #E8D79A;
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px 32px;
  border-radius: var(--shop-radius);
  background: var(--shop-charcoal);
  color: #FFFFFF;
}

.cta-strip strong {
  display: block;
  font-size: 20px;
}

.cta-strip span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: #E4E2E0;
}


/* ---------- Produktové karty ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: #FFFFFF;
  transition: border-color 0.15s;
}

.product-card:hover {
  border-color: #CFC6B2;
}

.product-card-img {
  display: block;
  padding: 12px;
  background: var(--shop-sand-2);
}

.product-card-img img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}

.product-card-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--shop-ink);
  text-decoration: none;
}

.product-card-meta {
  font-size: 13px;
  color: var(--shop-muted-2);
}

.product-card-sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--shop-muted);
}

/* najnižšia cena za 30 dní pred zľavou (Omnibus) */
.product-card-lowest {
  font-size: 12px;
  line-height: 1.4;
  color: var(--shop-muted-2);
}

.product-card-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: auto;
  padding-top: 12px;
}

.product-card-price,
.product-card-old {
  white-space: nowrap;
}

.product-card-old {
  font-size: 14px;
  color: var(--shop-muted-2);
}

.product-card-price {
  font-size: 21px;
  font-weight: 800;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-card-actions .btn-g {
  flex: 1;
  min-height: 46px;
  padding: 0 12px;
  font-size: 14px;
}

.stock {
  font-size: 13px;
  font-weight: 600;
  color: var(--shop-green);
}

.stock::before {
  content: "● ";
}

/* Počet kusov */
.qty {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius-sm);
  background: #FFFFFF;
}

.qty button {
  width: 38px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 18px;
  color: var(--shop-ink);
}

.qty input {
  width: 30px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--shop-ink);
}

.qty-lg {
  height: 54px;
}

.qty-lg button {
  width: 46px;
  height: 52px;
  font-size: 20px;
}

.qty-lg input {
  width: 36px;
  font-size: 17px;
}

/* ---------- Kategória ---------- */

.category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin-top: 20px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
}

.category-head h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
}

.category-head p {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--shop-muted);
}

.category-head-images {
  display: flex;
  align-items: flex-end;
  height: 180px;
}

.category-head-images img {
  height: 170px;
  mix-blend-mode: multiply;
}

.category-head-images img + img {
  margin-left: -40px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--shop-line);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--shop-radius-sm);
  background: var(--shop-sand);
}

.segmented button,
.segmented a {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--shop-radius);
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--shop-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.segmented .active {
  background: #FFFFFF;
  color: var(--shop-ink);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(43, 42, 42, 0.12);
}

/* ---------- Detail produktu ---------- */

.gallery-main {
  position: relative;
  padding: 32px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
}

.gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gallery-fav {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumbs button {
  width: 96px;
  height: 96px;
  padding: 6px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
}

.gallery-thumbs button.active {
  border: 2px solid var(--shop-charcoal);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.buy-box {
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: #FFFFFF;
}

.buy-box-main {
  padding: 24px;
}

.buy-box-row {
  padding: 16px 24px;
  border-top: 1px solid var(--shop-line);
}

.price-big {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.progress-g {
  height: 8px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
  overflow: hidden;
}

.progress-g .bar {
  height: 100%;
  border-radius: var(--shop-radius);
  background: var(--shop-gold);
}

.progress-g-lg {
  height: 12px;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 14px;
  font-weight: 600;
}

.product-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

.tabs-line {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--shop-line);
}

.tabs-line button {
  padding: 22px 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  color: var(--shop-muted);
  white-space: nowrap;
}

.tabs-line button.active {
  border-bottom-color: var(--shop-gold);
  font-weight: 800;
  color: var(--shop-ink);
}

.note-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
}

.note-box i {
  font-size: 24px;
  color: var(--shop-gold-text);
}

.note-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}


/* ---------- Košík ---------- */

.cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--shop-line-2);
}

.cart-item-img {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  padding: 6px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand-2);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cart-item-info {
  flex: 1 1 260px;
  min-width: 0;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.cart-item-total {
  min-width: 76px;
  text-align: right;
  font-size: 18px;
  font-weight: 800;
}

/* Voľba dopravy / platby / adresy ako karta */
.option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: #FFFFFF;
  cursor: pointer;
}

.option-card.is-selected {
  border: 2px solid var(--shop-charcoal);
  padding: 13px 17px;
}

.option-card .option-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--shop-radius-sm);
  background: var(--shop-sand);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--shop-charcoal);
}

.option-card .option-text {
  flex: 1;
}

.option-card .option-text small {
  display: block;
  font-size: 14px;
  color: var(--shop-muted);
}

.option-card-nested {
  overflow: hidden;
  border: 2px solid var(--shop-charcoal);
  border-radius: var(--shop-radius);
}

.option-card-nested .option-card {
  border: 0;
  border-radius: 0;
}

.option-card-nested .option-body {
  padding: 18px;
  background: var(--shop-bg);
}

.summary-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 12px;
  margin: 0;
  font-size: 15px;
}

.summary-list dt {
  font-weight: 400;
}

.summary-list dt small {
  display: block;
  font-size: 12px;
  color: var(--shop-muted-2);
}

.summary-list dd {
  margin: 0;
  font-weight: 700;
}

.summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 18px;
}

.summary-total strong.price {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.collapse-row {
  border-top: 1px solid var(--shop-line-2);
  border-bottom: 1px solid var(--shop-line-2);
}

.collapse-row summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.promo-box {
  padding: 24px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
}

.promo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--shop-gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}


/* navigácia sekcie stránok (pages/_section-nav.latte) – nad obsahom stránky */
.section-nav {
  margin-bottom: 16px;
}

.section-nav .section-nav-title {
  margin-bottom: 4px;
  color: var(--shop-ink);
  font-weight: 800;
}

/* podstránky na nadradenej stránke */
.page-children {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.page-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: #FFFFFF;
  font-weight: 700;
  color: var(--shop-ink);
  text-decoration: none;
}

.page-child:hover {
  border-color: #CFC6B2;
  color: var(--shop-ink);
}

.help-box {
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--shop-radius);
  background: var(--shop-charcoal);
  color: #FFFFFF;
}

.help-box a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 800;
  font-size: 17px;
  color: #FFFFFF;
}


/* ---------- Zákaznícke konto ---------- */

.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.account-profile small {
  font-size: 13px;
  color: var(--shop-muted);
}

.account-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: #FFFFFF;
}

.account-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--shop-radius-sm);
  font-weight: 600;
  font-size: 15px;
  color: #3D3B3A;
  text-decoration: none;
}

.account-menu a:hover {
  background: var(--shop-sand-2);
  color: var(--shop-ink);
}

.account-menu a.active {
  background: var(--shop-charcoal);
  color: #FFFFFF;
}

.account-menu a.sub {
  min-height: 40px;
  padding-left: 44px;
  font-size: 14px;
  color: var(--shop-muted);
}

.account-menu a.sub.active {
  background: transparent;
  color: var(--shop-ink);
  font-weight: 800;
}

.account-menu .badge-g {
  margin-left: auto;
}

.account-menu hr {
  margin: 6px 4px;
  border-color: var(--shop-line-2);
  opacity: 1;
}

.badge-g {
  padding: 2px 8px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
  font-size: 12px;
  font-weight: 700;
  color: var(--shop-ink);
}

.badge-g-gold {
  background: var(--shop-gold-soft);
}

.page-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.03em;
}

.office-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 24px 28px;
  border-radius: var(--shop-radius);
  background: var(--shop-charcoal);
  color: #FFFFFF;
  text-decoration: none;
}

.office-teaser:hover {
  color: #FFFFFF;
}

.office-teaser .eyebrow {
  margin: 0;
  color: #E8D79A;
}

.order-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 18px;
  border: 1px solid var(--shop-line-2);
  border-radius: var(--shop-radius);
}

.order-thumbs {
  display: flex;
  gap: 8px;
}

.order-thumbs span {
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: var(--shop-radius-sm);
  background: var(--shop-sand-2);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--shop-muted);
}

.order-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 1px dashed #DCD6C8;
  border-radius: var(--shop-radius);
  text-align: center;
}

.address-box {
  position: relative;
  padding: 18px;
  border: 1px solid var(--shop-line-2);
  border-radius: var(--shop-radius);
}

.address-box .btn-icon {
  position: absolute;
  top: 10px;
  right: 10px;
}

.btn-dashed {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border: 1px dashed #CFC6B2;
  border-radius: var(--shop-radius);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--shop-ink);
}

/* odkaz „+ Pridať adresu“ v tvare tlačidla */
a.btn-dashed {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* odhlásenie v menu účtu (formulár s tlačidlom, vyzerá ako odkaz menu) */
.account-menu-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--shop-radius-sm);
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}

.account-menu-logout:hover {
  background: var(--shop-sand-2);
  color: var(--shop-ink);
}

.min-w-0 {
  min-width: 0;
}

.btn-g-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

/* obľúbený produkt v prehľade účtu */
.favorite-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--shop-line-2);
  border-radius: var(--shop-radius);
  color: var(--shop-ink);
  text-decoration: none;
}

.favorite-row:hover {
  border-color: #CFC6B2;
}

.favorite-row-img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand-2);
}

.favorite-row-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* doklad na stiahnutie v detaile objednávky */
.invoice-link button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--shop-line-2);
  border-radius: var(--shop-radius);
  background: transparent;
  text-align: left;
  color: var(--shop-ink);
}

.invoice-link button:hover {
  border-color: #CFC6B2;
}

.invoice-link .bi-file-earmark-pdf {
  font-size: 22px;
  color: var(--shop-red);
}

/* záložka Obľúbené na karte produktu (roh obrázka) */
.card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.card-favorite button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--shop-muted-2);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.card-favorite button:hover,
.card-favorite button.is-active {
  color: var(--shop-gold-text);
}

/* Obľúbené v detaile produktu (vedľa Opýtať sa, Zdieľať) */
.favorite-link button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: inherit;
}

.favorite-link button.is-active i {
  color: var(--shop-gold-text);
}

/* tlačidlo formulára, ktoré vyzerá ako odkaz (adresy v účte) */
.link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--shop-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* výber uloženej adresy v košíku */
.saved-address {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand-2);
}


/* ---------- Doplnkové pomocné triedy ---------- */

.eyebrow-sm {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.h-display {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
}

.lead-g {
  font-size: 17px;
  line-height: 1.65;
  color: var(--shop-muted);
}

.cta-dark-text {
  flex: 1 1 420px;
}

.category-head-text {
  flex: 1 1 420px;
}

.link-tap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.details-summary {
  display: flex;
  align-items: center;
  min-height: 64px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.contact-title {
  max-width: 760px;
  margin: 0;
}

.team-search {
  flex: 0 1 260px;
  padding: 0 14px;
  border: 1px solid #DCD6C8;
  background: #FFFFFF;
  border-radius: var(--shop-radius);
}

.team-search input {
  height: 42px;
  font-size: 14px;
}

.text-red {
  color: var(--shop-red) !important;
}

.office-teaser .small,
.office-teaser span {
  color: inherit;
}


}

@media (max-width: 575px) {
  .category-head-images {
    display: none;
  }
}

/* Na mobile dva produkty vedľa seba */
@media (max-width: 575px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card-img {
    padding: 10px;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-card-name {
    font-size: 14px;
  }

  .product-card-sub {
    display: none;
  }

  .product-card-price {
    font-size: 18px;
  }

  .product-card-body .stock {
    font-size: 12px;
  }

  .product-card-actions .qty {
    display: none;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}



/* ---------- Správy po akcii (vložené do košíka, odoslaný formulár) ---------- */

.flash {
  margin-bottom: 12px;
  padding: 14px 20px;
  border-radius: var(--shop-radius-sm);
  background: var(--shop-green-soft);
  color: #2F5A35;
  font-weight: 600;
}

.flash-danger {
  background: var(--shop-red-soft);
  color: var(--shop-red);
}

.flash-warning,
.flash-info {
  background: var(--shop-gold-soft);
  color: var(--shop-gold-text);
}

/* ---------- Dostupnosť (skladom / na objednávku / vypredané) ---------- */

.stock-backorder {
  color: var(--shop-gold-text);
}

.stock-sold_out {
  color: var(--shop-muted-2);
}

.stock-text-in_stock {
  color: var(--shop-green);
}

.stock-text-backorder {
  color: var(--shop-gold-text);
}

.stock-text-sold_out {
  color: var(--shop-muted-2);
}

/* ---------- Štítky produktu podľa farby z adminu (config shop.tag_colors) ---------- */

.chip-accent {
  background: var(--shop-gold-soft);
}

.chip-blue {
  background: #E2EAF3;
  color: #2D4B6B;
}

.chip-red {
  background: var(--shop-red-soft);
  color: var(--shop-red);
}

/* ---------- Výber variantu (veľkosť, farba) ---------- */

.variant-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 48px;
  padding: 6px 16px;
  border: 1.5px solid var(--shop-line);
  border-radius: var(--shop-radius-sm);
  background: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.variant-chip small {
  font-size: 12px;
  font-weight: 600;
  color: var(--shop-muted-2);
}

.variant-chip.is-selected {
  border: 2px solid var(--shop-charcoal);
  padding: 5px 15px;
}

.variant-chip.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  text-decoration: line-through;
}

.variant-chip:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(216, 189, 93, 0.45);
}

/* ---------- Filter vo výpise ---------- */

.filter-chip.is-selected {
  border-color: var(--shop-charcoal);
  background: var(--shop-charcoal);
  color: #FFFFFF;
}

.filter-chip.is-selected .count {
  color: #E4E2E0;
}

.filter-chip-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  cursor: pointer;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

/* ---------- Stránkovanie ---------- */

.pager-g {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pager-g a {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius-sm);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
}

.pager-g a.active {
  border-color: var(--shop-charcoal);
  background: var(--shop-charcoal);
  color: #FFFFFF;
}

/* ---------- Košík ---------- */

.pickup-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 18px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand);
}

.btn-g:disabled,
.btn-g.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: none;
}

@media (min-width: 992px) {
  .cart-summary {
    position: sticky;
    top: 16px;
  }
}


/* ---------- Zdieľanie: skopírovaná adresa ---------- */

.product-links a.is-copied {
  color: var(--shop-green);
}

/* ---------- Košík: zvýraznenie vybranej voľby, odsadenie zaškrtávacích polí ---------- */

/* „Doručenie na inú adresu“: tmavý rámik iba keď je vybraná (v šablóne je vybraná napevno) */
.option-card-nested {
  border: 1px solid var(--shop-line);
}

.option-card-nested:has(input:checked) {
  border: 2px solid var(--shop-charcoal);
}

.option-card:not(.is-selected):has(input:checked) {
  border: 2px solid var(--shop-charcoal);
  padding: 13px 17px;
}

.form-check {
  padding-left: 2rem;
}

.form-check .form-check-input {
  margin-left: -2rem;
}

.form-switch {
  padding-left: 3rem;
}

.form-switch .form-check-input {
  width: 2.4em;
  margin-left: -3rem;
}

/* tip na darček na úvode: dlhý názov produktu najviac na dva riadky */
.hero-tag {
  max-width: 250px;
}

.hero-tag strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* pätička vždy na spodku okna (krátke stránky, napr. 404) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main {
  flex: 1 0 auto;
}

/* zástupný obrázok produktu vypĺňa celú galériu */
.gallery-main.is-placeholder {
  padding: 0;
  overflow: hidden;
}

.gallery-main.is-placeholder img {
  object-fit: cover;
}


/* ---------- Vysúvací košík (layout.latte #mini-cart, modules/shop/_mini-cart.latte) ---------- */

.mini-cart.offcanvas-end {
  width: min(440px, 100vw);
  background: var(--shop-bg);
}

.mini-cart .offcanvas-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--shop-line);
  background: #FFFFFF;
}

.mini-cart .offcanvas-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px 24px;
  transition: opacity 0.15s;
}

.mini-cart .offcanvas-body.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.mini-cart-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--shop-radius-sm);
  background: var(--shop-green-soft);
  font-weight: 600;
  font-size: 14px;
  color: var(--shop-green);
}

.mini-cart-notice.is-warning {
  background: var(--shop-gold-soft);
  color: var(--shop-gold-text);
}

.mini-cart-free {
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: #FFFFFF;
}

.mini-cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-cart-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  background: #FFFFFF;
}

.mini-cart-img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: var(--shop-radius);
  background: var(--shop-sand-2);
}

.mini-cart-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mini-cart-info {
  flex: 1;
  min-width: 0;
}

.mini-cart-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: var(--shop-ink);
  text-decoration: none;
}

.mini-cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-sm {
  height: 36px;
}

.qty-sm button {
  width: 32px;
  height: 34px;
  font-size: 16px;
}

.qty-sm button:disabled {
  opacity: 0.35;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.btn-icon-sm {
  width: 34px;
  height: 34px;
}

.mini-cart-footer {
  position: sticky;
  bottom: -24px;
  margin: auto -24px -24px;
  padding: 18px 24px 20px;
  border-top: 1px solid var(--shop-line);
  background: #FFFFFF;
}

/* ---------- Zľavový kupón v košíku (cart.latte) ---------- */

.coupon-toggle {
  margin-top: 16px;
  font-size: 14px;
}

.coupon-toggle summary {
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.coupon-box {
  margin-top: 16px;
  padding: 10px 6px 10px 14px;
  border-radius: var(--shop-radius-sm);
  font-size: 14px;
}

.coupon-box.is-ok {
  background: var(--shop-green-soft);
  color: var(--shop-green);
}

.coupon-box.is-error {
  background: var(--shop-gold-soft);
  color: var(--shop-gold-text);
}

.coupon-box .btn-icon {
  color: inherit;
}

.cart-item-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--shop-green);
}

/* ---------- Admin v účte zákazníka (layout.latte) ---------- */

.impersonate-bar {
  padding: 8px 0;
  background: var(--shop-red);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

.impersonate-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.impersonate-bar button {
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--shop-radius);
  background: transparent;
  font-weight: 700;
  color: #FFFFFF;
}

/* ---------- Kredity (košík, účet) ---------- */

.credit-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--shop-radius-sm);
  background: var(--shop-gold-soft);
  font-size: 14px;
  color: var(--shop-ink);
}

.credit-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.credit-balance strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.credit-plus {
  color: var(--shop-green);
  font-weight: 800;
}

.credit-minus {
  color: var(--shop-red);
  font-weight: 800;
}

/* ---------- Zväčšená fotka produktu (lightbox, gultio.js data-lightbox) ---------- */

.gallery-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(30, 29, 28, 0.88);
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: var(--shop-radius);
  background: #FFFFFF;
  object-fit: contain;
}

.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 20px;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.lightbox-count {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 575px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 12px;
    transform: none;
  }
}


/* obrázky s atribútmi width / height: výška podľa šírky (inak atribút height vypne aspect-ratio a fotka je na mobile
   vysoká a úzka) */
.product-card-img img,
.gallery-main img,
.hero-visual img,
.cat-tile-images img,
.news-card-img img {
  height: auto;
}



/* ---------------------------------------------------------------- MODUL MARKETING: odporúčané produkty, naskladnenie */

/* malé karty odporúčaných produktov (modules/marketing/_tiles.latte) – košík a vysúvací košík */
.suggest-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: .75rem;
}

.suggest-tile {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-width: 0;
	padding: .6rem .75rem;
	border: 1px solid var(--shop-line);
	border-radius: var(--shop-radius-sm);
	background: #fff;
}

.suggest-tile-img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--shop-radius-sm);
	background: var(--shop-sand-2);
}

.suggest-tile-img img {
	width: 86%;
	height: 86%;
	object-fit: contain;
}

.suggest-tile-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.suggest-tile-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--shop-ink);
	text-decoration: none;
}

.suggest-tile-name:hover {
	text-decoration: underline;
}

.mini-cart-suggest {
	padding: 1rem 0;
	border-top: 1px solid var(--shop-line-2);
}

.mini-cart-suggest .suggest-tiles {
	grid-template-columns: 1fr;
}

/* „Dajte mi vedieť, keď bude skladom“ (modules/marketing/_stock-alert.latte) */
.stock-alert {
	margin-top: 1rem;
	padding: .75rem 1rem;
	border: 1px solid var(--shop-line);
	border-radius: var(--shop-radius-sm);
	background: #fff;
}

.stock-alert summary {
	cursor: pointer;
}


/* ---------------------------------------------------------------- MODUL POŽIČOVŇA: rezervácia v detaile produktu */

/* panel rezervácie (modules/rental/_box.latte) */
.rental-box {
	padding: 1.25rem;
	border: 1px solid var(--shop-line);
	border-radius: var(--shop-radius);
	background: #fff;
}

.rental-box-section {
	margin-top: 1rem;
}

.rental-box-hint.is-error {
	color: var(--shop-red);
	font-weight: 600;
}

.rental-box-summary {
	margin-top: 1rem;
	padding: .75rem 1rem;
	border-radius: var(--shop-radius-sm);
	background: var(--shop-sand);
}

.rental-box-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

/* kalendár (vytvára ho assets/rental.js) */
.rental-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .5rem;
}

.rental-cal__nav {
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--shop-line);
	border-radius: 50%;
	background: #fff;
}

.rental-cal__nav:disabled {
	opacity: .35;
}

.rental-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.rental-cal__weekday {
	padding: .25rem 0;
	font-size: .75rem;
	text-align: center;
	color: var(--shop-muted-2);
}

.rental-cal__day {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: .35rem 0;
	border: 1px solid transparent;
	border-radius: var(--shop-radius-sm);
	background: var(--shop-sand-2);
	font-size: .875rem;
	color: var(--shop-ink);
}

.rental-cal__day small {
	font-size: .65rem;
	color: var(--shop-muted-2);
}

.rental-cal__day:hover:not(:disabled) {
	border-color: var(--shop-charcoal);
}

.rental-cal__day.is-past,
.rental-cal__day.is-closed {
	opacity: .4;
}

.rental-cal__day.is-full {
	background: var(--shop-red-soft);
	color: var(--shop-red);
	text-decoration: line-through;
}

.rental-cal__day.is-in-range {
	background: var(--shop-gold-soft);
}

.rental-cal__day.is-start,
.rental-cal__day.is-end {
	background: var(--shop-charcoal);
	color: #fff;
}

.rental-cal__day.is-start small,
.rental-cal__day.is-end small {
	color: #fff;
}

.rental-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: .5rem;
	font-size: .75rem;
	color: var(--shop-muted-2);
}

.rental-cal__dot {
	display: inline-block;
	width: .6rem;
	height: .6rem;
	margin-right: .3rem;
	border-radius: 50%;
}

.rental-cal__dot--full {
	background: var(--shop-red);
}

.rental-cal__dot--closed {
	background: var(--shop-line);
}

/* filter ceny vo výpise produktov (_listing.latte) */
.listing-price {
	width: 6rem;
}

/* štítky na karte produktu: zľava v percentách, novinka (_card.latte) */
.product-card-img {
	position: relative;
}

.product-card-badges {
	position: absolute;
	top: .5rem;
	left: .5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .25rem;
}
