:root {
  --shop-green: #5d9731;
  --shop-green-2: #4e8128;
  --shop-text: #252525;
  --shop-muted: #a4a4a4;
  --shop-top: #a5b7c6;
  --shop-line: #ececec;
  --shop-search: #f5f5f5;
  --shop-new: #ffa000;
  --shop-sale: #d32f2f;
}

* { box-sizing: border-box; }

body.shop-body {
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  color: var(--shop-text);
  background: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decorative side silhouettes – fixed to viewport, behind page content */
.shop-bg-siluete {
  position: fixed;
  width: 300px;
  height: 300px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

.shop-bg-siluete-one {
  left: -30px;
  top: 520px;
  width: 160px;
  height: 160px;
  background-image: url("../img/bg-siluete-energy-one.png");
}

.shop-bg-siluete-two {
  right: -80px;
  top: 50px;
  width: 180px;
  height: 180px;
  background-image: url("../img/bg-siluete-energy-two.png");
}

.shop-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  max-width: min(320px, calc(100vw - 36px));
  padding: 14px 18px;
  border-radius: 10px;
  background: #f4f8ef;
  color: #3f6b1f;
  border: 1px solid #cfe3b8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.shop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.shop-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.shop-main {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.shop-header-actions,
.shop-search,
.shop-brand-block,
.shop-main-nav-inner {
  position: relative;
  z-index: 2;
}

.cistic { clear: both; }

/* Floating nav */
.shop-float-nav {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.shop-float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shop-float-btn-main { background: var(--shop-green); }
.shop-float-btn:hover { filter: brightness(0.95); }
.shop-float-btn.is-logged-in {
  background: #e8f3dc;
  box-shadow: 0 0 0 2px var(--shop-green);
}

.shop-float-icon {
  width: 20px;
  height: 20px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.shop-float-icon-menu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 7h16v2H4V7zm0 5h16v2H4v-2zm0 5h16v2H4v-2z'/%3E%3C/svg%3E");
}

.shop-float-icon-cart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 7h14l-1.4 8.2a2 2 0 0 1-2 1.7H9.2a2 2 0 0 1-2-1.6L5.3 4.5H3' stroke='%23111111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='19.5' r='1.4' fill='%23111111'/%3E%3Ccircle cx='17' cy='19.5' r='1.4' fill='%23111111'/%3E%3C/svg%3E");
}

.shop-float-icon-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='8' r='3.2' stroke='%23111111' stroke-width='1.8'/%3E%3Cpath d='M5 19c1.5-3.2 4-4.8 7-4.8s5.5 1.6 7 4.8' stroke='%23111111' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.shop-float-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7eb6ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.shop-float-btn-main {
  border: 0;
  padding: 0;
  cursor: pointer;
}
.shop-float-btn-main.is-open .shop-float-icon-menu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.2 5.2 5.2 6.2 10.9 12l-5.7 5.8 1 1L12 13.1l5.8 5.7 1-1L13.1 12l5.7-5.8-1-1L12 10.9 6.2 5.2z'/%3E%3C/svg%3E");
}

/* Category menu bubble */
.shop-cats-bubble {
  position: fixed;
  left: 72px;
  top: 56px;
  bottom: 40px;
  width: min(520px, calc(100vw - 100px));
  z-index: 48;
  display: none;
  pointer-events: none;
}
.shop-cats-bubble.is-open {
  display: block;
  pointer-events: auto;
}
.shop-cats-bubble-inner {
  height: 100%;
  background: #111;
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  padding: 22px 22px 26px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.shop-cats-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.shop-cats-bubble-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.shop-cats-bubble-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.shop-cats-bubble-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.shop-cats-bubble-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}
.shop-cats-bubble-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.shop-cats-bubble-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shop-cats-bubble-parent {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.shop-cats-bubble-parent:hover {
  color: #b7e08a;
}
.shop-cats-bubble-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.shop-cats-bubble-child {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 2px 0;
}
.shop-cats-bubble-child:hover {
  color: #fff;
}

/* Top bar – full-width wrapper transparent so side silhouettes show in gutters */
.shop-topbar {
  padding: 10px 0 0;
  background: transparent;
  position: relative;
}

.shop-topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.shop-topbar-hours,
.shop-topbar-links a {
  color: var(--shop-top);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

.shop-topbar-links {
  display: flex;
  gap: 16px;
}

.shop-topbar-links a:hover { color: var(--shop-text); }

/* Header – full-width wrapper transparent so side silhouettes show in gutters */
.shop-header-main {
  padding: 10px 0 0;
  margin-bottom: 28px;
  background: transparent;
  position: relative;
}

.shop-header-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(280px, 1.6fr) auto;
  gap: 24px;
  align-items: center;
}

.shop-brand-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-logo {
  text-decoration: none;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.shop-logo-main { color: var(--shop-green); }
.shop-logo-suffix { color: #111; }

.shop-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.shop-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3e3e3e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.shop-contact-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.shop-contact-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 3h3l1.5 4.5-2 1.5a12 12 0 0 0 5.5 5.5l1.5-2L21 14v3a2 2 0 0 1-2.2 2A16 16 0 0 1 3 7.2 2 2 0 0 1 5 5h2z' stroke='%23252525' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.shop-contact-mail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' stroke='%23252525' stroke-width='1.6'/%3E%3Cpath d='m4 7 8 6 8-6' stroke='%23252525' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.shop-search {
  position: relative;
  width: 100%;
}

.shop-search input {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 25px;
  background: var(--shop-search);
  padding: 0 20px 0 55px;
  font: 700 16px "Titillium Web", sans-serif;
  color: #3e3e3e;
  outline: none;
}

.shop-search input::placeholder { color: #9c9c9c; }

.shop-search-btn {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%239c9c9c' stroke-width='2'/%3E%3Cpath d='m16 16 4 4' stroke='%239c9c9c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
}

.shop-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}

.shop-account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--shop-text);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.shop-account-link .shop-float-icon {
  width: 18px;
  height: 18px;
}

.shop-account-link.is-logged-in {
  color: var(--shop-green-2);
}

.shop-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--shop-text);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  line-height: 1;
}

.shop-cart-bag {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin-top: -5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28' fill='none'%3E%3Cpath d='M6.5 9.5h11l.8 15.2c.05.9-.7 1.7-1.6 1.7H7.3c-.9 0-1.65-.8-1.6-1.7L6.5 9.5z' stroke='%23333333' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M9 9.5V8a3 3 0 0 1 6 0v1.5' stroke='%23333333' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shop-cart-badge {
  position: absolute;
  right: -6px;
  bottom: -2px;
  top: auto;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7eb6ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.shop-main-nav {
  margin-top: 18px;
  border-top: 1px solid var(--shop-line);
  padding-top: 14px;
  background: transparent;
}

.shop-main-nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.shop-main-nav a {
  color: #000;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

.shop-main-nav a:hover,
.shop-main-nav a.is-active {
  color: var(--shop-green);
}

.shop-header-subcats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
}

/* Hero – polovina slider, polovina Novinky + Populární */
.shop-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 42px;
  min-height: 420px;
  align-items: stretch;
}

.shop-hero-slider {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
  background: #ffc107;
}

.shop-hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 420px;
}

.shop-hero-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 0;
  overflow: hidden;
}

