:root {
  --bg-deep: #080404;
  --bg-warm: #1b0d0a;
  --gold: #cfad3f;
  --gold-soft: #f5da8f;
  --text-main: #f7f1e5;
  --text-muted: #d3c4a1;
  --line: rgba(230, 184, 93, 0.48);
  --card-bg: linear-gradient(160deg, rgba(28, 13, 9, 0.96), rgba(14, 7, 5, 0.92));
  --glow-amber: rgba(207, 173, 63, 0.07);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Raleway", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 30% -10%, #280f07 0%, #080404 52%, #050202 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 35%, rgba(130, 50, 18, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(90, 40, 12, 0.06) 0%, transparent 50%);
}

.app-toast-container {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.55rem;
  width: min(360px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.packeta-fallback {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px dashed rgba(245, 218, 143, 0.5);
  background: rgba(30, 16, 12, 0.7);
}

.packeta-fallback-note {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.packeta-fallback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.packeta-fallback-grid label {
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.packeta-fallback-grid input {
  width: 100%;
  border: 1px solid rgba(245, 218, 143, 0.3);
  background: rgba(8, 4, 4, 0.72);
  color: var(--text-main);
  border-radius: 10px;
  padding: 0.56rem 0.7rem;
}

.packeta-fallback-actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.packeta-fallback-actions .packeta-pick-btn,
.packeta-fallback-actions .packeta-change-btn {
  width: auto;
}

body.is-cart-open .app-toast-container {
  right: calc(min(370px, 100vw) + 1rem);
}

.app-toast {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.48rem;
  border: 1px solid rgba(207, 173, 63, 0.28);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(26, 13, 10, 0.96), rgba(12, 7, 6, 0.96));
  color: #f5ead1;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(80, 40, 10, 0.16) inset;
  padding: 0.62rem 0.78rem;
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  animation: app-toast-in 220ms ease forwards;
}

.app-toast::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.02rem;
  background: rgba(207, 173, 63, 0.16);
  color: #f0da9d;
}

.app-toast.is-success {
  border-color: rgba(130, 180, 120, 0.48);
}

.app-toast.is-success::before {
  content: "✓";
  background: rgba(130, 180, 120, 0.2);
  color: #d8f2cf;
}

.app-toast.is-warning {
  border-color: rgba(207, 173, 63, 0.52);
}

.app-toast.is-warning::before {
  content: "!";
  background: rgba(207, 173, 63, 0.24);
  color: #fde7a7;
}

.app-toast.is-error {
  border-color: rgba(190, 92, 72, 0.58);
}

.app-toast.is-error::before {
  content: "x";
  background: rgba(190, 92, 72, 0.22);
  color: #ffd2c7;
}

.app-toast.is-hiding {
  animation: app-toast-out 200ms ease forwards;
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-toast,
  .app-toast.is-hiding {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  body.is-cart-open .app-toast-container {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2rem 1.25rem;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 164, 90, 0.12), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(105, 45, 22, 0.28), transparent 23%),
    radial-gradient(circle at 52% 75%, rgba(240, 180, 60, 0.22), transparent 20%),
    radial-gradient(circle at 54% 66%, rgba(220, 140, 60, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(17, 9, 8, 0.58), rgba(7, 4, 4, 0.92)),
    linear-gradient(135deg, #23100c 0%, #120908 46%, #060303 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 227, 166, 0.03) 0%, transparent 38%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 68% 36%, rgba(154, 62, 29, 0.2), transparent 24%),
    radial-gradient(circle at 35% 38%, rgba(133, 58, 30, 0.18), transparent 21%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 72px,
      rgba(255, 220, 160, 0.018) 72px,
      rgba(255, 220, 160, 0.018) 73px
    );
  mix-blend-mode: screen;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  left: 50%;
  bottom: -290px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(230, 194, 108, 0.56), rgba(230, 194, 108, 0.16) 40%, transparent 58%),
    radial-gradient(circle at 50% 62%, rgba(255, 117, 40, 0.36), transparent 52%),
    radial-gradient(circle at 50% 74%, rgba(96, 40, 18, 0.42), transparent 66%);
  filter: blur(28px);
  z-index: -1;
}

.mist,
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mist {
  background:
    radial-gradient(circle at 15% 84%, rgba(255, 143, 62, 0.08), transparent 22%),
    radial-gradient(circle at 79% 80%, rgba(255, 115, 0, 0.09), transparent 18%),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 213, 149, 0.02), transparent 36%);
  animation: drift 11s ease-in-out infinite alternate;
}

.embers {
  background-image:
    radial-gradient(circle, rgba(231, 205, 114, 0.5) 0.5px, transparent 1.1px),
    radial-gradient(circle, rgba(255, 129, 0, 0.3) 0.4px, transparent 1px);
  background-size: 120px 120px, 95px 95px;
  background-position: 0 0, 45px 35px;
  opacity: 0.25;
  animation: flicker 9s linear infinite;
}

.hero-card {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(43, 25, 18, 0.78), rgba(22, 12, 10, 0.54));
  border-radius: 20px;
  backdrop-filter: blur(2px);
  text-align: center;
  padding: clamp(2rem, 4vw, 3.8rem) clamp(1.1rem, 4vw, 3.6rem);
  box-shadow:
    0 0 0 1px rgba(255, 229, 147, 0.11) inset,
    0 16px 34px rgba(0, 0, 0, 0.43);
  animation: reveal 1s ease-out both;
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  letter-spacing: 0.03em;
  color: var(--gold-soft);
  text-shadow: 0 0 22px rgba(231, 205, 114, 0.17);
}

.subtitle {
  max-width: 37ch;
  margin: 1rem auto 2rem;
  color: #dfd5bc;
  line-height: 1.7;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.enter-button {
  display: inline-block;
  border: 1px solid #624d0e;
  background: linear-gradient(170deg, #dbbc53, #b89332);
  color: #2b1f04;
  text-decoration: none;
  font-family: "Marcellus", serif;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 2.1rem;
  box-shadow:
    0 0 16px rgba(242, 204, 105, 0.42),
    0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, filter 180ms ease;
  border-radius: 999px;
}

.enter-button:hover,
.enter-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
}

.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 218, 143, 0.34);
  color: #f5da8f;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(17, 8, 6, 0.38);
}

.home-strip,
.home-values,
.home-story {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.home-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -2.2rem;
  position: relative;
  z-index: 1;
}

.home-strip article,
.home-story-card {
  border: 1px solid rgba(207, 173, 63, 0.22);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(28, 13, 9, 0.92), rgba(14, 7, 5, 0.88));
  padding: 1.1rem 1.15rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.home-strip strong,
.home-story-card h3,
.home-values h2,
.home-story-card h2 {
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
}

.home-strip p,
.section-copy,
.home-story-card p,
.home-empty {
  color: var(--text-muted);
  line-height: 1.65;
}

.home-values {
  padding: 4rem 0 1.2rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.section-head h2 {
  margin: 0.2rem 0 0;
}

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

.home-values-grid article {
  border: 1px solid rgba(207, 173, 63, 0.18);
  border-radius: 18px;
  background: rgba(19, 9, 7, 0.56);
  padding: 1rem 1.05rem;
}

.home-values-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #f0d98a;
  font-family: "Marcellus", serif;
}

.home-values-grid p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.home-story {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 1rem 0 3.5rem;
}

.landing-minimal {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2.2rem 1.2rem 3.4rem;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
}

.landing-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(140, 62, 28, 0.2), transparent 38%),
    radial-gradient(circle at 84% 18%, rgba(200, 148, 60, 0.1), transparent 34%),
    radial-gradient(ellipse at 50% 100%, rgba(80, 28, 10, 0.35), transparent 55%),
    linear-gradient(180deg, #120908 0%, #090505 45%, #060303 100%);
}

.landing-minimal::before {
  content: none;
}

.landing-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.landing-collage-item {
  position: absolute;
  opacity: 0.2;
  filter: saturate(0.92) contrast(1);
  mix-blend-mode: lighten;
  user-select: none;
}

.landing-collage-item.collage-cat {
  width: clamp(132px, 17vw, 220px);
  left: 5%;
  top: 14%;
  transform: rotate(-7deg);
}

.landing-collage-item.collage-potion {
  width: clamp(148px, 19vw, 250px);
  left: 12%;
  bottom: 8%;
  transform: rotate(-9deg);
}

.landing-collage-item.collage-mimic {
  width: clamp(168px, 21vw, 280px);
  right: 4%;
  top: 18%;
  transform: rotate(6deg);
}

.landing-collage-item.collage-rune {
  width: clamp(132px, 16vw, 220px);
  right: 19%;
  bottom: 10%;
  opacity: 0.16;
  transform: rotate(10deg);
}

.landing-collage-item.collage-mushrooms {
  width: clamp(140px, 18vw, 235px);
  left: 44%;
  top: 8%;
  opacity: 0.14;
  transform: translateX(-50%) rotate(-3deg);
}

.landing-collage-item.collage-dice {
  width: clamp(122px, 15vw, 205px);
  right: 36%;
  bottom: 5%;
  opacity: 0.14;
  transform: rotate(8deg);
}

.landing-hero {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: clamp(1.6rem, 5vw, 3rem);
  text-align: center;
  min-height: min(74vh, 760px);
  display: grid;
  align-content: center;
  justify-items: center;
}

