:root {
  --paper: #f8f5ef;
  --paper-deep: #eee8dd;
  --white: #ffffff;
  --ink: #26231f;
  --muted: #70695f;
  --line: rgba(38, 35, 31, 0.16);
  --accent: #735b45;
  --accent-dark: #4f3e30;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  min-height: 82px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-inner nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

/* General page structure */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 28px 100px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 500;
  line-height: 1;
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Cart */

#cart-items {
  margin-bottom: 48px;
}

.cart-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper-deep);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.cart-item-price {
  margin: 10px 0 18px;
  color: var(--muted);
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cart-quantity-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.cart-item-quantity {
  min-width: 20px;
  text-align: center;
}

.cart-remove-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-summary {
  max-width: 460px;
  margin-left: auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.cart-summary h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.cart-summary > p {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

#checkout-button {
  width: 100%;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 28px 45px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

/* Responsive */

@media (max-width: 700px) {
  .header-inner,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-item {
    gap: 16px;
  }

  .cart-item-image {
    width: 110px;
    height: 110px;
  }

  .cart-item-name {
    font-size: 24px;
  }

  .cart-summary {
    max-width: none;
  }
}

/* Made to Order inquiry actions */
.cart-made-to-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.cart-made-to-order-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  font: inherit;
  max-width: 100%;
  white-space: normal;
}

/* Made to Order request form */
.mto-request-form { margin-top:1rem; padding:1rem; border:1px solid #c8c2b8; border-radius:8px; max-width:540px; }
.mto-request-form label { display:block; margin:0.8rem 0; }
.mto-request-form input, .mto-request-form textarea { display:block; width:100%; max-width:100%; box-sizing:border-box; padding:0.55rem; margin-top:0.25rem; color:#222; background:#fff; border:1px solid #8a857d; }
.mto-request-form .mto-honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* International shipping quote form: explicit field layout, isolated from other forms. */
#international-form .international-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1rem;
  width: 100%;
}
#international-form .international-field label {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
#international-form .international-field input,
#international-form .international-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}
#international-form .international-field textarea {
  min-height: 6rem;
  resize: vertical;
}
#international-form .international-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#international-form button[type="submit"] {
  max-width: 100%;
  white-space: normal;
}