.shop-hero-tile-new { background: #ffa000; }
.shop-hero-tile-popular { background: #d32f2f; }
.shop-hero-tile:hover { filter: brightness(0.96); color: #fff; }

.shop-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.shop-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.shop-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 28px 40px 40px;
}

.shop-hero-title {
  display: none;
}

.shop-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.shop-hero-prev { left: 20px; }
.shop-hero-next { right: 20px; }

.shop-hero-prev::before,
.shop-hero-next::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  border-top: 3.5px solid #fff;
  border-right: 3.5px solid #fff;
  box-sizing: border-box;
}

.shop-hero-prev::before { transform: rotate(-135deg); }
.shop-hero-next::before { transform: rotate(45deg); }

.shop-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.shop-hero-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}

.shop-hero-dot.is-active {
  background: #fff;
}

.shop-hero-cta {
  display: inline-block;
  align-self: flex-start;
  background: var(--shop-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  border-radius: 8px;
}

.shop-hero-cta:hover { background: var(--shop-green-2); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.shop-home-section) {
    scroll-behavior: smooth;
  }
}

/* Tabs */
.shop-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 12;
  background: #fff;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--shop-line);
  scroll-margin-top: 16px;
}

.shop-home-section {
  scroll-margin-top: 78px;
  margin-bottom: 48px;
}

.shop-home-section:last-child {
  margin-bottom: 0;
}

.shop-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-tab {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: transparent;
  color: #3e3e3e;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.shop-tab.is-active,
.shop-tab:hover {
  background: #efefef;
  color: #111;
}

.shop-tabs-more {
  color: var(--shop-muted);
  font-size: 13px;
  text-decoration: underline;
}

.shop-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 28px;
  color: #1e1e1e;
}

.shop-page-head {
  margin-bottom: 18px;
}

.shop-cms-page {
  max-width: 820px;
  padding: 8px 0 40px;
}

