:root {
  --ink: #15110e;
  --muted: #77695f;
  --line: #eadfd2;
  --soft: #fbf7f1;
  --cream: #f3e4d1;
  --gold: #c88c3e;
  --deep: #2a170b;
  --rose: #f5d8d5;
  --shadow: 0 18px 45px rgba(78, 48, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fffdf9;
  font-family: Inter, Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  min-height: 42px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #efe0cd, #fff8ef, #ead6bd);
  color: #17110d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divider {
  width: 1px;
  height: 17px;
  background: #7f6d5f;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-main {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 28px;
  max-width: 1580px;
  margin: 0 auto;
  padding: 28px 58px 24px;
}

.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.85;
  letter-spacing: 0.12em;
  text-align: center;
}

.search {
  display: flex;
  align-items: center;
  max-width: 300px;
  border-bottom: 1px solid #cbb8a3;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 4px;
  color: var(--ink);
}

.search button,
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.search svg,
.icon-button svg {
  width: 26px;
  height: 26px;
}

.menu-button {
  display: none;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.badge-button {
  position: relative;
}

.badge-button span {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 50px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.category-nav {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 4vw, 72px);
  padding: 18px 32px 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-nav a {
  transition: color 0.2s ease;
}

.category-nav a:hover,
.sale-link {
  color: #c94943;
}

.hero {
  position: relative;
  min-height: min(38vw, 430px);
  overflow: hidden;
  background: #eedac4;
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: min(38vw, 430px);
  object-fit: cover;
  object-position: center 46%;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 248, 238, 0.94), rgba(255, 248, 238, 0.72) 28%, rgba(255, 248, 238, 0.06) 68%);
}

.hero-copy {
  position: absolute;
  z-index: 1;
  top: 57%;
  left: clamp(28px, 6vw, 76px);
  max-width: 360px;
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #8b5c24;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 4.2vw, 64px);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  margin: 0 0 28px;
  color: #34261f;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  background: var(--deep);
  color: #f8d9a1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-category-strip {
  display: none;
}

.shop-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  max-width: 1580px;
  margin: 0 auto;
  padding: 42px 58px 58px;
}

.filters {
  border-right: 1px solid var(--line);
  padding-right: 34px;
}

.filters-head,
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.filters h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters h2 svg,
.filter-toggle svg {
  width: 22px;
  height: 22px;
}

.filters-head button,
.filter-toggle {
  border: 0;
  background: transparent;
  color: #a46625;
  cursor: pointer;
  text-decoration: underline;
}

.filter-group {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.filter-group h3 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #2d2925;
  font-size: 15px;
}

.filter-group input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

