:root {
  --black: #050505;
  --ink: #15120e;
  --espresso: #2b2118;
  --gold: #8b6914;
  --gold-light: #c9a96e;
  --cream: #fbf7f0;
  --rose: #e9d0c5;
  --taupe: #8f8376;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

.hero-copy h2,
.section-title h2,
.cart h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.05;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-copy a,
.cart-foot button {
  border: 0;
  border-radius: 0;
  background: var(--gold);
  color: var(--white);
  padding: 14px 50px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: var(--black);
  color: var(--white);
}

.announcement {
  padding: 10px 18px;
  background: var(--gold);
  color: var(--white);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 82px;
  padding: 12px clamp(16px, 4vw, 54px);
  background: #111111;
}

.brand img,
.footer img {
  display: block;
  width: 140px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  align-items: center;
}

.nav button,
.nav a,
.shop-menu summary,
.filters button,
.bag-button,
.menu-toggle,
.policy-grid button,
.footer-links button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-menu {
  position: relative;
}

.shop-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
}

.shop-menu summary::-webkit-details-marker {
  display: none;
}

.shop-menu summary::marker {
  content: "";
}

.shop-menu summary::after {
  content: "▾";
  color: var(--gold-light);
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.shop-menu-panel {
  position: absolute;
  z-index: 35;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  min-width: 260px;
  padding: 12px;
  background: #111111;
  border: 1px solid rgba(201, 169, 110, 0.28);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.shop-menu-panel button {
  min-height: 38px;
  padding: 9px 10px;
  text-align: left;
}

.bag-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(201, 169, 110, 0.6);
  padding: 12px 16px;
}

.bag-button span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero > img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero > img {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.5));
}

.hero-copy {
  position: relative;
  max-width: 680px;
  padding: clamp(56px, 8vw, 110px) clamp(22px, 7vw, 92px);
  color: var(--white);
}

.hero-copy p,
.section-title p {
  margin: 0 0 15px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
}

.hero-copy span {
  display: block;
  max-width: 540px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-copy a {
  display: inline-block;
}

.about-section,
.collection,
.courses,
.learning-section,
.policies {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 70px);
}

.section-title {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.split-content p,
.guide-grid p,
.measure-steps span,
.care-list p,
.course-grid p {
  color: var(--taupe);
  font-size: 1rem;
  line-height: 1.75;
}

.highlight-panel,
.course-grid article,
.guide-grid article,
.care-list article {
  background: var(--white);
  box-shadow: 0 18px 42px rgba(25, 18, 9, 0.09);
}

.highlight-panel {
  padding: clamp(24px, 4vw, 40px);
  border-top: 3px solid var(--gold);
}

.highlight-panel h3,
.course-grid h3,
.guide-grid h3,
.care-list h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.highlight-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--taupe);
  line-height: 1.6;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.filters button {
  border: 1px solid rgba(139, 105, 20, 0.28);
  padding: 12px 14px;
  color: var(--espresso);
  background: rgba(255, 255, 255, 0.56);
}

.filters button.active {
  background: var(--black);
  color: var(--white);
}

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

.courses,
.learning-section.alt {
  background: #f2e7dc;
}

.course-grid,
.guide-grid,
.care-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.course-grid article,
.guide-grid article,
.care-list article {
  padding: clamp(22px, 3vw, 34px);
}

.course-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide-grid,
.care-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.measure-steps {
  display: grid;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.measure-steps div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(25, 18, 9, 0.08);
}

.measure-steps strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--black);
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(25, 18, 9, 0.1);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rose);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.035);
}

.add-button {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 0;
  padding: 12px;
  background: rgba(5, 5, 5, 0.86);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.product-info h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.meta,
.description {
  color: var(--taupe);
}

.meta {
  min-height: 20px;
  font-size: 0.82rem;
}

.description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 0.86rem;
  line-height: 1.6;
}

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

.price {
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 900;
}

.details-button {
  border: 0;
  background: transparent;
  color: var(--espresso);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policies {
  background: var(--espresso);
  color: var(--white);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.policy-grid button {
  min-height: 86px;
  border: 1px solid rgba(201, 169, 110, 0.36);
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.footer {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 58px 20px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.socials,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
}

.socials a,
.footer-links a,
.footer-links button,
.footer small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.44);
}

.cart.open {
  display: flex;
}

.cart-panel {
  width: min(100%, 430px);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--cream);
  box-shadow: var(--shadow);
  animation: slideIn 220ms ease both;
}

.cart-head,
.cart-foot {
  padding: 22px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(139, 105, 20, 0.22);
}

.cart-head button,
.dialog-close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.cart-items {
  overflow: auto;
  padding: 18px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(139, 105, 20, 0.16);
}

