﻿:root {
  --bg: #fff5fa;
  --panel: #ffffff;
  --text: #2a2130;
  --muted: #7f6b79;
  --line: #f2d4e3;
  --red: #ff5fa2;
  --dark: #2e2030;
  --gold: #ff8ec0;
  --shadow: 0 22px 60px rgba(15, 23, 42, .10);
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 95, 162, .10), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(255, 142, 192, .10), transparent 18%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

a {
  text-decoration: none;
  color: inherit
}

.container {
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto
}

.header-shell {
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.header-top {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 20px;
  align-items: center;
  padding: 18px 0
}

.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1.1px;
  line-height: 1.02
}

.searchbar {
  display: flex;
  gap: 10px
}

.searchbar input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px;
  font-size: 15px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9)
}

.searchbar button,
.btn,
button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 95, 162, .24)
}

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  text-align: right;
  font-size: 14px
}

.nav-strip {
  background: var(--red)
}

.nav-strip-inner {
  display: flex;
  align-items: center;
  min-height: 56px
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center
}

.main-nav>a,
.nav-item>a {
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  transition: .2s ease;
  font-weight: 700;
  letter-spacing: .01em;
  font-size: 14px
}

.main-nav>a:hover,
.nav-item>a:hover {
  background: rgba(255, 255, 255, .12)
}

.nav-item {
  position: relative
}

.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 780px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 20px
}

.has-dropdown:hover .dropdown {
  display: block
}

.dropdown-head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 14px
}

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

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 8px
}

.dropdown-title {
  font-weight: 900;
  color: #111
}

.dropdown-link {
  color: var(--muted)
}

.dropdown-link:hover {
  color: var(--text)
}

.page-shell {
  padding: 24px 0 48px
}

.hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 28px
}

.sidebar {
  background: linear-gradient(180deg, #31343b 0%, #272a31 100%);
  color: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.sidebar-header {
  padding: 18px 20px;
  background: #262930;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .01em
}

.sidebar-body {
  padding: 8px 0
}

.cat-link,
.sub-link {
  display: block;
  padding: 13px 20px;
  color: #f3f4f6;
  transition: .2s ease
}

.cat-link:hover,
.sub-link:hover {
  background: rgba(255, 255, 255, .08)
}

.sub-link {
  padding-left: 30px;
  color: #cfd3da;
  font-size: 14px
}

.hero-banner {
  position: relative;
  min-height: 440px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .04)), #ddd
}

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

.hero-copy {
  position: absolute;
  left: 36px;
  bottom: 36px;
  max-width: 74%
}

.hero-badge {
  display: inline-block;
  background: #2e2030;
  color: #fff;
  border-radius: 18px;
  padding: 15px 22px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.02;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
  letter-spacing: -.03em
}

.hero-badge.red {
  background: #cf392f;
  margin-top: 12px
}

.hero-action {
  margin-top: 18px
}

.hero-action .btn {
  background: #d32f2f;
  color: #fff;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 16px
}

.section {
  margin-top: 26px
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 8px 0 18px
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.03em
}

.section-title .muted {
  font-size: 16px
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffe0ee;
  border: 1px solid var(--line);
  color: #2a2d35;
  font-size: 14px;
  font-weight: 700;
}

.chip.removable {
  padding-right: 12px;
}

.clear-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: #2a2d35;
}

.chip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.chip-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #2a2d35;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.pager-link.active {
  background: var(--red);
  color: #fff;
  border-color: transparent;
}

.pager-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.sticky-mobile-bar {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  gap: 10px;
}

.sticky-mobile-bar a {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: #21242b;
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.sticky-mobile-bar a:first-child {
  background: var(--red);
}

.sticky-mobile-bar a .icon {
  font-size: 16px;
  line-height: 1;
}

.site-footer {
  margin-top: 28px;
  padding: 34px 0 18px;
  background: #251622;
  color: #eef0f3;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-logo {
  color: #fff;
  font-size: 30px
}

.footer-brand p {
  color: #b8bec9;
  line-height: 1.7;
  margin: 14px 0 18px;
  max-width: 34ch;
}

.footer-contact {
  display: grid;
  gap: 6px;
}

.footer-contact strong,
.footer-col strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
}

.footer-contact a,
.footer-col a {
  color: #eef0f3;
  text-decoration: none;
  line-height: 1.7;
}

.footer-col {
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: #cfd4dc
}

.footer-col a:hover,
.footer-contact a:hover {
  color: #fff
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #98a1af;
  font-size: 13px;
  line-height: 1.5;
}

.legal-page {
  padding-top: 14px
}

.legal-content {
  padding: 28px;
  line-height: 1.75
}

.store-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
  margin: 8px 0 28px;
}

.store-hero-text {
  background: linear-gradient(135deg, #fff 0%, #fbf8f2 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.store-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 800;
}

.store-hero-text h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
  margin: 0 0 14px;
  max-width: 12ch;
}

.store-hero-text p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 58ch;
  margin: 0;
}

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

.store-hero-card {
  background: linear-gradient(180deg, #2a2d35 0%, #1f2229 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.store-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.home-hero-card {
  padding: 28px;
}

.home-hero-panel {
  width: 100%;
  min-height: 100%;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 95, 162, .16), transparent 35%),
    linear-gradient(180deg, #2e2030 0%, #ff7ab4 100%);
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.home-hero-panel strong {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.home-hero-panel span {
  color: #d7dbe3;
  line-height: 1.6;
}

.home-hero-label {
  display: inline-flex;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 8px 0 24px;
}

.home-hero-copy {
  background: linear-gradient(135deg, #2e2030 0%, #ff4d96 100%);
  color: #fff;
  border-radius: 28px;
  padding: 26px 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .06);
}

.home-hero-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 13ch;
}

.home-hero-copy p {
  margin: 0;
  color: #d7dbe3;
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
}

.home-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.home-badges span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.home-feature-card,
.home-cta-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.home-feature-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.home-feature-copy {
  padding: 16px 18px 18px;
}

.home-feature-copy span {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.home-feature-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -.03em;
}

.home-feature-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.category-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin
}

.category-slide {
  flex: 0 0 clamp(240px, 30vw, 360px);
  scroll-snap-align: start;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.category-slider::-webkit-scrollbar {
  height: 8px
}

.category-slider::-webkit-scrollbar-thumb {
  background: #f2bfd5;
  border-radius: 999px
}

.card-soft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px
}



.home-quick a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8f3ea;
  border: 1px solid var(--line);
  font-weight: 800;
}

.home-quick a::after {
  content: '→';
  color: var(--red);
}

.home-slider {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  margin: 0 0 22px;
}

.home-slide-main {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  background: linear-gradient(135deg, #171a20 0%, #2a2f38 100%);
  color: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}

.home-slide-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-slide-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .96;
  letter-spacing: -.05em;
  max-width: 12.5ch;
}

.home-slide-copy p {
  margin: 0;
  color: #d6d9e1;
  font-size: 17px;
  line-height: 1.75;
  max-width: 55ch;
}

.home-slider-stage {
  position: relative;
  min-height: 290px;
  margin: 4px 0 18px;
}

.home-slider-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

.home-slider-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-slider-item h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .96;
  letter-spacing: -.05em;
  max-width: 12.5ch;
}

.home-slider-item p {
  margin: 0;
  color: #d6d9e1;
  font-size: 17px;
  line-height: 1.75;
  max-width: 55ch;
}

.home-slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.home-slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.home-slider-dots span.is-active {
  width: 28px;
  background: #fff;
}

.home-slider-controls {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.home-slider-btn {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: none;
}

.home-slide-image {
  background: #0f1116;
}

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

.home-slide-thumbs {
  display: grid;
  gap: 12px;
}

.home-slide-thumb {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.home-slide-thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
}

.home-slide-thumb strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.2;
}

.home-slide-thumb span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.promo-main,
.promo-card,
.product-summary,
.product-gallery-main {
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.promo-main {
  background: linear-gradient(135deg, #1e2128 0%, #2d313b 100%);
  color: #fff;
  padding: 34px;
}

.promo-main h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.05em;
  max-width: 12ch;
}

.promo-main p {
  margin: 0;
  color: #d3d8e2;
  line-height: 1.75;
  max-width: 60ch;
}

.promo-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 22px;
}

.promo-metrics div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
}

.promo-metrics strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.promo-metrics span {
  color: #d3d8e2;
  line-height: 1.45;
}

.promo-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.promo-card {
  background: #fff;
  padding: 20px;
}

.promo-card.accent {
  background: linear-gradient(135deg, rgba(255, 95, 162, .12), #fff);
}

.promo-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.promo-card span {
  color: var(--muted);
  line-height: 1.6;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.feature-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card span {
  color: var(--muted);
  line-height: 1.6;
}

.catalog-hero {
  margin-bottom: 18px;
}

.catalog-hero-card {
  position: relative;
}

.catalog-hero-caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.catalog-hero-caption span {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.catalog-hero-caption strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.03em;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.category-rail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
}

.category-rail-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.category-rail-card strong {
  display: block;
  padding: 14px 14px 16px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.category-slider.offer-slider {
  padding: 2px 2px 14px;
  margin: 0 0 22px;
}

.category-slide-wide {
  min-height: 220px;
}

.category-slide-wide .tile-label {
  font-size: 17px;
}

.catalog-content {
  padding-top: 22px;
}

.catalog-content.is-loading {
  position: relative;
  opacity: .72;
}

.catalog-content.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 95, 162, .08), transparent);
  animation: catalogShimmer 1.1s linear infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes catalogShimmer {
  from {
    transform: translateX(-40%)
  }

  to {
    transform: translateX(40%)
  }
}

.quick-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #2a2d35;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.quick-filter.active {
  background: var(--dark);
  color: #fff;
  border-color: transparent;
}

