/* ==========================================================================
   ZMIENNE GLOBALNE
   ========================================================================== */
:root {
  --accent: #5aaeff;
  --accent-hover: #2f8df2;
  --brand-lime: #a8d84f;
  --brand-lime-hover: #8fbd35;
  --brand-dark: #0b1117;
  --brand-navy: #111b26;
  --accent-soft: #e8f4ff;
  --accent-border: #b5dcff;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --text-main: #17202b;
  --text-muted: #64748b;
  --border: #dbe5ef;
  --success: #a8d84f;
  --success-hover: #8fbd35;
  
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.25s ease;
  --site-container-max: 1560px;
}

/* ==========================================================================
   RESET I BAZA
   ========================================================================== */
* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(11, 17, 23, 0.16);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body:has(.header-mega-menu:hover)::before {
  opacity: 1;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-main);
}

a {
  color: var(--accent-hover);
}

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

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--brand-lime);
  --bs-btn-hover-border-color: var(--brand-lime);
  --bs-btn-hover-color: var(--brand-dark);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
}

.btn-outline-primary {
  --bs-btn-color: var(--accent-hover);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--brand-lime);
  --bs-btn-hover-border-color: var(--brand-lime);
  --bs-btn-hover-color: var(--brand-dark);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
}

/* ==========================================================================
   UKŁAD STRONY (LAYOUT)
   ========================================================================== */
