: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%);
}

.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;
}

.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;
}

.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 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-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:
    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%);
}

.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;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin: 1rem 0 2.4rem;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(170px, 0.7fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

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

.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;
}

.category-nav a {
  text-decoration: none;
  color: #d4c49e;
  border: 1px solid rgba(180, 138, 45, 0.35);
  padding: 0.38rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(20, 10, 7, 0.8);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  border-color: #c9a83a;
  color: #f0d98a;
  box-shadow: 0 0 10px rgba(207, 173, 63, 0.14);
}

.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);
  padding: 0.7rem;
  border-radius: 18px;
  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: 3 / 4;
  border: 1px solid rgba(180, 138, 45, 0.22);
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: rgba(18, 8, 5, 0.6);
}

.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.6rem;
}

.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.5rem;
  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;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  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-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-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-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:
    radial-gradient(circle at 20% -10%, rgba(140, 62, 28, 0.2), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(210, 164, 72, 0.1), transparent 35%),
    radial-gradient(ellipse at 50% 100%, rgba(70, 24, 8, 0.3), transparent 55%),
    linear-gradient(180deg, #110908 0%, #090505 45%, #060303 100%);
}

.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;
}

.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 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(230, 184, 93, 0.25);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: rgba(37, 20, 15, 0.55);
}

.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;
}

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

.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-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);
}

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

/* ── 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;
}

/* ── 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%);
}

  .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: 1px solid rgba(207, 173, 63, 0.16);
  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: auto;
  width: min(420px, 100%);
}

.admin-logout-button {
  margin-left: auto;
  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 {
  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.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.28);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(29, 14, 10, 0.96), rgba(12, 6, 5, 0.94));
  padding: 1.1rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}

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

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

.admin-card-note {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.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: 0.7rem;
}

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

.admin-form input,
.admin-form select,
.admin-form textarea {
  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.65rem 0.75rem;
  font: inherit;
}

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

.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-switches {
  display: grid;
  gap: 0.55rem;
}

.admin-switch {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
}

.admin-switch input {
  width: auto;
}

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

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

.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 {
  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-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;
}

.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);
}

.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: 1rem;
}

.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(760px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  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.9rem;
}

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 54px;
  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.75rem;
}

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

.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;
}

.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 .num {
  text-align: right;
  white-space: nowrap;
}

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

.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: 2rem;
  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: 1rem;
  min-height: 95px;
}

.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-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 header strong,
.admin-order-row.is-cancelled footer span {
  color: #ffd2c9;
}

.admin-order-row header,
.admin-order-row footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-order-row header {
  margin-bottom: 0.7rem;
  color: var(--gold-soft);
}

.admin-order-row header span,
.admin-order-row footer span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.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="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-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;
}

@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;
  }
}

@media (max-width: 700px) {
  .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: 3 / 4;
  }

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