.filter-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 4px 0 12px;
  color: #fff;
}

.filter-check input {
  width: auto;
  margin: 0;
}

.product-card-compact .product-img {
  height: 210px;
}

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

.compact-grid .product-body {
  padding: 16px;
}

.premium-product {
  padding: 0;
  overflow: hidden;
}

.product-gallery-main {
  background: #fff;
  padding: 16px;
}

.product-summary {
  background: linear-gradient(180deg, #fff 0%, #fbf8f2 100%);
  padding: 28px;
}

.product-summary h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.05em;
}

.product-breadcrumb {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
}

.product-price-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 18px 0;
}

.product-price-box small {
  color: var(--muted);
  font-weight: 600;
}

.product-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.product-highlight span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #2a2d35;
  font-size: 13px;
  font-weight: 700;
}

.product-lead {
  color: #30343c;
  line-height: 1.8;
  font-size: 16px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.product-badges span,
.product-meta-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}

.product-badges span {
  font-weight: 700;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.product-meta-grid strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.product-meta-grid span {
  font-weight: 700;
}

.mobile-filter-toggle {
  display: none;
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: 0 0 12px;
  width: 100%;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
}

.mobile-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  background: #fff;
  transform: translateX(102%);
  transition: .25s ease;
  z-index: 49;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.mobile-filter-drawer.is-open {
  transform: translateX(0)
}

.mobile-filter-drawer .mobile-drawer-body {
  padding-top: 8px
}

.mobile-filter-drawer .clear-filters {
  margin: 10px 18px 0
}

.mobile-filter-drawer .sidebar-body,
.mobile-filter-drawer form {
  background: #fff;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto
}

body.menu-open .mobile-filter-drawer,
body.menu-open .mobile-drawer {
  pointer-events: auto;
}

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

.tile {
  position: relative;
  min-height: 200px;
  border-radius: 22px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: var(--shadow)
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: .25s ease
}

.tile:hover img {
  transform: scale(1.03)
}

.tile-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.08;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.tile-label small {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold)
}

.tile-label span {
  display: block
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start
}

.content,
.product-detail,
.admin-card,
.form-card,
.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow)
}

.content {
  padding: 22px
}

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

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

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: .2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05)
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, .10)
}

.product-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #f3f3f3;
  display: block
}

.product-body {
  padding: 20px
}

.product-meta {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px
}

.price {
  font-weight: 900;
  font-size: 20px;
  margin-top: 10px;
  letter-spacing: -.02em
}

.muted {
  color: var(--muted)
}

.btn.secondary {
  background: #ece7de;
  color: #111;
  box-shadow: none
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  margin: 8px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text)
}

table {
  width: 100%;
  border-collapse: collapse
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top
}

.flash {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px
}

.flash.ok {
  background: #e9f8ef;
  border: 1px solid #b9e7c8
}

.flash.err {
  background: #fdecec;
  border: 1px solid #f2bcbc
}

.product-detail {
  padding: 24px
}

.product-gallery {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: start
}

.main-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line)
}

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

.thumbs img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line)
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.admin-card {
  padding: 22px
}

.admin-card table img {
  border: 1px solid var(--line);
  background: #f8f8f8
}

.hero h1,
.content h2,
.product-detail h1,
.admin-card h1 {
  margin-top: 0
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  background: #21242b;
  color: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-sidebar-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-weight: 900;
  letter-spacing: .02em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
}

.admin-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #e5e7eb;
  background: transparent;
  transition: .2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-hero {
  background: linear-gradient(135deg, #fff 0%, #faf6ef 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.admin-hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -.04em
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.65
}

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

.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.admin-stat strong {
  display: block;
  font-size: 28px;
  letter-spacing: -.04em;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-panel h2,
.admin-panel h1 {
  margin-top: 0
}

.mobile-menu-btn {
  display: none
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 48
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(88vw, 340px);
  background: #fff;
  z-index: 50;
  transform: translateX(-102%);
  transition: .25s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #faf8f4
}

.mobile-drawer-body {
  padding: 12px 0;
  overflow: auto
}

.mobile-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-weight: 700
}

.mobile-cat img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line)
}

.mobile-subs {
  padding: 0 18px 10px 66px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.mobile-sub {
  color: var(--muted);
  font-size: 14px
}

.mobile-sub:hover {
  color: var(--text)
}

.menu-open {
  overflow: hidden
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto
}

.mobile-drawer.is-open {
  transform: translateX(0)
}

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

  .contact-box {
    align-items: flex-start;
    text-align: left
  }

  .hero,
  .layout,
  .product-gallery,
  .home-split,
  .feature-grid,
  .compact-grid,
  .home-hero {
    grid-template-columns: 1fr
  }

  .category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

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

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

  .dropdown {
    min-width: calc(100vw - 32px);
    left: 0
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 20px, 100%)
  }

  .page-shell {
    padding: 14px 0 28px
  }

  .header-top {
    padding: 14px 0;
    gap: 12px
  }

  .brand {
    font-size: 24px
  }

  .searchbar {
    flex-direction: column
  }

  .searchbar button {
    width: 100%
  }

  .nav-strip-inner {
    min-height: auto;
    padding: 10px 0
  }

  .main-nav {
    gap: 8px;
    justify-content: space-between;
    width: 100%
  }

  .main-nav>a,
  .nav-item>a {
    padding: 9px 12px;
    font-size: 14px
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 10px;
    box-shadow: none;
    border-radius: 14px;
    padding: 14px;
    overflow: auto
  }

  .has-dropdown:hover .dropdown {
    display: block
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .hero {
    gap: 14px;
    grid-template-columns: 1fr
  }

  .mobile-menu-btn {
    display: inline-flex;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px
  }

  .nav-item.has-dropdown {
    display: none
  }

  .sidebar {
    border-radius: 12px
  }

  .sidebar-header {
    padding: 14px 16px
  }

  .cat-link,
  .sub-link {
    padding: 11px 16px
  }

  .hero-banner {
    min-height: 280px;
    border-radius: 12px
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none
  }

  .hero-badge {
    font-size: 22px;
    padding: 10px 14px;
    border-radius: 14px
  }

  .hero-action .btn {
    font-size: 15px;
    padding: 11px 18px
  }

  .tile-grid,
  .product-grid {
    grid-template-columns: 1fr
  }

  .tile {
    min-height: 150px
  }

  .product-img {
    height: 220px
  }

  .content,
  .product-detail,
  .admin-card,
  .form-card,
  .summary {
    border-radius: 14px
  }

  .content {
    padding: 14px
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start
  }

  .product-gallery {
    gap: 16px
  }

  .main-photo {
    border-radius: 14px
  }

  .thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .thumbs img {
    flex: 0 0 84px;
    height: 68px;
    scroll-snap-align: start;
  }

  .toolbar {
    flex-direction: column
  }

  .toolbar .btn,
  .toolbar button,
  .toolbar form {
    width: 100%
  }

  .layout {
    gap: 16px
  }

  .header-shell .contact-box span.muted {
    display: none
  }

  .section-head {
    margin-bottom: 14px
  }

  .section {
    margin-top: 16px
  }

  .home-hero {
    grid-template-columns: 1fr;
    margin: 6px 0 18px
  }

  .home-hero-copy {
    padding: 20px
  }

  .home-hero-copy h1 {
    font-size: 28px;
    max-width: none
  }

  .home-hero-copy p {
    font-size: 16px
  }

  .home-stats {
    grid-template-columns: 1fr
  }

  .catalog-hero-caption {
    left: 16px;
    right: 16px;
    bottom: 16px
  }

  .category-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

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

  .product-summary {
    padding: 20px
  }

  .contact-box .contact-email {
    display: none
  }

  .desktop-filters {
    display: none
  }

  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center
  }

  .admin-shell {
    grid-template-columns: 1fr
  }

  .admin-sidebar {
    position: static
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .sticky-mobile-bar {
    display: flex
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr
  }

  .footer-bottom {
    flex-direction: column
  }
}

@media (max-width: 520px) {
  .header-top {
    padding: 12px 0
  }

  .brand {
    font-size: 22px
  }

  .contact-box strong {
    font-size: 14px
  }

  .nav-strip-inner {
    padding: 8px 0
  }

  .main-nav {
    gap: 6px
  }

  .main-nav>a,
  .nav-item>a {
    padding: 8px 10px;
    font-size: 13px
  }

  .hero-banner {
    min-height: 220px
  }

  .hero-badge {
    font-size: 18px;
    max-width: 100%;
    display: block
  }

  .hero-badge.red {
    margin-top: 8px
  }

  .home-feature-copy strong {
    font-size: 18px
  }

  .home-hero-copy {
    padding: 18px
  }

  .home-hero-copy h1 {
    font-size: 24px
  }

  .home-hero-copy p {
    font-size: 15px
  }

  .home-badges span {
    font-size: 12px;
    padding: 8px 10px
  }

  .category-rail {
    grid-template-columns: 1fr
  }

  .cat-link {
    font-size: 15px
  }

  .sub-link {
    font-size: 13px
  }

  .tile-label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.08;
    display: flex;
    flex-direction: column;
    gap: 4px
  }

  .tile-label small {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold)
  }

  .tile-label span {
    display: block
  }

  .product-grid {
    gap: 14px
  }

  .product-card {
    border-radius: 10px
  }

  .product-body {
    padding: 12px
  }

  .product-img {
    height: 190px
  }

  .price {
    font-size: 18px
  }

  input,
  select,
  textarea {
    padding: 12px 12px
  }

  table {
    display: block;
    overflow-x: auto
  }

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

  .store-hero-text {
    padding: 20px
  }

  .store-hero-text h1 {
    font-size: 30px;
    max-width: none
  }

  .store-hero-text p {
    font-size: 16px
  }

  .admin-stats {
    grid-template-columns: 1fr
  }

  .chip-row {
    gap: 8px
  }

  .chip {
    padding: 9px 12px;
    font-size: 13px
  }

  .pager {
    gap: 8px
  }

  .pager-link {
    min-width: 38px;
    height: 38px
  }

  .footer-inner {
    grid-template-columns: 1fr
  }

  .legal-content {
    padding: 20px
  }

  .sticky-mobile-bar {
    left: 8px;
    right: 8px;
    bottom: 8px
  }
}