.shop-cms-content {
  font-size: 15px;
  line-height: 1.7;
  color: #2a2a2a;
}

.shop-cms-content p {
  margin: 0 0 1em;
}

.shop-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.shop-sub {
  color: var(--shop-muted);
  margin: 0 0 24px;
}

.shop-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.shop-main-nav .shop-subcat,
.shop-header-subcats .shop-subcat,
.shop-subcat {
  text-decoration: none;
  color: #555;
  background: #f7f7f7;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 600;
}

.shop-subcat.is-active,
.shop-subcat:hover,
.shop-main-nav .shop-subcat.is-active,
.shop-main-nav .shop-subcat:hover,
.shop-header-subcats .shop-subcat.is-active,
.shop-header-subcats .shop-subcat:hover {
  background: var(--shop-green);
  color: #fff;
}

.shop-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 16px;
  padding: 10px 16px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: #777;
  line-height: 1;
}

.shop-filter-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  height: 28px;
}

.shop-filter-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.shop-price-range {
  position: relative;
  flex: 1 1 160px;
  max-width: 220px;
  min-width: 120px;
  height: 28px;
  margin: 0;
}

.shop-price-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  background: #e8e8e8;
}

.shop-price-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: #9fc57a;
}

.shop-price-range input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  appearance: none;
  background: none;
  pointer-events: none;
  height: 28px;
}

.shop-price-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--shop-green);
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

.shop-price-range input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--shop-green);
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

.shop-price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  height: 28px;
}

.shop-price-inputs label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #888;
  margin: 0;
  height: 28px;
}

.shop-price-inputs input[type="number"] {
  width: 68px;
  height: 28px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 0 6px;
  font: inherit;
  font-size: 12px;
  color: #555;
  background: #fff;
  box-sizing: border-box;
}

.shop-price-currency {
  display: inline-flex;
  align-items: center;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
}

.shop-filter-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 28px;
}

.shop-filter-select {
  width: auto;
  min-width: 150px;
  height: 28px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
  color: #555;
  background: #fff;
  box-sizing: border-box;
}

.shop-filter-submit {
  height: 28px;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  background: #eef5e6;
  color: #4e8128;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
  box-sizing: border-box;
}

.shop-filter-submit:hover {
  background: #e2efd4;
}

@media (max-width: 900px) {
  .shop-filters {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .shop-filter-price {
    flex: 1 1 100%;
  }

  .shop-price-range {
    max-width: none;
  }
}

/* Product grid – Sportim style */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff;
  /* Avoid overflow:hidden — can clip/steal taps on iOS near card edges */
  overflow: visible;
}

.product {
  padding: 18px 16px 24px;
  border-right: 1px solid var(--shop-line);
  text-align: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.product:nth-child(4n) { border-right: 0; }

.product-wrap {
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

.product-img {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.product-img:has(.product-img-fallback) {
  background: #f5f5f5;
}

.product-img a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

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

.product-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--shop-green);
  font-size: 42px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 0;
}

.product-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}

.product-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #6b7280;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.product-tag.is-akce { background: #e11d48; }
.product-tag.is-novinka { background: #059669; }
.product-tag.is-tip { background: #2563eb; }
.product-tag.is-vyprodej { background: #d97706; }

.shop-detail-img .product-tags {
  top: 12px;
  left: 12px;
}

.shop-detail-img .product-tag {
  font-size: 12px;
  padding: 4px 10px;
}

.product-nadpis {
  min-height: 38px;
  margin-bottom: 6px;
  text-align: left;
}

.product-nadpis a {
  color: #212529;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.product-nadpis a:hover { color: var(--shop-green); }

.product-sklad {
  float: left;
  color: var(--shop-green);
  font-size: 12px;
  font-weight: 600;
}

.product-sklad.is-out { color: var(--shop-sale); }

.product-kod {
  float: right;
  color: #3e3e3e;
  font-size: 12px;
  font-weight: 700;
}

.product-cena {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #252525;
  text-align: center;
  position: relative;
  z-index: 1;
}
.product-cena .price-dph-meta,
.shop-price .price-dph-meta,
.shop-cart-unit .price-dph-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.25;
}
.shop-price .price-dph-meta {
  font-size: 13px;
  font-weight: 600;
}

.product-oddel {
  height: 8px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.product-add-form {
  display: inline-block;
  margin: 0;
  position: relative;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
}

.button-small-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  min-width: 85px;
  height: 45px;
  min-height: 44px;
  border: none;
  border-radius: 4px;
  background: var(--shop-green);
  margin-top: 8px;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(93, 151, 49, 0.35);
  color: inherit;
  font: inherit;
}

.button-small-buy:hover { background: var(--shop-green-2); }
.button-small-buy:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: #9bb58a;
  pointer-events: none;
}
.button-small-buy-icon { width: 22px; height: 22px; pointer-events: none; }

/* Detail / cart / checkout shared */
.shop-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--shop-muted);
  line-height: 1.4;
}

