:root {
  --bg: #f6f3ea;
  --ink: #101319;
  --muted: #5d6673;
  --line: #d8cfbe;
  --card: #fffdf8;
  --accent: #ef4d20;
  --accent2: #0f8d5f;
  --shadow: 0 16px 34px rgba(16, 19, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 77, 32, 0.12), transparent 35%),
    radial-gradient(circle at 84% 17%, rgba(15, 141, 95, 0.13), transparent 36%),
    var(--bg);
}

.site-header,
.container,
.hero {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  color: #ffb24a;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.07em;
  background: linear-gradient(180deg, #ffd788 0%, #ffad33 45%, #f07f1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.4px #b75b05;
  text-shadow:
    0 1px 0 #ffe9bb,
    0 2px 0 #d07a1f,
    0 4px 10px rgba(143, 67, 0, 0.28);
}

nav {
  display: flex;
  gap: 0.8rem;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

nav a[aria-current="page"] {
  color: var(--accent);
}

.cart-btn,
button,
.cta,
.checkout {
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.cart-btn {
  background: #101319;
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}

.cart-btn span {
  background: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  margin-left: 0.4rem;
}

.hero {
  margin-top: 0.4rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 231, 0.9));
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.9;
}

.hero p {
  max-width: 60ch;
}

.cta {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), #f2772f);
  color: #fff;
  font-weight: 800;
  padding: 0.65rem 1rem;
}

.container {
  padding: 1.15rem 0 2rem;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

input,
select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  background: #fff;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  animation: in 420ms ease forwards;
}

.thumb-link {
  display: block;
  aspect-ratio: 4 / 3;
  background: #ece7dc;
}

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

.card-body {
  padding: 0.75rem;
}

.tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.card h3 {
  font-size: 1.45rem;
  line-height: 0.9;
}

.short {
  min-height: 2.8em;
  font-size: 0.88rem;
  margin: 0.35rem 0;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.actions .link,
.actions .add {
  text-align: center;
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.actions .link {
  background: #e9e5dc;
  color: var(--ink);
}

.actions .add {
  background: linear-gradient(120deg, var(--accent2), #0d7f56);
  color: #fff;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(390px, 100%);
  height: 100dvh;
  background: #fffdf9;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(16, 19, 25, 0.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem;
  gap: 0.6rem;
  transition: right 250ms ease;
}

.cart-drawer.open {
  right: 0;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ghost {
  padding: 0.45rem 0.7rem;
  background: #f0ece2;
  font-weight: 700;
}

.cart-items {
  display: grid;
  gap: 0.55rem;
  overflow: auto;
  align-content: start;
}

.cart-row,
.checkout-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 0.6rem;
  align-items: center;
}

.checkout-row {
  grid-template-columns: 66px 1fr auto;
}

.cart-row img,
.checkout-row img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
}

.checkout {
  display: block;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, #101319, #2f3947);
  padding: 0.6rem;
  font-weight: 800;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
}

.gallery-block,
.detail-block,
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.thumb-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.thumb-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.big-price {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.long-copy {
  color: #28303c;
  line-height: 1.5;
}

.chips {
  display: flex;
  gap: 0.45rem;
  margin: 0.7rem 0;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-weight: 700;
  font-size: 0.78rem;
}

.add-main {
  margin-top: 0.7rem;
}

.admin-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

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

.table-wrap {
  overflow: auto;
}

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

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

td input {
  width: 100%;
}

.checkout-items {
  display: grid;
  gap: 0.55rem;
}

.narrow {
  max-width: 380px;
}

@keyframes in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .site-header {
    flex-wrap: wrap;
  }

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

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

  .hero {
    padding: 1.2rem;
    display: grid;
    gap: 0.7rem;
  }
}
