﻿* {
  box-sizing: border-box;
}

:root {
  --bg: #f2efe8;
  --paper: #f5f1ea;
  --panel: #ffffff;
  --ink: #201a15;
  --muted: #726b63;
  --line: #d9d2c8;
  --gold: #c59c4a;
  --gold-deep: #8a5d1a;
  --dark: #171410;
  --dark-soft: #201d1a;
  --accent: #e8b35f;
  --shadow: rgba(23, 20, 16, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 20px auto 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0 0 0 0;
  padding: 16px 26px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f7e5b7;
  background: radial-gradient(circle at 30% 30%, #382a18 0%, #0d0a08 42%, #090807 100%);
  border: 2px solid rgba(255, 223, 149, 0.72);
  box-shadow: inset 0 0 18px rgba(255, 220, 150, 0.35);
}

.brand-text {
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--ink);
}

.main-nav a {
  position: relative;
  opacity: 0.8;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cart,
.admin-link,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(19, 17, 14, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.76rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  background: #1b1715;
  color: #f7f0df;
  padding: 36px 42px 22px;
  min-height: 430px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-top: none;
  overflow: hidden;
}

.hero-copy {
  padding: 20px 6px 30px 0;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 3vw + 1rem, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: #f3eee4;
}

.subtext {
  margin: 24px 0 28px;
  width: min(540px, 100%);
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(247, 240, 223, 0.78);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.primary-btn,
.secondary-btn,
.filter-btn,
.add-cart-btn,
.remove-btn,
.qty-btn,
.status-select {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.primary-btn {
  background: linear-gradient(180deg, #f0d385 0%, #d1a554 100%);
  color: #1b140e;
  padding: 15px 24px;
  box-shadow: 0 12px 22px rgba(201, 150, 73, 0.28);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #1a1816;
  padding: 12px 18px;
  border: 1px solid rgba(19, 18, 16, 0.14);
}

.primary-btn:hover,
.secondary-btn:hover,
.filter-btn:hover,
.add-cart-btn:hover,
.remove-btn:hover,
.qty-btn:hover,
.ghost-btn:hover,
.header-cart:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.hero-art {
  position: relative;
  height: 360px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 15% 28%, rgba(255, 249, 176, 0.9), transparent 14%),
    radial-gradient(circle at 65% 12%, rgba(255, 170, 64, 0.82), transparent 18%),
    radial-gradient(circle at 78% 50%, rgba(222, 133, 30, 0.82), transparent 16%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.25)),
    linear-gradient(135deg, #0d0d0f 0%, #541f02 24%, #d38722 46%, #f1d272 62%, #1a120d 100%);
  overflow: hidden;
  box-shadow: inset 0 0 70px rgba(255, 193, 77, 0.32), 0 30px 50px rgba(0, 0, 0, 0.2);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: -15% 10% 8% -12%;
  border-radius: 55% 45% 60% 40%;
  background: linear-gradient(135deg, rgba(255, 167, 54, 0.7), rgba(17, 12, 8, 0.4), rgba(255, 205, 116, 0.5));
  transform: rotate(-12deg);
  filter: blur(8px);
  opacity: 0.9;
}

.hero-art::after {
  inset: 14% -16% -10% 20%;
  transform: rotate(18deg);
  opacity: 0.7;
}

.promo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 249, 230, 0.68);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
  padding: 20px 36px;
}

.promo-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--gold-deep);
}

.promo-strip h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1vw + 1rem, 2.2rem);
  font-weight: 600;
  color: #2b241d;
}

.catalog-area {
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
  padding: 28px 26px 40px;
}

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

.catalog-header h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 1vw + 1.3rem, 3rem);
  line-height: 1.1;
}

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

.filter-btn {
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid rgba(24, 23, 20, 0.2);
  font-size: 0.93rem;
}

.filter-btn.active {
  background: #1a1816;
  color: #f9f3e6;
}

.filter-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--muted);
}