.shop-breadcrumbs a {
  color: #666;
  text-decoration: none;
}

.shop-breadcrumbs a:hover {
  color: var(--shop-green);
}

.shop-breadcrumbs-sep {
  color: #c5c5c5;
  font-weight: 400;
}

.shop-breadcrumbs-current {
  color: var(--shop-text);
}

.shop-detail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  padding: 24px;
}

.shop-detail-code {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  color: var(--shop-muted);
  line-height: 1.2;
}

.shop-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.shop-detail-img {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  width: 100%;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-detail-img:has(.shop-detail-fallback) {
  background: #f7f7f7;
}

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

.shop-detail-fallback {
  font-size: 48px;
  font-weight: 700;
  color: var(--shop-green);
}

.shop-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.shop-gallery-thumbs.has-slider {
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
}

.shop-gallery-viewport {
  overflow: hidden;
  min-width: 0;
}

.shop-gallery-track {
  display: flex;
  gap: 8px;
  transition: transform .25s ease;
}

.shop-gallery-thumbs:not(.has-slider) .shop-gallery-track {
  display: contents;
}

.shop-gallery-thumbs:not(.has-slider) .shop-gallery-viewport {
  display: contents;
}

.shop-gallery-thumb {
  appearance: none;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  background: transparent;
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.shop-gallery-thumbs:not(.has-slider) .shop-gallery-thumb:nth-child(n+5) {
  display: none;
}

.shop-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-gallery-thumb:hover {
  border-color: #d7e8c8;
}

.shop-gallery-thumb.is-active {
  border-color: var(--shop-green);
  box-shadow: 0 0 0 1px var(--shop-green);
}

.shop-gallery-nav {
  width: 28px;
  height: 56px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.shop-gallery-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
}

.shop-gallery-prev::before {
  transform: translateX(2px) rotate(135deg);
}

.shop-gallery-next::before {
  transform: translateX(-2px) rotate(-45deg);
}

.shop-gallery-nav:hover:not(:disabled) {
  border-color: #d7e8c8;
  background: #f4f8ef;
}

.shop-gallery-nav:disabled {
  opacity: .35;
  cursor: default;
}

.shop-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--shop-text);
  margin: 12px 0 18px;
}

.shop-product-upresneni {
  margin: 0 0 14px;
  color: #555;
  line-height: 1.5;
}

.shop-product-buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin: 0 0 14px;
}

.shop-product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.shop-product-qty {
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
}

.shop-product-qty-label {
  font-weight: 600;
  font-size: 13px;
}

.shop-product-variant {
  display: grid;
  gap: 6px;
}

.shop-product-variant-label {
  font-weight: 600;
  font-size: 13px;
}

.shop-product-variants select {
  width: 100%;
  max-width: 280px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--shop-text);
  box-sizing: border-box;
}

.shop-product-qty .shop-qty {
  height: 42px;
  padding: 0 8px;
  box-sizing: border-box;
}

.shop-cart-variant {
  margin-top: 4px;
  font-size: 13px;
  color: var(--shop-muted);
  line-height: 1.35;
}

.shop-product-popis {
  margin: 28px 0 0;
}

.shop-product-popis-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.shop-product-popis-body {
  color: #444;
  line-height: 1.6;
}

.shop-product-popis-body p { margin: 0 0 0.75em; }
.shop-product-popis-body p:last-child { margin-bottom: 0; }
.shop-product-popis-body h2,
.shop-product-popis-body h3,
.shop-product-popis-body h4 { margin: 1em 0 0.4em; font-weight: 700; line-height: 1.25; }
.shop-product-popis-body h2 { font-size: 1.35em; }
.shop-product-popis-body h3 { font-size: 1.2em; }
.shop-product-popis-body h4 { font-size: 1.1em; }
.shop-product-popis-body ul,
.shop-product-popis-body ol { margin: 0 0 0.75em 1.2em; padding: 0; }
.shop-product-popis-body li { margin-bottom: 0.35em; }
.shop-product-popis-body a { color: var(--shop-green); }
.shop-product-popis-body strong,
.shop-product-popis-body b { font-weight: 700; }