/* Final MI-DOS polish */
:root {
  --bg: #fff7fb;
  --line: #f0d5e4;
  --shadow: 0 14px 34px rgba(88, 34, 67, .08);
}

body {
  background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
}

.header-shell {
  position: sticky;
  top: 0;
  z-index: 45;
  box-shadow: 0 8px 24px rgba(88, 34, 67, .05);
}

.brand {
  letter-spacing: 0;
}

.searchbar input,
input,
select,
textarea {
  border-radius: 8px;
}

.searchbar button,
.btn,
button,
.chip,
.chip-reset,
.quick-filter,
.pager-link,
.clear-filters,
.slider-btn,
.home-badges span,
.product-highlight span {
  border-radius: 8px;
}

.nav-strip {
  background: #ff5fa2;
}

.main-nav>a,
.nav-item>a {
  border-radius: 8px;
  letter-spacing: 0;
}

.home-hero-copy,
.store-hero-text,
.store-hero-card,
.content,
.product-detail,
.admin-card,
.form-card,
.summary,
.product-card,
.tile,
.category-rail-card,
.mobile-drawer,
.mobile-filter-drawer,
.site-footer,
.catalog-hero-caption,
.tile-label,
.product-summary,
.product-gallery-main,
.main-photo,
.thumbs img {
  border-radius: 8px;
}