.stacked-section {
  margin-top: 22px;
  border: 1px solid rgba(19, 18, 16, 0.14);
  background: rgba(255, 255, 255, 0.26);
  padding: 18px 18px 20px;
}

.muted-section {
  background: rgba(255, 255, 255, 0.18);
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading-row h3 {
  margin: 0;
  font-size: clamp(1.7rem, 1vw + 1rem, 2.5rem);
  font-weight: 600;
}

.heading-copy {
  color: var(--muted);
  font-size: 0.82rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.product-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(21, 18, 15, 0.1);
  border-radius: 14px;
  padding: 12px 12px 18px;
  box-shadow: 0 10px 18px var(--shadow);
}

.product-card img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
  border-radius: 12px;
  background: #eee;
}

.product-meta {
  padding-top: 14px;
}

.product-category {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(205, 177, 98, 0.18);
  color: var(--gold-deep);
  font-size: 0.72rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  font-weight: 700;
}

.product-card h4 {
  margin: 12px 0 8px;
  font-size: 1.45rem;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.add-cart-btn {
  background: #1b1916;
  color: #fbf5ea;
  padding: 10px 14px;
  font-size: 0.84rem;
}

.empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted);
}

.empty-box h4 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--ink);
}

.site-footer {
  margin-top: 26px;
  background: #1a1917;
  color: #f5efe6;
  padding: 26px 30px 20px;
}

.footer-top {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-block h3 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 1vw + 1.2rem, 2.6rem);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-list a,
.bottom-column a,
.bottom-column p {
  color: rgba(245, 239, 230, 0.86);
}

.contact-list .label {
  display: block;
  color: rgba(245, 239, 230, 0.6);
  margin-bottom: 6px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px;
  padding-top: 26px;
}

.bottom-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bottom-column h4 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #f8f3ea;
}

.bottom-column p {
  margin: 0;
  line-height: 1.5;
}

.admin-shell {
  padding-bottom: 30px;
}

.admin-topbar {
  margin-bottom: 20px;
}

.admin-main {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 20px 28px;
}

.login-card,
.panel-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(22, 17, 12, 0.08);
}

.login-card {
  max-width: 460px;
  margin: 30px auto;
  padding: 28px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 1vw + 1.4rem, 3rem);
}

.login-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.login-card input,
.product-form input,
.product-form textarea,
.product-form select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.block-btn {
  width: 100%;
  padding: 14px 16px;
}

.hidden {
  display: none !important;
}

.admin-dashboard {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 20px 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.stat-card strong {
  font-size: clamp(1.8rem, 1vw + 1.1rem, 2.6rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-card {
  padding: 18px 18px 14px;
}

.panel-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.product-form {
  display: flex;
  flex-direction: column;
}

.admin-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
}

.admin-product-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(245, 239, 232, 0.72);
}

.admin-product-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.admin-product-info h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.admin-product-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.remove-btn {
  background: #2a1f1b;
  color: #f7efe8;
  padding: 10px 12px;
}

.orders-panel {
  margin-top: 10px;
}

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

.orders-table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.orders-table th,
.orders-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.orders-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.status-select {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.cart-page {
  padding: 24px 0 40px;
}

.cart-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 20px rgba(22, 17, 12, 0.06);
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.cart-item-row img {
  width: 110px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-copy h4 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  font-weight: 700;
}

.qty-value {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
}

.cart-summary {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.checkout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.checkout-actions .primary-btn,
.checkout-actions .secondary-btn {
  padding-left: 18px;
  padding-right: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(22, 18, 15, 0.92);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 99;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar,
  .promo-strip,
  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel,
  .admin-grid,
  .checkout-form,
  .stats-grid,
  .footer-bottom,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 28px 20px 18px;
  }

  .hero-art {
    max-width: 100%;
    height: 290px;
  }

  .catalog-area,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
  }

  .topbar {
    padding: 14px 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

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

  .cart-item-row {
    grid-template-columns: 90px 1fr;
  }

  .cart-item-row > .remove-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