.site-container {
  max-width: var(--site-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
  width: 100%;
}

@media (min-width: 1800px) {
  :root {
    --site-container-max: 1840px;
  }
}

@media (min-width: 2200px) {
  :root {
    --site-container-max: 2160px;
  }

  .site-container {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* ==========================================================================
   NAGŁÓWEK (HEADER)
   ========================================================================== */
.navbar {
  padding: 1rem 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.navbar .site-container { position: relative; }

.site-header {
  position: relative;
  z-index: 1000;
  background: var(--brand-dark) !important;
  border-bottom-color: rgba(90, 174, 255, 0.28) !important;
  color: #fff;
  padding: 14px 0 10px;
}

.header-shell {
  display: grid;
  gap: 14px;
}

.header-top {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.header-logo {
  margin-right: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  line-height: 1;
}

.header-logo-img {
  display: block;
  width: min(280px, 38vw);
  height: 86px;
  object-fit: contain;
}

.header-logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search {
  position: relative;
  min-width: 0;
}

.header-search .form-control {
  width: 100%;
  padding-right: 52px;
}

.header-search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  transition: var(--transition);
}

.header-search-submit:hover,
.header-search-submit:focus-visible {
  background: var(--brand-lime);
  color: var(--brand-dark);
}

.site-pref-controls {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-pref-toggle {
  width: 72px;
  height: 40px;
  border: 1px solid rgba(181, 220, 255, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.site-pref-toggle:hover,
.site-pref-toggle:focus-visible,
.site-pref-controls.is-open .site-pref-toggle {
  background: #fff;
  border-color: #fff;
  color: var(--brand-dark);
}

.site-pref-flag,
.site-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-pref-flag {
  font-size: 1.42rem;
}

.site-pref-chevron {
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-2px);
}

.site-pref-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1080;
  width: min(380px, calc(100vw - 32px));
  color: #333;
}

.site-pref-panel[hidden] {
  display: none;
}

.site-pref-panel-inner {
  display: grid;
  gap: 16px;
  padding: 28px 30px 32px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.site-pref-section-title,
.site-pref-field > span {
  margin: 0;
  color: #4b5563;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.site-lang-list {
  display: grid;
}

.site-lang-option {
  min-height: 70px;
  display: grid;
  grid-template-columns: 30px 46px 1fr;
  align-items: center;
  gap: 14px;
  margin: 0;
  border-bottom: 1px solid #c9cdd2;
  color: #4b5563;
  font-size: 1.35rem;
  font-weight: 400;
  cursor: pointer;
}

.site-lang-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-lang-radio {
  width: 26px;
  height: 26px;
  border: 2px solid #858585;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-lang-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.site-lang-option input:checked + .site-lang-radio {
  border-color: #747474;
}

.site-lang-option input:checked + .site-lang-radio::after {
  background: #555;
}

.site-lang-option:focus-within .site-lang-radio {
  box-shadow: 0 0 0 4px rgba(90, 174, 255, 0.18);
}

.site-lang-flag {
  font-size: 1.35rem;
}

.site-pref-field {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
}

.site-pref-select {
  width: 100%;
  min-height: 100px;
  border: 1px solid #c9cdd2;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 1.35rem;
  font-weight: 400;
  padding: 0 56px 0 28px;
  appearance: none;
  cursor: pointer;
}

.site-pref-select option {
  color: var(--text-main);
}

.site-pref-field::after {
  content: "⌄";
  position: absolute;
  right: 18px;
  bottom: 29px;
  color: #333;
  font-size: 1.8rem;
  line-height: 1;
  pointer-events: none;
}

.site-rate-info {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.2;
  min-height: 1rem;
}

.site-pref-apply {
  min-height: 72px;
  border: 0;
  border-radius: var(--radius);
  background: #f2ad2f;
  color: #111;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.site-pref-apply:hover,
.site-pref-apply:focus-visible {
  background: #d99417;
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  text-align: left;
  color: var(--text-main);
}

.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover { background: #f8fafc; }

.search-suggestion-thumb {
  width: 42px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.search-suggestion-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-suggestion-meta strong,
.search-suggestion-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.header-action {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: rgba(232, 244, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  min-width: 70px;
}

.header-action:hover {
  color: var(--brand-lime);
}

.header-utility {
  opacity: 0.88;
}

.header-utility:hover {
  opacity: 1;
}

.header-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
}

.header-action-text {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(232, 244, 255, 0.7);
}

.header-utility .header-action-icon {
  color: rgba(232, 244, 255, 0.82);
}

.header-cart .header-action-icon {
  color: rgba(232, 244, 255, 0.82);
}

.header-utility:hover .header-action-icon,
.header-utility:hover .header-action-text {
  color: var(--brand-lime);
}

.header-cart-badge {
  position: absolute;
  top: -2px;
  right: 12px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.65rem;
  line-height: 16px;
  text-align: center;
}

.mobile-action-bar,
.mobile-menu-panel {
  display: none;
}

.mobile-action {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.mobile-action-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 2px;
}

.mobile-icon-menu::before,
.mobile-icon-menu::after {
  content: "";
  position: absolute;
  left: 3px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-icon-menu::before {
  top: 8px;
  box-shadow: 0 9px 0 currentColor;
}

.mobile-icon-menu::after {
  top: 26px;
}

.mobile-icon-search::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 21px;
  height: 21px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.mobile-icon-search::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 5px;
  width: 13px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.mobile-icon-user::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.mobile-icon-user::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 26px;
  height: 15px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.mobile-icon-cart::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 22px;
  height: 19px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.mobile-icon-cart::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 3px;
  width: 10px;
  height: 11px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.mobile-cart-action {
  position: relative;
  font-weight: 800;
}

.mobile-cart-badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 14px);
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
}

.flag-icon {
  display: inline-block;
  width: 28px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  overflow: hidden;
}

.flag-pl {
  background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
}

.flag-de {
  background: linear-gradient(to bottom, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

.flag-gb {
  background:
    linear-gradient(32deg, transparent 0 42%, #fff 42% 48%, #c8102e 48% 52%, #fff 52% 58%, transparent 58% 100%),
    linear-gradient(148deg, transparent 0 42%, #fff 42% 48%, #c8102e 48% 52%, #fff 52% 58%, transparent 58% 100%),
    linear-gradient(to right, transparent 0 42%, #fff 42% 58%, transparent 58% 100%),
    linear-gradient(to bottom, transparent 0 38%, #fff 38% 62%, transparent 62% 100%),
    linear-gradient(to right, transparent 0 45%, #c8102e 45% 55%, transparent 55% 100%),
    linear-gradient(to bottom, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%),
    #012169;
}

.site-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.site-toast.is-error {
  background: #b91c1c;
}

.order-lookup {
  width: 100%;
  margin: 32px 0 56px;
  display: grid;
  gap: 22px;
}

.order-lookup-head {
  display: grid;
  gap: 6px;
}

.order-lookup-head p {
  margin: 0;
  color: var(--text-muted);
}

.order-lookup-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.order-lookup-result {
  min-height: 40px;
}

.order-lookup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.order-lookup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.order-lookup-grid section {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.order-lookup-grid h2,
.order-lookup-grid p {
  margin: 0;
}

.order-lookup-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.order-lookup-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.order-lookup-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
}

.seller-intake {
  width: 100%;
  margin: 32px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.seller-intake-copy,
.seller-intake-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.seller-intake-copy p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.seller-intake-form {
  display: grid;
  gap: 10px;
}

.seller-intake-form textarea {
  min-height: 160px;
}

.seller-intake-result {
  grid-column: 1 / -1;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.product-gallery-thumb {
  aspect-ratio: 3 / 4;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery-thumb.is-active {
  border-color: var(--accent);
}

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

.brand-card-image-wrap.has-category-image {
  padding: 0;
  overflow: hidden;
  background: #111827;
}

.brand-card-image-wrap.has-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .order-lookup-form,
  .seller-intake {
    grid-template-columns: 1fr;
  }

  .order-lookup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .order-lookup-grid {
    grid-template-columns: 1fr;
  }

  .order-lookup-form {
    padding: 12px;
  }

  .site-pref-controls {
    order: 5;
    width: 100%;
    justify-content: flex-end;
  }
}

.header-bottom {
  border-top: 1px solid rgba(90, 174, 255, 0.22);
  padding-top: 10px;
  position: relative;
}

.header-categories-menu {
  position: relative;
}

.header-mega-menu {
  position: static;
}

.header-categories-trigger,
.header-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.category-mega-menu {
  position: absolute;
  display: none;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 1060;
  color: var(--text-main);
}

.header-categories-menu:hover .category-mega-menu,
.header-mega-menu:hover .category-mega-menu {
  display: block;
}

.category-mega-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(90, 174, 255, 0.08), rgba(255, 255, 255, 0) 42%),
    #fff;
}

.category-mega-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 4px;
}

.category-mega-heading div {
  display: grid;
  gap: 2px;
}

.category-mega-heading strong {
  font-size: 1.04rem;
  color: var(--text-main);
}

.category-mega-heading span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.category-mega-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-mega-all-link:hover {
  background: var(--brand-lime);
  color: var(--brand-dark);
}

.category-mega-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.category-mega-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 10px;
  transition: var(--transition);
}

.category-mega-tab:hover {
  color: var(--text-main);
  background: rgba(90, 174, 255, 0.12);
}

.category-mega-tab.is-active {
  color: #fff;
  background: var(--accent);
}

.category-mega-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.category-mega-column {
  min-height: 310px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.category-mega-detail-column {
  background: #f8fafc;
}

.category-mega-column-head {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.category-mega-column-head strong {
  font-size: 1rem;
  color: var(--text-main);
}

.category-mega-column-head small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.category-mega-list,
.category-mega-detail-list {
  display: grid;
  gap: 10px;
}

.category-mega-simple-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.category-mega-nav,
.category-mega-detail-card {
  width: 100%;
}

.category-mega-nav.is-active,
.category-mega-nav:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.category-mega-detail-title {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.category-mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  transition: var(--transition);
}

.category-mega-item:visited,
.category-mega-item:hover,
.category-mega-item:focus-visible,
.category-mega-nav.is-active,
.category-mega-nav.is-active:hover {
  color: var(--text-main);
}

.category-mega-item:hover {
  background: #fff;
  border-color: var(--border);
  transform: translateY(-1px);
}

.category-mega-detail-card:hover {
  background: #f8fafc;
}

.category-mega-item .category-mega-thumb {
  width: 50px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  flex: 0 0 auto;
}

.category-mega-item .category-mega-thumb img {
  max-width: 100%;
  max-height: 22px;
  object-fit: contain;
}

.category-mega-item .category-mega-thumb strong {
  font-size: 0.8rem;
  color: var(--accent);
}

.category-mega-item .category-mega-thumb.brand-pokemon {
  background: linear-gradient(135deg, #fff7cc 0%, #ffffff 100%);
}

.category-mega-item .category-mega-thumb.brand-starwars {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.category-mega-item .category-mega-thumb.brand-accent {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 100%);
}

.category-mega-item .category-mega-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.category-mega-item .category-mega-text strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.category-mega-item .category-mega-text small {
  color: #475569;
  line-height: 1.32;
}

.category-mega-item:hover .category-mega-text strong,
.category-mega-item:focus-visible .category-mega-text strong,
.category-mega-nav.is-active .category-mega-text strong,
.category-mega-detail-card:hover .category-mega-text strong {
  color: var(--text-main);
}

.category-mega-item:hover .category-mega-text small,
.category-mega-item:focus-visible .category-mega-text small,
.category-mega-nav.is-active .category-mega-text small,
.category-mega-detail-card:hover .category-mega-text small {
  color: #475569;
}

.category-mega-main {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.header-nav .nav-link {
  padding: 0;
  font-size: 0.98rem;
}

.navbar-brand {
  font-weight: 800;
  color: #fff !important;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.navbar .nav-link {
  color: rgba(232, 244, 255, 0.82);
  font-weight: 500;
  transition: var(--transition);
}

.navbar .nav-link:hover {
  color: var(--brand-lime);
}

.search-cart {
  display: flex;
  gap: 12px;
  align-items: center;
}

#searchInput {
  padding: 8px 52px 8px 16px;
  border: 1px solid var(--border);
  border-radius: 99px; /* Pill shape */
  outline: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

#searchInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 174, 255, 0.18);
}

.cart-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.product-detail-image-wrap {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.product-detail-promo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: #d92d20;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(217, 45, 32, 0.28);
}

.product-detail-image {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
}

.product-detail-content {
  display: grid;
  gap: 14px;
}

.product-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-detail-meta div {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.product-detail-meta span {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-detail-meta strong {
  display: block;
  font-size: 0.98rem;
}

.product-detail-desc {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.product-detail-desc h3 {
  font-size: 0.95rem;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.product-quantity-box {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.product-quantity-input {
  max-width: 120px;
}

.product-quantity-error {
  color: #b42318;
  font-size: 0.92rem;
  font-weight: 600;
}

.recommended-products {
  margin-top: 30px;
}

.recommended-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.recommended-products-head span {
  font-size: 1.18rem;
  font-weight: 800;
}

.recommended-products-head small {
  color: var(--text-muted);
}

.recommended-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.recommended-product-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.recommended-product-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.recommended-product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #f8fafc;
}

.recommended-product-card strong {
  line-height: 1.25;
}

.recommended-product-card span {
  font-weight: 800;
  color: var(--accent);
}

.recommended-product-card small {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(168, 216, 79, 0.18);
  color: var(--accent);
  font-weight: 800;
}

.cart-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .header-top {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .category-showcase {
    grid-template-columns: 1fr;
  }

  .category-showcase-stage {
    min-height: 260px;
    order: -1;
  }

  .category-showcase-visual {
    min-height: 230px;
  }

  .home-banner-card {
    grid-template-columns: 1fr;
  }

  .home-banner-image {
    min-height: 160px;
    order: -1;
  }

  .header-categories-menu:hover .category-mega-menu {
    grid-template-columns: 1fr;
  }

  .product-detail-shell {
    grid-template-columns: 1fr;
  }

  .product-detail-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .header-logo {
    min-width: 128px;
  }

  .header-logo-img {
    width: 180px;
    height: 58px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-action {
    min-width: 64px;
  }
}

/* ==========================================================================
   SEKCJA HERO I KARUZELA
   ========================================================================== */
.hero {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(90, 174, 255, 0.22);
  background:
    radial-gradient(circle at top left, rgba(168, 216, 79, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(90, 174, 255, 0.18), transparent 32%),
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-navy) 58%, #1f68a8 100%);
  color: #fff;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.18);
  padding: 10px;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
  color: #fff;
}

.hero p,
.hero .lead,
.hero .category-hub-eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.category-showcase {
  margin-top: 20px;
  min-height: 300px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.96) 0%, rgba(248, 251, 255, 0.9) 46%, rgba(238, 245, 255, 0.72) 100%),
    var(--category-showcase-bg, radial-gradient(circle at 78% 50%, rgba(99, 102, 241, 0.14), transparent 24%)),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  background-position: center, var(--category-showcase-bg-position, center), center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 118% auto, cover;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  color: #111827;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(32px, 5vw, 52px);
  overflow: hidden;
}

.category-showcase.has-custom-background {
  position: relative;
  aspect-ratio: 3 / 1;
  min-height: 330px;
  padding: clamp(28px, 3.5vw, 46px) clamp(32px, 5vw, 64px);
  border-color: rgba(191, 219, 254, 0.86);
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.9) 0%, rgba(248, 251, 255, 0.78) 34%, rgba(248, 251, 255, 0.28) 62%, rgba(248, 251, 255, 0.08) 100%),
    var(--category-showcase-bg),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  background-position: center, var(--category-showcase-bg-position, center), center;
  background-size: 100% 100%, 118% auto, cover;
}

.category-showcase.has-custom-background .category-showcase-copy {
  z-index: 4;
}

.category-showcase.has-custom-background .category-showcase-stage {
  position: absolute;
  left: var(--category-showcase-card-x, 75%);
  top: 0;
  z-index: 2;
  width: clamp(230px, 22vw, 380px);
  height: 100%;
  min-height: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.category-showcase.has-custom-background .category-showcase-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.category-showcase.has-custom-background .category-showcase-card {
  position: absolute;
  left: 50%;
  top: var(--category-showcase-card-y, 22%);
  width: clamp(142px, 11vw, 188px);
  margin: 0;
  transform: translateX(-50%);
}

.category-showcase.has-custom-background .category-showcase-pedestal {
  display: none;
}

.category-showcase.has-custom-background .category-showcase-nav {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.category-showcase-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.category-showcase-context {
  width: fit-content;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #253b70;
  font-size: 1.24rem;
  font-weight: 950;
  line-height: 1.15;
  box-shadow: none;
}

.category-showcase-badge {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 850;
}

.category-showcase h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.category-showcase-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 700;
}

.category-showcase-tags,
.category-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.category-showcase-tags span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
}

.category-showcase-tags strong {
  color: #111827;
}

.category-showcase-actions {
  margin-top: 8px;
}

.category-showcase-price {
  margin-right: 10px;
  color: #111827;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 900;
}

.category-showcase-trust {
  width: min(100%, 640px);
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border: 1px solid rgba(191, 219, 254, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.category-showcase-trust > div {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  color: #8b97b8;
}

.category-showcase-trust > div + div {
  border-left: 1px solid rgba(148, 163, 184, 0.28);
}

.category-showcase-trust svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-showcase-trust span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.category-showcase-trust strong {
  color: #3f4f79;
  font-size: 0.84rem;
  line-height: 1.15;
  font-weight: 900;
}

.category-showcase-trust small {
  color: #68748f;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
}

.category-showcase-stage {
  position: relative;
  min-height: 230px;
  display: grid;
  gap: 12px;
  place-items: center;
}

.category-showcase-visual {
  position: relative;
  min-width: min(100%, 300px);
  min-height: clamp(230px, 15vw, 280px);
  display: grid;
  place-items: center;
  padding-bottom: 54px;
}

.category-showcase-card {
  position: relative;
  z-index: 2;
  width: clamp(136px, 12vw, 178px);
  aspect-ratio: 3 / 4.15;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.24);
  margin-bottom: 44px;
  transform: translateY(-10px);
}

.category-showcase-card img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  display: block;
  object-fit: cover;
}

.category-showcase-pedestal {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 1;
  width: min(88%, 285px);
  height: 52px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.94), rgba(148, 163, 184, 0.72)),
    radial-gradient(ellipse at center, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.04) 68%, transparent 70%);
  box-shadow: 0 18px 26px rgba(15, 23, 42, 0.18);
  transform: translateX(-50%);
}

.category-showcase-nav {
  position: relative;
  z-index: 2;
  display: inline-grid;
  grid-template-columns: 34px auto 34px;
  gap: 8px;
  align-items: center;
  justify-self: center;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.category-showcase-nav button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #4f6fe5;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.category-showcase-nav span {
  min-width: 34px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 991.98px) {
  .category-showcase {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    padding: clamp(24px, 5vw, 38px);
  }

  .category-showcase.has-custom-background {
    aspect-ratio: auto;
    min-height: auto;
    padding: clamp(24px, 5vw, 38px);
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.88) 0%, rgba(248, 251, 255, 0.58) 46%, rgba(248, 251, 255, 0.16) 100%),
      var(--category-showcase-bg),
      linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    background-position: center, var(--category-showcase-bg-position, center), center;
    background-size: 100% 100%, 118% auto, cover;
  }

  .category-showcase.has-custom-background .category-showcase-copy {
    max-width: 100%;
  }

  .category-showcase.has-custom-background .category-showcase-stage {
    position: relative;
    left: auto;
    top: auto;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 250px;
    transform: none;
    pointer-events: auto;
  }

  .category-showcase.has-custom-background .category-showcase-visual {
    width: 100%;
    min-height: 230px;
    padding-bottom: 58px;
  }

  .category-showcase.has-custom-background .category-showcase-card {
    position: relative;
    left: auto;
    top: auto;
    width: clamp(122px, 32vw, 160px);
    margin-bottom: 46px;
    transform: translateY(-6px);
  }

  .category-showcase.has-custom-background .category-showcase-pedestal {
    display: none;
  }

  .category-showcase.has-custom-background .category-showcase-nav {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
  }

  .category-showcase-stage {
    min-height: 250px;
    order: 0;
    width: 100%;
  }

  .category-showcase-visual {
    min-width: 0;
    width: 100%;
    min-height: 220px;
    padding-bottom: 52px;
  }

  .category-showcase-card {
    width: clamp(118px, 30vw, 158px);
    margin-bottom: 40px;
  }

  .category-showcase-nav {
    margin-top: -6px;
  }

  .category-showcase-trust {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .category-showcase-trust > div {
    min-height: 50px;
    padding: 10px 14px;
  }

  .category-showcase-trust > div + div {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }
}

@media (max-width: 575.98px) {
  .category-showcase {
    margin-top: 14px;
    gap: 18px;
    padding: 22px 16px;
  }

  .category-showcase h1 {
    font-size: 2rem;
  }

  .category-showcase-subtitle {
    font-size: 0.98rem;
  }

  .category-showcase-context {
    width: 100%;
    font-size: 1.08rem;
  }

  .category-showcase-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-showcase-trust svg {
    width: 21px;
    height: 21px;
  }

  .category-showcase-trust strong {
    font-size: 0.82rem;
  }

  .category-showcase-trust small {
    font-size: 0.76rem;
  }

  .category-showcase-stage {
    min-height: 230px;
  }

  .category-showcase-visual {
    min-height: 205px;
  }

  .category-showcase-card {
    width: clamp(112px, 42vw, 148px);
  }

  .category-showcase-pedestal {
    width: min(78vw, 230px);
    height: 44px;
  }
}

.hero-home {
  position: relative;
  isolation: isolate;
  min-height: clamp(320px, 30vw, 420px);
  display: flex;
  align-items: center;
  padding: clamp(42px, 5vw, 72px) clamp(24px, 4vw, 56px);
  padding-right: clamp(28px, 34vw, 520px);
}

.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-home::before {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.08) 58% 59%, transparent 59% 100%),
    linear-gradient(25deg, transparent 0 66%, rgba(168, 216, 79, 0.12) 66% 67%, transparent 67% 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 58px);
  opacity: 0.88;
}

.hero-home::after {
  z-index: 0;
  right: clamp(34px, 8vw, 120px);
  top: 50%;
  width: clamp(126px, 12vw, 176px);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(90, 174, 255, 0.95), rgba(168, 216, 79, 0.82));
  box-shadow:
    -52px 20px 0 -12px rgba(255, 255, 255, 0.12),
    -52px 20px 0 -10px rgba(90, 174, 255, 0.42),
    46px 28px 0 -18px rgba(255, 255, 255, 0.11),
    46px 28px 0 -16px rgba(168, 216, 79, 0.38),
    0 24px 46px rgba(2, 8, 23, 0.42);
  transform: translateY(-50%) rotate(5deg);
}

.hero-home-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.hero-home-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-home h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #fff;
}

.hero-home-text {
  margin: 0;
  max-width: 56ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-home-actions .btn {
  border-radius: 999px;
  padding-inline: 1.2rem;
}

.hero-home-actions .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

.hero-home-actions .btn-primary:hover {
  background: var(--brand-lime);
  color: var(--brand-dark);
  border-color: var(--brand-lime);
}

.hero-home-actions .btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-home-actions .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-home-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-home-points span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
}

.home-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.home-banner-card {
  min-height: 180px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
}

.home-banner-copy {
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.home-banner-meta {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.home-banner-product-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}

.home-banner-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-banner-chip.is-promo {
  background: #fee4e2;
  color: #b42318;
}

.home-banner-chip.is-rarity {
  background: #e0e7ff;
  color: #3730a3;
}

.home-banner-copy h3 {
  margin: 0;
  font-size: 1.35rem;
}

.home-banner-copy p {
  margin: 0;
  color: var(--text-muted);
}

.home-banner-copy .btn {
  justify-self: start;
}

.home-banner-image {
  min-height: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.home-banner-image.has-product {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.home-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-banner-card.home-banner-secondary {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
}

.home-banner-card.home-banner-secondary .home-banner-copy p,
.home-banner-card.home-banner-secondary .home-banner-copy h3 {
  color: #fff;
}

.home-banner-card.home-banner-secondary .home-banner-product-title {
  color: rgba(255, 255, 255, 0.75);
}

.home-banner-card.home-banner-secondary .home-banner-chip.is-rarity {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-banner-card.home-banner-secondary .home-banner-chip.is-promo {
  background: rgba(253, 242, 242, 0.14);
  color: #fff;
}

.home-main-categories {
  position: relative;
  margin: 22px 0 clamp(28px, 4vw, 48px);
  padding-top: 30px;
}

.home-main-categories::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 174, 255, 0.7), rgba(168, 216, 79, 0.58), transparent);
}

.home-main-categories-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.home-main-categories-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(90, 174, 255, 0.35);
  border-radius: 999px;
  background: rgba(90, 174, 255, 0.1);
  color: #1d4f85;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-main-categories h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
}

.home-main-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-main-category-card {
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(181, 220, 255, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 255, 0.72)),
    var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-main-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 216, 79, 0.9);
  box-shadow: var(--shadow);
  color: var(--text-main);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 250, 212, 0.74)),
    var(--surface);
}

.home-main-category-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-dark), #21446b);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.home-main-category-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-main-category-text strong {
  color: var(--text-main);
  font-size: 1rem;
}

.home-main-category-text small {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.home-trust-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(30px, 4vw, 54px) 0 clamp(24px, 3vw, 42px);
  padding: 14px 18px;
  border: 1px solid rgba(181, 220, 255, 0.74);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(90, 174, 255, 0.08), rgba(255, 255, 255, 0) 22%, rgba(168, 216, 79, 0.1) 100%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.home-trust-strip::before,
.home-trust-strip::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 174, 255, 0.42), rgba(168, 216, 79, 0.36), transparent);
}

.home-trust-strip::before {
  top: 0;
}

.home-trust-strip::after {
  bottom: 0;
}

.home-trust-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-right: 1px solid var(--border);
}