.home-hero-copy {
  background: linear-gradient(135deg, #3a2133 0%, #ff5fa2 100%);
}

.home-hero-copy h1,
.store-hero-text h1,
.product-summary h1,
.promo-main h2,
.admin-hero h1,
.section-title h2,
.product-card h3 {
  letter-spacing: 0;
}

.store-kicker,
.product-breadcrumb,
.product-meta,
.dropdown-head,
.footer-contact strong,
.footer-col strong,
.tile-label small {
  letter-spacing: .08em;
}

.section-title {
  align-items: center;
}

.product-card {
  box-shadow: 0 10px 24px rgba(88, 34, 67, .07);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(88, 34, 67, .10);
}

.sidebar,
.admin-sidebar {
  background: #2e2030;
  border-radius: 8px;
}

.footer-inner,
.footer-bottom {
  max-width: 1180px;
}

@media (max-width: 820px) {
  .header-shell {
    position: sticky;
    top: 0;
  }

  .header-top {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 0;
  }

  .brand {
    font-size: 24px;
  }

  .contact-box {
    align-items: flex-end;
    text-align: right;
    font-size: 13px;
  }

  .contact-box .contact-label,
  .contact-box .contact-email {
    display: none;
  }

  .searchbar {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }

  .searchbar input {
    padding: 12px 14px;
  }

  .searchbar button {
    width: auto;
    min-width: 88px;
    padding: 12px 14px;
  }

  .nav-strip-inner {
    padding: 8px 0;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-menu-btn,
  .main-nav>a,
  .nav-item>a {
    flex: 0 0 auto;
    padding: 9px 11px;
    font-size: 13px;
  }

  .nav-orders,
  .nav-admin,
  .nav-register {
    display: none;
  }

  .nav-login,
  .nav-auth[href="/logout.php"] {
    display: inline-flex;
  }

  .page-shell {
    padding-top: 12px;
  }

  .store-hero,
  .layout,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .store-hero-card {
    min-height: 220px;
  }

  .quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .quick-filter {
    flex: 0 0 auto;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-actions {
    width: 100%;
    justify-content: space-between;
  }

  .category-slide {
    flex-basis: min(78vw, 320px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 18px, 100%);
  }

  .home-hero-copy h1 {
    font-size: 24px;
    line-height: 1.08;
  }

  .home-hero-copy p,
  .store-hero-text p {
    font-size: 15px;
    line-height: 1.55;
  }

  .home-badges {
    gap: 8px;
  }

  .home-badges span {
    font-size: 12px;
  }

  .store-hero-text h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .product-img {
    height: 210px;
  }

  .site-footer {
    padding-bottom: 82px;
  }
}

.swal2-popup {
  border-radius: 22px !important;
  font-family: inherit !important;
}

.swal2-title {
  color: var(--text) !important;
  font-size: 18px !important;
}

.swal2-timer-progress-bar {
  background: var(--red) !important;
}

/* Header and account views */
.header-shell {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 213, 228, .9);
}

.header-top {
  grid-template-columns: 190px minmax(280px, 1fr) 230px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 170px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(255, 95, 162, .16);
}

.footer-brand-logo {
  height: 58px;
  max-width: 190px;
  box-shadow: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2e2030, #ff5fa2);
  color: #fff;
  font-weight: 900;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 24px;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.searchbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 10px 24px rgba(88, 34, 67, .05);
}

.searchbar input {
  border: 0;
  box-shadow: none;
  margin: 0;
}

.searchbar button {
  border-radius: 8px;
  box-shadow: none;
}

.contact-box a {
  text-decoration: none;
}

.contact-box strong {
  color: var(--text);
}

.nav-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-strip-inner {
  min-height: 48px;
}

.main-nav {
  justify-content: flex-start;
  gap: 6px;
}

.main-nav>a,
.nav-item>a,
.mobile-menu-btn {
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
}

.main-nav>a:hover,
.nav-item>a:hover,
.main-nav>a.active {
  background: #fff5fa;
  border-color: var(--line);
}

.nav-cart {
  margin-left: auto;
  background: #2e2030 !important;
  color: #fff !important;
}

.nav-login,
.nav-auth[href="/logout.php"] {
  background: #ff5fa2 !important;
  color: #fff !important;
}

.nav-register {
  border-color: var(--line) !important;
}

.mobile-menu-btn {
  display: none;
}

.auth-page {
  min-height: 58vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
  padding: 34px 0;
}

.auth-copy {
  max-width: 620px;
}

.auth-copy h1 {
  margin: 8px 0 14px;
  font-size: 42px;
  line-height: 1.06;
}

.auth-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(88, 34, 67, .08);
  padding: 28px;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-card form {
  margin-top: 18px;
}

.auth-card label {
  display: block;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}

.auth-card input {
  margin-top: 8px;
  margin-bottom: 14px;
}

.auth-card button {
  width: 100%;
  margin-top: 4px;
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--red);
  font-weight: 900;
}

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

  .brand-logo {
    height: 42px;
    max-width: 145px;
    border-radius: 8px;
  }

  .footer-brand-logo {
    height: 48px;
    max-width: 160px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .brand-copy small {
    display: none;
  }

  .contact-box strong {
    font-size: 13px;
  }

  .searchbar {
    grid-column: 1 / -1;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-cart {
    margin-left: 0;
  }

  .nav-register,
  .nav-orders,
  .nav-admin {
    display: none;
  }

  .auth-page {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0 28px;
  }

  .auth-copy h1 {
    font-size: 30px;
  }

  .auth-copy p {
    font-size: 16px;
  }

  .auth-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    height: 36px;
    max-width: 125px;
  }
}



.admin-nav-separator {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin: 8px 0;
}

.delivery-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inline-check {
  display: flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  margin: 4px 0 16px;
  font-weight: 800;
}

.inline-check input {
  width: auto;
  margin: 0;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small-btn {
  padding: 9px 12px;
  font-size: 13px;
  box-shadow: none;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff5fa;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.guest {
  background: #fff7e8;
  border-color: #f4d29a;
}

.status-pill.account {
  background: #edf8ff;
  border-color: #b9ddf2;
}

.admin-nav-separator {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin: 8px 0;
}

@media (max-width: 900px) {
  .delivery-form-grid {
    grid-template-columns: 1fr;
  }
}

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

.bank-transfer-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.bank-transfer-box div {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.bank-transfer-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 6px;
}

.bank-transfer-box strong {
  display: block;
  word-break: break-word;
}

@media (max-width: 900px) {

  .settings-grid,
  .bank-transfer-box {
    grid-template-columns: 1fr;
  }
}

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

.bank-transfer-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.bank-transfer-box div {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.bank-transfer-box span,
.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 6px;
}

.bank-transfer-box strong,
.info-grid strong {
  display: block;
  word-break: break-word;
}

@media (max-width: 900px) {

  .settings-grid,
  .bank-transfer-box {
    grid-template-columns: 1fr;
  }
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.checkout-address-grid {
  grid-template-columns: 160px 1fr;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.payment-box {
  margin: 10px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff7fb;
  border-radius: 10px;
}

.payment-box h3 {
  margin-top: 0;
}

.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  border-radius: 10px;
}

.radio-card input {
  width: auto;
  margin: 4px 0 0;
}

.radio-card strong {
  display: block;
  margin-bottom: 4px;
}

.radio-card small {
  color: var(--muted);
  line-height: 1.5;
}

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 18px;
}

.terms-check input {
  width: auto;
  margin: 3px 0 0;
}

.terms-check a {
  color: var(--red);
  font-weight: 800;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  font-size: 20px;
  border-bottom: 0;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

.order-stat-link {
  text-decoration: none;
  color: inherit;
  transition: .2s ease;
}

.order-stat-link:hover {
  transform: translateY(-2px);
}

.order-stat-link.active {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.status-pill.status-new {
  background: #eef6ff;
  border-color: #b8daf5;
}

.status-pill.status-waiting {
  background: #fff8e8;
  border-color: #f0d28d;
}

.status-pill.status-paid {
  background: #eefaf1;
  border-color: #b9e4c3;
}

.status-pill.status-process {
  background: #f2efff;
  border-color: #cfc4f6;
}

.status-pill.status-sent {
  background: #eafaf8;
  border-color: #aee3dc;
}

.status-pill.status-cancelled {
  background: #fff0f0;
  border-color: #efb9b9;
}

.nav-check-order {
  border-color: var(--line) !important;
}

@media (max-width: 820px) {
  .nav-check-order {
    display: none !important;
  }
}

.account-orders-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  background: linear-gradient(135deg, #2e2030 0%, #ff5fa2 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.account-orders-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.account-orders-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.6;
  max-width: 58ch;
}

.account-orders-hero-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  place-content: center;
  text-align: center;
}

.account-orders-hero-card strong {
  font-size: 42px;
  line-height: 1;
}

.account-orders-hero-card span {
  color: rgba(255, 255, 255, .82);
  margin-top: 8px;
}

.empty-orders-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-orders-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-orders-card h2 {
  margin: 0 0 8px;
}

.customer-orders-list {
  display: grid;
  gap: 18px;
}

.customer-order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.customer-order-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.customer-order-number {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.customer-order-total {
  text-align: right;
  min-width: 150px;
}

.customer-order-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 4px;
}

.customer-order-total strong {
  font-size: 24px;
}

.customer-order-statuses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.customer-order-statuses>div {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.customer-order-statuses span,
.customer-order-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 6px;
}

.customer-order-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #fff8e8;
  border: 1px solid #f0d28d;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.customer-order-alert span {
  color: var(--muted);
  line-height: 1.5;
}

.customer-order-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.customer-order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.customer-order-item img {
  width: 72px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.customer-order-item-info {
  display: grid;
  gap: 4px;
}

.customer-order-item-price {
  text-align: right;
  white-space: nowrap;
}

.customer-order-item-price span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.customer-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.customer-order-summary>div {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.customer-order-summary strong {
  font-size: 18px;
}

.customer-order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 900px) {

  .account-orders-hero,
  .customer-order-statuses,
  .customer-order-summary {
    grid-template-columns: 1fr;
  }

  .customer-order-head {
    flex-direction: column;
  }

  .customer-order-total {
    text-align: left;
  }

  .customer-order-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .customer-order-item img {
    width: 58px;
    height: 52px;
  }

  .customer-order-item-price {
    grid-column: 1 / -1;
    text-align: left;
  }

  .customer-order-alert {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cart-items-list {
  display: grid;
  gap: 12px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}

.cart-item-card.has-problem {
  border-color: #efb9b9;
  background: #fff7f7;
}

.cart-item-img {
  width: 96px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.cart-item-main {
  display: grid;
  gap: 8px;
}

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

.cart-item-title strong {
  font-size: 17px;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.cart-item-alert,
.cart-stock-warning {
  background: #fff0f0;
  border: 1px solid #efb9b9;
  color: #7c2525;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.cart-stock-warning {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.cart-stock-warning span {
  font-weight: 500;
  line-height: 1.5;
}

.cart-item-controls {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.cart-item-controls label {
  font-weight: 800;
  font-size: 13px;
}

.cart-item-controls input {
  margin: 6px 0 0;
}

.cart-line-total {
  font-size: 18px;
  text-align: right;
}

@media (max-width: 900px) {
  .cart-item-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-item-img {
    width: 72px;
    height: 64px;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
  }

  .cart-line-total {
    text-align: left;
  }
}

.product-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.product-edit-preview {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-edit-preview img {
  width: 160px;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.product-edit-preview h3 {
  margin-top: 0;
}

@media (max-width: 900px) {

  .product-edit-grid,
  .product-edit-preview {
    grid-template-columns: 1fr;
  }

  .product-edit-preview img {
    width: 100%;
    height: 220px;
  }
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.product-page-modern {
  padding-top: 34px;
}

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

.product-gallery-box,
.product-summary-modern {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.product-gallery-box {
  padding: 18px;
}

.product-main-image-wrap {
  position: relative;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  height: 520px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.product-stock-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.product-stock-badge.available {
  background: #eefaf1;
  color: #256b35;
  border: 1px solid #b9e4c3;
}

.product-stock-badge.unavailable {
  background: #fff0f0;
  color: #8b2727;
  border: 1px solid #efb9b9;
}

.product-thumbs-modern {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 12px;
}

.product-thumb-btn {
  width: 82px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}

.product-thumb-btn.active {
  border-color: var(--red);
}

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

.product-summary-modern {
  padding: 24px;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.product-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  color: var(--red);
}

.product-summary-modern h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.modern-price-box {
  margin: 0 0 16px;
}




.product-description-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 18px 0;
}

.product-description-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.product-description-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.product-buy-box {
  margin: 18px 0;
}

.product-buy-form {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.product-buy-form label {
  font-weight: 900;
  font-size: 13px;
}

.product-buy-form input {
  margin-top: 6px;
}

.product-buy-note {
  margin: 10px 0 0;
}

.product-unavailable-box {
  background: #fff8e8;
  border: 1px solid #f0d28d;
  border-radius: 14px;
  padding: 16px;
}

.product-unavailable-box p {
  line-height: 1.6;
}

.product-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}



@media (max-width: 1000px) {
  .product-page-grid {
    grid-template-columns: 1fr;
  }

  .product-main-image {
    height: 420px;
  }
}

@media (max-width: 600px) {

  .product-gallery-box,
  .product-summary-modern {
    border-radius: 14px;
  }

  .product-main-image {
    height: 300px;
  }

  .product-status-panel {
    grid-template-columns: 1fr;
  }

  .product-buy-form {
    grid-template-columns: 1fr;
  }
}

.clean-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8b7282;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.clean-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.clean-breadcrumb a:hover {
  color: var(--red);
}

.clean-product-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #24182a;
}

.clean-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.clean-price {
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  color: #24182a;
}

.clean-tax {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.clean-stock {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.clean-stock.available {
  background: #eefaf1;
  color: #256b35;
  border: 1px solid #b9e4c3;
}

.clean-stock.unavailable {
  background: #fff0f0;
  color: #8b2727;
  border: 1px solid #efb9b9;
}

.clean-product-short-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  background: #fff;
}

.clean-product-short-info div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.clean-product-short-info div:last-child {
  border-bottom: 0;
}

.clean-product-short-info span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.clean-product-short-info strong {
  text-align: right;
  color: #24182a;
}

.clean-description {
  margin: 0 0 22px;
}

.clean-description h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #24182a;
}

.clean-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.clean-buy-box {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 22px 0 16px;
}

.clean-buy-form {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.clean-buy-form label {
  font-size: 13px;
  font-weight: 900;
  color: #24182a;
}

.clean-buy-form input {
  margin-top: 6px;
  height: 46px;
}

.clean-add-btn {
  height: 46px;
}

.clean-buy-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.clean-unavailable-box {
  background: #fff8e8;
  border: 1px solid #f0d28d;
  border-radius: 14px;
  padding: 16px;
}

.clean-unavailable-box p {
  color: var(--muted);
  line-height: 1.6;
}

.clean-product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.clean-details-table {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.clean-details-table div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.clean-details-table span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.clean-details-table strong {
  color: #24182a;
  text-align: right;
}

@media (max-width: 600px) {
  .clean-price-row {
    flex-direction: column;
  }

  .clean-buy-form {
    grid-template-columns: 1fr;
  }

  .clean-product-short-info div,
  .clean-details-table div {
    flex-direction: column;
    gap: 4px;
  }

  .clean-product-short-info strong,
  .clean-details-table strong {
    text-align: left;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(36, 24, 42, .52);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  transition: opacity .22s ease;
}

.cookie-modal-backdrop.active {
  opacity: 1;
}

.cookie-modal-backdrop[hidden] {
  display: none;
}

.cookie-modal {
  width: min(620px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(36, 24, 42, .28);
  padding: 26px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  transform: translateY(16px) scale(.98);
  transition: transform .22s ease;
}

.cookie-modal-backdrop.active .cookie-modal {
  transform: translateY(0) scale(1);
}

.cookie-modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 28px;
}

.cookie-modal-content h2 {
  margin: 0 0 10px;
  color: #24182a;
  font-size: 26px;
  line-height: 1.1;
}

.cookie-modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cookie-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.cookie-modal-links a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.cookie-modal-links a:hover {
  text-decoration: underline;
}

.cookie-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .cookie-modal {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .cookie-modal-icon {
    width: 52px;
    height: 52px;
  }

  .cookie-modal-actions {
    justify-content: stretch;
  }

  .cookie-modal-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.legal-page {
  padding-top: 34px;
}

.legal-hero {
  background: linear-gradient(135deg, #2e2030 0%, #ff5fa2 100%);
  color: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.legal-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.legal-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .84);
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.legal-sidebar a {
  color: #24182a;
  text-decoration: none;
  font-weight: 850;
  padding: 11px 12px;
  border-radius: 10px;
}

.legal-sidebar a:hover {
  background: #fff7fb;
  color: var(--red);
}

.legal-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.legal-content section {
  scroll-margin-top: 110px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 12px;
  color: #24182a;
  font-size: 26px;
}

.legal-content h3 {
  margin: 18px 0 8px;
  color: #24182a;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-content ul {
  margin-top: 8px;
  padding-left: 22px;
}

.legal-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.legal-card {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.legal-card h3 {
  margin-top: 0;
}

.legal-card p {
  margin-bottom: 0;
}

.legal-note {
  background: #fff8e8;
  border: 1px solid #f0d28d;
  border-radius: 14px;
  padding: 16px;
  color: #5f4516;
  line-height: 1.6;
  margin: 18px 0;
}

.legal-contact-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.legal-contact-box div {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.legal-contact-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  margin-bottom: 6px;
}

.legal-contact-box strong {
  color: #24182a;
  word-break: break-word;
}

.legal-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-card-list,
  .legal-contact-box {
    grid-template-columns: 1fr;
  }
}

.home-new-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 28px;
  align-items: stretch;
  margin: 26px 0 34px;
}

.home-new-hero-copy {
  background: linear-gradient(135deg, #2e2030 0%, #ff5fa2 100%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-new-hero-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .92;
  letter-spacing: -.055em;
  max-width: 860px;
}

.home-new-hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.65;
}

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

.home-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.home-trust-row div {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 16px;
}

.home-trust-row strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.home-trust-row span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
  font-size: 13px;
}

.home-new-hero-product {
  min-height: 520px;
}

.hero-product-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.hero-product-img-wrap {
  position: relative;
  background: #fff7fb;
  min-height: 340px;
}

.hero-product-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.hero-product-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  background: #fff;
  color: #24182a;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.hero-product-content {
  padding: 22px;
}

.hero-product-content>span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.hero-product-content h2 {
  margin: 0 0 12px;
  color: #24182a;
  font-size: 28px;
  line-height: 1.1;
}

.hero-product-content strong {
  display: block;
  color: var(--red);
  font-size: 26px;
  margin-bottom: 16px;
}

.home-quick-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 34px;
}

.home-quick-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: #24182a;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(36, 24, 42, .14);
}

.home-quick-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #fff7fb;
  color: var(--red);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 950;
  margin-bottom: 16px;
}

.home-quick-card strong {
  display: block;
  font-size: 21px;
  margin-bottom: 8px;
}

.home-quick-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-category-slider {
  padding-bottom: 8px;
}

.home-category-tile {
  min-width: 270px;
}

.home-featured-grid {
  margin-top: 10px;
}

.home-benefits-section {
  margin: 36px 0;
}

.home-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.home-benefit-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 25px;
  margin-bottom: 16px;
}

.home-benefit-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #24182a;
}

.home-benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 36px 0;
}

.home-contact-cta h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: #24182a;
  letter-spacing: -.035em;
}

.home-contact-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1050px) {
  .home-new-hero {
    grid-template-columns: 1fr;
  }

  .home-new-hero-copy,
  .home-new-hero-product {
    min-height: auto;
  }

  .hero-product-img-wrap img {
    max-height: 420px;
  }

  .home-quick-section,
  .home-benefits-grid {
    grid-template-columns: 1fr;
  }

  .home-contact-cta {
    grid-template-columns: 1fr;
  }

  .home-contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  .home-new-hero {
    margin-top: 14px;
  }

  .home-new-hero-copy {
    border-radius: 18px;
    padding: 26px;
  }

  .home-new-hero-copy h1 {
    font-size: 42px;
  }

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

  .hero-product-card,
  .home-quick-card,
  .home-benefit-card,
  .home-contact-cta {
    border-radius: 16px;
  }
}

.product-image-edit-box {
  display: grid;
  gap: 14px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.product-image-edit-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  margin-bottom: 8px;
}

.product-edit-cover-img {
  width: 180px;
  height: 135px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

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

.admin-gallery-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.admin-gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.admin-gallery-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-gallery-actions form,
.admin-gallery-actions button {
  width: 100%;
}

.admin-gallery-item.is-main {
  border-color: #ff5fa2;
  box-shadow: 0 0 0 2px rgba(255, 95, 162, .18);
}

.admin-gallery-img-wrap {
  position: relative;
}

.admin-gallery-img-wrap span {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5fa2;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.category-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}

.category-edit-preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f6f6;
  margin-top: 8px;
}

code {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 7px;
  color: #2a2130;
  font-weight: 800;
}

button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .category-edit-grid {
    grid-template-columns: 1fr;
  }
}

.category-modern-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 22px;
  align-items: stretch;
  margin: 26px 0 26px;
}

.category-modern-copy {
  background: linear-gradient(135deg, #2e2030 0%, #ff5fa2 100%);
  color: #fff;
  border-radius: 22px;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-modern-copy .clean-breadcrumb {
  color: rgba(255, 255, 255, .75);
}

.category-modern-copy .clean-breadcrumb a {
  color: rgba(255, 255, 255, .86);
}

.category-modern-copy .store-kicker {
  color: rgba(255, 255, 255, .78);
}

.category-modern-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .9;
  letter-spacing: -.055em;
}

.category-modern-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.65;
}

.category-modern-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.category-modern-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 520px;
}

.category-modern-stats div {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 14px;
}

.category-modern-stats strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.category-modern-stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 800;
}

.category-modern-image {
  position: relative;
  min-height: 390px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-modern-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  display: block;
}

.category-modern-image-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.category-modern-image-caption span {
  display: block;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.category-modern-image-caption strong {
  display: block;
  color: #24182a;
  font-size: 22px;
  line-height: 1.1;
}

.category-subnav-section {
  margin: 26px 0;
}

.category-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-subnav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 900;
  color: #24182a;
  box-shadow: 0 10px 22px rgba(88, 34, 67, .06);
}

.category-subnav-chip.active,
.category-subnav-chip:hover {
  background: #2e2030;
  color: #fff;
  border-color: transparent;
}

.category-products-section {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 26px;
}

.category-filter-panel {
  position: sticky;
  top: 132px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-filter-head {
  background: #2e2030;
  color: #fff;
  padding: 18px;
}

.category-filter-head strong {
  display: block;
  font-size: 18px;
}

.category-filter-head span {
  display: block;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
  font-size: 13px;
}

.category-filter-panel form {
  padding: 18px;
}

.category-filter-panel label {
  font-weight: 900;
  font-size: 13px;
  color: #24182a;
}

.category-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.category-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
}

.category-check input {
  width: auto;
  margin: 0;
}

.category-filter-categories {
  border-top: 1px solid var(--line);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.category-filter-categories>strong {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  margin-bottom: 4px;
}

.category-filter-categories a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  font-weight: 850;
}

.category-filter-categories a:hover,
.category-filter-categories a.active {
  background: #fff7fb;
}

.category-filter-categories img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.category-products-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.category-products-title {
  margin-top: 0;
}

.category-modern-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-product-card {
  position: relative;
}

.category-product-image-wrap {
  position: relative;
  overflow: hidden;
}

.category-product-stock {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.category-product-stock.available {
  background: #eefaf1;
  color: #256b35;
  border: 1px solid #b9e4c3;
}

.category-product-stock.unavailable {
  background: #fff0f0;
  color: #8b2727;
  border: 1px solid #efb9b9;
}

.category-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.category-card-bottom .price {
  margin-top: 0;
}

.category-card-bottom span {
  color: var(--red);
  font-weight: 900;
}

.category-empty-box {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.category-empty-box strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

@media (max-width: 1100px) {

  .category-modern-hero,
  .category-products-section {
    grid-template-columns: 1fr;
  }

  .category-filter-panel {
    position: static;
  }

  .category-modern-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {

  .category-modern-copy,
  .category-modern-image,
  .category-products-content,
  .category-filter-panel {
    border-radius: 16px;
  }

  .category-modern-copy h1 {
    font-size: 42px;
  }

  .category-modern-stats,
  .category-modern-product-grid,
  .category-price-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .category-modern-image,
  .category-modern-image img {
    min-height: 260px;
  }
}

.home-benefits-pro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 36px 0;
}

.home-benefits-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.home-benefits-head h2 {
  margin: 6px 0 8px;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #24182a;
}

.home-benefits-head p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.home-benefits-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.home-benefit-pro-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  min-height: 190px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fff 0%, #fff9fc 100%);
}

.home-benefit-pro-card:last-child {
  border-right: 0;
}

.home-benefit-pro-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #2e2030;
  color: #fff;
  font-weight: 950;
  font-size: 15px;
}

.home-benefit-pro-card h3 {
  margin: 0 0 10px;
  color: #24182a;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.home-benefit-pro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

@media (max-width: 1050px) {
  .home-benefits-head {
    grid-template-columns: 1fr;
  }

  .home-benefits-pro-grid {
    grid-template-columns: 1fr;
  }

  .home-benefit-pro-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-benefit-pro-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .home-benefits-pro {
    padding: 20px;
    border-radius: 16px;
  }

  .home-benefit-pro-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .home-benefit-pro-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

/* Lepszy pasek nawigacji */
.nav-strip {
  background: rgba(255, 255, 255, .88);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-strip-inner {
  min-height: 62px;
}

.main-nav {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.main-nav>a,
.nav-item>a,
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #2e2030;
  font-weight: 900;
  box-shadow: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.main-nav>a:hover,
.nav-item>a:hover,
.mobile-menu-btn:hover {
  background: #fff7fb;
  border-color: var(--line);
  color: #2e2030;
  transform: translateY(-1px);
}

.main-nav>a.active,
.nav-item.active>a {
  background: #2e2030;
  color: #fff;
  border-color: #2e2030;
  box-shadow: 0 12px 26px rgba(46, 32, 48, .16);
}

.nav-auth.nav-logout {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 12px 26px rgba(255, 95, 162, .20);
}

.nav-auth.nav-logout:hover {
  background: #f24a93;
  color: #fff;
  border-color: #f24a93;
}

.nav-admin.active {
  background: #2e2030;
  color: #fff;
}

.nav-cart.active {
  background: #2e2030;
  color: #fff;
}

.nav-check-order.active,
.nav-orders.active,
.nav-login.active,
.nav-register.active {
  background: #2e2030;
  color: #fff;
}

@media (max-width: 820px) {
  .main-nav {
    justify-content: flex-start;
    gap: 8px;
  }

  .main-nav>a,
  .nav-item>a,
  .mobile-menu-btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Poprawka menu Oferta - dropdown nie znika przy najechaniu */
.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
  background: transparent;
}

.dropdown {
  top: calc(100% + 6px);
  z-index: 9999;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown-image-link {
  display: block;
  margin: 8px 0 4px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.dropdown-image-link img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  transition: transform .18s ease, filter .18s ease;
}

.dropdown-image-link:hover img {
  transform: scale(1.03);
  filter: brightness(.96);
}

/* Oferta - profesjonalny katalog */
.catalog-pro-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 22px 0 18px;
}

.catalog-pro-breadcrumb {
  margin-bottom: 12px;
}

.catalog-pro-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .9;
  color: #24182a;
  letter-spacing: -.045em;
}

.catalog-pro-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.catalog-pro-stats {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 12px;
}

.catalog-pro-stats div {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.catalog-pro-stats strong {
  display: block;
  color: #24182a;
  font-size: 30px;
  line-height: 1;
}

.catalog-pro-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-top: 6px;
}

.catalog-pro-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
}

.catalog-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-sort-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #24182a;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(88, 34, 67, .05);
}

.catalog-sort-tabs a.active,
.catalog-sort-tabs a:hover {
  background: #2e2030;
  color: #fff;
  border-color: #2e2030;
}

.catalog-mobile-filter-btn {
  display: none;
}

.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
}

.catalog-active-filters span {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: #24182a;
  font-weight: 850;
  font-size: 13px;
}

.catalog-active-filters a {
  color: var(--red);
  font-weight: 900;
}

.catalog-pro-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.catalog-pro-sidebar {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 16px;
}

.catalog-filter-card,
.catalog-category-card,
.catalog-pro-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.catalog-filter-card {
  overflow: hidden;
}

.catalog-filter-title {
  background: #2e2030;
  color: #fff;
  padding: 18px;
}

.catalog-filter-title strong {
  display: block;
  font-size: 18px;
}

.catalog-filter-title span {
  display: block;
  color: rgba(255, 255, 255, .72);
  margin-top: 4px;
  font-size: 13px;
}

.catalog-filter-form {
  padding: 18px;
}

.catalog-filter-form label {
  font-size: 13px;
  font-weight: 900;
  color: #24182a;
}

.catalog-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.catalog-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
}

.catalog-check input {
  width: auto;
  margin: 0;
}

.catalog-category-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.catalog-category-card>strong {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  margin-bottom: 4px;
}

.catalog-category-card a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 12px;
  color: #24182a;
  font-weight: 900;
}

