/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f4ef;
  color: #2f2f2f;
}

/* =========================
   NAVIGATION
========================= */

.navbar {
  background: white;
  border-bottom: 1px solid #e5e1db;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #2f2f2f;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #555;
  text-decoration: none;
}

.nav-links a:hover {
  color: #000;
}

/* =========================
   LAYOUT
========================= */

.container {
  width: min(100% - 32px, 650px);
  margin: 0 auto;
  padding: 60px 0;
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
}

.about-image {
  display: block;
  width: 250px;
  height: 250px;
  object-fit: cover;
  margin: 32px auto 0;
  border-radius: 50%;
}

h1 {
  margin: 0 0 10px;
  font-size: 36px;
}

.tagline {
  font-size: 17px;
}

.bio {
  max-width: 500px;
  margin: 20px auto 40px;

  line-height: 1.6;
}

/* =========================
   LINK BUTTONS
========================= */

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-button {
  display: block;

  padding: 17px 20px;

  background: white;
  color: #2f2f2f;

  text-align: center;
  text-decoration: none;

  border-radius: 12px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  transition: transform 0.2s ease;
}

.link-button:hover {
  transform: translateY(-2px);
}

/* =========================
   PAGE CONTENT
========================= */

.page-content {
  line-height: 1.7;
}

.page-content h1 {
  margin-bottom: 25px;
}

.page-content p[data-site-about-description] {
  white-space: pre-line;
}