.home-trust-item:last-child {
  border-right: 0;
}

.home-trust-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(90, 174, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
  color: var(--accent-hover);
}

.home-trust-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-trust-item strong,
.home-trust-item small {
  display: block;
}

.home-trust-item strong {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.2;
}

.home-trust-item small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.featured-strip-section {
  position: relative;
  margin-top: clamp(36px, 5vw, 70px);
}

.home-new-products-section {
  margin-top: clamp(28px, 4vw, 52px);
}

.home-section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 216, 79, 0.18);
  color: #46700e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.featured-strip-controls {
  display: flex;
  gap: 10px;
}

.featured-strip-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-main);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.featured-strip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.featured-strip-shell {
  overflow: hidden;
}

.featured-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 5);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.featured-strip::-webkit-scrollbar {
  display: none;
}

.featured-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.featured-card-image-wrap {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.favorite-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.favorite-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: var(--accent);
  color: var(--accent);
}

.favorite-toggle.is-active {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.favorite-toggle-card {
  top: 12px;
  right: 12px;
}

.featured-favorite-toggle {
  width: 34px;
  height: 34px;
}

.featured-card-image-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  display: block;
  padding: 12px;
}

.featured-card-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(180, 35, 24, 0.25);
}

.featured-card-body {
  padding: 0 14px 16px;
  display: grid;
  gap: 8px;
}