.catalog-category-card a:first-of-type {
  grid-template-columns: 1fr;
}

.catalog-category-card a:hover,
.catalog-category-card a.active {
  background: #fff7fb;
}

.catalog-category-card img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.catalog-pro-content {
  padding: 22px;
}

.catalog-products-head {
  margin-bottom: 18px;
}

.catalog-products-head h2 {
  margin: 4px 0 6px;
  color: #24182a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.035em;
}

.catalog-products-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.catalog-pro-product-card {
  position: relative;
}

.catalog-pro-img-wrap {
  position: relative;
  overflow: hidden;
}

.catalog-pro-img-wrap .product-img {
  height: 270px;
}

.catalog-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.catalog-stock-badge.available {
  background: #eefaf1;
  color: #256b35;
  border: 1px solid #b9e4c3;
}

.catalog-stock-badge.unavailable {
  background: #fff0f0;
  color: #8b2727;
  border: 1px solid #efb9b9;
}

.catalog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.catalog-card-footer .price {
  margin-top: 0;
}

.catalog-card-footer span {
  color: var(--red);
  font-weight: 950;
}

.catalog-empty-box {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.catalog-empty-box strong {
  display: block;
  color: #24182a;
  font-size: 22px;
  margin-bottom: 8px;
}

.mobile-catalog-filter-form {
  padding: 18px;
}

@media (max-width: 1150px) {
  .catalog-pro-layout {
    grid-template-columns: 1fr;
  }

  .catalog-pro-sidebar {
    position: static;
  }

  .catalog-filter-card {
    display: none;
  }

  .catalog-mobile-filter-btn {
    display: inline-flex;
  }

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

  .catalog-category-card {
    display: none;
  }
}

@media (max-width: 760px) {
  .catalog-pro-head {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 16px;
  }

  .catalog-pro-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-pro-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-sort-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .catalog-sort-tabs a {
    flex: 0 0 auto;
  }

  .catalog-pro-content {
    padding: 16px;
    border-radius: 16px;
  }

  .catalog-pro-grid {
    grid-template-columns: 1fr;
  }

  .catalog-pro-img-wrap .product-img {
    height: 230px;
  }

  .catalog-price-fields {
    grid-template-columns: 1fr;
  }
}

.status-delivered {
  background: #eefaf1;
  color: #256b35;
  border: 1px solid #b9e4c3;
}

.status-not-delivered {
  background: #fff8e8;
  color: #7a4b00;
  border: 1px solid #f0d28d;
}

.cart-page-pro {
  padding-top: 24px;
}

.cart-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}