.shop-btn {
  display: inline-block;
  border: 0;
  background: var(--shop-green);
  color: #fff;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(93, 151, 49, 0.35);
}

.shop-btn:hover { background: var(--shop-green-2); color: #fff; }
.shop-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.shop-btn-small {
  padding: 8px 12px;
  font-size: 13px;
}

/* Customer login */
.shop-login-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 40px;
}

.shop-login-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  padding: 28px 26px 30px;
  background: #fff;
}

.shop-login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.shop-login-tabs a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--shop-text);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f5f5f5;
}

.shop-login-tabs a.is-active {
  background: var(--shop-green);
  color: #fff;
}

.shop-login-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}

.shop-login-sub {
  margin: 0 0 18px;
  color: #666;
  line-height: 1.45;
}

.shop-login-form {
  display: grid;
  gap: 14px;
}

.shop-login-form .shop-field {
  display: grid;
  gap: 6px;
}

.shop-login-form .shop-field > span {
  font-weight: 600;
  font-size: 13px;
}

.shop-login-form .shop-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  font: inherit;
}

.shop-login-form .shop-field input:focus {
  outline: none;
  border-color: var(--shop-green);
}

.shop-login-form .shop-btn {
  width: 100%;
  margin-top: 4px;
}

/* Customer account */
.shop-account {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0 40px;
  align-items: start;
}

.shop-account-nav {
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  padding: 16px 14px;
  background: #fafafa;
  position: sticky;
  top: 16px;
}

.shop-account-nav-user {
  padding: 0 6px 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-account-nav-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-account-nav-name {
  font-weight: 700;
  margin-top: 2px;
  word-break: break-word;
}

.shop-account-nav-links {
  display: grid;
  gap: 4px;
}

.shop-account-nav-links a {
  display: block;
  text-decoration: none;
  color: var(--shop-text);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 6px;
}

.shop-account-nav-links a:hover {
  background: #fff;
}

.shop-account-nav-links a.is-active {
  background: var(--shop-green);
  color: #fff;
}

.shop-account-logout {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  text-decoration: none;
  color: #888;
  font-size: 13px;
  font-weight: 600;
}

.shop-account-logout:hover {
  color: var(--shop-text);
}

.shop-account-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}

.shop-account-sub {
  margin: 0 0 20px;
  color: #666;
}

.shop-account-empty {
  border: 1px dashed var(--shop-line);
  border-radius: 8px;
  padding: 28px 20px;
  color: #777;
  text-align: center;
}

.shop-account-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
}

.shop-account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.shop-account-table th,
.shop-account-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--shop-line);
}

.shop-account-table th {
  background: #f7f7f7;
  font-weight: 700;
  white-space: nowrap;
}

.shop-account-table tr:last-child td {
  border-bottom: 0;
}

.shop-account-actions {
  text-align: right;
  white-space: nowrap;
}

.shop-account-purchases {
  display: grid;
  gap: 12px;
}

.shop-account-purchase {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  padding: 12px;
}

.shop-account-purchase-img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: #f5f5f5;
  overflow: hidden;
}

.shop-account-purchase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-account-purchase-name {
  font-weight: 700;
}

.shop-account-purchase-name a {
  color: inherit;
  text-decoration: none;
}

.shop-account-purchase-name a:hover {
  color: var(--shop-green);
}

.shop-account-purchase-meta {
  margin-top: 3px;
  font-size: 13px;
  color: #777;
}

.shop-account-purchase-price {
  font-weight: 700;
  white-space: nowrap;
}

.shop-btn-light {
  background: #fff;
  color: var(--shop-green);
  border: 1px solid var(--shop-line);
}

.shop-cat {
  text-decoration: none;
  color: var(--shop-green);
  background: #f4f8ef;
  border: 1px solid #d7e8c8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.shop-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  overflow: hidden;
}

.shop-table th,
.shop-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--shop-line);
  text-align: left;
  vertical-align: middle;
}

.shop-table th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--shop-muted);
  background: #fafafa;
}

.shop-table a {
  color: var(--shop-text);
  font-weight: 600;
  text-decoration: none;
}

.shop-table a:hover { color: var(--shop-green); }

.shop-qty {
  width: 70px;
  padding: 8px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  font: inherit;
}

.shop-form {
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  padding: 24px;
  max-width: 640px;
}

.shop-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.shop-form input,
.shop-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 6px;
  font: inherit;
}

.shop-checkout-block { margin: 8px 0 18px; }
.shop-checkout-label { font-size: 13px; font-weight: 700; margin-bottom: 10px; }

.shop-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  cursor: pointer;
  background: #fafafa;
}