.featured-card-body strong {
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text-main);
}

.featured-card-body .price {
  margin: 0;
}

.featured-strip .product-card {
  min-width: 0;
  scroll-snap-align: start;
}

.featured-strip .featured-card.product-card {
  gap: 0;
  color: var(--text-main);
}

@media (max-width: 1199.98px) {
  .featured-strip {
    grid-auto-columns: calc((100% - 48px) / 4);
  }
}

@media (max-width: 991.98px) {
  .featured-strip {
    grid-auto-columns: calc((100% - 32px) / 3);
  }

  .hero-home {
    padding-right: clamp(24px, 4vw, 48px);
  }

  .hero-home::after {
    opacity: 0.2;
    right: 30px;
  }

  .home-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-main-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-trust-item:nth-child(2) {
    border-right: 0;
  }

  .home-trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 767.98px) {
  .featured-strip-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-home::after {
    display: none;
  }

  .featured-strip {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

  .home-trust-strip {
    margin: 34px 0 42px;
    padding: 8px 12px;
  }

  .home-trust-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .home-trust-icon {
    width: 38px;
    height: 38px;
  }

  .home-trust-item strong {
    font-size: 0.9rem;
  }

  .home-trust-item small {
    font-size: 0.78rem;
  }

  .home-main-categories-head {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .home-main-category-card {
    min-height: 98px;
  }
}

@media (max-width: 575.98px) {
  .featured-strip {
    grid-auto-columns: 82%;
  }

  .home-trust-strip {
    grid-template-columns: 1fr;
  }

  .home-main-categories {
    margin-top: 16px;
    padding-top: 24px;
  }

  .home-main-categories-grid {
    grid-template-columns: 1fr;
  }

  .home-trust-item,
  .home-trust-item:nth-child(2) {
    border-right: 0;
  }

  .home-trust-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
}

/* ==========================================================================
   PRODUKTY I KARTY
   ========================================================================== */
.product-list { padding: 40px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card-media {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.product-card-media .product-card-image {
  border-bottom: 0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(180, 35, 24, 0.25);
}

.product-card-new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.product-card-new + .product-card-sale {
  top: 46px;
}

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

.product-card .card-title {
  min-height: 2.75em;
  margin: 0 0 10px;
  line-height: 1.28;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  color: var(--text-main);
}

.product-link {
  color: var(--text-main);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.product-link:hover,
.product-link:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.product-card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(90, 174, 255, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #255f9f;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.product-card-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1d4ed8;
  margin: 0;
}

.price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price.is-sale {
  display: grid;
  gap: 4px;
  align-items: start;
}

.price.is-sale .sale-badge {
  justify-self: start;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 800;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.96rem;
}

.price.is-sale {
  display: grid;
  gap: 4px;
}

.price-lowest {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-current {
  font-weight: 800;
  font-size: 1.2rem;
  color: #1d4ed8;
}

.price-old {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: line-through;
  cursor: help;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(168, 216, 79, 0.18);
  color: var(--brand-lime-hover);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sale-badge-compact {
  margin-bottom: 2px;
}

.add {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.add:hover {
  background: var(--success-hover);
}

/* ==========================================================================
   KATEGORIE (KAFELKI)
   ========================================================================== */
#categoriesGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
  margin-top: 20px;
}

.category-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  box-shadow: var(--shadow);
  height: 100%;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   POKEMON PICKER (ADMIN)
   ========================================================================== */
.pokemon-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.catalog-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.pokemon-admin-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.pokemon-admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pokemon-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.pokemon-admin-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}

.pokemon-admin-card .body {
  padding: 12px;
}

.pokemon-admin-card .title {
  font-weight: 700;
  margin-bottom: 4px;
}

.pokemon-admin-card .meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.pokemon-admin-card .hint {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   STAR WARS
   ========================================================================== */
.sw-hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #f8fafc;
}

.sw-hero h1,
.sw-hero p {
  color: #f8fafc;
}

.sw-card {
  overflow: hidden;
}

.sw-card-head {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  padding: 16px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sw-details {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.sw-grid .card-body {
  min-height: 240px;
}

.sw-tab.active {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}

.category-tile .overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-tile:hover .overlay {
  background: var(--surface);
  color: var(--accent);
}

.category-tile .overlay small {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.category-hub-section {
  margin-top: 20px;
}

.category-hub-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.category-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.category-hub-group {
  display: grid;
  gap: 10px;
}

.category-hub-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.category-hub-group-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.category-hub-group-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.category-hub-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.category-brand-card-wide {
  max-width: 520px;
}

.category-brand-card {
  min-height: 92px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-main);
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  transition: var(--transition);
}

.category-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.brand-card-image-wrap {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  overflow: hidden;
}

.brand-card-image-wrap img {
  max-width: 100%;
  max-height: 28px;
  object-fit: contain;
  display: block;
}

.brand-card-image-wrap.brand-pokemon {
  background: linear-gradient(135deg, #fff7cc 0%, #ffffff 100%);
}

.brand-card-image-wrap.brand-starwars {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.brand-card-image-wrap.brand-accent {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.brand-card-body strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.brand-card-body small {
  display: block;
  color: var(--text-muted);
  line-height: 1.35;
  font-size: 0.82rem;
}

.category-brand-card.brand-pokemon .brand-card-body strong {
  color: #1e40af;
}

.category-brand-card.brand-starwars .brand-card-body strong {
  color: #111827;
}

@media (max-width: 992px) {
  .header-categories-menu .category-mega-menu {
    width: min(100vw - 24px, 720px);
  }

  .category-mega-simple-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-mega-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .category-mega-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-mega-tabs {
    grid-template-columns: 1fr;
  }

  .category-mega-simple-grid {
    grid-template-columns: 1fr;
  }

  .category-mega-column {
    min-height: auto;
  }
}

/* ==========================================================================
   KOSZYK (PODGLĄD I MODAL)
   ========================================================================== */
.cart-preview {
  position: absolute;
  right: 5%;
  top: calc(100% + 12px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 340px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1200;
  padding: 16px;
  border-radius: var(--radius-lg);
  color: var(--text-main);
}

.cart-preview.hidden { display: none; }

.cart-preview .empty {
  color: var(--text-muted);
}

.cart-preview-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.cart-preview-item:last-of-type {
  border-bottom: 0;
}

.cart-preview-image {
  width: 42px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: #e2e8f0;
}

.cart-preview-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cart-preview-title {
  display: block;
  color: var(--text-main);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-preview-meta {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.cart-preview-line-total {
  color: var(--text-main);
  font-weight: 800;
  white-space: nowrap;
}

.cart-preview-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 800;
}

.cart-preview-actions {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-main {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.cart-item-image {
  width: 42px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: #e2e8f0;
  flex: 0 0 auto;
}

.cart-step-image {
  width: 46px;
  height: 62px;
  border-radius: 10px;
  object-fit: contain;
  background: #e2e8f0;
  flex: 0 0 auto;
}

.cart-item-copy {
  display: grid;
  gap: 4px;
}

.cart-item-main span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.cart-qty-controls button, .cart-item .remove {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-qty-controls button:hover, .cart-item .remove:hover {
  background: var(--border);
}

.cart-line-total { font-weight: 700; }

.cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 16px 0 0 0;
  font-size: 1.1rem;
  border-top: 2px solid var(--border);
  margin-top: 10px;
}

.cart-cross-sell {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef7ff 52%, #fef7ed 100%);
}

.cart-cross-sell-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cart-cross-sell-head span {
  display: block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-cross-sell-head h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 900;
}

.cart-cross-sell-head a {
  color: var(--accent-hover);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.cart-cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cart-cross-sell-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.cart-cross-sell-image {
  display: block;
  width: 72px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.cart-cross-sell-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-cross-sell-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cart-cross-sell-copy strong {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.2;
}

.cart-cross-sell-copy small {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.cart-cross-sell-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.cart-cross-sell-footer span {
  color: #166534;
  font-size: 0.92rem;
  font-weight: 900;
}

/* ==========================================================================
   LANDINGI GIER TCG
   ========================================================================== */
.game-landing {
  padding-top: 22px;
  padding-bottom: 52px;
}

.game-landing-hero {
  --game-hero-image: url("../assets/logo-lstcg.png");
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  min-height: clamp(430px, 68vh, 620px);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.36)),
    var(--game-hero-image) center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.game-landing-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.8), transparent);
  pointer-events: none;
}

.game-hero-copy,
.game-hero-showcase,
.game-stats {
  position: relative;
  z-index: 1;
}

.game-hero-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
}

.game-hero-copy h1 {
  margin: 18px 0 14px;
  max-width: 680px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  font-weight: 950;
}

.game-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.game-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.game-hero-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 12px;
  align-items: end;
}

.game-hero-showcase a {
  display: block;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

.game-hero-showcase a:nth-child(2) {
  transform: translateY(-26px);
}

.game-hero-showcase img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: contain;
  padding: 12px;
}

.game-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 850px;
}

.game-stats span {
  display: grid;
  gap: 2px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.game-stats strong {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.1;
}

.game-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

.game-chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.game-landing-section {
  margin-top: 32px;
}

.game-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.game-section-head span {
  display: block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-section-head h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
}

.game-section-head p {
  max-width: 430px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.game-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}

.game-product-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.game-product-image {
  position: relative;
  display: block;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.game-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.game-product-image span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.game-product-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.game-product-copy strong {
  line-height: 1.25;
}

.game-product-copy a {
  color: var(--text-main);
  text-decoration: none;
}

.game-product-copy small {
  color: var(--text-muted);
}

.game-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.game-product-footer span {
  color: #166534;
  font-weight: 950;
}

/* ==========================================================================
   CHECKOUT (KROKI I PANELE)
   ========================================================================== */
.checkout-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  gap: 0;
  counter-reset: step;
}

.checkout-steps li {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 4px 6px;
  cursor: default;
  font-weight: 500;
}

.checkout-steps li::before {
  content: counter(step);
  counter-increment: step;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  line-height: 32px;
  margin: 0 auto 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.checkout-steps li::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: -1;
  transition: var(--transition);
}

.checkout-steps li:last-child::after { display: none; }

.checkout-steps li.is-done { color: var(--accent); }
.checkout-steps li.is-done::before {
  background: var(--accent);
  color: #fff;
}
.checkout-steps li.is-done::after { background: var(--accent); }

.checkout-steps li.is-active {
  color: var(--text-main);
  font-weight: 700;
}
.checkout-steps li.is-active::before {
  background: var(--text-main);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.15);
}

.checkout-panel { display: none; }
.checkout-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.checkout-flow {
  width: 100%;
}

.checkout-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.checkout-customer-grid .mb-2 {
  margin-bottom: 0 !important;
}

.checkout-customer-grid .mb-2:has(input[name="address"]) {
  grid-column: 1 / -1;
}

.checkout-buyer-section {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.checkout-buyer-section legend {
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.checkout-subtitle {
  margin: 20px 0 12px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.checkout-buyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-buyer-card {
  position: relative;
  align-items: flex-start;
  min-height: 120px;
  margin-bottom: 0;
  padding: 18px;
  cursor: pointer;
}

.checkout-buyer-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-buyer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-hover);
  transition: var(--transition);
}

.checkout-buyer-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-buyer-card span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checkout-buyer-card strong {
  margin-left: 0;
  color: var(--text-main);
  font-size: 1.08rem;
}

.checkout-buyer-card small {
  color: var(--text-muted);
  line-height: 1.35;
}

.checkout-buyer-card:has(input:checked) .checkout-buyer-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.checkout-company-fields {
  margin: -2px 0 20px;
  padding: 16px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: rgba(232, 244, 255, 0.58);
}

.checkout-company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.delivery-option, .payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface);
}

.delivery-option {
  align-items: flex-start;
  flex-wrap: wrap;
}

.delivery-option > span {
  min-width: 150px;
  color: var(--text-main);
  font-weight: 800;
}

.delivery-option small {
  flex: 1 1 220px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.delivery-option:hover, .payment-option:hover {
  border-color: #cbd5e1;
}

.delivery-option:has(input:checked), .payment-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.delivery-option input, .payment-option input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.checkout-consents-stacked {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.checkout-consents-stacked label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 34px;
  margin: 0;
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.35;
}

.checkout-consents-stacked input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--accent);
}

.delivery-option strong, .payment-option strong { margin-left: auto; font-size: 1.1rem; }

.checkout-address-note,
.shipping-method-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-address-note {
  margin-top: -4px;
}

.shipping-method-note {
  margin: 0 0 12px;
}

.shipping-address-grid .shipping-full {
  grid-column: 1 / -1;
}

.payment-option.checkout-buyer-card {
  align-items: flex-start;
  min-height: 120px;
  margin-bottom: 0;
  padding: 18px;
}

.payment-option.checkout-buyer-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option.checkout-buyer-card strong {
  margin-left: 0;
  color: var(--text-main);
  font-size: 1.08rem;
}

.checkout-panel[data-step-panel="4"] h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.checkout-review {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
}

.checkout-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-review-card {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.checkout-review-card h3 {
  margin: 0 0 7px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.checkout-review-card p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.38;
}

.checkout-review-products {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.checkout-review-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.checkout-review-product:last-child {
  border-bottom: 0;
}

.checkout-review-product span span {
  color: var(--text-muted);
}

.checkout-review-product strong {
  white-space: nowrap;
  font-weight: 700;
}

.checkout-review-total {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.checkout-review-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-review-total-row.is-discount {
  color: #15803d;
  font-size: 0.95rem;
}

.checkout-review-total-row.is-final {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 900;
}

.checkout-legal-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.checkout-legal-summary p {
  margin: 0;
}

.checkout-panel[data-step-panel="4"] .checkout-actions {
  margin-top: 20px;
}

.checkout-purchase-title {
  margin: 0 0 40px;
  color: #050505;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.checkout-panel[data-step-panel="1"] .checkout-buyer-section {
  margin-bottom: 44px;
}

.checkout-panel[data-step-panel="1"] .checkout-buyer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 22vw, 440px);
}

.checkout-panel[data-step-panel="1"] .payment-option.checkout-buyer-card {
  min-height: 96px;
  align-items: center;
  justify-content: center;
  border: 2px solid #2632a3;
  border-radius: 7px;
  background: #fff;
  color: #1f2a91;
  padding: 18px 24px;
}

.checkout-panel[data-step-panel="1"] .payment-option.checkout-buyer-card:hover {
  border-color: #1f2a91;
  background: #f8faff;
}

.checkout-panel[data-step-panel="1"] .payment-option.checkout-buyer-card:has(input:checked) {
  border-color: transparent;
  background: linear-gradient(105deg, #2936a6 0%, #4f79d5 100%);
  color: #fff;
}

.checkout-panel[data-step-panel="1"] .checkout-buyer-icon,
.checkout-panel[data-step-panel="1"] .checkout-buyer-card small {
  display: none;
}

.checkout-panel[data-step-panel="1"] .payment-option.checkout-buyer-card strong {
  color: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.checkout-purchase-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}

.checkout-private-fields,
.checkout-company-fields {
  display: contents;
}

.checkout-company-fields {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.checkout-field {
  min-width: 0;
}

.checkout-form-full {
  grid-column: 1 / -1;
}

.checkout-form-half {
  grid-column: span 2;
}

.checkout-form-wide {
  grid-column: span 3;
}

.checkout-form-narrow {
  grid-column: span 1;
}

.checkout-purchase-form .form-control {
  min-height: 80px;
  border: 1px solid #e4ebf2;
  border-radius: 10px;
  background-color: #fff;
  color: var(--text-main);
  font-size: 1.28rem;
  font-weight: 500;
  padding: 0 34px;
  box-shadow: none;
}

.checkout-purchase-form .form-control::placeholder {
  color: #74798e;
  opacity: 1;
}

.checkout-purchase-form .form-control:focus {
  border-color: #2632a3;
  box-shadow: 0 0 0 4px rgba(38, 50, 163, 0.1);
}

.checkout-purchase-form select.form-control {
  appearance: auto;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

@media (max-width: 767.98px) {
  .checkout-customer-grid,
  .checkout-buyer-grid,
  .checkout-company-grid {
    grid-template-columns: 1fr;
  }

  .checkout-customer-grid .mb-2:has(input[name="address"]) {
    grid-column: auto;
  }

  .checkout-buyer-card {
    min-height: auto;
  }

  .checkout-purchase-title {
    margin-bottom: 26px;
    font-size: 2.25rem;
  }

  .checkout-panel[data-step-panel="1"] .checkout-buyer-section {
    margin-bottom: 28px;
  }

  .checkout-panel[data-step-panel="1"] .checkout-buyer-grid,
  .checkout-purchase-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .checkout-form-full,
  .checkout-form-half,
  .checkout-form-wide,
  .checkout-form-narrow {
    grid-column: auto;
  }

  .checkout-panel[data-step-panel="1"] .payment-option.checkout-buyer-card {
    min-height: 72px;
  }

  .checkout-purchase-form .form-control {
    min-height: 64px;
    font-size: 1rem;
    padding: 0 18px;
  }

  .checkout-review-grid {
    grid-template-columns: 1fr;
  }

  .checkout-review-product,
  .checkout-review-total-row {
    align-items: flex-start;
  }

  .checkout-review-product {
    flex-direction: column;
    gap: 3px;
  }

  .checkout-review-total-row.is-final {
    font-size: 1.08rem;
  }
}

/* ==========================================================================
   PANEL ADMINISTRACYJNY
   ========================================================================== */
.doc {
  padding: 32px;
  background: var(--surface);
  max-width: 1000px;
  margin: 40px auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-page {
  line-height: 1.7;
}

.legal-page h1 {
  margin-bottom: 16px;
}

.legal-page h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 1.35rem;
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.legal-list {
  padding-left: 1.25rem;
}
.admin-shell {
  width: 95%;
  max-width: none;
}
.admin-shell .admin-shell-inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.admin-tabs {
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.admin-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  font-weight: 600;
  color: var(--text-muted);
}

.admin-tabs .nav-link.active {
  color: var(--accent);
  border-color: var(--border) var(--border) #fff;
  background: #fff;
}

.admin-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.admin-notice.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.admin-notice.is-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.admin-notice.is-info {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-hover);
}
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 24px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form-grid .form-control,
.admin-form-grid .form-select {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius);
}

.admin-form-grid > .form-label {
  margin: 0;
}

.admin-form-grid > .form-label:not(.admin-file-field) {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-form-section-title {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-form-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.admin-field-hint {
  grid-column: 1 / -1;
  margin: -4px 0 2px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.admin-file-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-form-grid .admin-textarea,
.admin-form-grid textarea[name="description"] {
  grid-column: 1 / -1;
  min-height: 120px;
}
.admin-form-grid .admin-check,
.admin-form-grid .admin-form-actions {
  grid-column: 1 / -1;
}
.admin-form-actions {
  display: flex;
  justify-content: flex-end;
}
.admin-form-actions .btn {
  min-width: 180px;
}
.admin-homepage-form {
  display: grid;
  gap: 18px;
}

.admin-homepage-block {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-homepage-block h3 {
  margin: 0 0 14px;
}

.admin-homepage-help {
  margin: -6px 0 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-homepage-block .form-label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-homepage-sections {
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.94));
}

.admin-homepage-sections h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
}

.admin-homepage-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-homepage-section-grid .admin-check {
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.admin-homepage-section-grid .form-label {
  margin: 0;
}

@media (max-width: 720px) {
  .admin-homepage-section-grid {
    grid-template-columns: 1fr;
  }
}

.shipping-address-fields {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.shipping-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shipping-address-grid .form-control {
  background: #fff;
}

.admin-card .form-control,
.admin-card input,
.admin-card textarea,
.admin-card select {
  border-radius: var(--radius);
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 6px 0 12px;
  background: var(--surface);
}

.admin-session-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f5132;
  font-weight: 700;
  font-size: 0.92rem;
}

.admin-session-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-lime);
  box-shadow: 0 0 0 4px rgba(168, 216, 79, 0.18);
}

.admin-orders {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-order-filters {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-orders-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.admin-orders-table th {
  background: var(--bg);
  padding: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

.admin-products-table {
  display: grid;
  gap: 10px;
}

.admin-products-row {
  display: grid;
  grid-template-columns: 36px 64px minmax(180px, 2fr) minmax(120px, 1fr) 120px 110px 110px 100px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-products-head {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  font-weight: 700;
  color: var(--text-muted);
}

.admin-products-cell {
  min-width: 0;
}

.admin-products-check {
  display: flex;
  justify-content: center;
}

.admin-products-image img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #f8fafc;
}

.admin-users-list {
  display: grid;
  gap: 8px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.admin-user-row small {
  display: block;
  color: var(--text-muted);
}

.admin-products-name {
  display: grid;
  gap: 4px;
}

.admin-products-name strong {
  font-size: 0.98rem;
}

.admin-products-slug {
  color: var(--text-muted);
  font-size: 0.78rem;
  word-break: break-word;
}

.admin-products-featured {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 216, 79, 0.18);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-products-new {
  background: rgba(37, 99, 235, 0.13);
  color: #2563eb;
}

.admin-products-price,
.admin-products-stock,
.admin-products-category {
  font-weight: 700;
}

.admin-products-price {
  display: grid;
  gap: 4px;
}

.admin-products-sale-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 216, 79, 0.18);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-price-current {
  font-weight: 800;
  color: var(--text-main);
}

.admin-price-old {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.admin-products-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-products-empty {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  background: #fff;
}

.admin-db-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.admin-db-status-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.admin-db-status-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-db-status-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text-main);
  word-break: break-word;
}

@media (max-width: 991.98px) {
  .admin-products-row {
    grid-template-columns: 36px 60px minmax(160px, 1fr) minmax(100px, 1fr) 100px 92px 88px;
  }
}

@media (max-width: 767.98px) {
  .admin-products-row,
  .admin-products-head {
    grid-template-columns: 36px 56px 1fr;
  }

  .admin-products-head .admin-products-price,
  .admin-products-head .admin-products-category,
  .admin-products-head .admin-products-stock,
  .admin-products-head .admin-products-actions {
    display: none;
  }

  .admin-products-price,
  .admin-products-category,
  .admin-products-stock,
  .admin-products-actions {
    grid-column: 3;
    justify-content: flex-start;
  }

  .admin-products-actions {
    justify-content: flex-start;
  }
}

.admin-orders-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.order-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.order-status-paid, .order-status-completed { background: #d1fae5; color: #065f46; }
.order-status-processing, .order-status-shipped { background: #dbeafe; color: #1e40af; }
.order-status-awaiting_payment, .order-status-pending { background: #fef3c7; color: #92400e; }
.order-status-cancelled, .order-status-failed { background: #fee2e2; color: #991b1b; }

.edit-product-preview {
  min-height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-product-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}

.edit-product-sidepanel {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
}

.edit-product-sale-note {
  border-radius: var(--radius);
  background: #fff7ed;
  border: 1px solid #fdba74;
  padding: 14px 16px;
}

.edit-product-sale-note strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #9a3412;
}

.edit-product-sale-note p {
  margin: 0;
  color: #7c2d12;
  font-size: 0.92rem;
  line-height: 1.45;
}

.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 180px);
}

/* ==========================================================================
   O FIRMIE
   ========================================================================== */
.about-store-page {
  display: grid;
  gap: 28px;
}

.about-hero,
.about-story,
.about-trust,
.about-process,
.about-condition,
.about-contact {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(90, 174, 255, 0.14), transparent 42%),
    linear-gradient(160deg, var(--surface) 0%, #f8fbff 56%, rgba(168, 216, 79, 0.16) 100%);
}

.about-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(90, 174, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.about-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  max-width: 850px;
}

.about-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4.4rem);
  font-weight: 950;
  line-height: 1.02;
}

.about-hero .lead {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

.about-hero-actions,
.about-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.about-hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(90, 174, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.about-hero-panel strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.about-hero-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.about-hero-panel li {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--text-main);
  font-weight: 760;
}

.about-hero-panel li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 0 4px rgba(168, 216, 79, 0.18);
}

.about-story,
.about-trust,
.about-process,
.about-condition,
.about-contact {
  padding: clamp(22px, 3vw, 34px);
}

.about-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.about-section-head span,
.about-contact > div > span {
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-section-head h2,
.about-contact h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 900;
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 18px;
  align-items: stretch;
}

.about-text-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.about-text-panel p,
.about-highlight-card p,
.about-trust p,
.about-process-list p,
.about-condition p,
.about-contact p {
  margin: 0;
  color: var(--text-muted);
}

.about-highlight-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--accent-soft), #fff);
}

.about-highlight-card span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 900;
}

.about-highlight-card strong {
  color: var(--text-main);
  font-size: 1.18rem;
  line-height: 1.25;
}

.about-trust-grid,
.about-condition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-trust-grid article,
.about-condition-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fbff;
}

.about-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.about-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-trust h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 900;
}

.about-process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.about-process-list li {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-process-list li > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-lime);
  color: var(--brand-dark);
  font-weight: 950;
}

.about-process-list strong,
.about-condition-grid strong {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 900;
}

.about-condition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: center;
}

.about-contact > div:first-child {
  display: grid;
  gap: 8px;
}

.about-contact-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fbff;
}

.about-contact-panel > a {
  overflow-wrap: anywhere;
  color: var(--accent-hover);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 900;
  text-decoration: none;
}

.about-contact-panel > a:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .about-hero,
  .about-story-grid,
  .about-contact {
    grid-template-columns: 1fr;
  }

  .about-trust-grid,
  .about-process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .about-store-page {
    gap: 18px;
  }

  .about-hero,
  .about-story,
  .about-trust,
  .about-process,
  .about-condition,
  .about-contact {
    border-radius: var(--radius);
  }

  .about-trust-grid,
  .about-process-list,
  .about-condition-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-actions .btn,
  .about-contact-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   STRONA TWORCY - GRINIUU
   ========================================================================== */
.creator-page .site-footer {
  margin-top: 48px;
}

.griniuu-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.5fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--surface)) 0%, var(--surface) 58%, color-mix(in srgb, #16a34a 10%, var(--surface)) 100%);
}

.griniuu-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: min(44vw, 420px);
  aspect-ratio: 1;
  background: url("../assets/logo-lstcg.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.griniuu-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
}

.griniuu-hero h1 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 950;
  line-height: 0.95;
}

.griniuu-hero .lead {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.griniuu-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.griniuu-profile-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 340px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  text-align: center;
}

.griniuu-avatar {
  width: min(100%, 260px);
  aspect-ratio: 0.78;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.griniuu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.griniuu-profile-card strong {
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 900;
}

.griniuu-profile-card span {
  color: var(--text-muted);
  font-weight: 700;
}

.griniuu-section,
.griniuu-contact {
  margin-top: 32px;
}

.griniuu-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.griniuu-section-head span,
.griniuu-contact > div > span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.griniuu-section-head h2,
.griniuu-contact h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 900;
}

.griniuu-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
}

.griniuu-text-panel,
.griniuu-project,
.griniuu-contact {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm, 0 10px 30px rgba(15, 23, 42, 0.08));
}

.griniuu-text-panel {
  padding: 24px;
}

.griniuu-text-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.griniuu-text-panel p + p {
  margin-top: 14px;
}

.griniuu-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.griniuu-facts div {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 74%, var(--bg));
}