.cart-page-head h1 {
  margin: 4px 0 8px;
  color: #24182a;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.045em;
}

.cart-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.cart-pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
  align-items: start;
}

.cart-pro-products,
.cart-pro-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.cart-pro-products {
  padding: 24px;
}

.cart-pro-summary {
  padding: 22px;
}

.cart-summary-sticky {
  position: sticky;
  top: 132px;
}

.cart-pro-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.cart-pro-panel-head h2,
.cart-pro-summary h2 {
  margin: 0 0 8px;
  color: #24182a;
  font-size: 30px;
  line-height: 1;
}

.cart-pro-panel-head p {
  margin: 0;
  color: var(--muted);
}

.cart-pro-panel-head>span {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #24182a;
  font-weight: 900;
  white-space: nowrap;
}

.cart-pro-list {
  display: grid;
  gap: 14px;
}

.cart-pro-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.cart-pro-item.has-problem {
  border-color: #f0d28d;
  background: #fffaf0;
}

.cart-pro-image {
  width: 128px;
  height: 128px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.cart-pro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-pro-info {
  min-width: 0;
}

.cart-pro-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.cart-pro-title-row h3 {
  margin: 0 0 6px;
  color: #24182a;
  font-size: 22px;
}

.cart-product-link {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.cart-product-link:hover {
  color: var(--red);
}

.cart-pro-line-total {
  color: #24182a;
  font-size: 22px;
  white-space: nowrap;
}

.cart-pro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  margin: 12px 0 16px;
}

.cart-pro-meta strong {
  color: #24182a;
}

.cart-pro-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.cart-qty-control {
  display: inline-grid;
  grid-template-columns: 42px 78px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.cart-qty-control input {
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  height: 42px;
  margin: 0;
}

.cart-qty-btn {
  border: 0;
  background: #fff7fb;
  color: #24182a;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.cart-qty-btn:hover {
  background: #2e2030;
  color: #fff;
}

.cart-qty-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cart-remove-link {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 950;
  cursor: pointer;
  padding: 10px 0;
}

.cart-remove-link:hover {
  text-decoration: underline;
}

.cart-pro-bottom-actions {
  margin-top: 18px;
}

.cart-empty-pro {
  max-width: none;
}

@media (max-width: 1000px) {
  .cart-pro-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-sticky {
    position: static;
  }
}

@media (max-width: 700px) {
  .cart-page-head {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 16px;
  }

  .cart-pro-products,
  .cart-pro-summary {
    border-radius: 16px;
    padding: 18px;
  }

  .cart-pro-item {
    grid-template-columns: 1fr;
  }

  .cart-pro-image {
    width: 100%;
    height: 220px;
  }

  .cart-pro-title-row,
  .cart-pro-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-pro-line-total {
    font-size: 20px;
  }

  .cart-qty-control {
    width: 100%;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }
}

.checkout-pro-page {
  padding-top: 24px;
}

.checkout-pro-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}

.checkout-pro-head h1 {
  margin: 4px 0 8px;
  color: #24182a;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.045em;
}

.checkout-pro-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.checkout-pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.checkout-pro-main {
  display: grid;
  gap: 16px;
}

.checkout-panel,
.checkout-pro-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.checkout-panel {
  padding: 24px;
}

.checkout-pro-summary {
  padding: 22px;
}

.checkout-summary-sticky {
  position: sticky;
  top: 132px;
}

.checkout-panel-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.checkout-panel-head>span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #2e2030;
  color: #fff;
  font-weight: 950;
}

.checkout-panel-head h2,
.checkout-pro-summary h2 {
  margin: 0 0 6px;
  color: #24182a;
  font-size: 28px;
  line-height: 1;
}

.checkout-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.checkout-type-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
}

.checkout-type-card:has(input:checked) {
  border-color: #2e2030;
  box-shadow: 0 0 0 2px rgba(46, 32, 48, .10);
  background: #fff7fb;
}

.checkout-type-card input {
  margin-top: 3px;
}

.checkout-type-card strong {
  display: block;
  color: #24182a;
  font-size: 18px;
}

.checkout-type-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

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

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

.checkout-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font-weight: 900;
  color: #24182a;
}

.checkout-switch input {
  width: auto;
  margin: 0;
}

.checkout-delivery-extra {
  margin-top: 16px;
}