.shop-option:has(input:checked) {
  border-color: var(--shop-green);
  background: #f4f8ef;
}

.shop-option input { width: auto; margin: 4px 0 0; }
.shop-option-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.shop-option-title { font-weight: 700; font-size: 14px; }
.shop-option-desc { font-size: 12px; color: var(--shop-muted); font-weight: 500; }
.shop-option-price { font-weight: 700; color: var(--shop-green); white-space: nowrap; font-size: 13px; }

.shop-checkout-total {
  margin: 8px 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 16px;
}

/* One-step checkout – aligned with shop look */
.shop-checkout {
  max-width: 820px;
  margin: 0 auto;
}

.shop-checkout-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--shop-text);
}

.shop-checkout-sub {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-muted);
  margin-bottom: 24px;
}

.shop-checkout-section {
  margin-bottom: 20px;
  scroll-margin-top: 20px;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  padding: 28px 24px 26px;
}

.shop-checkout-section:last-child {
  margin-bottom: 0;
}

.shop-main:has(.shop-checkout) {
  padding-bottom: 12px;
}

.shop-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-cart-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: #fafafa;
  transition: border-color .2s ease, background-color .2s ease;
}

.shop-cart-row:hover {
  border-color: #d7e8c8;
  background: #f7faf3;
}

.shop-cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--shop-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  color: var(--shop-green);
  font-weight: 700;
  font-size: 24px;
}

.shop-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-cart-info a {
  color: var(--shop-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.shop-cart-info a:hover { color: var(--shop-green); }

.shop-cart-unit {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--shop-muted);
}

.shop-cart-qty-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-cart-qty-form .shop-qty {
  width: 64px;
  background: #fff;
  border-color: var(--shop-line);
  text-align: center;
  font-weight: 700;
}

.shop-cart-refresh {
  width: 36px;
  height: 36px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 12a8 8 0 1 1-2.2-5.4' stroke='%235d9731' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M20 5v5h-5' stroke='%235d9731' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.shop-cart-refresh:hover {
  background-color: #f4f8ef;
  border-color: #d7e8c8;
}

.shop-cart-price {
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  min-width: 78px;
  text-align: right;
  color: var(--shop-green);
}

.shop-cart-remove {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--shop-line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 7h14M10 11v6M14 11v6M9 7l1-2h4l1 2M8 7v12a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V7' stroke='%23a4a4a4' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 1;
  transition: border-color .2s ease, background-color .2s ease;
}

.shop-cart-remove:hover {
  border-color: #f0c7c7;
  background-color: #fff5f5;
}

.shop-checkout-step-jump {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.shop-checkout-chevron {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9.5 12 15.5l6-6' stroke='%235d9731' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.shop-checkout-order-btn {
  min-width: 200px;
  text-align: center;
  padding: 13px 28px;
  border-radius: 8px;
}

.shop-checkout-step-jump .shop-checkout-back {
  margin-top: 4px;
}

.shop-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  max-width: 720px;
  margin: 0 auto;
}

.shop-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #3e3e3e;
}

.shop-field input,
.shop-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  font: inherit;
  background: var(--shop-search);
  transition: background-color .2s ease, border-color .2s ease;
}

.shop-field input:focus,
.shop-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: #cfe3bb;
  box-shadow: 0 0 0 3px rgba(93, 151, 49, 0.12);
}

.shop-field-full { grid-column: 1 / -1; }

.shop-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--shop-search);
}

.shop-phone-wrap:focus-within {
  background: #fff;
  border-color: #cfe3bb;
  box-shadow: 0 0 0 3px rgba(93, 151, 49, 0.12);
}

.shop-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #eef5e8;
  color: var(--shop-green-2);
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid var(--shop-line);
}

.shop-phone-wrap input {
  border: 0;
  border-radius: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
}

.shop-ship-list {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-packeta {
  max-width: 560px;
  margin: 14px auto 0;
  padding: 14px 16px;
  border: 1px solid #d7e8c8;
  border-radius: 10px;
  background: #f4f8ef;
  text-align: left;
}

.shop-packeta .shop-btn {
  margin: 0;
}

.shop-packeta-selected {
  margin-top: 12px;
}

.shop-packeta-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
}

.shop-packeta-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-text);
}

.shop-packeta-address {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.shop-packeta-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #9a3412;
}

.shop-ship-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  padding: 14px 16px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: #fafafa;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.shop-ship-option:hover {
  border-color: #d7e8c8;
}

.shop-ship-option:has(input:checked) {
  color: var(--shop-text);
  font-weight: 700;
  border-color: var(--shop-green);
  background: #f4f8ef;
}