.range {
  width: 100%;
  accent-color: var(--gold);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #4e4136;
  font-size: 13px;
  font-weight: 700;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.swatches button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.rating {
  display: block;
  width: 100%;
  margin: 12px 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 15px;
  text-align: left;
}

.rating span {
  margin-left: 10px;
  color: #55483f;
}

.product-area {
  min-width: 0;
}

.shop-toolbar {
  margin-bottom: 24px;
}

.shop-toolbar p {
  margin: 0;
  color: #3d332d;
}

.filter-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 225px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.sort span {
  color: #6f6259;
  white-space: nowrap;
}

.sort select {
  flex: 1;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 38px 26px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(205, 171, 134, 0.12);
}

.product-shot {
  width: 100%;
  height: 100%;
  background-image: url("assets/eleva-hero.png");
  background-repeat: no-repeat;
  background-size: 360% auto;
  background-position: var(--pos, center);
}

.product-photo,
.detail-media img,
.admin-preview img,
.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wishlist {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 0;
  background: rgba(255, 253, 249, 0.78);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

.wishlist svg {
  width: 24px;
  height: 24px;
}

.wishlist.is-active {
  color: #b05b38;
}

.product-info {
  display: flex;
  flex-direction: column;
  padding: 18px 8px 0;
}

.product-info h3 {
  min-height: 42px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.price {
  color: #8b4f1b;
  font-size: 19px;
  font-weight: 800;
}

.old-price {
  color: #8c837d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: line-through;
}

.discount {
  min-width: 52px;
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--rose);
  color: #a44432;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.cart-button {
  width: 168px;
  max-width: 100%;
  min-height: 34px;
  margin-top: auto;
  border: 1px solid var(--gold);
  background: #fffdf9;
  color: #241a14;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-button:hover,
.cart-button.is-added {
  background: var(--deep);
  color: #f8d9a1;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-top: 42px;
  padding-top: 0;
}

.pagination a,
.pagination span,
.pagination button {
  display: grid;
  place-items: center;
  min-width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: #3c312b;
  cursor: pointer;
  font-size: 13px;
}

.pagination .is-active {
  background: var(--gold);
  color: #fff;
}

.bottom-nav,
.overlay {
  display: none;
}

.floating-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 29;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(200, 140, 62, 0.5);
  border-radius: 50%;
  background: var(--deep);
  color: #ffe0a8;
  box-shadow: 0 18px 38px rgba(42, 23, 11, 0.26);
}

.floating-cart svg {
  width: 29px;
  height: 29px;
}

.floating-cart span {
  position: absolute;
  top: -5px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: #f8f1e8;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 34px;
  max-width: 1580px;
  margin: 0 auto;
  padding: 48px 58px 34px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  line-height: 0.9;
  letter-spacing: 0.12em;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 430px;
  margin: 0 0 12px;
  color: #5f5147;
  line-height: 1.7;
}

.site-footer section:not(.footer-brand) a {
  display: block;
  margin: 10px 0;
  color: #3a2d25;
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  color: #7a4a18;
  font-size: 12px;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1580px;
  margin: 0 auto;
  padding: 18px 58px 24px;
  border-top: 1px solid #e4d3bf;
  color: #6d5c50;
  font-size: 13px;
}

.simple-header .header-main {
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
}

.admin-back,
.outline-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.danger-button {
  border-color: #b35b48;
  color: #9f3e2e;
}

.admin-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 46px 58px 80px;
}

.admin-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.admin-intro .section-title h1 {
  margin-bottom: 0;
}

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

.admin-tabs button {
  min-width: 120px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-tabs button.is-active {
  border-color: var(--gold);
  background: var(--ink);
  color: #ffe2ad;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-items-grid,
.orders-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 34px;
}

.admin-settings-panel {
  padding: 0;
}

.admin-settings-panel .admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-settings-panel .section-title,
.admin-settings-panel label:has(textarea),
.admin-settings-panel .admin-preview,
.admin-settings-panel .admin-actions {
  grid-column: 1 / -1;
}

.admin-settings-panel .admin-preview .product-image {
  width: 180px;
}

.admin-form-panel,
.admin-list-panel {
  min-width: 0;
}

.section-title h1,
.detail-info h1 {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #3d332d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline-color: var(--gold);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

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

.admin-preview {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.admin-preview .product-image {
  width: 110px;
}

.admin-preview h3,
.admin-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.admin-preview p,
.admin-item p {
  margin: 0 0 8px;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.admin-list-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-list {
  display: grid;
  gap: 14px;
}

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

.admin-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--soft);
}

.admin-item a {
  color: #9a6425;
  font-weight: 800;
  text-decoration: underline;
}

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

.admin-item-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fffdf9;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(300px, 520px);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px;
}

.detail-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.detail-media .product-shot {
  background-size: 260% auto;
}

.detail-info > p:not(.eyebrow) {
  color: #46372d;
  font-size: 18px;
  line-height: 1.7;
}

.detail-price {
  margin: 0 0 22px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.detail-meta dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-meta dd {
  margin: 0;
  text-align: right;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 440px);
  gap: 38px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 58px 80px;
}

.checkout-shell h1 {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(46px, 5vw, 74px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-items {
  display: grid;
  gap: 14px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.checkout-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--soft);
}

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

.checkout-item h2,
.checkout-panel h2,
.empty-cart h2,
.order-success h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.checkout-item p {
  margin: 0 0 8px;
  color: var(--muted);
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  border: 1px solid var(--line);
}

.quantity-control button,
.remove-line {
  min-height: 34px;
  border: 0;
  background: #fffdf9;
  cursor: pointer;
  font-weight: 800;
}

.quantity-control span {
  text-align: center;
  font-weight: 800;
}

.remove-line {
  border: 1px solid #d9b3aa;
  color: #9f3e2e;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-panel {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: #3d332d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px 14px;
  outline-color: var(--gold);
  font-size: 15px;
  text-transform: none;
}

.checkout-form textarea,
.admin-form textarea {
  resize: none;
}

.wishlist-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 58px 90px;
}

.wishlist-shell h1 {
  margin: 0 0 28px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(46px, 5vw, 74px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-summary {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.discount-row {
  color: #7d9d68;
}

.checkout-total {
  color: #8b4f1b;
  font-size: 20px;
}

.coupon-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.coupon-box label,
.coupon-box p {
  grid-column: 1 / -1;
}

.coupon-box label {
  grid-column: 1;
}

.coupon-box .outline-button {
  min-height: 47px;
}

.coupon-box p {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.coupon-box p.is-success {
  color: #5b7f3c;
}

.coupon-box p.is-error {
  color: #9f3e2e;
}

.discount-admin {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.discount-builder {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 180px) minmax(120px, 160px) auto;
  gap: 12px;
  align-items: end;
}

.discount-builder .outline-button {
  min-height: 47px;
}

.discount-list {
  display: grid;
  gap: 10px;
}

.discount-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.discount-item h3,
.discount-item p {
  margin: 0;
}

.discount-item h3 {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.discount-item p {
  color: var(--muted);
}

.discount-item button {
  min-height: 34px;
  border: 1px solid #d9b3aa;
  background: #fffdf9;
  color: #9f3e2e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-cart,
.order-success {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--soft);
}

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

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

.orders-shell {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 38px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 58px 80px;
}

.orders-shell h1 {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(46px, 5vw, 74px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

.order-card.is-done {
  background: #fbfaf6;
  border-color: #cdbb9d;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.order-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.order-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5d8d5;
  color: #9f3e2e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-done .order-status {
  background: #e7f0df;
  color: #3f6b2d;
}

.order-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.order-customer {
  padding: 14px 0;
}

.order-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 14px 0;
  color: var(--muted);
  font-weight: 700;
}

.order-detail {
  margin-bottom: 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.order-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.order-edit-form[hidden] {
  display: none;
}

.order-edit-form label {
  display: grid;
  gap: 8px;
  color: #3d332d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-edit-form input,
.order-edit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  outline-color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.order-edit-form label:nth-child(3),
.order-edit-form .order-actions {
  grid-column: 1 / -1;
}

.order-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  line-height: 1.7;
}

.order-total-lines {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  color: #5f5148;
}

.order-total-lines p {
  margin: 0;
}

.order-card pre {
  overflow: auto;
  margin: 0;
  padding: 14px;
  background: var(--soft);
  color: #3d332d;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  white-space: pre-wrap;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.is-done .done-order {
  background: #e7f0df;
  border-color: #7d9d68;
  color: #3f6b2d;
}

.primary-link:disabled,
.primary-link[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
    padding: 20px 26px;
  }

  .desktop-search,
  .category-nav,
  .desktop-only {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .logo {
    font-size: 54px;
  }

  .hero {
    min-height: 330px;
  }

  .hero img {
    min-height: 330px;
    object-position: 58% center;
  }

  .shop-shell {
    grid-template-columns: 1fr;
    padding: 0 22px 110px;
  }

  .filters {
    position: fixed;
    inset: auto 0 0;
    z-index: 35;
    max-height: 82vh;
    overflow: auto;
    padding: 24px;
    border: 0;
    background: #fffdf9;
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow);
    transform: translateY(105%);
    transition: transform 0.25s ease;
  }

  .filters.is-open {
    transform: translateY(0);
  }

  .overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(20, 12, 6, 0.35);
  }

  .overlay[hidden] {
    display: none;
  }

  .filter-toggle {
    display: inline-flex;
  }

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

  .mobile-category-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    margin-top: -38px;
    padding: 26px 22px 18px;
    background: #fffdf9;
    border-radius: 28px 28px 0 0;
    position: relative;
    z-index: 2;
  }

  .category-chip {
    display: grid;
    gap: 9px;
    min-width: 86px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
  }

  .category-chip span {
    display: block;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--soft);
    border: 1px solid transparent;
  }

  .category-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .category-chip:nth-child(2) img { object-position: 10% 48%; }
  .category-chip:nth-child(3) img { object-position: 24% 76%; }
  .category-chip:nth-child(4) img { object-position: 42% 83%; }
  .category-chip:nth-child(5) img { object-position: 51% 66%; }
  .category-chip:nth-child(6) img { object-position: 84% 82%; }
  .category-chip:nth-child(7) img { object-position: 86% 42%; }

  .category-chip.is-active span {
    border-color: var(--gold);
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 72px;
    background: rgba(255, 253, 249, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 28px rgba(78, 48, 22, 0.08);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 8px 4px;
    color: #211914;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .bottom-nav svg {
    width: 25px;
    height: 25px;
  }

  .bottom-nav .is-active {
    color: var(--gold);
  }

  .floating-cart {
    right: 16px;
    bottom: 86px;
    width: 56px;
    height: 56px;
  }

  .admin-shell,
  .detail-shell,
  .checkout-shell,
  .orders-shell,
  .wishlist-shell {
    grid-template-columns: 1fr;
    padding: 30px 22px 110px;
  }

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

  .admin-intro,
  .admin-items-grid,
  .orders-admin-grid,
  .discount-builder {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .admin-tabs button {
    min-width: 0;
  }

  .simple-header .header-main {
    grid-template-columns: auto 1fr auto;
  }

  .simple-header .logo {
    justify-self: center;
  }

  .admin-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-item-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .admin-item-actions button {
    flex: 1;
  }

  .order-edit-form {
    grid-template-columns: 1fr;
  }

  .checkout-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .quantity-control,
  .remove-line {
    grid-column: 1 / -1;
  }

  .site-footer {
    margin-bottom: 72px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 38px 26px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 18px 26px 24px;
  }
}

@media (max-width: 720px) {
  .announcement {
    min-height: 58px;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
  }

  .header-main {
    grid-template-columns: 40px minmax(0, 1fr) 86px;
    gap: 8px;
    padding: 18px 12px;
  }

  .logo {
    min-width: 0;
    font-size: clamp(38px, 12vw, 46px);
    letter-spacing: 0.08em;
  }

  .header-actions {
    gap: 2px;
    min-width: 0;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .icon-button svg,
  .search svg {
    width: 25px;
    height: 25px;
  }

  .badge-button span {
    top: 1px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
  }

  .hero {
    min-height: 350px;
  }

  .hero img {
    min-height: 350px;
    object-position: 58% center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(255, 248, 238, 0.96), rgba(255, 248, 238, 0.72) 54%, rgba(255, 248, 238, 0.18));
  }

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

  .eyebrow {
    max-width: 260px;
    font-size: 10px;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 44px);
    letter-spacing: 0.03em;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 285px;
    font-size: 15px;
    line-height: 1.4;
  }

  .primary-link {
    min-height: 42px;
    padding: 0 18px;
    font-size: 11px;
  }

  .shop-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .shop-toolbar p {
    justify-self: center;
    font-size: 13px;
    white-space: nowrap;
  }

  .sort {
    justify-self: end;
    min-width: 88px;
    max-width: 142px;
    padding: 0;
    border: 0;
  }

  .sort span {
    display: none;
  }

  .sort select {
    min-height: 36px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .product-grid {
    padding-top: 18px;
  }

  .product-info {
    padding: 13px 0 0;
  }

  .product-info h3 {
    min-height: 40px;
    font-size: 14px;
  }

  .price {
    font-size: 18px;
  }

  .cart-button {
    width: 100%;
    min-height: 38px;
  }

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

  .admin-preview .product-image {
    width: 100%;
  }

  .pagination {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 22px 24px;
  }

  .footer-bottom {
    display: grid;
    padding: 16px 22px 24px;
  }
}

@media (max-width: 430px) {
  .announcement {
    min-height: 54px;
    padding: 10px 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .header-main {
    grid-template-columns: 38px minmax(0, 1fr) 78px;
    gap: 6px;
    padding: 16px 10px;
  }

  .logo {
    font-size: clamp(35px, 11vw, 42px);
    letter-spacing: 0.075em;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 330px;
  }

  .hero img {
    min-height: 330px;
  }

  .hero-copy {
    left: 14px;
    right: 14px;
    max-width: 292px;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: clamp(34px, 11vw, 40px);
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 270px;
    margin-bottom: 20px;
    font-size: 14px;
  }

  .mobile-category-strip {
    gap: 12px;
    padding: 22px 14px 16px;
  }

  .category-chip {
    min-width: 74px;
    font-size: 11px;
  }

  .category-chip span {
    width: 68px;
    height: 68px;
  }

  .shop-shell {
    padding: 0 14px 100px;
  }

  .shop-toolbar {
    gap: 8px;
  }

  .filter-toggle {
    gap: 6px;
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  .shop-toolbar p {
    font-size: 12px;
  }

  .sort {
    min-width: 78px;
    max-width: 112px;
  }

  .sort select {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .product-grid {
    gap: 24px 12px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .wishlist {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .floating-cart {
    right: 14px;
    bottom: 82px;
    width: 52px;
    height: 52px;
  }

  .floating-cart svg {
    width: 25px;
    height: 25px;
  }

  .discount {
    padding: 4px 8px;
  }

  .old-price {
    font-size: 12px;
  }
}