.resource-card {
  background: white;

  margin-top: 25px;
  padding: 25px;

  border-radius: 15px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.resource-card h2 {
  margin-top: 0;
}

.resource-card .link-button {
  margin-top: 20px;
}

/* =========================
   FOOTER
========================= */

footer {
  text-align: center;

  padding: 30px;

  font-size: 13px;
  color: #777;
}

/* =========================
   SHOP
========================= */

.shop-container {
  width: min(100% - 32px, 1000px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

.shop-hero {
  padding: 36px 24px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 42px;
}

.shop-eyebrow {
  margin: 0 0 12px;
  color: #78634d;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.shop-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
}

.shop-hero > p:not(.shop-eyebrow) {
  max-width: 560px;
  margin: 14px auto 0;
  line-height: 1.6;
}

.shop-demo-notice {
  display: inline-block;
  padding: 9px 12px;
  background: #f7f4ef;
  border-radius: 8px;
  font-size: 13px;
}

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

.shop-section-heading h2,
.cart-section h2 {
  margin: 0;
  font-size: 25px;
}

.shop-section-heading p {
  margin: 7px 0 0;
  color: #666;
}

.cart-shortcut {
  flex-shrink: 0;
  color: #2f2f2f;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid #ded8cf;
  border-radius: 10px;
}

.cart-shortcut:hover {
  background: #fff;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
}

.product-cover {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cover-yellow {
  background: #f6e8b9;
}

.cover-pink {
  background: #f1dce5;
}

.cover-green {
  background: #dce9d9;
}

.product-cover-symbol {
  font-size: 48px;
}

.product-cover-brand {
  color: #554b43;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.product-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-category {
  margin: 0 0 8px;
  color: #78634d;
  font-size: 12px;
  font-weight: bold;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.product-description {
  margin: 0;
  color: #626262;
  font-size: 14px;
  line-height: 1.6;
}

.product-format {
  margin: 14px 0 18px;
  color: #777;
  font-size: 12px;
}

.product-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-price {
  font-size: 20px;
}

.add-to-cart-button,
.checkout-button {
  border: 0;
  border-radius: 9px;
  padding: 12px 15px;
  font: inherit;
  font-weight: bold;
}

.add-to-cart-button {
  background: #2f2f2f;
  color: #fff;
  cursor: pointer;
}

.add-to-cart-button:hover {
  background: #4a4a4a;
}

.add-to-cart-button:focus-visible,
.cart-item-controls button:focus-visible,
.clear-cart-button:focus-visible,
.cart-shortcut:focus-visible {
  outline: 3px solid #8a6d4b;
  outline-offset: 3px;
}

.cart-section {
  margin-top: 48px;
  padding: 26px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-empty {
  margin-bottom: 0;
  color: #666;
  line-height: 1.6;
}

.cart-items {
  margin-top: 14px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #eee9e2;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-info span {
  color: #666;
  font-size: 13px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-controls button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #ddd5cb;
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
}

.cart-item-controls .remove-item-button {
  border: 0;
  color: #7b3434;
  text-decoration: underline;
}

.cart-summary {
  max-width: 420px;
  margin: 22px 0 0 auto;
}

.cart-summary > p:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.cart-note {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.checkout-button {
  width: 100%;
  margin-top: 8px;
  background: #dedbd6;
  color: #666;
  cursor: not-allowed;
}

.clear-cart-button {
  display: block;
  margin: 14px 0 0 auto;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-cover {
    min-height: 150px;
  }

  .product-card-content {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .shop-container {
    padding-top: 24px;
  }

  .shop-hero {
    padding: 28px 18px;
    margin-bottom: 32px;
  }

  .shop-section-heading {
    align-items: flex-start;
  }

  .shop-section-heading h2,
  .cart-section h2 {
    font-size: 22px;
  }

  .cart-shortcut {
    font-size: 13px;
    padding: 9px 10px;
  }

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

  .product-cover {
    min-height: 170px;
  }

  .product-card-content {
    padding: 20px;
  }

  .product-card-footer {
    flex-wrap: nowrap;
  }

  .cart-section {
    padding: 20px 16px;
  }

  .cart-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .cart-item-controls {
    flex-wrap: wrap;
  }
}
#product-grid > p[role="status"] {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: #716b65;
  background: #fff;
  border: 1px solid #e9e2da;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.6;
}
/* Checkout form layout */
#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#checkout-form label {
  display: block;
  margin-top: 8px;
}

#checkout-form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#checkout-form .checkout-field-error {
  margin: 0;
}

/* Order confirmation modal */
.order-confirmation {
  width: min(440px, calc(100% - 40px));
  max-width: 440px;
  padding: 0;
  border: 1px solid #e9e2da;
  border-radius: 20px;
  color: #302d29;
  background: #fffdfb;
  box-shadow: 0 24px 80px rgba(39, 32, 25, 0.24);
}

.order-confirmation::backdrop {
  background: rgba(35, 30, 26, 0.58);
  backdrop-filter: blur(3px);
}

.order-confirmation-content {
  padding: 32px;
  text-align: center;
}

.order-confirmation-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: #e8f2e8;
  color: #356b43;
  font-size: 30px;
  font-weight: 600;
}

.order-confirmation h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.order-confirmation-intro {
  margin: 0 0 24px;
  color: #716b65;
  line-height: 1.6;
}

.order-confirmation-details {
  padding: 16px;
  border: 1px solid #e9e2da;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.order-confirmation-details p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 8px 0;
}

.order-confirmation-details p + p {
  border-top: 1px solid #eee8e1;
}

.order-confirmation-details span {
  color: #716b65;
}

.order-confirmation-details strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.order-confirmation-notice {
  margin: 16px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f6f1e9;
  color: #625344;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
}

#confirmation-copy-status {
  min-height: 1.4em;
  margin: 8px 0;
  font-size: 0.9rem;
}

.order-confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.order-confirmation-actions button {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid #d9cfc3;
  border-radius: 10px;
  background: #fff;
  color: #302d29;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.order-confirmation-actions #copy-order-details {
  border-color: #302d29;
  background: #302d29;
  color: #fff;
}

.order-confirmation-actions button:hover {
  opacity: 0.88;
}

.order-confirmation-actions button:focus-visible {
  outline: 3px solid #b99a78;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .order-confirmation-content {
    padding: 24px;
  }
}