.shop-ship-option input {
  width: auto;
  margin: 0;
  accent-color: var(--shop-green);
}

.shop-pay-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.shop-pay-option {
  min-width: 168px;
  padding: 16px 22px;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid var(--shop-line);
  color: var(--shop-text);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.shop-pay-option input { display: none; }

.shop-pay-option:hover,
.shop-pay-option.is-active,
.shop-pay-option:has(input:checked) {
  border-color: #d7e8c8;
  background: #f4f8ef;
  color: var(--shop-text);
}

.shop-pay-name {
  font-size: 13px;
  font-weight: 700;
}

.shop-pay-price {
  font-size: 13px;
  font-weight: 700;
}

.shop-ship-name {
  font-size: 14px;
}

.shop-ship-price {
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  color: var(--shop-green);
}

.shop-summary {
  max-width: 560px;
  margin: 0 auto 24px;
  background: #f7faf3;
  border: 1px solid #d7e8c8;
  border-radius: 10px;
  padding: 8px 18px;
}

.shop-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e2edd8;
  font-weight: 600;
  font-size: 15px;
  color: #3e3e3e;
}

.shop-summary-total {
  border-bottom: 0;
  padding-top: 14px;
  font-size: 16px;
  color: var(--shop-text);
  font-weight: 700;
}

.shop-summary-total strong {
  font-size: 24px;
  color: var(--shop-green);
}

.shop-summary-currency {
  font-size: 12px;
  font-weight: 700;
  color: var(--shop-muted);
  margin-right: 6px;
}

.shop-note-field {
  max-width: 560px;
  margin: 0 auto 24px;
  text-align: center;
}

.shop-note-field label {
  text-align: center;
}

.shop-checkout-footer {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.shop-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #555;
  flex: 1;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.shop-consent input {
  position: absolute;
  opacity: 0;
  width: 26px;
  height: 26px;
  margin: 0;
  cursor: pointer;
}

.shop-consent-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid var(--shop-green);
  border-radius: 6px;
  background: #fff;
  position: relative;
}

.shop-consent-mark::after {
  content: "";
  position: absolute;
  display: none;
  left: 50%;
  top: 45%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.shop-consent input:checked + .shop-consent-mark {
  background: var(--shop-green);
  border-color: var(--shop-green);
}

.shop-consent input:checked + .shop-consent-mark::after {
  display: block;
}

.shop-consent input:focus-visible + .shop-consent-mark {
  box-shadow: 0 0 0 3px rgba(93, 151, 49, 0.28);
}

.shop-consent a {
  color: var(--shop-green);
  text-decoration: underline;
}

.shop-checkout-submit {
  min-width: 150px;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.shop-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 0;
}

.shop-checkout-back:hover { color: var(--shop-green); }

@media (max-width: 900px) {
  .shop-checkout-section {
    padding: 22px 16px 20px;
  }
  .shop-cart-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty price";
  }
  .shop-cart-thumb { grid-area: thumb; width: 56px; height: 56px; }
  .shop-cart-info { grid-area: info; }
  .shop-cart-qty-form { grid-area: qty; }
  .shop-cart-price { grid-area: price; }
  .shop-cart-remove { grid-area: remove; justify-self: end; }
  .shop-checkout-grid {
    grid-template-columns: 1fr;
  }
}

.shop-alert {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.shop-empty {
  background: #fff;
  border: 1px dashed var(--shop-line);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: var(--shop-muted);
}

.shop-pagination{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.shop-pagination-btn{
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #2a2a2a;
  background: #f3f3f3;
  transition: background-color 0.2s ease, color 0.2s ease;
}
a.shop-pagination-btn:hover{
  background: var(--shop-green);
  color: #fff;
}
.shop-pagination-btn.is-active{
  background: var(--shop-green);
  color: #fff;
}
.shop-pagination-btn.is-disabled{
  opacity: 0.35;
  cursor: default;
}
.shop-pagination-ellipsis{
  min-width: 20px;
  text-align: center;
  color: var(--shop-muted);
  font-weight: 700;
}
.shop-pagination-info{
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--shop-muted);
}

/* Footer – Sportim style */
.shop-footer-badges {
  margin-top: 24px;
  position: relative;
  background: transparent;
}

.shop-footer-badges-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.shop-footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 20px 36px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  color: var(--shop-green);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-footer {
  margin-top: 0;
  padding: 0 0 28px;
  border-top: 0;
  background: transparent;
  position: relative;
}

.shop-footer-panel {
  background: #f5f4ef;
  border-radius: 4px;
  padding: 36px 40px 28px;
  position: relative;
  z-index: 2;
}

.shop-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr 1.3fr;
  gap: 28px 32px;
}

