* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #fbfaf7;
  color: #262820;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, .wordmark {
  font-family: Georgia, 'Times New Roman', serif;
}

h1, h2 {
  font-weight: normal;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h2 {
  font-size: 3rem;
}

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

a:focus, button:focus, input:focus, summary:focus, .table-scroll:focus {
  outline: 2px solid #a43f24;
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

button, input {
  font: inherit;
}

button, summary {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

.container {
  width: 90%;
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background-color: #fff;
}

.skip-link:focus {
  top: 8px;
}

.announcement {
  padding: 8px 16px;
  background-color: #252920;
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.site-header {
  border-bottom: 1px solid #e4e0d8;
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.wordmark {
  display: inline-block;
  font-size: 2.25rem;
  font-weight: bold;
  line-height: 1.25;
  letter-spacing: -0.08em;
}

.wordmark span {
  color: #a43f24;
}

.main-nav, .account-nav, .footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a, .account-nav a, .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: bold;
}

.main-nav a:hover, .account-nav a:hover, .footer-nav a:hover, [aria-current="page"] {
  text-decoration: underline;
}

.bag-icon {
  position: relative;
  width: 14px;
  height: 13px;
  margin-right: 9px;
  border: 1px solid;
  border-radius: 1px;
}

.bag-icon::before {
  position: absolute;
  top: -5px;
  left: 3px;
  width: 6px;
  height: 5px;
  border: 1px solid;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: '';
}

.site-footer {
  background-color: #252920;
  color: #fbfaf7;
}

.footer-inner {
  min-height: 112px;
  gap: 16px;
}

.site-footer .wordmark span {
  color: #e18967;
}

.site-footer a:focus {
  outline-color: #e18967;
}

.footer-inner p {
  color: #d7d9d0;
  font-size: 0.875rem;
}

.hero {
  background-color: #eee7d9;
}

.hero-inner {
  display: flex;
  max-width: 1600px;
  min-height: 520px;
  margin: 0 auto;
}

.hero-copy {
  width: 44%;
  align-self: center;
  padding: 56px 28px 56px 5%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #80381f;
  font-size: 0.8125rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background-color: #a43f24;
  content: '';
}

.hero h1 {
  font-size: 5.25rem;
}

.hero-description {
  max-width: 320px;
  margin-top: 22px;
  margin-bottom: 28px;
  color: #494b40;
  font-size: 1.125rem;
}

.hero-image, .edit-image {
  position: relative;
  background-color: #d7c0a5;
}

.hero-image {
  width: 56%;
}

.hero-image img, .edit-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image img {
  object-position: center top;
}

.button {
  display: inline-block;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid #a43f24;
  background-color: #a43f24;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
}

.button:hover {
  border-color: #813019;
  background-color: #813019;
}

.button:disabled {
  border-color: #dad1c4;
  background-color: #e7dfd3;
  color: #62594e;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #80381f;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: #552516;
}

.text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #80381f;
  font-size: 0.9375rem;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:disabled {
  color: #595b50;
}

.section {
  padding-top: 64px;
  padding-bottom: 68px;
}

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

.section-heading p, .product-color, .muted {
  color: #595b50;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 20px;
}

.product-card {
  width: calc((100% - 60px) / 4);
  min-width: 0;
}

.product-image {
  width: 100%;
  height: 380px;
  background-color: #eae5db;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 8px;
  text-align: center;
}

.product-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

.product-heading h3, .price {
  font-size: 1rem;
  font-weight: bold;
}

.product-color {
  margin-top: 4px;
  font-size: 0.875rem;
}

.product-button {
  width: 100%;
  margin-top: 12px;
}

.edit {
  display: flex;
  min-height: 370px;
  margin-bottom: 72px;
  background-color: #e6e8df;
}

.edit-image {
  width: 52%;
}

.edit-copy {
  width: 48%;
  align-self: center;
  padding: 40px 6%;
}

.edit-description {
  max-width: 320px;
  margin-top: 16px;
  color: #494b40;
}

.edit-copy .text-link {
  margin-top: 10px;
}

.inner-page {
  min-height: 65vh;
  padding-top: 48px;
  padding-bottom: 80px;
}

.inner-page h1 {
  margin-bottom: 12px;
  font-size: 3.75rem;
}

.page-intro {
  margin-bottom: 28px;
}

.page-intro .text-link {
  margin-bottom: 8px;
}

.cart-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.cart-items {
  flex: 1;
  min-width: 0;
  border-top: 1px solid #ddd8cd;
}

.cart-items:empty {
  border-top: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd8cd;
}

.cart-item img {
  width: 82px;
  height: 100px;
  object-fit: cover;
}

.cart-item h2 {
  margin-bottom: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: normal;
}

.cart-item .price {
  margin-left: auto;
}

.cart-item-info {
  min-width: 0;
}

.line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-top: 4px;
}

.line-actions input {
  width: 76px;
  min-height: 38px;
  padding: 6px;
  border: 1px solid #817d71;
  background-color: #fff;
  color: #262820;
}

.panel {
  padding: 28px;
  border: 1px solid #ddd8cd;
  background-color: #f4f0e7;
}

.cart-summary {
  width: 340px;
}

.cart-summary h2 {
  font-size: 2rem;
}

.cart-summary dl div, .bill-totals div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.cart-summary dd, .bill-totals dd {
  margin-left: 12px;
}

.cart-total {
  margin-top: 8px;
  border-top: 1px solid #d4cbbd;
  font-weight: bold;
}

.account-page {
  max-width: 480px;
}

.account-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.account-tabs .text-button[aria-pressed="false"] {
  color: #595b50;
  text-decoration: none;
}

.demo-note {
  margin-top: 12px;
  font-size: 0.875rem;
  overflow-wrap: break-word;
}

.stack-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.stack-form input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #817d71;
  border-radius: 0;
  background-color: #fff;
  color: #262820;
}

.stack-form .button, .cart-summary .button {
  width: 100%;
  margin-top: 8px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid #ddd8cd;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #ddd8cd;
}

.data-table thead th {
  background-color: #f0ebe0;
  font-size: 0.875rem;
}

.data-table tbody tr:last-child th, .data-table tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-block;
  padding: 2px 8px;
  background-color: #e6e8df;
  color: #394233;
  font-size: 0.875rem;
  white-space: nowrap;
}

.status-pending {
  background-color: #efe1d3;
  color: #663a26;
}

.order-card {
  margin-bottom: 18px;
}

.order-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.order-heading h2 {
  font-size: 2rem;
}

summary {
  padding: 10px 0;
  color: #80381f;
  font-weight: bold;
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  overflow-wrap: break-word;
}

.bill-table th, .bill-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #ddd8cd;
  text-align: right;
}