.checkout-items-mini {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.checkout-mini-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.checkout-mini-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.checkout-mini-item strong {
  display: block;
  color: #24182a;
  font-size: 14px;
  line-height: 1.2;
}

.checkout-mini-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-bank-box {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 18px 0;
}

.checkout-bank-box strong {
  display: block;
  color: #24182a;
  margin-bottom: 5px;
}

.checkout-bank-box span,
.checkout-bank-box small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-bank-box small {
  margin-top: 6px;
  font-weight: 900;
}

.checkout-terms {
  align-items: flex-start;
  margin: 16px 0;
}

.checkout-terms input {
  width: auto;
  margin-top: 4px;
}

.checkout-submit-btn {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}

@media (max-width: 1050px) {
  .checkout-pro-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary-sticky {
    position: static;
  }
}

@media (max-width: 700px) {

  .checkout-pro-head,
  .checkout-panel,
  .checkout-pro-summary {
    border-radius: 16px;
  }

  .checkout-pro-head,
  .checkout-panel,
  .checkout-pro-summary {
    padding: 18px;
  }

  .checkout-type-grid,
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

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

.checkout-company-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
}

.checkout-address-grid-pro {
  grid-template-columns: 1.4fr .55fr .55fr;
}

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

.checkout-address-grid-pro label:nth-last-child(2),
.checkout-address-grid-pro label:nth-last-child(1) {
  grid-column: auto;
}

.checkout-panel input::placeholder,
.checkout-panel textarea::placeholder {
  color: rgba(36, 24, 42, .45);
}

.checkout-panel label {
  position: relative;
}

.checkout-panel input,
.checkout-panel textarea,
.checkout-panel select {
  background: #fff;
}

.checkout-panel input:focus,
.checkout-panel textarea:focus,
.checkout-panel select:focus {
  border-color: #2e2030;
  box-shadow: 0 0 0 3px rgba(46, 32, 48, .10);
  outline: none;
}

@media (max-width: 900px) {

  .checkout-company-grid,
  .checkout-address-grid-pro {
    grid-template-columns: 1fr;
  }

  .checkout-address-grid-pro .checkout-full {
    grid-column: auto;
  }
}

.cart-delivery-box {
  display: grid;
  gap: 10px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0 18px;
}

.cart-delivery-box>strong {
  color: #24182a;
  font-size: 16px;
}

.cart-delivery-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.cart-delivery-option:has(input:checked) {
  border-color: #2e2030;
  box-shadow: 0 0 0 2px rgba(46, 32, 48, .10);
}

.cart-delivery-option input {
  margin-top: 4px;
}

.cart-delivery-option b {
  display: block;
  color: #24182a;
  font-size: 14px;
}

.cart-delivery-option small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 3px;
}

.cart-delivery-note {
  background: #fff8e8;
  border: 1px solid #f0d28d;
  color: #6e4a10;
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

/* Checkout - układ profesjonalnego formularza */
.checkout-pro-page {
  padding-top: 24px;
}

.checkout-pro-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}

.checkout-pro-head h1 {
  margin: 4px 0 8px;
  color: #24182a;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.045em;
}

.checkout-pro-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.checkout-pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.checkout-pro-main {
  display: grid;
  gap: 16px;
}

.checkout-panel,
.checkout-pro-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.checkout-panel {
  padding: 24px;
}

.checkout-pro-summary {
  padding: 22px;
}

.checkout-summary-sticky {
  position: sticky;
  top: 132px;
}

.checkout-panel-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.checkout-panel-head>span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #2e2030;
  color: #fff;
  font-weight: 950;
}

.checkout-panel-head h2,
.checkout-pro-summary h2 {
  margin: 0 0 6px;
  color: #24182a;
  font-size: 28px;
  line-height: 1;
}

.checkout-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.checkout-type-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
}

.checkout-type-card:has(input:checked) {
  border-color: #2e2030;
  box-shadow: 0 0 0 2px rgba(46, 32, 48, .10);
  background: #fff7fb;
}

.checkout-type-card input {
  margin-top: 3px;
}

.checkout-type-card strong {
  display: block;
  color: #24182a;
  font-size: 18px;
}

.checkout-type-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

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

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

.checkout-company-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
}

.checkout-address-grid-pro {
  grid-template-columns: 1.4fr .55fr .55fr;
}

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

.checkout-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font-weight: 900;
  color: #24182a;
}

.checkout-switch input {
  width: auto;
  margin: 0;
}

.checkout-delivery-extra {
  margin-top: 16px;
}

.checkout-panel label {
  font-weight: 900;
  font-size: 13px;
  color: #24182a;
}

.checkout-panel input,
.checkout-panel textarea,
.checkout-panel select {
  background: #fff;
}

.checkout-panel input::placeholder,
.checkout-panel textarea::placeholder {
  color: rgba(36, 24, 42, .45);
}

.checkout-panel input:focus,
.checkout-panel textarea:focus,
.checkout-panel select:focus {
  border-color: #2e2030;
  box-shadow: 0 0 0 3px rgba(46, 32, 48, .10);
  outline: none;
}

.checkout-items-mini {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.checkout-mini-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.checkout-mini-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

.checkout-mini-item strong {
  display: block;
  color: #24182a;
  font-size: 14px;
  line-height: 1.2;
}

.checkout-mini-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-bank-box {
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 18px 0;
}

.checkout-bank-box strong {
  display: block;
  color: #24182a;
  margin-bottom: 5px;
}

.checkout-bank-box span,
.checkout-bank-box small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-bank-box small {
  margin-top: 6px;
  font-weight: 900;
}

.checkout-terms {
  align-items: flex-start;
  margin: 16px 0;
}

.checkout-terms input {
  width: auto;
  margin-top: 4px;
}

.checkout-terms a {
  color: var(--red);
  font-weight: 900;
}

.checkout-submit-btn {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}

@media (max-width: 1050px) {
  .checkout-pro-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary-sticky {
    position: static;
  }
}

@media (max-width: 900px) {

  .checkout-company-grid,
  .checkout-address-grid-pro {
    grid-template-columns: 1fr;
  }

  .checkout-address-grid-pro .checkout-full {
    grid-column: auto;
  }
}

@media (max-width: 700px) {

  .checkout-pro-head,
  .checkout-panel,
  .checkout-pro-summary {
    border-radius: 16px;
    padding: 18px;
  }

  .checkout-type-grid,
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

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

.cart-delivery-box {
  display: grid;
  gap: 10px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0 18px;
}

.cart-delivery-box>strong {
  color: #24182a;
  font-size: 16px;
}

.cart-delivery-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.cart-delivery-option:has(input:checked) {
  border-color: #2e2030;
  box-shadow: 0 0 0 2px rgba(46, 32, 48, .10);
}

.cart-delivery-option input {
  margin-top: 4px;
}

.cart-delivery-option b {
  display: block;
  color: #24182a;
  font-size: 14px;
}

.cart-delivery-option small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 3px;
}

.cart-delivery-note {
  background: #fff8e8;
  border: 1px solid #f0d28d;
  color: #6e4a10;
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

/* Poprawka podsumowania koszyka */
.cart-pro-summary {
  min-width: 0;
}

.cart-summary-sticky {
  display: grid;
  gap: 0;
}

.cart-pro-summary .summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.cart-pro-summary .summary-line span {
  min-width: 0;
  line-height: 1.25;
}

.cart-pro-summary .summary-line strong {
  white-space: nowrap;
  text-align: right;
  line-height: 1.25;
}

.cart-pro-summary .summary-line.total {
  align-items: center;
}

.cart-delivery-note {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #fff8e8;
  border: 1px solid #f0d28d;
  color: #6e4a10;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0 18px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  clear: both;
}

.cart-pro-summary .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.cart-pro-summary p.muted {
  margin-top: 14px !important;
}

.cart-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  max-width: min(360px, calc(100vw - 32px));
  background: #2e2030;
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  font-weight: 900;
  line-height: 1.45;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.cart-toast.active {
  opacity: 1;
  transform: translateY(0);
}

.cart-toast.is-error {
  background: #8b1e2d;
}

button.added,
.btn.added {
  background: #256b35 !important;
  color: #fff !important;
}

/* Oferta - dodawanie do koszyka z listy */
.offer-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.offer-product-image-link {
  display: block;
  text-decoration: none;
}

.offer-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.offer-product-body h3 a {
  color: inherit;
  text-decoration: none;
}

.offer-product-body h3 a:hover {
  color: var(--red);
}

.offer-product-desc {
  min-height: 44px;
}

.offer-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
}

.offer-card-footer small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.offer-view-link {
  color: var(--red);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.offer-view-link:hover {
  text-decoration: underline;
}

.offer-add-form {
  margin-top: 16px;
}

.offer-add-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.offer-add-row input {
  height: 48px;
  min-width: 0;
  text-align: center;
  font-weight: 900;
}

.offer-add-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  text-align: center;
}

.offer-add-btn.disabled {
  opacity: .75;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .offer-add-row {
    grid-template-columns: 1fr;
  }
}

/* Oferta - dodawanie do koszyka z listy */
.offer-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.offer-product-image-link {
  display: block;
  text-decoration: none;
}

.offer-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.offer-product-body h3 a {
  color: inherit;
  text-decoration: none;
}

.offer-product-body h3 a:hover {
  color: var(--red);
}

.offer-product-desc {
  min-height: 44px;
}

.offer-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
}

.offer-card-footer small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.offer-view-link {
  color: var(--red);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.offer-view-link:hover {
  text-decoration: underline;
}

.offer-add-form {
  margin-top: 16px;
}

.offer-add-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.offer-add-row input {
  height: 48px;
  min-width: 0;
  text-align: center;
  font-weight: 900;
}

.offer-add-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.offer-add-btn.disabled {
  opacity: .75;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .offer-add-row {
    grid-template-columns: 1fr;
  }
}

/* Pole hasła z oczkiem */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #fff7fb;
  color: #2e2030;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 17px;
  box-shadow: none;
  padding: 0;
}

.password-toggle:hover,
.password-toggle.active {
  background: #2e2030;
  color: #fff;
}

.auth-card .password-toggle {
  margin: 0;
}

/* Poprawka oczka w polu hasła */
.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 56px !important;
  box-sizing: border-box;
}