.shop-footer-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #1e1e1e;
}

.shop-footer-col a,
.shop-footer-col > div {
  display: block;
  color: #1e1e1e;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.shop-footer-links a,
.shop-footer-contact > div,
.shop-footer-contact a {
  font-size: 16px;
}

.shop-footer-contact-meta {
  margin-top: 4px;
}

.shop-footer-contact-meta > div {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.shop-footer-col a:hover { color: var(--shop-green); }

.shop-footer-strong {
  display: inline !important;
  font-weight: 700;
  color: #1e1e1e;
  font-size: inherit;
}

.shop-footer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-footer-form input,
.shop-footer-form textarea {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #fff;
  padding: 12px 14px;
  font: 500 14px "Titillium Web", sans-serif;
  color: #1e1e1e;
  outline: none;
  resize: vertical;
}

.shop-footer-form input::placeholder,
.shop-footer-form textarea::placeholder {
  color: #b0b0b0;
}

.shop-footer-form button {
  align-self: flex-start;
  border: 1px solid #1e1e1e;
  background: #fff;
  color: #1e1e1e;
  font: 700 14px "Titillium Web", sans-serif;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
}

.shop-footer-form button:hover {
  background: #1e1e1e;
  color: #fff;
}

.shop-footer-orders {
  margin-top: 22px;
  padding: 16px 12px 0;
  border-top: 0;
  text-align: center;
  font-size: 14px;
  color: #1e1e1e;
  background: transparent;
  position: relative;
  z-index: 2;
}

.shop-footer-orders a {
  display: inline !important;
  margin: 0 0 0 10px;
  color: var(--shop-green);
  font-weight: 700;
  text-decoration: none;
}

.shop-footer-orders a:hover { text-decoration: underline; }

.shop-footer-legal {
  padding-top: 22px;
  text-align: center;
  background: transparent;
  position: relative;
  z-index: 2;
}

.shop-footer-copy {
  margin: 0;
  font-size: 14px;
  color: #1e1e1e;
}

.shop-footer-copy a {
  color: var(--shop-green);
  text-decoration: none;
  font-weight: 600;
}

.shop-footer-copy a:hover { text-decoration: underline; }

.shop-footer-operator {
  margin-top: 8px;
  font-size: 12px;
  color: #9a9a9a;
  line-height: 1.45;
}

.shop-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--shop-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 14.5 12 8.5l6 6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, background-color .2s ease;
  z-index: 40;
}

.shop-to-top:hover {
  background-color: #000;
}

.shop-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1100px) {
  .shop-product-grid { grid-template-columns: repeat(3, 1fr); }
  .product:nth-child(4n) { border-right: 1px solid var(--shop-line); }
  .product:nth-child(3n) { border-right: 0; }
  .shop-float-nav { display: none; }
  .shop-cats-bubble { display: none !important; }
  .shop-bg-siluete { display: none; }
  .shop-account {
    grid-template-columns: 1fr;
  }
  .shop-account-nav {
    position: static;
  }
  .shop-account-nav-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shop-account-nav-links a {
    text-align: center;
    font-size: 13px;
    padding: 10px 8px;
  }
}

@media (max-width: 900px) {
  .shop-header-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .shop-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .shop-hero-slider {
    min-height: 280px;
  }
  .shop-hero-tiles {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }
  .shop-hero-tile {
    font-size: 20px;
    min-height: 110px;
  }
  .shop-detail { grid-template-columns: 1fr; }
  .shop-footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-footer-panel { padding: 28px 22px 22px; }
  .shop-product-grid { grid-template-columns: repeat(2, 1fr); }
  .product:nth-child(3n) { border-right: 1px solid var(--shop-line); }
  .product:nth-child(2n) { border-right: 0; }
}

@media (max-width: 600px) {
  .shop-product-grid { grid-template-columns: 1fr; }
  .product { border-right: 0; border-bottom: 1px solid var(--shop-line); }
  .shop-topbar-inner { justify-content: center; flex-wrap: wrap; }
  .shop-hero-tiles { grid-template-columns: 1fr; }
  .shop-footer-grid { grid-template-columns: 1fr; }
  .shop-footer-badge { min-width: 0; width: 100%; }
  .shop-product-buy-row {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-product-variants select {
    max-width: none;
  }
}

button.shop-cart-remove {
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.shop-cms-content img {
  max-width: 100%;
  height: auto;
}

.shop-cms-content a {
  color: var(--shop-green);
}

.shop-related {
  margin-top: 40px;
}