.bill-table th:first-child, .bill-table td:first-child {
  text-align: left;
}

.bill-totals {
  max-width: 320px;
  margin-left: auto;
}

.admin-section {
  margin-top: 44px;
}

.admin-section h2 {
  font-size: 2.5rem;
}

.add-product {
  margin-bottom: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.product-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 12px 0;
}

.product-form div {
  flex: 1 1 120px;
  min-width: 0;
}

.product-form .photo-field {
  flex-basis: 250px;
}

.photo-hint {
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.product-form input, .product-form .button {
  width: 100%;
  margin: 0;
}

.product-form .button {
  width: auto;
}

@media (max-width: 1240px) {
  .hero h1 {
    font-size: 4.25rem;
  }

  .hero-inner {
    min-height: 460px;
  }
}

@media (max-width: 1020px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-inner {
    min-height: 420px;
  }
}

@media (max-width: 880px) {
  .main-nav, .account-nav, .footer-nav {
    gap: 18px;
  }

  .product-card {
    width: calc((100% - 20px) / 2);
  }

  .cart-summary {
    width: 285px;
  }
}

@media (max-width: 850px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 4px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    border-top: 1px solid #e4e0d8;
  }

  .account-nav {
    margin-left: auto;
  }

  .wordmark {
    font-size: 2rem;
  }

  .hero-inner {
    display: block;
  }

  .hero-copy, .hero-image, .edit-copy, .edit-image {
    width: 100%;
  }

  .hero-copy {
    padding: 39px 5% 35px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-image {
    height: 310px;
  }

  .hero-description {
    margin-top: 16px;
    margin-bottom: 21px;
  }

  .section {
    padding-top: 44px;
    padding-bottom: 46px;
  }

  .section-heading {
    display: block;
    margin-bottom: 20px;
  }

  .section-heading p {
    margin-top: 8px;
  }

  h2 {
    font-size: 2.5rem;
  }

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

  .product-card {
    width: calc((100% - 12px) / 2);
  }

  .product-image {
    height: 300px;
  }

  .product-heading {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .edit {
    display: block;
    margin-bottom: 48px;
  }

  .edit-image {
    height: 260px;
  }

  .edit-copy {
    padding: 30px 6%;
  }

  .footer-inner {
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .footer-inner p {
    width: 100%;
  }

  .inner-page {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .inner-page h1 {
    font-size: 3rem;
  }

  .cart-layout {
    flex-direction: column;
    gap: 24px;
  }

  .cart-items, .cart-summary {
    width: 100%;
  }

  .cart-item {
    gap: 12px;
  }

  .cart-item img {
    width: 60px;
    height: 76px;
  }

  .order-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .product-image {
    height: 220px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 3rem;
  }

  .main-nav, .account-nav {
    gap: 12px;
  }

  .panel {
    padding: 20px;
  }
}