.griniuu-facts strong,
.griniuu-project h3 {
  display: block;
  color: var(--text-main);
  font-weight: 900;
}

.griniuu-facts strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.griniuu-facts span,
.griniuu-project p,
.griniuu-contact p {
  color: var(--text-muted);
  line-height: 1.62;
}

.griniuu-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.griniuu-project {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
}

.griniuu-project.is-featured {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
}

.griniuu-project > span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.griniuu-project h3 {
  margin: 0;
  font-size: 1.25rem;
}

.griniuu-project p {
  margin: 0;
}

.griniuu-project a,
.griniuu-links a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.griniuu-project a:hover,
.griniuu-links a:hover {
  text-decoration: underline;
}

.griniuu-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.griniuu-skill-list span {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-main);
  font-weight: 750;
}

.griniuu-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
}

.griniuu-contact p {
  margin: 10px 0 0;
}

.griniuu-links {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.griniuu-links li {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.griniuu-links li:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.griniuu-social-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--text-main);
}

.griniuu-social-link:hover {
  text-decoration: none;
}

.griniuu-social-link span:last-child {
  min-width: 0;
}

.griniuu-social-link small {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.griniuu-social-link strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.18;
}

.griniuu-platform-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

.griniuu-platform-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.griniuu-platform-icon.is-mail {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.griniuu-platform-icon.is-instagram {
  background: linear-gradient(135deg, #f97316, #db2777 52%, #7c3aed);
}

.griniuu-platform-icon.is-github {
  background: #111827;
}

.griniuu-platform-icon.is-twitch {
  background: #9146ff;
}

.griniuu-platform-icon.is-kick {
  background: #53fc18;
  color: #071207;
}

@media (max-width: 991.98px) {
  .griniuu-hero,
  .griniuu-about-grid,
  .griniuu-contact {
    grid-template-columns: 1fr;
  }

  .griniuu-profile-card {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .griniuu-hero {
    padding: 26px 20px;
    border-radius: 14px;
  }

  .griniuu-project-grid,
  .griniuu-facts {
    grid-template-columns: 1fr;
  }

  .griniuu-text-panel,
  .griniuu-project,
  .griniuu-contact {
    padding: 18px;
  }
}

@media (max-width: 900px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-filters {
    grid-template-columns: 1fr;
  }

  .edit-product-sidepanel {
    position: static;
  }
}

/* ==========================================================================
   NOWA STOPKA (FOOTER)
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-newsletter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.65fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 38px;
  padding: 0 0 36px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-newsletter-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.footer-newsletter-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-newsletter h2 {
  max-width: 640px;
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 900;
  line-height: 1.12;
}

.footer-newsletter p {
  max-width: 700px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-newsletter-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.footer-newsletter-points li {
  position: relative;
  min-height: 0;
  padding: 0 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-newsletter-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.footer-newsletter-form {
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.footer-newsletter-form label {
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 800;
}

.footer-newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.footer-newsletter-row input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 72%, var(--surface));
  color: var(--text-main);
  outline: none;
}

.footer-newsletter-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.footer-newsletter-row button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  white-space: nowrap;
}

.footer-newsletter-form small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-newsletter-status {
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--text-main);
  font-weight: 700;
}

.footer-newsletter-status strong {
  color: var(--accent);
  letter-spacing: 0.06em;
}

.footer-newsletter-status.is-success {
  border-color: color-mix(in srgb, #16a34a 40%, var(--border));
  background: color-mix(in srgb, #16a34a 10%, var(--bg));
}

.footer-newsletter-status.is-error {
  border-color: color-mix(in srgb, #dc2626 40%, var(--border));
  background: color-mix(in srgb, #dc2626 10%, var(--bg));
}

.footer-newsletter-art {
  position: relative;
  display: grid;
  justify-items: end;
  min-height: 168px;
}

.footer-newsletter-mark {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.footer-newsletter-mark img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  opacity: 0.92;
}

.footer-newsletter-discount {
  position: absolute;
  right: 92px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, #f59e0b 14%, var(--surface));
  color: #9a3412;
  text-align: center;
  box-shadow: none;
}

.footer-newsletter-discount strong {
  display: block;
  color: #c2410c;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.footer-newsletter-discount span {
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.footer-col h4:not(.footer-brand) {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
}

.footer-accordion {
  border: 0;
}

.footer-accordion summary {
  list-style: none;
}

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

.footer-accordion summary h4 {
  display: inline;
}

.footer-accordion-icon {
  display: none;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

/* Fajna animacja: po najechaniu link lekko przesuwa się w prawo */
.footer-links-list a:hover {
  color: var(--accent);
  transform: translateX(5px); 
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg);
  color: var(--text-main);
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.payment-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-methods .badge {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.creator-info {
  font-size: 0.9rem;
}

.creator-info a {
  color: var(--accent);
  font-weight: 800;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 34px 0 96px;
    margin-top: 36px;
  }

  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
    padding: 0 0 28px;
    border-radius: 0;
  }

  .footer-newsletter h2 {
    font-size: 1.7rem;
  }

  .footer-newsletter-points,
  .footer-newsletter-row {
    grid-template-columns: 1fr;
  }

  .footer-newsletter-row button {
    width: 100%;
  }

  .footer-newsletter-art {
    justify-items: start;
    min-height: 132px;
  }

  .footer-newsletter-mark {
    width: 118px;
    height: 118px;
  }

  .footer-newsletter-discount {
    right: auto;
    left: 86px;
    bottom: 2px;
    width: 94px;
    height: 94px;
  }

  .footer-grid {
    display: block;
    padding-top: 28px;
    margin-bottom: 28px;
  }

  .footer-col {
    margin-bottom: 0;
  }

  .footer-col:first-child {
    margin-bottom: 22px;
  }

  .footer-accordion {
    border-top: 1px solid var(--border);
  }

  .footer-accordion:last-of-type {
    border-bottom: 1px solid var(--border);
  }

  .footer-accordion summary {
    min-height: 54px;
    padding: 16px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-col h4:not(.footer-brand) {
    margin-bottom: 0;
    font-size: 1rem;
  }

  .footer-accordion-icon {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex: 0 0 auto;
  }

  .footer-accordion[open] .footer-accordion-icon {
    transform: rotate(225deg);
    border-color: var(--accent);
  }

  .footer-accordion .footer-links-list,
  .footer-accordion .footer-desc,
  .footer-accordion .payment-methods {
    padding: 0 2px 18px;
  }

  .footer-links-list {
    gap: 10px;
  }

  .footer-links-list a {
    display: block;
    padding: 5px 0;
  }
}

/* ==========================================================================
   MEDIA QUERIES (RWD)
   ========================================================================== */
@media (max-width: 900px) {
  #categoriesGrid {
    grid-auto-rows: 200px;
  }

  .cart-cross-sell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .game-hero-showcase {
    max-width: 520px;
  }

  .game-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .cart-item {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }
  .cart-summary { align-items: flex-start; }
  
  .checkout-steps { flex-wrap: wrap; gap: 16px 0; }
  .checkout-steps li { flex: 1 1 50%; }
  .checkout-steps li::after { display: none; } /* Hide lines on mobile */
  
  .checkout-actions { flex-direction: column; }
  .checkout-actions .btn { width: 100%; margin-left: 0 !important; }
  
  .admin-order-filters { grid-template-columns: 1fr; }
  .order-details-grid { grid-template-columns: 1fr; }

  .cart-cross-sell {
    padding: 14px;
  }

  .cart-cross-sell-head,
  .game-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .cart-cross-sell-grid {
    grid-template-columns: 1fr;
  }

  .game-landing {
    padding-top: 12px;
  }

  .game-landing-hero {
    padding: 24px 18px;
  }

  .game-hero-copy h1 {
    font-size: 2.7rem;
  }

  .game-hero-actions .btn {
    width: 100%;
  }

  .game-hero-showcase {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }

  .game-hero-showcase a,
  .game-hero-showcase img {
    min-height: 170px;
  }

  .game-hero-showcase a:nth-child(2) {
    transform: translateY(-12px);
  }

  .game-product-rail {
    grid-auto-columns: minmax(190px, 78vw);
  }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .site-header { flex-wrap: wrap; }
  #categoriesGrid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .hero { padding: 30px 16px; }
}

/* ==========================================================================
   MODAL KOSZYKA (APP-MODAL) - POPRAWKA
   ========================================================================== */
.app-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.app-modal.hidden {
  display: none;
}

.app-modal-content {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.app-modal-content .close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.app-modal-content .close:hover {
  color: var(--accent);
}

.app-modal-content h2, 
.app-modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

#checkoutForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#checkoutForm input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

#checkoutForm input:focus {
  border-color: var(--accent);
}

#checkoutForm button[type="submit"] {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

#checkoutForm button[type="submit"]:hover {
  background: var(--accent-hover);
}


/* ==========================================================================
   POPRAWKI MOBILNE: WYŚRODKOWANE LOGO I WYSZUKIWARKA
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Zmiana układu górnej części nagłówka na kolumnowy */
  .header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-bottom: 5px;
  }

  /* Wyśrodkowanie kontenera logo */
  .header-logo {
    margin: 0 auto;
    justify-content: center;
    min-width: unset;
  }

  /* Rozciągnięcie wyszukiwarki i ustawienie marginesów */
  .header-search {
    width: 100%;
    max-width: 600px; /* Chroni przed zbyt mocnym rozciągnięciem na tabletach */
  }
  
  /* Ukrycie panelu w nagłówku, gdybyś zapomniał go przenieść w HTML */
  .header-top > .site-pref-controls {
    display: none; 
  }
}