.landing-eyebrow {
  margin: 0;
  color: #cdbf9f;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.landing-hero h1 {
  margin: 0.4rem 0 0;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(231, 205, 114, 0.18);
}

.landing-lead {
  margin: 0.9rem 0 0;
  max-width: 36ch;
  color: #ddceab;
  line-height: 1.8;
  font-size: clamp(1rem, 2.2vw, 1.14rem);
}

.landing-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.landing-actions .enter-button {
  border-color: #624d0e;
  background: linear-gradient(170deg, #dbbc53, #b89332);
  color: #2b1f04;
}

.landing-actions .enter-button:hover,
.landing-actions .enter-button:focus-visible {
  filter: brightness(1.06);
  box-shadow:
    0 0 16px rgba(242, 204, 105, 0.42),
    0 10px 22px rgba(0, 0, 0, 0.32);
}

@media (max-width: 900px) {
  .landing-minimal {
    padding-top: 1.4rem;
  }

  .landing-hero {
    min-height: auto;
    padding: 1.5rem 1.1rem 1.8rem;
  }

  .landing-collage-item {
    opacity: 0.14;
  }

  .landing-collage-item.collage-cat {
    left: -4%;
    top: 14%;
  }

  .landing-collage-item.collage-potion {
    left: -3%;
    bottom: 16%;
  }

  .landing-collage-item.collage-mimic {
    right: -10%;
    top: 24%;
  }

  .landing-collage-item.collage-rune {
    right: 2%;
    bottom: 20%;
  }

  .landing-collage-item.collage-dice {
    right: 8%;
    bottom: 4%;
  }
}

.home-story-card.accent {
  background: linear-gradient(165deg, rgba(56, 28, 16, 0.95), rgba(22, 11, 8, 0.9));
}

.home-benefits-list {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
  color: #ead8aa;
  display: grid;
  gap: 0.45rem;
}

.footer {
  border-top: 1px solid rgba(140, 100, 35, 0.4);
  background: linear-gradient(180deg, #110908, #080404);
  padding: 1.8rem 1.25rem 2.2rem;
}

.landing-page .cart-fab,
.landing-page .cart-panel {
  display: none;
}

.footer-inner,
.footer-meta {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.footer-inner {
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.footer h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-family: "Cinzel", serif;
  font-weight: 500;
  color: var(--gold-soft);
}

.footer h3 {
  margin: 0 0 0.8rem;
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold-soft);
}

.footer p {
  margin: 0.3rem 0;
  color: #d1c5ab;
}

.footer span {
  color: #f2d78a;
}

.footer a {
  color: #f4d988;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

.footer-socials h3 {
  margin-bottom: 0.65rem;
  color: #f2d78a;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-social-link {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(207, 173, 63, 0.4);
  background: rgba(25, 12, 8, 0.65);
  color: #f4d988;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(243, 214, 140, 0.9);
  background: rgba(62, 30, 18, 0.82);
}

.footer-social-link[hidden] {
  display: none;
}

.footer-meta {
  border-top: 1px solid rgba(207, 173, 63, 0.18);
  padding-top: 1rem;
  flex-wrap: wrap;
  font-size: 0.94rem;
  color: #bcad8c;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(28, 13, 9, 0.98), rgba(14, 7, 5, 0.95));
  border-top: 2px solid rgba(207, 173, 63, 0.4);
  padding: 1.5rem 1.25rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-content {
  width: min(900px, 100%);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-main);
  flex: 1;
  min-width: 250px;
}

.cookie-banner-content strong {
  color: var(--gold-soft);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 3px;
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #8b6f47;
  color: #f7f1e5;
}

.cookie-btn-accept:hover {
  background: #a0845a;
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: #d1c5ab;
  border: 1px solid rgba(207, 173, 63, 0.3);
}

.cookie-btn-reject:hover {
  background: rgba(207, 173, 63, 0.1);
  border-color: rgba(207, 173, 63, 0.5);
}

.cookie-link {
  color: #cfad3f;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.cookie-link:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}

.shop-page {
  min-height: 100vh;
  background-color: #090505;
  background-image: url("assets/pozadi.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.shop-page::before {
  display: none;
}

.shop-main {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 2.7rem 1.25rem 3.2rem;
}

.shop-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.shop-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 30px rgba(207, 173, 63, 0.12);
}

.back-link {
  color: #f0d37d;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.shop-banner {
  margin: 0.95rem 0 1.35rem;
  border: 1px solid rgba(207, 173, 63, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 231, 170, 0.06);
  background: linear-gradient(160deg, rgba(30, 15, 12, 0.84), rgba(14, 7, 6, 0.7));
}

.shop-banner img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 7;
  object-fit: cover;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 0.65fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.shop-tools label {
  display: grid;
  gap: 0.35rem;
  color: #ead8aa;
  font-size: 0.84rem;
}

.shop-tools label > span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.shop-tools label > span::before {
  content: "";
  width: 0.92rem;
  height: 0.92rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.92;
}

.shop-tools label:nth-child(1) > span::before {
  background-image: url("assets/icons/search.svg");
}

.shop-tools label:nth-child(2) > span::before {
  background-image: url("assets/icons/category.svg");
}

.shop-tools label:nth-child(3) > span::before {
  background-image: url("assets/icons/stock.svg");
}

.shop-tools label:nth-child(4) > span::before {
  background-image: url("assets/icons/sort.svg");
}

.shop-tools input,
.shop-tools select {
  width: 100%;
  border: 1px solid rgba(230, 184, 93, 0.3);
  border-radius: 12px;
  background: rgba(20, 11, 10, 0.9);
  color: #f6f0df;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

.shop-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.shop-results-copy {
  margin: 0;
  color: var(--text-muted);
}

.shop-reset-button {
  border: 1px solid rgba(207, 173, 63, 0.3);
  border-radius: 999px;
  background: rgba(20, 10, 7, 0.72);
  color: #f0d98a;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.shop-reset-button::before {
  content: "↺ ";
}

.shop-section {
  margin-bottom: 3rem;
}

.shop-section h2 {
  margin: 0 0 1.2rem;
  color: #dfc070;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.shop-section h2::before {
  content: "⚗";
  font-size: 0.85rem;
  color: rgba(207, 173, 63, 0.6);
  flex-shrink: 0;
  font-style: normal;
}

.shop-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(207, 173, 63, 0.32) 0%, transparent 85%);
}

.section-sub {
  margin: -0.6rem 0 1.1rem 1.9rem;
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(196, 166, 90, 0.55);
}

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

.product-card {
  position: relative;
  border: 1px solid rgba(180, 138, 45, 0.28);
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(80, 40, 10, 0.18) inset;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: rgba(207, 173, 63, 0.52);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(207, 173, 63, 0.07),
    0 0 0 1px rgba(110, 70, 15, 0.28) inset;
}

.product-image {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 0;
  background: rgba(18, 8, 5, 0.5);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.72rem 0.72rem 0.82rem;
}

.product-card h3 {
  margin: 0;
  color: #edd9a3;
  font-family: "Marcellus", serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.product-card-tags span {
  border-radius: 999px;
  border: 1px solid rgba(207, 173, 63, 0.18);
  background: rgba(18, 8, 5, 0.45);
  color: #d8c392;
  padding: 0.22rem 0.55rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-row {
  margin-top: 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.price-label {
  display: block;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c7b791;
}

.price-value {
  color: #f1d17c;
  font-weight: 600;
}

.add-button {
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(207, 173, 63, 0.75);
  color: #f5dd9b;
  font-size: 2.56rem;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  background: rgba(10, 5, 3, 0.6);
  transition: background 0.2s, box-shadow 0.2s;
}

.add-button:hover,
.add-button:focus-visible {
  background: rgba(207, 173, 63, 0.2);
  box-shadow: 0 0 12px rgba(207, 173, 63, 0.3);
}

.product-card:focus-visible {
  outline: 2px solid rgba(245, 218, 143, 0.8);
  outline-offset: 3px;
}

.sold-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid rgba(160, 110, 30, 0.7);
  color: #c9a850;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  background: rgba(12, 5, 3, 0.88);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.is-sold .price-value {
  color: #a09070;
}

.is-sold .product-image {
  filter: saturate(0.35) brightness(0.7);
}

.is-sold {
  opacity: 0.72;
}

.product-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.1rem;
}

.product-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 3, 0.78);
  backdrop-filter: blur(8px);
}

.product-preview-card {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(250px, 340px) 1fr;
  gap: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(207, 173, 63, 0.28);
  background: linear-gradient(165deg, rgba(34, 16, 12, 0.98), rgba(15, 8, 6, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.product-preview-media {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 360px;
  background: rgba(16, 8, 6, 0.8);
}

.product-preview-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: 0;
  background: rgba(10, 5, 3, 0.6);
  color: #f5da8f;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.product-preview-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: rgba(16, 8, 6, 0.8);
}

.product-preview-thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem;
  overflow-x: auto;
  border-top: 1px solid rgba(207, 173, 63, 0.22);
  background: rgba(10, 5, 4, 0.72);
}

.product-preview-thumb {
  border: 1px solid rgba(207, 173, 63, 0.26);
  background: rgba(18, 9, 7, 0.8);
  border-radius: 10px;
  padding: 0;
  width: 54px;
  height: 54px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

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

.product-preview-thumb.is-active {
  border-color: rgba(245, 218, 143, 0.9);
  box-shadow: 0 0 0 2px rgba(245, 218, 143, 0.24);
}

.product-preview-body {
  padding: 1.4rem 1.4rem 1.4rem 0;
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.product-preview-category {
  margin: 0;
  color: #c9b58f;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.product-preview-card h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--gold-soft);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.product-preview-description {
  margin: 0;
  color: #e8dcc0;
  line-height: 1.7;
  max-width: 48ch;
}

.product-preview-lead {
  margin: -0.25rem 0 0;
  color: #f1ddb0;
  line-height: 1.6;
  font-size: 0.96rem;
}

.product-preview-points {
  margin: 0;
  padding-left: 1.15rem;
  color: #d6c39d;
  display: grid;
  gap: 0.35rem;
}

.product-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.product-preview-price {
  color: #f5da8f;
  font-family: "Marcellus", serif;
  font-size: 1.15rem;
}

.product-preview-add {
  border: 1px solid #9e7931;
  border-radius: 999px;
  background: linear-gradient(170deg, #deb95a, #bc9434);
  color: #2c2007;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.product-preview-add[hidden] {
  display: none;
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .product-preview-card {
    grid-template-columns: 1fr;
  }

  .product-preview-media {
    min-height: 260px;
  }

  .product-preview-image {
    min-height: 260px;
  }

  .product-preview-body {
    padding: 0 1.2rem 1.2rem;
  }
}

.cart-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 30;
  width: 3.45rem;
  height: 3.45rem;
  border: 2px solid #d4af37;
  border-radius: 999px;
  background: #2a1712;
  color: #f2d787;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}

.cart-fab-icon {
  font-size: 1rem;
  line-height: 1;
}

.cart-fab-count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #d4af37;
  color: #211503;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 0.2rem;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 35;
  width: min(370px, 100%);
  height: 100vh;
  border-left: 1px solid rgba(180, 138, 45, 0.3);
  background: linear-gradient(180deg, #1c0d0a, #0e0706);
  transform: translateX(105%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(207, 173, 63, 0.2);
}

.cart-head h2 {
  margin: 0;
  color: #efcf7b;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
}

.cart-close {
  border: 0;
  background: transparent;
  color: #e5c778;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cart-empty,
.cart-items {
  margin: 0;
  padding: 0.8rem 1rem;
}

.cart-items {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  flex: 1;
}

.cart-item {
  border: 1px solid rgba(207, 173, 63, 0.2);
  padding: 0.45rem 0.55rem;
  color: #e3d1a8;
  border-radius: 10px;
  background: rgba(38, 20, 15, 0.6);
}

.cart-item-media {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.cart-item-image {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(207, 173, 63, 0.2);
  background: rgba(18, 8, 5, 0.6);
}

.cart-item-content {
  min-width: 0;
}

.cart-item-top,
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.cart-item-top strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.cart-item-bottom {
  margin-top: 0.45rem;
}

.cart-sync-note {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(207, 173, 63, 0.3);
  background: rgba(84, 47, 15, 0.38);
  color: #f0d9a0;
  font-size: 0.82rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cart-qty button,
.cart-remove {
  border: 1px solid rgba(207, 173, 63, 0.45);
  color: #efdbac;
  background: rgba(19, 10, 11, 0.9);
  cursor: pointer;
}

.cart-qty button {
  width: 1.55rem;
  height: 1.55rem;
}

.cart-qty span {
  min-width: 1.15rem;
  text-align: center;
}

.cart-remove {
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1;
}

.cart-qty button:hover,
.cart-remove:hover,
.cart-qty button:focus-visible,
.cart-remove:focus-visible {
  border-color: #f0d787;
}

.cart-foot {
  border-top: 1px solid rgba(207, 173, 63, 0.2);
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.65rem;
}

.cart-foot p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #d5c29a;
}

.cart-foot strong {
  color: #f3d98f;
}

.cart-foot a {
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid #8c6b1f;
  color: #2f2107;
  background: linear-gradient(160deg, #e5c462, #b18a2f);
  padding: 0.72rem 0.8rem;
  font-weight: 600;
  border-radius: 999px;
}

.checkout-page {
  min-height: 100vh;
  background-color: #090505;
  background-image: url("assets/pozadi.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.checkout-page::before {
  display: none;
}

.checkout-main {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 2.3rem 1.25rem 2.8rem;
}

.checkout-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.checkout-head h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

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

.checkout-steps {
  display: grid;
  gap: 1rem;
}

.checkout-summary {
  position: sticky;
  top: 1.5rem;
}

.checkout-card {
  border: 1px solid rgba(230, 184, 93, 0.38);
  background: linear-gradient(165deg, rgba(42, 22, 17, 0.82), rgba(26, 14, 12, 0.74));
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.checkout-card h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #1a0d08;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Cinzel", serif;
}

/* ── Položky košíku ── */
.checkout-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checkout-item {
  border: 1px solid rgba(230, 184, 93, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(37, 20, 15, 0.55);
}

.checkout-item-media {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.7rem;
  align-items: center;
}

.checkout-item-image {
  width: 52px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(230, 184, 93, 0.28);
  background: rgba(20, 10, 8, 0.7);
}

.checkout-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.checkout-item-name {
  margin: 0;
  color: #ecdcb5;
  line-height: 1.4;
}

.checkout-item-content strong {
  color: #f5dd9c;
}

.checkout-total-row {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #ecd7a0;
}

.checkout-summary-lines {
  display: grid;
  gap: 0.45rem;
}

.checkout-summary-lines p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}

.checkout-total-row strong {
  color: #f5dc9b;
  font-size: 1.1rem;
}

.checkout-summary-note {
  margin: 0.8rem 0 0;
  color: #dbc898;
  font-size: 0.84rem;
  line-height: 1.5;
}

.checkout-trust-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.4rem;
  font-size: 0.84rem;
}

/* ── Vstupní pole ── */
.step-fields {
  display: grid;
  gap: 0.75rem;
}

.checkout-card label {
  display: grid;
  gap: 0.35rem;
  color: #ead8aa;
  font-size: 0.92rem;
}

.checkout-card input,
.checkout-card textarea {
  width: 100%;
  border: 1px solid rgba(230, 184, 93, 0.3);
  border-radius: 10px;
  background: rgba(20, 11, 10, 0.9);
  color: #f6f0df;
  padding: 0.6rem 0.7rem;
  font: inherit;
  box-sizing: border-box;
}

.checkout-card input:focus,
.checkout-card textarea:focus {
  outline: none;
  border-color: rgba(230, 184, 93, 0.7);
}

/* ── Výběr metody (doručení / platba) ── */
.method-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Override checkout-card label grid for method cards */
.checkout-card label.method-card {
  display: block;
  gap: 0;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

.method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.method-card-body {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(230, 184, 93, 0.2);
  border-radius: 12px;
  background: rgba(20, 11, 10, 0.5);
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.method-card:hover .method-card-body {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.method-card input[type="radio"]:checked + .method-card-body {
  border-color: var(--gold);
  background: rgba(207, 173, 63, 0.1);
}

.method-card-static {
  cursor: default;
}

.method-card-static .method-card-body {
  border-color: rgba(230, 184, 93, 0.35);
}

.method-card-static:hover .method-card-body {
  transform: none;
  box-shadow: none;
}

.method-card-body strong {
  display: block;
  color: var(--text-main);
  font-family: "Marcellus", serif;
  font-size: 0.95rem;
}

.method-card-body span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.method-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  color: var(--gold-soft);
}

/* ── Zásilkovna ── */
.packeta-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.18s;
}

.packeta-pick-btn:hover {
  background: rgba(207, 173, 63, 0.12);
}

.packeta-pick-btn svg {
  width: 1rem;
  height: 1rem;
}

.packeta-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.packeta-point-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(100, 200, 80, 0.35);
  border-radius: 12px;
  background: rgba(60, 140, 40, 0.08);
  margin-bottom: 0.6rem;
}

.packeta-point-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8ee069;
  font-size: 0.92rem;
}

.packeta-point-detail svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.packeta-change-btn {
  background: transparent;
  border: 1px solid rgba(200, 200, 200, 0.3);
  border-radius: 999px;
  color: var(--text-muted);
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s;
}

.packeta-change-btn:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.packeta-fallback-grid select {
  width: 100%;
  border: 1px solid rgba(245, 218, 143, 0.3);
  background: rgba(8, 4, 4, 0.72);
  color: var(--text-main);
  border-radius: 10px;
  padding: 0.56rem 0.7rem;
}

.full-width-label {
  display: grid;
  gap: 0.35rem;
  color: #ead8aa;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.digital-pay-area {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(230, 184, 93, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(207, 173, 63, 0.12), rgba(20, 11, 10, 0.5));
}

.digital-pay-area p {
  margin: 0;
  color: #f0e0b8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.qr-payment-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: center;
}

.qr-payment-image {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(230, 184, 93, 0.35);
  background: #fff;
  padding: 0.45rem;
}

.qr-payment-actions {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

@media (max-width: 560px) {
  .qr-payment-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .qr-payment-actions {
    justify-items: stretch;
    width: 100%;
  }

  .qr-payment-actions .packeta-pick-btn,
  .qr-payment-actions .packeta-change-btn {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

/* ── Vizuální platební karta ── */
.card-preview {
  perspective: 1000px;
  max-width: 380px;
  width: 100%;
  aspect-ratio: 1.586;
  margin: 0.5rem auto 1.4rem;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
  border-radius: 16px;
}

.card-preview.show-back .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 1.2rem 1.4rem;
  color: #f7eed6;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

.card-front {
  background: linear-gradient(135deg, #2a1a12 0%, #4d2e1f 45%, #391f10 70%, #1e0e08 100%);
  border: 1px solid rgba(230, 184, 93, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-back {
  background: linear-gradient(135deg, #1e0e08 0%, #3a1f10 55%, #251208 100%);
  border: 1px solid rgba(230, 184, 93, 0.2);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-chip {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #c4943c, #f5da8f 50%, #b07c2a);
  position: relative;
  overflow: hidden;
}

.card-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent, transparent 30%,
      rgba(130, 90, 20, 0.3) 30%, rgba(130, 90, 20, 0.3) 31%
    ),
    repeating-linear-gradient(
      0deg,
      transparent, transparent 30%,
      rgba(130, 90, 20, 0.3) 30%, rgba(130, 90, 20, 0.3) 31%
    );
  background-size: 100% 33%, 33% 100%;
}

.card-number-preview {
  font-family: "Courier New", monospace;
  font-size: clamp(0.88rem, 2.4vw, 1.12rem);
  letter-spacing: 0.22em;
  text-align: center;
  color: #f5e8c0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 232, 192, 0.6);
  margin-bottom: 0.15rem;
}

.card-name-preview,
.card-expiry-preview {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #f5e8c0;
}

/* Zadní strana karty */
.card-stripe {
  height: 44px;
  background: #0f0604;
  margin: -1.2rem -1.4rem 0;
  border-radius: 16px 16px 0 0;
}

.card-cvv-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.card-cvv-box {
  background: #fff;
  color: #1a0a04;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  min-width: 60px;
  text-align: right;
}

.card-back-note {
  margin: auto 0 0;
  font-size: 0.6rem;
  color: rgba(245, 232, 192, 0.35);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Pole karty */
.card-fields {
  display: grid;
  gap: 0.7rem;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.stripe-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.stripe-note svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: #7dbf5f;
}

/* ── Bankovní převod ── */
.transfer-info {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(230, 184, 93, 0.2);
  border-radius: 12px;
  background: rgba(20, 11, 10, 0.4);
}

.transfer-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  margin: 0 0 0.75rem;
}

.transfer-info dt {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.transfer-info dd {
  margin: 0;
  color: var(--text-main);
  font-size: 0.82rem;
}

.transfer-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(230, 184, 93, 0.15);
  padding-top: 0.6rem;
}

/* ── Tlačítko Potvrdit rituál ── */
.checkout-submit-btn {
  border: 1.5px solid #9e7931;
  border-radius: 999px;
  background: linear-gradient(170deg, #deb95a, #bc9434);
  color: #2c2007;
  padding: 0.85rem 2.5rem;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: filter 0.18s;
}

.checkout-submit-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.checkout-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-submit-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.checkout-legal-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #dccca6;
  text-align: center;
  line-height: 1.45;
}

/* ── Zprávy (chyba / úspěch) ── */
.checkout-note {
  min-height: 1rem;
  margin: 0;
  color: #f0d990;
  font-size: 0.9rem;
}

.checkout-note.is-error {
  color: #f07070;
  background: rgba(240, 80, 60, 0.08);
  border: 1px solid rgba(240, 80, 60, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.checkout-note.is-success {
  color: #7dbf5f;
  background: rgba(80, 180, 60, 0.08);
  border: 1px solid rgba(80, 180, 60, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.checkout-note.is-warning {
  color: #f0d79d;
  background: rgba(207, 143, 63, 0.1);
  border: 1px solid rgba(207, 173, 63, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.checkout-empty {
  color: #dccda8;
}

.back-to-shop-link {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}

.back-to-shop-link:hover {
  color: var(--gold-soft);
}

.cart-foot a.is-disabled,
.cart-foot a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-foot small {
  color: #b7a382;
}

/* ── Administrace ── */
.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -10%, rgba(140, 62, 28, 0.18), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(210, 164, 72, 0.08), transparent 32%),
    linear-gradient(180deg, #0f0706 0%, #080404 48%, #050202 100%);
}

/* ── Odstoupeni od smlouvy ── */
.withdrawal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #090505;
  background-image: url("assets/pozadi.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.withdrawal-page::before {
  display: none;
}

.withdrawal-main {
  flex: 1;
  width: min(780px, calc(100% - 2rem));
  margin: 2rem auto 2.4rem;
}

.withdrawal-card {
  border: 1px solid rgba(207, 173, 63, 0.24);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(26, 12, 9, 0.96), rgba(11, 6, 5, 0.98));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
  padding: 1.4rem 1.1rem;
}

.withdrawal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
}

.withdrawal-head h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  color: var(--gold-soft);
}

.withdrawal-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.withdrawal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.withdrawal-grid label,
.withdrawal-card > label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-main);
  font-size: 0.88rem;
}

.withdrawal-grid input,
.withdrawal-card textarea,
.withdrawal-card select {
  width: 100%;
  border: 1px solid rgba(207, 173, 63, 0.22);
  border-radius: 10px;
  background: rgba(12, 8, 7, 0.75);
  color: var(--text-main);
  padding: 0.64rem 0.72rem;
  font-size: 0.9rem;
}

.withdrawal-grid .full,
.withdrawal-card .full {
  grid-column: 1 / -1;
}

.withdrawal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 0.5rem;
}

.withdrawal-consent input {
  margin-top: 0.15rem;
}

.withdrawal-submit {
  margin-top: 0.9rem;
}

.withdrawal-note {
  margin-top: 0.8rem;
  min-height: 1.1rem;
  color: #f0d79d;
  font-size: 0.9rem;
}

.withdrawal-note.is-error {
  color: #f07070;
}

.withdrawal-note.is-success {
  color: #7dbf5f;
}

@media (max-width: 760px) {
  .withdrawal-grid {
    grid-template-columns: 1fr;
  }
}

  .admin-lockscreen {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background:
      radial-gradient(circle at 50% 30%, rgba(207, 173, 63, 0.08), transparent 28%),
      rgba(5, 2, 2, 0.94);
    backdrop-filter: blur(10px);
  }

  .admin-login-card {
    width: min(460px, 100%);
    border: 1px solid rgba(207, 173, 63, 0.28);
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(30, 14, 10, 0.96), rgba(12, 6, 5, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    padding: 2rem;
  }

  .admin-login-card h1 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-family: "Cinzel", serif;
    color: var(--gold-soft);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
  }

  .admin-login-label {
    display: grid;
    gap: 0.35rem;
    color: #ead8aa;
    font-size: 0.92rem;
    margin: 1.2rem 0 1rem;
  }

  .admin-login-label input {
    width: 100%;
    border: 1px solid rgba(230, 184, 93, 0.3);
    border-radius: 10px;
    background: rgba(18, 9, 7, 0.92);
    color: #f6f0df;
    padding: 0.72rem 0.8rem;
    font: inherit;
  }

  .admin-login-button {
    width: 100%;
  }

  .admin-login-note {
    min-height: 1rem;
    margin: 0.85rem 0 0;
    color: #f07070;
  }

  .admin-login-server-status {
    min-height: 1rem;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: #a0a0a0;
  }
  .admin-login-server-status[data-status="offline"],
  .admin-login-server-status[data-status="error"] {
    color: #e0a040;
  }

  .admin-lock-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

.admin-main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.4rem;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 0 1.1rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(32, 15, 10, 0.86), rgba(14, 7, 6, 0.76));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.admin-hero h1 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.admin-hero .subtitle {
  margin: 0;
  max-width: 58ch;
}

.admin-hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 0;
  width: 100%;
  justify-content: space-between;
}

.admin-logout-button {
  margin-left: 0;
  border-color: rgba(194, 92, 70, 0.45);
  color: #f7c8be;
}

.admin-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-secondary-link,
.admin-link-button {
  color: var(--gold-soft);
  text-decoration: none;
  border: 1px solid rgba(207, 173, 63, 0.35);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(20, 10, 7, 0.65);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.4rem;
}

.admin-stats-compact {
  margin-bottom: 0;
}

.stat-card {
  border: 1px solid rgba(180, 138, 45, 0.24);
  border-radius: 14px;
  background: rgba(22, 10, 8, 0.8);
  padding: 0.95rem 1rem;
}

.stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.stat-card strong {
  color: var(--gold-soft);
  font-size: 1.35rem;
  font-family: "Cinzel", serif;
}

.stat-card-wide {
  grid-column: span 2;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(560px, 1.35fr);
  gap: 1rem;
  align-items: start;
}

.admin-catalog-grid {
  grid-template-columns: 1fr;
}

.admin-catalog-grid .admin-form-card,
.admin-catalog-grid .admin-card {
  width: 100%;
}

.admin-grid-full {
  grid-template-columns: 1fr;
}

.admin-admins-grid {
  margin-top: 1rem;
}

.admin-inventory-card {
  display: grid;
  gap: 0.8rem;
}

.admin-tabs {
  display: flex;
  gap: 0.7rem;
  margin: 1rem 0 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0.45rem;
  z-index: 8;
  backdrop-filter: blur(4px);
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(12, 6, 5, 0.5);
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(207, 173, 63, 0.3);
  border-radius: 999px;
  background: rgba(20, 10, 7, 0.62);
  color: var(--text-muted);
  padding: 0.72rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-tab::before {
  content: "";
  width: 0.92rem;
  height: 0.92rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.92;
}

.admin-tab[data-admin-tab="catalog"]::before {
  background-image: url("assets/icons/catalog.svg");
}

.admin-tab[data-admin-tab="archive"]::before {
  background-image: url("assets/icons/archive.svg");
}

.admin-tab[data-admin-tab="orders"]::before {
  background-image: url("assets/icons/orders.svg");
}

.admin-tab[data-admin-tab="admins"]::before {
  background-image: url("assets/icons/admins.svg");
}

.admin-tab[data-admin-tab="settings"]::before {
  background-image: url("assets/icons/settings.svg");
}

.admin-tab[data-admin-tab="technical-settings"]::before {
  background-image: url("assets/icons/technical.svg");
}

.admin-tab.is-active {
  color: #2c2007;
  background: linear-gradient(170deg, #deb95a, #bc9434);
  border-color: #9e7931;
}

.admin-panel {
  margin-top: 0;
}

.admin-card {
  border: 1px solid rgba(180, 138, 45, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(214, 176, 74, 0.12), transparent 34%),
    linear-gradient(165deg, rgba(30, 15, 10, 0.96), rgba(13, 7, 6, 0.95));
  padding: 1.2rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-orders-filter-label {
  display: grid;
  gap: 0.35rem;
  color: #d7c493;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-orders-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-orders-filter-select {
  min-width: 210px;
  border: 1px solid rgba(230, 184, 93, 0.28);
  border-radius: 12px;
  background: rgba(18, 9, 7, 0.86);
  color: #f6f0df;
  padding: 0.58rem 0.76rem;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-orders-filter-select:focus {
  outline: none;
  border-color: rgba(240, 204, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(217, 181, 88, 0.14);
}

.admin-card-head h2,
.admin-card h3 {
  margin: 0;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
}

.admin-card-note {
  margin: 0.2rem 0 0;
  color: #d4c29a;
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 68ch;
}

.admin-inline-note {
  min-height: 1rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-inventory-summary {
  display: grid;
  gap: 1rem;
}

.admin-stock-history {
  display: grid;
  gap: 0.75rem;
}

.admin-stock-history h3 {
  margin: 0;
  color: #f2dfad;
  font-size: 0.9rem;
}

.admin-stock-history-list {
  display: grid;
  gap: 0.55rem;
}

.admin-stock-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(207, 173, 63, 0.18);
  background: rgba(18, 9, 7, 0.52);
}

.admin-stock-history-item > div {
  display: grid;
  gap: 0.18rem;
}

.admin-stock-history-item strong {
  color: #f6e7bf;
}

.admin-stock-history-item span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-stock-history-item.is-positive {
  border-color: rgba(122, 177, 97, 0.28);
}

.admin-stock-history-item.is-negative {
  border-color: rgba(194, 92, 70, 0.28);
}

.admin-inventory-summary h3 {
  margin: 0 0 0.55rem;
  color: #f2dfad;
  font-size: 0.9rem;
}

.admin-inventory-list {
  display: grid;
  gap: 0.55rem;
}

.admin-inventory-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(207, 173, 63, 0.2);
  background: rgba(18, 9, 7, 0.58);
}

.admin-inventory-item strong {
  color: #f6e7bf;
}

.admin-inventory-item span,
.admin-inventory-item em {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: normal;
}

.admin-inventory-item em {
  color: var(--gold-soft);
  align-self: center;
}

.admin-inventory-item.is-low {
  border-color: rgba(207, 173, 63, 0.34);
  background: rgba(88, 49, 14, 0.26);
}

.admin-inventory-item.is-sold-out {
  border-color: rgba(194, 92, 70, 0.36);
  background: rgba(88, 22, 18, 0.24);
}

.admin-form {
  display: grid;
  gap: 1.1rem;
}

.admin-settings-form {
  gap: 1rem;
}

.admin-settings-group {
  margin: 0;
  padding: 1rem 0.95rem 0.9rem;
  border: 1px solid rgba(230, 184, 93, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 12, 8, 0.68), rgba(14, 7, 6, 0.5)),
    rgba(18, 9, 7, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 233, 176, 0.05);
  display: grid;
  gap: 0.75rem 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-settings-group legend {
  padding: 0 0.6rem;
  color: #f5e0ac;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.94rem;
}

.admin-settings-group-note {
  margin: 0.1rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-settings-group > legend,
.admin-settings-group > .admin-settings-group-note,
.admin-settings-group > .admin-image-preview,
.admin-settings-group > .admin-field-full,
.admin-settings-group > .admin-switch,
.admin-settings-group > label:has(textarea) {
  grid-column: 1 / -1;
}

.admin-settings-group > label {
  align-content: start;
}

.admin-form label {
  display: grid;
  gap: 0.45rem;
  color: #ead8aa;
  font-size: 0.92rem;
}

.admin-settings-form label:not(.admin-switch) {
  position: relative;
  padding-right: 1.1rem;
}

.admin-settings-form label:not(.admin-switch)::after {
  content: "";
  position: absolute;
  top: 0.24rem;
  right: 0.1rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 176, 84, 0.52);
  background: rgba(207, 155, 63, 0.18);
  box-shadow: 0 0 0 2px rgba(14, 7, 6, 0.55);
}

.admin-settings-form label.is-filled:not(.admin-switch)::after {
  border-color: rgba(110, 201, 132, 0.8);
  background: rgba(95, 191, 119, 0.68);
}

.admin-settings-form label.is-filled:not(.admin-switch) input,
.admin-settings-form label.is-filled:not(.admin-switch) select,
.admin-settings-form label.is-filled:not(.admin-switch) textarea {
  border-color: rgba(115, 210, 138, 0.46);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(230, 184, 93, 0.28);
  border-radius: 12px;
  background: rgba(18, 9, 7, 0.86);
  color: #f6f0df;
  padding: 0.7rem 0.82rem;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-settings-form input,
.admin-settings-form select,
.admin-settings-form textarea {
  padding: 0.6rem 0.72rem;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: rgba(240, 204, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(217, 181, 88, 0.14);
}

.admin-form textarea {
  resize: vertical;
  min-height: 110px;
}

.admin-settings-form textarea {
  min-height: 84px;
}

.admin-settings-form input[type="password"][data-has-stored-secret="true"] {
  letter-spacing: 0.08em;
  font-family: "Courier New", monospace;
  border-color: rgba(120, 217, 143, 0.42);
  background:
    linear-gradient(180deg, rgba(35, 67, 40, 0.2), rgba(18, 9, 7, 0.86)),
    rgba(18, 9, 7, 0.86);
}

.admin-secret-status {
  display: none;
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #b19c7b;
  background: rgba(255, 233, 176, 0.03);
  border-radius: 8px;
  border-left: 3px solid rgba(240, 204, 113, 0.25);
}

.admin-secret-status[data-has-secret="true"] {
  display: block;
  color: #94d6a1;
  border-left-color: rgba(120, 217, 143, 0.7);
  background: rgba(79, 139, 91, 0.12);
}

.field-required-marker {
  color: rgba(229, 193, 102, 0.88);
  font-weight: 700;
  margin-left: 0.08rem;
}

.field-label-text {
  display: inline;
}

.form-required-note {
  margin: 0.35rem 0 0;
  color: rgba(198, 180, 145, 0.8);
  font-size: 0.77rem;
  line-height: 1.35;
}

.admin-image-preview {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px dashed rgba(207, 173, 63, 0.28);
  border-radius: 14px;
  background: rgba(18, 9, 7, 0.45);
}

.admin-image-preview img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
}

.admin-image-preview strong {
  display: block;
  margin-bottom: 0.2rem;
}

.admin-image-preview p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-gallery-editor {
  display: grid;
  gap: 0.55rem;
}

.admin-gallery-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.55rem;
}

.admin-gallery-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(207, 173, 63, 0.2);
  border-radius: 10px;
  background: rgba(14, 8, 6, 0.58);
  cursor: grab;
}

.admin-gallery-item:active {
  cursor: grabbing;
}

.admin-gallery-item.is-dragging {
  opacity: 0.65;
}

.admin-gallery-item.is-drop-target {
  border-color: rgba(245, 218, 143, 0.72);
  box-shadow: 0 0 0 2px rgba(245, 218, 143, 0.2);
}

.admin-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(207, 173, 63, 0.16);
}

.admin-gallery-item-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.admin-gallery-item label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #f1e4c1;
  font-size: 0.8rem;
  line-height: 1.2;
}

.admin-gallery-item label input[type="radio"] {
  width: auto;
  margin: 0;
  flex: none;
  accent-color: #d9b560;
}

.admin-gallery-item label span {
  line-height: 1.2;
}

.admin-gallery-item button {
  border: 1px solid rgba(194, 92, 70, 0.34);
  background: rgba(46, 18, 14, 0.8);
  color: #f0b3a8;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.admin-switches {
  display: grid;
  gap: 0.55rem;
}

.admin-switch {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.76rem;
  border: 1px solid rgba(230, 184, 93, 0.18);
  border-radius: 12px;
  background: rgba(15, 8, 6, 0.42);
}

.admin-switch input {
  width: auto;
}

.admin-switch span {
  line-height: 1.35;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.admin-save-button {
  width: 100%;
}

[data-admin-panel="settings"] .admin-grid-full,
[data-admin-panel="technical-settings"] .admin-grid-full {
  max-width: 980px;
  margin-inline: auto;
}

[data-admin-panel="settings"] .admin-grid-full {
  max-width: none;
  margin-inline: 0;
}

[data-admin-panel="technical-settings"] .admin-grid-full {
  max-width: none;
  margin-inline: 0;
}

[data-admin-panel="settings"] .admin-card,
[data-admin-panel="technical-settings"] .admin-card {
  padding: 0.95rem;
}

[data-admin-panel="settings"] .admin-card-head,
[data-admin-panel="technical-settings"] .admin-card-head {
  margin-bottom: 0.7rem;
}

[data-admin-panel="settings"] .admin-save-button,
[data-admin-panel="technical-settings"] .admin-save-button {
  width: auto;
  min-width: 180px;
  padding: 0.58rem 0.95rem;
  font-size: 0.92rem;
}

[data-admin-panel="technical-settings"] .admin-settings-form {
  gap: 0.9rem;
}

[data-admin-panel="settings"] .admin-settings-form {
  gap: 0.9rem;
}

[data-admin-panel="technical-settings"] .admin-settings-group {
  padding: 0.86rem 0.8rem 0.76rem;
  gap: 0.62rem 0.68rem;
}

[data-admin-panel="settings"] .admin-settings-group {
  padding: 0.86rem 0.8rem 0.76rem;
  gap: 0.62rem 0.68rem;
}

[data-admin-panel="technical-settings"] .admin-form label {
  gap: 0.34rem;
  font-size: 0.88rem;
}

[data-admin-panel="settings"] .admin-form label {
  gap: 0.34rem;
  font-size: 0.88rem;
}

[data-admin-panel="technical-settings"] .admin-settings-form input,
[data-admin-panel="technical-settings"] .admin-settings-form select,
[data-admin-panel="technical-settings"] .admin-settings-form textarea {
  padding: 0.54rem 0.64rem;
}

[data-admin-panel="settings"] .admin-settings-form input,
[data-admin-panel="settings"] .admin-settings-form select,
[data-admin-panel="settings"] .admin-settings-form textarea {
  padding: 0.54rem 0.64rem;
}

@media (max-width: 900px) {
  .admin-settings-group {
    grid-template-columns: 1fr;
  }
}

.admin-categories-manager {
  display: grid;
  gap: 0.38rem;
  padding: 0.75rem;
  border: 1px solid rgba(207, 173, 63, 0.2);
  border-radius: 16px;
  background: rgba(18, 9, 7, 0.45);
  align-content: start;
  margin-bottom: 0.9rem;
}

.admin-categories-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.admin-categories-manager h3 {
  margin: 0;
  color: #f2dfad;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-add-category-btn {
  padding: 0.34rem 0.62rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  align-self: center;
}

.admin-category-form {
  gap: 0.55rem;
}

.admin-category-form .admin-form-actions {
  margin-top: 0;
}

.admin-category-form label {
  font-size: 0.82rem;
  gap: 0.3rem;
}

.admin-category-form input {
  padding: 0.52rem 0.62rem;
  border-radius: 10px;
  border-color: rgba(219, 180, 86, 0.36);
  background:
    linear-gradient(180deg, rgba(27, 14, 10, 0.92), rgba(15, 7, 6, 0.88));
}

.admin-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-categories-manager .admin-inline-note {
  min-height: 0;
}

.admin-categories-manager .admin-inline-note:empty {
  display: none;
}

.admin-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.44rem 0.56rem;
  border: 1px solid rgba(207, 173, 63, 0.18);
  border-radius: 12px;
  background: rgba(18, 9, 7, 0.6);
}

.admin-category-card-body {
  display: grid;
  align-content: start;
  gap: 0.1rem;
  min-width: 0;
}

.admin-category-card-body strong {
  color: #f2dfad;
  font-family: "Marcellus", serif;
  line-height: 1.22;
  font-size: 0.84rem;
}

.admin-category-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.26rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-category-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  border: 1px solid rgba(207, 173, 63, 0.28);
  background: rgba(20, 10, 7, 0.78);
  color: #f2dfad;
  border-radius: 999px;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0.2rem 0.46rem;
  cursor: pointer;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.admin-category-actions button[data-action="edit-category"],
.admin-category-actions button[data-action="delete-category"] {
  font-size: 0.76rem;
  min-height: 1.95rem;
  padding-inline: 0.56rem;
}

.admin-category-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-category-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 2, 0.74);
  backdrop-filter: blur(7px);
}

.admin-category-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(29, 15, 12, 0.98), rgba(18, 9, 7, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 2, 0.74);
  backdrop-filter: blur(7px);
}

.admin-confirm-modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(29, 15, 12, 0.98), rgba(18, 9, 7, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

.admin-confirm-message {
  margin: 0;
  color: var(--text-main);
  line-height: 1.45;
  font-size: 0.9rem;
}

.admin-confirm-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.admin-confirm-actions .admin-link-button {
  border-radius: 999px;
}

.admin-confirm-actions .admin-save-button {
  width: auto;
  min-width: 120px;
}

.admin-confirm-actions .admin-save-button.is-danger {
  background: linear-gradient(170deg, #cc6a55, #a64737);
  border-color: rgba(255, 150, 120, 0.55);
  color: #2b0d09;
}

.admin-catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: start;
}

.admin-catalog-layout .admin-product-list {
  min-width: 0;
}

@media (max-width: 920px) {
  .admin-catalog-layout {
    grid-template-columns: 1fr;
  }

  .admin-category-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

.admin-product-list,
.admin-orders,
.admin-users-list {
  display: grid;
  gap: 0.85rem;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(207, 173, 63, 0.18);
  border-radius: 14px;
  background: rgba(18, 9, 7, 0.66);
}

.admin-user-meta {
  display: grid;
  gap: 0.2rem;
}

.admin-user-meta strong {
  color: #f2e4bf;
  font-family: "Marcellus", serif;
}

.admin-user-meta span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-user-actions {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.admin-user-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  border: 1px solid rgba(207, 173, 63, 0.28);
  background: rgba(20, 10, 7, 0.78);
  color: #f2dfad;
  border-radius: 999px;
  min-width: 2.1rem;
  min-height: 2.1rem;
  padding: 0.25rem 0.62rem;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.admin-category-actions button .action-icon,
.admin-catalog-card-actions button .action-icon,
.admin-archive-item-actions button .action-icon,
.admin-user-actions button .action-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.admin-category-actions button .action-label,
.admin-catalog-card-actions button .action-label,
.admin-archive-item-actions button .action-label,
.admin-user-actions button .action-label {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.admin-user-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-user-badge {
  color: #2c2007;
  background: linear-gradient(170deg, #deb95a, #bc9434);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-product-group h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.admin-product-group p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-product-rows {
  display: grid;
  gap: 0.65rem;
}

/* Catalog tab: card grid per category */
.admin-catalog-category {
  margin-bottom: 1.5rem;
}

.admin-catalog-category h3 {
  margin: 0 0 0.15rem;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 1rem;
}

.admin-catalog-category-sub {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-catalog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.9rem;
}

.admin-catalog-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(180, 138, 45, 0.28);
  border-radius: 18px;
  background: var(--card-bg);
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(80, 40, 10, 0.16) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.admin-catalog-card:hover {
  border-color: rgba(207, 173, 63, 0.52);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.62),
    0 0 22px rgba(207, 173, 63, 0.07),
    0 0 0 1px rgba(110, 70, 15, 0.28) inset;
  transform: translateY(-2px);
}

.admin-catalog-card.is-inactive {
  opacity: 0.62;
  filter: grayscale(25%);
}

.admin-catalog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.admin-catalog-card-body {
  padding: 0.68rem 0.72rem 0.35rem;
  display: grid;
  gap: 0.3rem;
}

.admin-catalog-card-category {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(207, 173, 63, 0.18);
  background: rgba(18, 8, 5, 0.45);
  color: #d8c392;
  padding: 0.2rem 0.52rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-catalog-card-body strong {
  color: #f2e4bf;
  font-family: "Marcellus", serif;
  font-size: 1rem;
  line-height: 1.3;
}

.admin-catalog-card-meta {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.admin-catalog-stock.is-low { color: #c9a84c; }
.admin-catalog-stock.is-zero { color: #c07060; }

.admin-catalog-badge {
  font-size: 0.67rem;
  color: #c8a048;
  border: 1px solid rgba(207, 173, 63, 0.35);
  border-radius: 6px;
  padding: 0.07rem 0.36rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.admin-catalog-card-actions {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.72rem 0.7rem;
  border-top: 1px solid rgba(180, 140, 50, 0.12);
}

.admin-catalog-card-actions button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 2rem;
  padding: 0.3rem 0.3rem;
  border: 1px solid rgba(207, 173, 63, 0.28);
  border-radius: 10px;
  background: rgba(18, 9, 7, 0.5);
  color: #e0ccaa;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-catalog-card-actions button:hover {
  background: rgba(207, 173, 63, 0.12);
  border-color: rgba(207, 173, 63, 0.5);
}

.admin-catalog-card-actions button[data-action="archive"] {
  border-color: rgba(100, 100, 100, 0.28);
  color: #9a9080;
}

.admin-catalog-card-actions button[data-action="archive"]:hover {
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(130, 130, 130, 0.48);
}

.admin-product-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(207, 173, 63, 0.18);
  border-radius: 14px;
  background: rgba(18, 9, 7, 0.66);
}

.admin-product-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(207, 173, 63, 0.15);
}

.admin-product-meta {
  display: grid;
  gap: 0.2rem;
}

.admin-product-meta strong {
  color: #f2e4bf;
  font-family: "Marcellus", serif;
}

.admin-product-meta span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.admin-product-row.is-inactive {
  opacity: 0.9;
  background: rgba(50, 30, 20, 0.66);
  border-color: rgba(207, 173, 63, 0.1);
}

.admin-product-row.is-inactive .admin-product-meta strong {
  color: #bfb8a0;
  text-decoration: line-through;
}

.admin-product-row.is-inactive .admin-product-meta span {
  color: #9a9080;
}

.admin-product-row.is-archived {
  opacity: 0.5;
  border-color: rgba(100, 100, 100, 0.2);
  box-shadow: inset 0 0 0 1px rgba(100, 100, 100, 0.1);
}

/* Archive tab: toolbar + grid layout */
.admin-archive-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  align-self: center;
}

.admin-archive-toolbar {
  margin-bottom: 1rem;
}

.admin-archive-search {
  width: 100%;
  border: 1px solid rgba(230, 184, 93, 0.28);
  border-radius: 12px;
  background: rgba(18, 9, 7, 0.86);
  color: #f6f0df;
  padding: 0.65rem 0.82rem;
  font: inherit;
}

.admin-archive-search:focus {
  outline: none;
  border-color: rgba(240, 204, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(217, 181, 88, 0.14);
}

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

.admin-archive-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(180, 138, 45, 0.24);
  border-radius: 18px;
  background: var(--card-bg);
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(80, 40, 10, 0.14) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-archive-item:hover {
  border-color: rgba(207, 173, 63, 0.46);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.56),
    0 0 20px rgba(207, 173, 63, 0.06),
    0 0 0 1px rgba(110, 70, 15, 0.24) inset;
}

.admin-archive-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  opacity: 0.82;
  filter: grayscale(22%);
}

.admin-archive-item-body {
  padding: 0.68rem 0.76rem 0.5rem;
  display: grid;
  gap: 0.28rem;
}

.admin-archive-item-body strong {
  color: #e8d8a8;
  font-family: "Marcellus", serif;
  font-size: 1rem;
}

.admin-archive-item-category {
  width: fit-content;
  color: #d8c392;
  border-radius: 999px;
  border: 1px solid rgba(207, 173, 63, 0.18);
  background: rgba(18, 8, 5, 0.45);
  padding: 0.2rem 0.52rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-archive-item-meta {
  display: flex;
  gap: 0.68rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-archive-stock.is-low { color: #c9a84c; }
.admin-archive-stock.is-zero { color: #c07060; }

.admin-archive-item-actions {
  display: flex;
  gap: 0.32rem;
  padding: 0.55rem 0.76rem 0.74rem;
  border-top: 1px solid rgba(180, 140, 50, 0.12);
  justify-content: flex-end;
}

.admin-archive-item-actions button {
  flex: 0 0 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 2.05rem;
  min-height: 2.05rem;
  padding: 0;
  border: 1px solid rgba(207, 173, 63, 0.28);
  border-radius: 10px;
  background: rgba(18, 9, 7, 0.5);
  color: #e0ccaa;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-archive-item-actions button .action-label {
  display: none;
}

.admin-archive-item-actions button:hover {
  background: rgba(207, 173, 63, 0.12);
  border-color: rgba(207, 173, 63, 0.5);
}

.admin-archive-item-actions button[data-action="delete"] {
  border-color: rgba(180, 70, 60, 0.3);
  color: #c87a70;
}

.admin-archive-item-actions button[data-action="delete"]:hover {
  background: rgba(180, 70, 60, 0.14);
  border-color: rgba(200, 90, 80, 0.55);
}

.admin-product-row.is-low-stock {
  border-color: rgba(207, 173, 63, 0.34);
  box-shadow: inset 0 0 0 1px rgba(207, 173, 63, 0.14);
}

.admin-product-row.is-sold-out {
  border-color: rgba(194, 92, 70, 0.34);
  box-shadow: inset 0 0 0 1px rgba(194, 92, 70, 0.16);
}

.admin-product-actions {
  display: grid;
  gap: 0.45rem;
}

.admin-product-actions button {
  border: 1px solid rgba(207, 173, 63, 0.28);
  background: rgba(20, 10, 7, 0.78);
  color: #f2dfad;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 0.65rem;
}

.admin-product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 2, 0.76);
  backdrop-filter: blur(8px);
}

.admin-product-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(94vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(29, 15, 12, 0.98), rgba(18, 9, 7, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.64);
}

.admin-product-modal-card .admin-card-head {
  margin-bottom: 0.45rem;
}

.admin-product-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52rem 0.68rem;
  align-content: start;
}

.admin-product-modal-card .admin-product-form {
  overflow: visible;
  padding-bottom: 0;
}

.admin-product-form label {
  gap: 0.3rem;
  font-size: 0.86rem;
}

.admin-product-form input,
.admin-product-form select,
.admin-product-form textarea {
  padding: 0.55rem 0.66rem;
  border-radius: 10px;
}

.admin-product-form .admin-field-full,
.admin-product-form .admin-image-preview,
.admin-product-form .admin-switches,
.admin-product-form .admin-form-actions {
  grid-column: 1 / -1;
}

.admin-product-form textarea {
  min-height: 68px;
}

.admin-product-form .admin-image-preview {
  grid-template-columns: 60px 1fr;
  padding: 0.46rem;
}

.admin-product-form .admin-image-preview img {
  width: 60px;
  height: 60px;
}

.admin-product-form .admin-image-preview p {
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-product-form .admin-switches {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-product-form .admin-switch {
  padding: 0.56rem 0.68rem;
}

.admin-product-form .admin-form-actions {
  position: sticky;
  bottom: 0;
  margin-top: 0;
  padding-top: 0.45rem;
  padding-bottom: 0;
  background: linear-gradient(180deg, rgba(18, 9, 7, 0), rgba(18, 9, 7, 0.95) 38%);
  z-index: 2;
}

.admin-product-form .admin-save-button {
  width: auto;
  min-width: 170px;
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 0.56rem 1.1rem;
}

.admin-confirm-modal-card {
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

@media (max-width: 1120px) {
  .admin-product-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .admin-product-modal-card {
    max-height: min(92vh, 860px);
    overflow: auto;
  }

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

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

@media (max-height: 900px) {
  .admin-product-modal-card {
    max-height: min(92vh, 860px);
    overflow: auto;
  }

  .admin-product-modal-card .admin-product-form {
    overflow: auto;
    padding-bottom: 0.2rem;
  }
}

body.is-modal-open {
  overflow: hidden;
}

.invoice-pdf-surface {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  background: #fff;
  color: #222;
  font-family: Arial, sans-serif;
}

.invoice-pdf-sheet {
  box-sizing: border-box;
  width: 794px;
  min-height: 1123px;
  padding: 60px 52px 112px;
  background: #fff;
  color: #222;
}

.invoice-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.invoice-pdf-header h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: #4d4d4d;
}

.invoice-pdf-number {
  font-size: 1.55rem;
  font-weight: 700;
  color: #4d4d4d;
}

.invoice-pdf-rule {
  height: 4px;
  margin: 0.35rem 0 1rem;
  background: #4a97da;
}

.invoice-pdf-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 1rem;
}

.invoice-pdf-parties article {
  min-height: 120px;
}

.invoice-pdf-parties h2,
.invoice-pdf-payment h2,
.invoice-pdf-footer h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #6d6d6d;
}

.invoice-pdf-parties strong {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 1rem;
  color: #000;
}

.invoice-pdf-parties p,
.invoice-pdf-payment dl,
.invoice-pdf-payment dd,
.invoice-pdf-payment dt,
.invoice-pdf-footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.invoice-pdf-note {
  margin-top: 0.9rem !important;
  max-width: 34ch;
}

.invoice-pdf-payment {
  margin: 0.2rem 0 0.85rem;
}

.invoice-pdf-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.invoice-pdf-payment dl {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  column-gap: 1rem;
  row-gap: 0.2rem;
}

.invoice-pdf-payment dt {
  font-weight: 700;
  color: #555;
}

.invoice-pdf-payment dd {
  color: #000;
}

.invoice-pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.1rem;
  table-layout: fixed;
}

.invoice-pdf-table th,
.invoice-pdf-table td {
  padding: 0.25rem 0.45rem 0.25rem 0;
  font-size: 0.88rem;
  vertical-align: top;
}

.invoice-pdf-table th {
  text-align: left;
  font-size: 0.9rem;
  color: #666;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #d2d2d2;
}

.invoice-pdf-table th:first-child,
.invoice-pdf-table td:first-child {
  width: 48%;
}

.invoice-pdf-table th:nth-child(2),
.invoice-pdf-table td:nth-child(2) {
  width: 14%;
}

.invoice-pdf-table th:nth-child(3),
.invoice-pdf-table td:nth-child(3) {
  width: 18%;
}

.invoice-pdf-table th:nth-child(4),
.invoice-pdf-table td:nth-child(4) {
  width: 20%;
}

.invoice-pdf-table .num {
  text-align: right;
  white-space: nowrap;
}

.invoice-pdf-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  margin-top: 1.1rem;
  margin-bottom: 1.4rem;
}

.invoice-pdf-summary-lines {
  display: grid;
  gap: 0.3rem;
  justify-items: end;
  min-width: 230px;
}

.invoice-pdf-summary-lines p {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1.25rem;
  margin: 0;
  width: 100%;
  justify-content: space-between;
}

.invoice-pdf-summary-lines span {
  color: #333;
}

.invoice-pdf-summary-lines strong {
  min-width: 110px;
  text-align: right;
  font-weight: 700;
}

.invoice-pdf-summary-lines .is-total {
  margin-top: 0.15rem;
  font-size: 1rem;
}

.invoice-pdf-summary-lines .is-total strong {
  font-size: 1.02rem;
}

.invoice-pdf-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 1rem;
  margin-top: 1.2rem;
  min-height: 84px;
}

.invoice-pdf-footer strong {
  font-size: 1rem;
}

.invoice-pdf-footer p {
  margin: 0;
  color: #000;
}

.invoice-pdf-signature {
  justify-self: end;
  width: 180px;
  height: 60px;
  border-bottom: 2px solid transparent;
  background:
    radial-gradient(ellipse at 40% 55%, transparent 0 55%, rgba(0, 0, 0, 0.8) 56%, transparent 57%),
    radial-gradient(ellipse at 58% 30%, transparent 0 52%, rgba(0, 0, 0, 0.8) 53%, transparent 54%),
    linear-gradient(12deg, transparent 0 46%, rgba(0, 0, 0, 0.8) 47%, transparent 48%),
    linear-gradient(6deg, transparent 0 64%, rgba(0, 0, 0, 0.8) 65%, transparent 66%);
  opacity: 0.65;
}

.admin-orders-card {
  margin-top: 1rem;
}

.admin-order-row {
  border: 1px solid rgba(207, 173, 63, 0.22);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(20, 10, 8, 0.78), rgba(16, 8, 6, 0.92));
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(245, 218, 143, 0.06);
}

.admin-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.admin-order-summary-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.45rem 1rem;
  align-items: center;
  min-width: 0;
}

.admin-order-summary-main strong,
.admin-order-summary-main span,
.admin-order-summary-main em {
  min-width: 0;
}

.admin-order-summary-main strong {
  color: var(--gold-soft);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-order-summary-main span {
  color: #ead8aa;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-order-toggle {
  width: 2.85rem;
  height: 2.85rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  line-height: 0;
  border: 1px solid rgba(207, 173, 63, 0.28);
  border-radius: 999px;
  background: rgba(20, 10, 7, 0.78);
  color: #f2dfad;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-order-toggle:hover {
  border-color: rgba(240, 204, 113, 0.5);
  background: rgba(31, 15, 10, 0.92);
}

.admin-order-toggle-icon {
  width: 0.74rem;
  height: 0.74rem;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-0.5px, -0.5px) rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}

.admin-order-row.is-expanded .admin-order-toggle-icon {
  transform: translate(-0.5px, -0.5px) rotate(225deg);
}

.admin-order-details {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(245, 218, 143, 0.08);
}

.admin-order-row.is-cancelled {
  border-color: rgba(194, 92, 70, 0.46);
  background: linear-gradient(145deg, rgba(66, 22, 17, 0.52), rgba(30, 11, 8, 0.9));
}

.admin-order-row.is-cancelled .admin-order-summary-main strong,
.admin-order-row.is-cancelled .admin-order-summary-main span:last-child {
  color: #ffd2c9;
}

.admin-order-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 0.6rem;
}

.admin-order-actions button {
  border: 1px solid rgba(207, 173, 63, 0.28);
  background: rgba(20, 10, 7, 0.78);
  color: #f2dfad;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-order-actions button[data-action="invoice"]::before {
  content: "📄 ";
}

.admin-order-actions button[data-action="fakturoid-sync"]::before {
  content: "↻ ";
}

.admin-order-actions button[data-action="email-confirmation"]::before,
.admin-order-actions button[data-action="email-cancellation"]::before {
  content: "✉ ";
}

.admin-order-actions button[data-action="cancel"]::before {
  content: "✕ ";
}

.admin-order-actions button[data-action="cancel"] {
  border-color: rgba(194, 92, 70, 0.42);
  color: #ffd1c8;
  background: rgba(70, 22, 16, 0.7);
}

.admin-order-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem 1rem;
}

.admin-order-body p {
  margin: 0;
  color: #ead8aa;
  font-size: 0.88rem;
  line-height: 1.42;
}

.admin-invoice-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  border-radius: 999px;
  border: 1px solid rgba(207, 173, 63, 0.3);
  padding: 0.16rem 0.56rem;
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f2dfad;
  background: rgba(18, 9, 7, 0.7);
}

.admin-invoice-state.is-active {
  border-color: rgba(207, 173, 63, 0.4);
  color: #f2dfad;
}

.admin-invoice-state.is-paid {
  border-color: rgba(90, 178, 109, 0.5);
  color: #caf3cf;
  background: rgba(30, 68, 39, 0.44);
}

.admin-invoice-state.is-canceled {
  border-color: rgba(194, 92, 70, 0.48);
  color: #ffd3cb;
  background: rgba(70, 22, 16, 0.58);
}

.admin-order-body span {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.18rem;
}

.admin-empty {
  color: var(--text-muted);
  margin: 0;
}

.admin-empty-error {
  color: #d17a6a;
}

@media (max-width: 960px) {
  .home-values-grid,
  .home-strip,
  .home-story {
    grid-template-columns: 1fr;
  }

  .shop-tools {
    grid-template-columns: 1fr;
  }

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

  .admin-catalog-grid {
    grid-template-columns: 1fr;
  }

  .stat-card-wide {
    grid-column: span 1;
  }

  .admin-category-actions button .action-label,
  .admin-catalog-card-actions button .action-label,
  .admin-archive-item-actions button .action-label,
  .admin-user-actions button .action-label {
    display: none;
  }

  .admin-category-actions button[data-action="edit-category"],
  .admin-category-actions button[data-action="delete-category"],
  .admin-user-actions button,
  .admin-catalog-card-actions button,
  .admin-archive-item-actions button {
    min-width: 2rem;
    padding-inline: 0.32rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 700px) {
  .admin-order-summary {
    grid-template-columns: 1fr;
  }

  .admin-order-toggle {
    justify-self: end;
  }

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

  .admin-product-row {
    grid-template-columns: 64px 1fr;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-user-actions {
    justify-items: stretch;
  }

  .admin-product-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-order-row header,
  .admin-order-row footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0);
  }
  to {
    transform: translate3d(2%, 1.5%, 0);
  }
}

@keyframes flicker {
  0% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.28;
  }
  100% {
    opacity: 0.16;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 82vh;
  }

  .hero-card {
    padding-inline: 1rem;
  }

  .enter-button {
    width: min(280px, 100%);
  }

  .footer-inner,
  .footer-meta {
    gap: 1rem;
  }

  .shop-main {
    padding-top: 1.4rem;
  }

  .product-image {
    aspect-ratio: 4 / 5;
  }

  .cart-panel {
    width: 100%;
  }
}

.payment-success-page {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.payment-success-main {
  width: min(760px, 100%);
}

.payment-success-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(207, 173, 63, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 20%, rgba(220, 170, 70, 0.14), transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(155, 62, 30, 0.22), transparent 42%),
    linear-gradient(155deg, rgba(34, 16, 10, 0.95), rgba(11, 6, 5, 0.94));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(120, 70, 20, 0.22) inset;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  text-align: center;
}

.payment-success-card-cancel {
  border-color: rgba(194, 92, 70, 0.34);
  background:
    radial-gradient(circle at 16% 20%, rgba(194, 92, 70, 0.16), transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(140, 45, 30, 0.22), transparent 42%),
    linear-gradient(155deg, rgba(34, 13, 10, 0.95), rgba(11, 5, 5, 0.94));
}

.payment-success-kicker {
  margin: 0;
  color: #ebcf8a;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.payment-success-card h1 {
  margin: 0.65rem 0 0.85rem;
  color: #fff4d3;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.payment-success-copy {
  margin: 0 auto;
  max-width: 42ch;
  color: #dfcda4;
  line-height: 1.65;
}

.payment-success-status {
  margin: 1rem auto 0;
  padding: 0.62rem 0.8rem;
  border-radius: 10px;
  max-width: 48ch;
  font-size: 0.92rem;
  line-height: 1.5;
  border: 1px solid rgba(207, 173, 63, 0.28);
  background: rgba(22, 12, 8, 0.68);
  color: #f1dcac;
}

.payment-success-status.is-success {
  border-color: rgba(130, 180, 120, 0.48);
  color: #d6f2cb;
}

.payment-success-status.is-warning {
  border-color: rgba(207, 173, 63, 0.42);
  color: #f2dfab;
}

.payment-success-link {
  margin-top: 1.35rem;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.payment-success-actions {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.payment-success-actions .payment-success-link {
  margin-top: 0;
}

.payment-alt-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.05rem;
}

@media (max-width: 640px) {
  .payment-success-card {
    border-radius: 18px;
    padding: 1.25rem 1rem 1.4rem;
  }

  .payment-success-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-success-actions a {
    width: 100%;
  }
}