.auth-card .password-field .password-toggle,
.checkout-pro-summary .password-field .password-toggle,
.password-field .password-toggle {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;
  border-radius: 12px !important;

  background: #fff7fb !important;
  color: #2e2030 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 16px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.auth-card .password-field .password-toggle:hover,
.auth-card .password-field .password-toggle.active,
.checkout-pro-summary .password-field .password-toggle:hover,
.checkout-pro-summary .password-field .password-toggle.active,
.password-field .password-toggle:hover,
.password-field .password-toggle.active {
  background: #2e2030 !important;
  color: #fff !important;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-actions form {
  margin: 0;
}

.small-btn {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
}

.btn.danger {
  background: #8b1e2d;
  color: #fff;
}

.btn.danger:hover {
  background: #6d1421;
}

.btn[disabled],
button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* Naprawa layoutu panelu admina */
.admin-layout {
  width: min(1400px, calc(100% - 32px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-layout>aside,
.admin-sidebar,
.admin-menu {
  position: sticky;
  top: 118px;
  width: 100%;
  align-self: start;
  background: #2e2030;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-layout>aside h2,
.admin-sidebar h2,
.admin-menu h2 {
  margin: 0;
  padding: 18px;
  color: #fff;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.admin-layout>aside a,
.admin-sidebar a,
.admin-menu a {
  display: block;
  padding: 13px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  margin: 4px 8px;
}

.admin-layout>aside a:hover,
.admin-layout>aside a.active,
.admin-sidebar a:hover,
.admin-sidebar a.active,
.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(255, 255, 255, .10);
}

.admin-content {
  min-width: 0;
}

.admin-top {
  margin-bottom: 22px;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1000px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-layout>aside,
  .admin-sidebar,
  .admin-menu {
    position: static;
  }
}


/* =========================================================
   FIX: Polityka prywatności - treść nie może wpadać w wąską kolumnę
   ========================================================= */

.privacy-force-page {
  max-width: 1180px !important;
  width: min(1180px, calc(100% - 28px)) !important;
  margin: 0 auto !important;
  padding: 48px 0 80px !important;
}

.privacy-force-hero {
  background: linear-gradient(135deg, #2e2030 0%, #ff5fa2 100%) !important;
  color: #fff !important;
  border-radius: 18px !important;
  padding: 42px 36px !important;
  margin-bottom: 28px !important;
  box-shadow: var(--shadow) !important;
}

.privacy-force-hero span {
  display: block !important;
  color: #ffb2d1 !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  font-size: 13px !important;
  margin-bottom: 12px !important;
  text-transform: uppercase !important;
}

.privacy-force-hero h1 {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: clamp(34px, 5vw, 58px) !important;
  line-height: 1.05 !important;
}

.privacy-force-hero p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .88) !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
}

.privacy-force-content,
.privacy-force-content article,
article.privacy-force-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: block !important;
  grid-column: 1 / -1 !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  padding: 34px !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
  line-height: 1.72 !important;
}

.privacy-force-content h1 {
  text-align: left !important;
  margin: 0 0 20px !important;
  color: #24182a !important;
  font-size: 34px !important;
  line-height: 1.15 !important;
}

.privacy-force-content h2 {
  text-align: left !important;
  margin: 34px 0 14px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--line) !important;
  color: #24182a !important;
  font-size: 26px !important;
  line-height: 1.25 !important;
}

.privacy-force-content h2:first-of-type {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.privacy-force-content p,
.privacy-force-content li {
  color: var(--muted) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.privacy-force-content ul {
  padding-left: 24px !important;
}

.privacy-force-content a {
  color: var(--red) !important;
  font-weight: 800 !important;
}

/* Awaryjnie: jeśli na privacy.php nadal zostanie stary legal-layout */
body:has(.privacy-force-page) .legal-layout,
.privacy-force-page .legal-layout {
  display: block !important;
  grid-template-columns: 1fr !important;
}

body:has(.privacy-force-page) .legal-sidebar,
.privacy-force-page .legal-sidebar {
  display: none !important;
}

/* Awaryjnie dla obecnej wersji starego privacy.php */
.legal-page .legal-layout>article.legal-content {
  min-width: 0 !important;
}

@media (min-width: 901px) {
  .legal-page .legal-layout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }

  .legal-page .legal-content {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  .privacy-force-page {
    width: min(100% - 20px, 100%) !important;
    padding: 28px 0 56px !important;
  }

  .privacy-force-hero,
  .privacy-force-content,
  article.privacy-force-content {
    padding: 24px !important;
    border-radius: 16px !important;
  }
}

/* =========================================================
   MI-DOS: instrukcje produktów i QR
   ========================================================= */

.instructions-hero,
.instruction-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: stretch;
  margin: 22px 0 32px;
}

.instructions-hero > div:first-child,
.instruction-detail-copy,
.instructions-empty,
.instructions-hero-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 46px);
}

.instructions-hero h1,
.instruction-detail h1,
.instructions-empty h1,
.instructions-empty h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.06em;
}

.instructions-hero p,
.instruction-detail-copy p,
.instructions-empty p,
.instructions-list-head p,
.instruction-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.instructions-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  background:
    radial-gradient(circle at top right, rgba(255, 95, 162, .16), transparent 42%),
    linear-gradient(135deg, #2e2030 0%, #7b2d5d 58%, #ff5fa2 100%);
  color: #fff;
}

.instructions-hero-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.04em;
}

.instructions-hero-card span {
  color: rgba(255, 255, 255, .78);
  line-height: 1.6;
}

.instructions-list-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 12px 0 18px;
}

.instructions-list-head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.05em;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}

.instruction-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(42, 33, 48, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.instruction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 95, 162, .45);
  box-shadow: 0 26px 70px rgba(42, 33, 48, .12);
}

.instruction-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #fff7fb;
}

.instruction-card-image img,
.instruction-media-main img,
.instruction-media-main video,
.instruction-media-thumb img,
.instruction-table-img,
.instruction-admin-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.instruction-card-body {
  padding: 20px;
}

.instruction-card-body > span,
.instruction-product-name {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.instruction-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.instruction-media-count {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  color: var(--red);
  background: #fff0f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.instruction-card h3 a:hover {
  color: var(--red);
}

.instruction-card-actions,
.instruction-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.instruction-detail {
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
}

.instruction-media-viewer {
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.instruction-media-main {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(255, 95, 162, .04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 95, 162, .04) 25%, transparent 25%),
    #fff;
  background-size: 24px 24px;
}

.instruction-media-main img,
.instruction-media-main video {
  max-width: 100%;
  max-height: 660px;
  border-radius: 22px;
}

.instruction-pdf-main {
  width: min(420px, 100%);
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 34px;
  text-align: center;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.instruction-pdf-main span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  border-radius: 22px;
  font-size: 22px;
  font-weight: 900;
}

.instruction-pdf-main strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.instruction-pdf-main em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.instruction-media-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #fff;
}

.instruction-media-thumb {
  width: 92px;
  height: 72px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  padding: 6px;
  background: #fff7fb;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.instruction-media-thumb.active,
.instruction-media-thumb:hover {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
}

.instruction-media-thumb img {
  border-radius: 12px;
}

.instruction-text {
  margin-top: 22px;
  padding: 22px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.instructions-empty {
  max-width: 860px;
  margin: 34px auto 54px;
  text-align: center;
}

.instruction-admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.instruction-admin-preview {
  height: 220px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff7fb;
}

.instruction-admin-media-list {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff7fb;
}

.instruction-admin-media-list h3 {
  margin: 0 0 14px;
}

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

.instruction-admin-media-item {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.instruction-admin-media-item strong {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.instruction-admin-media-thumb {
  height: 130px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff7fb;
  border-radius: 12px;
}

.instruction-admin-media-thumb img,
.instruction-admin-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.instruction-admin-media-thumb span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  border-radius: 18px;
  font-weight: 900;
}

.instruction-table-img {
  width: 92px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff7fb;
}

.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(36, 24, 42, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.qr-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}

.qr-modal h2 {
  margin: 8px 0 8px;
  font-size: 26px;
  letter-spacing: -.04em;
}

.qr-modal p {
  margin: 0 auto 18px;
  max-width: 360px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.qr-modal img {
  width: 260px;
  height: 260px;
  max-width: 100%;
  padding: 12px;
  margin: 0 auto 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.qr-modal .toolbar {
  justify-content: center;
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fff7fb;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 980px) {
  .instructions-hero,
  .instruction-detail,
  .instruction-admin-form {
    grid-template-columns: 1fr;
  }

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

  .instruction-media-viewer,
  .instruction-media-main {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .instructions-hero,
  .instruction-detail {
    margin-top: 10px;
    gap: 14px;
  }

  .instructions-hero > div:first-child,
  .instruction-detail-copy,
  .instructions-empty,
  .instructions-hero-card {
    border-radius: 22px;
    padding: 24px;
  }

  .instructions-hero h1,
  .instruction-detail h1,
  .instructions-empty h1,
  .instructions-empty h2 {
    font-size: 34px;
    line-height: 1;
  }

  .instructions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .instructions-list-head {
    display: block;
  }

  .instruction-media-viewer {
    min-height: 260px;
    border-radius: 22px;
  }

  .instruction-media-main {
    min-height: 260px;
    padding: 12px;
  }

  .instruction-admin-media-grid {
    grid-template-columns: 1fr;
  }

  .instruction-text {
    padding: 18px;
  }

  .qr-modal {
    padding: 24px 18px;
    border-radius: 22px;
  }
}

@media print {
  body.qr-printing * {
    visibility: hidden !important;
  }

  body.qr-printing .qr-modal,
  body.qr-printing .qr-modal * {
    visibility: visible !important;
  }

  body.qr-printing .qr-modal-backdrop {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    background: #fff !important;
    opacity: 1 !important;
  }

  body.qr-printing .qr-modal {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  body.qr-printing .qr-modal-close,
  body.qr-printing .qr-modal .toolbar {
    display: none !important;
  }
}