/* ==========================================================================
   NOWY, CZYSTY WYGLĄD WYBORU JĘZYKA I WALUTY (W MENU)
   ========================================================================== */
/* Zmiana z ciasnego paska na estetyczny, przestrzenny blok */
.site-pref-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: unset;
  padding: 16px;
  margin-top: 20px; /* Odstęp od linków w menu */
  background: rgba(255, 255, 255, 0.04); /* Subtelne, ciemne tło panelu */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  justify-content: center;
  align-items: stretch;
}

/* Duże, równe przyciski flag */
.site-lang-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.site-lang-option {
  flex: 1; /* Flagi zajmują po równo 50% szerokości */
  display: flex;
  justify-content: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

/* Szeroki, czytelny wybór waluty */
.site-pref-select {
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 0.95rem;
}

/* Wycentrowany tekst kursu walut */
.site-rate-info {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Finalny wyglad mobilnego wyboru jezyka, waluty i dostawy. */
.site-pref-controls {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  min-width: unset;
  gap: 0;
  padding: 0;
  margin-top: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  justify-content: center;
}

.site-pref-toggle {
  width: 72px;
  height: 40px;
  border: 1px solid rgba(181, 220, 255, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.site-pref-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1080;
  width: min(380px, calc(100vw - 32px));
  color: #333;
}

.site-lang-option {
  min-height: 70px;
  display: grid;
  grid-template-columns: 30px 46px 1fr;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #c9cdd2;
  color: #4b5563;
  font-size: 1.35rem;
  font-weight: 400;
  cursor: pointer;
}

.site-pref-select {
  width: 100%;
  max-width: 100%;
  min-height: 100px;
  border: 1px solid #c9cdd2;
  border-radius: 0;
  background: #fff;
  color: #333;
  text-align: left;
  font-size: 1.35rem;
  font-weight: 400;
  padding: 0 56px 0 28px;
  appearance: none;
  cursor: pointer;
}

.site-rate-info {
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .site-pref-panel {
    left: 0;
    right: auto;
  }
}

@media (max-width: 575.98px) {
  .site-pref-panel-inner {
    gap: 12px;
    padding: 22px 30px 26px;
  }

  .site-lang-option {
    min-height: 56px;
  }

  .site-pref-select {
    min-height: 72px;
  }

  .site-pref-field::after {
    bottom: 17px;
  }

  .site-pref-apply {
    min-height: 56px;
  }

  .site-pref-section-title,
  .site-pref-field > span,
  .site-lang-option,
  .site-pref-select {
    font-size: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .site-header {
    background: #fff !important;
    color: #111;
    padding: 0;
    border-bottom-color: #d8d8d8 !important;
  }

  .site-header .site-container {
    padding-left: 0;
    padding-right: 0;
  }

  .header-shell {
    gap: 0;
  }

  .header-top {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
  }

  .header-logo {
    margin: 0;
    min-width: 0;
  }

  .header-logo-img {
    width: 150px;
    height: 46px;
  }

  .header-actions {
    display: flex;
    gap: 0;
    margin-left: auto;
  }

  .header-actions .header-utility,
  .header-actions .header-cart {
    display: none;
  }

  .site-pref-toggle {
    width: 58px;
    height: 38px;
    border-color: #d5d5d5;
    background: #fff;
    color: #111;
  }

  .site-pref-panel {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .header-search {
    display: none;
    order: 5;
    width: 100%;
    max-width: none;
    margin: 4px 0 2px;
  }

  .header-search.is-mobile-open {
    display: block;
  }

  .mobile-action-bar {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 78px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #d8d8d8;
    border-bottom: 0;
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
  }

  .mobile-action {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0;
    min-height: 78px;
    padding: 5px 2px 7px;
    color: #111;
    font-size: 1.34rem;
    font-weight: 400;
    line-height: 1.05;
  }

  .mobile-action:hover,
  .mobile-action:focus-visible {
    color: #111;
    background: #f5f5f5;
  }

  .mobile-cart-action {
    font-weight: 800;
  }

  .mobile-menu-panel:not([hidden]) {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 1199;
    max-height: min(68vh, 460px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #d8d8d8;
    box-shadow: 0 -14px 28px rgba(15, 23, 42, 0.14);
  }

  .mobile-menu-panel a {
    padding: 14px 18px;
    border-bottom: 1px solid #eeeeee;
    color: #111;
    text-decoration: none;
    font-weight: 700;
  }

  .mobile-menu-panel a:last-child {
    border-bottom: 0;
  }

  .header-bottom {
    display: none;
  }

  .cart-preview {
    display: none !important;
  }
}