.cart-item img {
  width: 76px;
  height: 92px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.cart-item p {
  margin: 0;
  color: var(--taupe);
  font-size: 0.86rem;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
}

.cart-foot {
  border-top: 1px solid rgba(139, 105, 20, 0.22);
}

.cart-foot div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cart-foot button {
  width: 100%;
}

.cart-foot p {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--taupe);
  font-size: 0.84rem;
}

dialog {
  width: min(92vw, 880px);
  border: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.56);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.product-detail img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.product-detail-copy,
.policy-detail {
  padding: clamp(28px, 5vw, 54px);
}

.product-detail-copy h2,
.policy-detail h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
}

.product-detail-copy p,
.policy-detail p {
  color: var(--taupe);
  line-height: 1.75;
  white-space: pre-line;
}

.product-detail-copy button {
  border: 0;
  margin-top: 20px;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-dialog {
  width: min(96vw, 1180px);
  max-height: 92vh;
  overflow: auto;
  background: #f8f1e8;
}

.admin-shell {
  min-height: 560px;
  padding: clamp(22px, 4vw, 42px);
}

.admin-login {
  display: grid;
  gap: 18px;
  max-width: 440px;
  margin: 60px auto;
  padding: clamp(24px, 5vw, 44px);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(25, 18, 9, 0.1);
}

.admin-login p,
.admin-header p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-login h2,
.admin-header h2,
.admin-card h3,
.admin-form h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.admin-login h2,
.admin-header h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-login label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--espresso);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login input,
.admin-form input,
.admin-form textarea,
.admin-order select {
  width: 100%;
  border: 1px solid rgba(139, 105, 20, 0.28);
  background: var(--white);
  color: var(--ink);
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.admin-form textarea {
  resize: vertical;
}

.admin-login button,
.admin-header button,
.admin-tabs button,
.admin-form button,
.admin-card-head button,
.admin-list-row button {
  border: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-login small {
  min-height: 18px;
  color: #9b1c1c;
  font-weight: 800;
}

.admin-header,
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.admin-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-tabs button {
  width: 100%;
  text-align: left;
}

.admin-tabs button.active {
  background: var(--gold);
}

.admin-panel {
  min-width: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-card,
.admin-form {
  background: var(--white);
  box-shadow: 0 18px 42px rgba(25, 18, 9, 0.08);
}

.admin-stats article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.admin-stats span,
.admin-list-row span,
.admin-order span,
.admin-order small {
  color: var(--taupe);
  font-size: 0.82rem;
}

.admin-stats strong {
  color: var(--gold);
  font-size: 1.6rem;
}

.admin-card,
.admin-form {
  padding: 20px;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

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

.admin-wide-form {
  max-width: 820px;
}

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

.admin-list,
.admin-order-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(139, 105, 20, 0.16);
}

.admin-list-row img {
  width: 58px;
  height: 68px;
  object-fit: cover;
  background: var(--rose);
}

.admin-list-row div,
.admin-order div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-list-row strong,
.admin-order strong {
  overflow-wrap: anywhere;
}

.admin-list-row button:nth-of-type(2),
.admin-form button[data-reset-demo] {
  background: #7c1d1d;
}

.admin-policy-form {
  margin-top: 18px;
  border-top: 1px solid rgba(139, 105, 20, 0.18);
  box-shadow: none;
}

.admin-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(139, 105, 20, 0.16);
}

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

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .course-grid,
  .guide-grid,
  .care-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .nav-row {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #111111;
  }

  .site-header.open .nav {
    display: flex;
  }

  .nav button {
    min-height: 42px;
    text-align: left;
  }

  .shop-menu {
    width: 100%;
  }

  .shop-menu summary {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .shop-menu-panel {
    position: static;
    min-width: 0;
    padding: 8px 0 8px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .hero {
    min-height: 620px;
  }

  .split-content {
    grid-template-columns: 1fr;
  }

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

  .product-detail img {
    min-height: 360px;
  }

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

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

@media (max-width: 560px) {
  .announcement {
    font-size: 0.66rem;
  }

  .brand img {
    width: 108px;
  }

  .bag-button {
    padding: 10px;
  }

  .hero-copy h2 {
    font-size: 3.6rem;
  }

  .product-grid,
  .course-grid,
  .guide-grid,
  .care-list,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .measure-steps div {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    padding: 52px 14px 18px;
  }

  .admin-header,
  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-stats,
  .admin-form-row,
  .admin-tabs,
  .admin-list-row,
  .admin-order {
    grid-template-columns: 1fr;
  }

  .admin-list-row img {
    width: 100%;
    height: 160px;
  }
}
