:root {
  --ink: #30382d;
  --cream: #f8f5ef;
  --olive: #586044;
  --line: #deddd4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 14px;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #916448;
  outline-offset: 4px;
}
.announcement {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 11px;
  font-size: 11px;
  letter-spacing: 1.5px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 5%;
  gap: 25px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.brand img {
  width: 152px;
  height: 55px;
  object-fit: contain;
}
nav {
  display: flex;
  gap: 27px;
  font-size: 12px;
}
nav a:hover,
.text-link:hover {
  color: #98684d;
}
.tools {
  display: flex;
  gap: 22px;
  align-items: center;
}
.tools button {
  border: 0;
  background: none;
  color: var(--ink);
}
#search-toggle {
  font-size: 29px;
}
#count {
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  padding: 4px 7px;
  font-size: 10px;
}
.hero {
  height: 620px;
  position: relative;
  overflow: hidden;
  background: #ded1b6;
}
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(244, 237, 219, 0.96),
    rgba(244, 237, 219, 0.66) 36%,
    transparent 65%
  );
}
.hero-copy {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.6px;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: normal;
}
h1 {
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 24px 0;
}
h2 {
  font-size: 39px;
  line-height: 1.2;
  margin: 16px 0;
}
p {
  line-height: 1.8;
}
.hero-copy p {
  font-size: 15px;
  margin: 25px 0 32px;
}
.button {
  display: inline-flex;
  justify-content: space-between;
  gap: 35px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding: 17px 23px;
  border: 0;
  font-size: 12px;
}
.button:hover {
  background: var(--olive);
}
.hero-note {
  position: absolute;
  bottom: 25px;
  right: 5%;
  z-index: 1;
  letter-spacing: 3px;
  font-size: 10px;
}
.intro {
  max-width: 670px;
  text-align: center;
  margin: 75px auto 55px;
  padding: 0 20px;
}
.intro > span {
  font-family: Georgia, serif;
  font-style: italic;
  color: #7e846f;
  font-size: 18px;
}
.intro p {
  color: #74786c;
  font-size: 14px;
}
.section {
  padding: 20px 6% 85px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.section-heading h2 {
  font-size: 34px;
}
.filters {
  display: flex;
  gap: 12px;
  margin: 26px 0 20px;
  flex-wrap: wrap;
}
.filters button {
  background: none;
  border: 1px solid var(--line);
  padding: 11px 19px;
  border-radius: 25px;
  color: var(--ink);
  font-size: 12px;
}
.filters button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.demo-note {
  font-size: 11px;
  color: #7d7d70;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 22px;
  margin-top: 22px;
}
.product {
  position: relative;
}
.product-image {
  border: 0;
  background: #eae6dc;
  display: block;
  padding: 0;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.product-image:hover img {
  transform: scale(1.04);
}
.product-category {
  font-size: 9px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #81846f;
  margin-top: 18px;
}
.product h3 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 21px;
  margin: 9px 0;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
}
.add {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 12px;
  font-size: 11px;
}
.add:hover {
  background: var(--ink);
  color: white;
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e7e8df;
}
.story-image {
  min-height: 500px;
  overflow: hidden;
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-copy {
  padding: 70px 12%;
  align-self: center;
}
.story-copy p {
  color: #74796a;
}
.text-link {
  display: inline-block;
  margin-top: 15px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  font-size: 12px;
}
.gifting {
  padding: 90px 20px;
  text-align: center;
  background: #eee6d9;
}
.gifting h2 {
  font-size: 45px;
}
.gifting p {
  color: #777568;
}
.gift-line {
  margin-top: 35px;
  letter-spacing: 1px;
  font-size: 11px;
}
.newsletter {
  padding: 65px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.newsletter h2 {
  font-size: 30px;
}
.newsletter form {
  width: 420px;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 5px;
}
.newsletter input {
  width: 65%;
  border: 0;
  background: none;
  padding: 12px 0;
}
.newsletter button {
  width: 35%;
  border: 0;
  background: none;
  text-align: right;
}
.newsletter form p {
  width: 100%;
  font-size: 10px;
  margin: 5px 0;
  color: #777;
}
footer {
  padding: 55px 6% 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1.3fr;
  gap: 35px;
}
footer img {
  width: 155px;
}
footer h3 {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  margin: 0 0 22px;
}
footer a {
  display: block;
  font-size: 12px;
  margin: 12px 0;
}
footer p {
  font-size: 11px;
  color: #777;
}
.footer-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 1.5px;
}
dialog {
  border: 0;
  color: var(--ink);
  background: var(--cream);
  padding: 35px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: rgba(25, 30, 23, 0.6);
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 28px;
  z-index: 2;
}
#detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
#detail-body img {
  width: 100%;
}
#bag {
  max-width: 480px;
}
#bag h2 {
  font-size: 30px;
}
.bag-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.bag-row img {
  width: 65px;
  height: 75px;
  object-fit: cover;
}
.bag-row > div {
  flex: 1;
}
.bag-row button {
  border: 1px solid var(--line);
  background: none;
  padding: 5px 8px;
}
.bag-row h3 {
  font-size: 14px;
  font-weight: normal;
}
.total {
  display: flex;
  justify-content: space-between;
  margin: 25px 0;
}
#checkout {
  width: 100%;
  justify-content: center;
}
#checkout-note {
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 22px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
#search-panel {
  padding: 22px 6%;
  background: #e7e8df;
}
#search-panel label {
  display: block;
  margin-bottom: 10px;
}
#search-panel input {
  padding: 12px;
  border: 1px solid var(--line);
  width: 70%;
  max-width: 600px;
}
#clear-search {
  padding: 12px;
  border: 0;
  background: var(--ink);
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1000px) {
  nav {
    gap: 14px;
    font-size: 11px;
  }
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero {
    height: 540px;
  }
  h1 {
    font-size: 54px;
  }
  .story-copy {
    padding: 45px 9%;
  }
}
@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
    padding: 15px 5%;
    gap: 10px;
  }
  .brand img {
    width: 120px;
    height: 45px;
  }
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    gap: 22px;
  }
  .hero {
    height: 520px;
  }
  .hero > img {
    object-position: 65% center;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      rgba(244, 237, 219, 0.94),
      rgba(244, 237, 219, 0.6) 55%,
      rgba(244, 237, 219, 0.1)
    );
  }
  .hero-copy {
    left: 6%;
  }
  h1 {
    font-size: 45px;
  }
  .hero-copy p {
    font-size: 13px;
  }
  .hero-note {
    font-size: 8px;
  }
  .intro {
    margin: 50px auto 35px;
  }
  h2,
  .section-heading h2 {
    font-size: 29px;
  }
  .section {
    padding: 20px 5% 50px;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
  }
  .product h3 {
    font-size: 18px;
  }
  .product-bottom {
    font-size: 12px;
  }
  .add {
    padding: 7px;
    font-size: 10px;
  }
  .filters {
    gap: 8px;
  }
  .filters button {
    padding: 9px 12px;
    font-size: 10px;
  }
  #results {
    font-size: 10px;
  }
  .story {
    grid-template-columns: 1fr;
  }
  .story-image {
    min-height: 0;
    height: 300px;
  }
  .story-copy {
    padding: 40px 7%;
  }
  .gifting {
    padding: 60px 20px;
  }
  .gifting h2 {
    font-size: 34px;
  }
  .newsletter {
    flex-direction: column;
    align-items: start;
    padding: 45px 6%;
    gap: 10px;
  }
  .newsletter form {
    width: 100%;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-bottom {
    font-size: 8px;
  }
  #detail-body {
    grid-template-columns: 1fr;
  }
  #detail-body img {
    max-height: 300px;
    object-fit: contain;
  }
  dialog {
    padding: 30px 22px;
  }
  .section-heading {
    align-items: center;
  }
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#checkout-dialog {
  max-width: 620px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
#checkout-form label,
#tracking-form label {
  display: block;
  margin: 14px 0;
  font-size: 12px;
}
#checkout-form input,
#checkout-form textarea,
#tracking-form input {
  display: block;
  width: 100%;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  margin-top: 7px;
  font: inherit;
}
#checkout-form textarea {
  min-height: 85px;
}
#payment-result {
  font-size: 13px;
}
#tracking-form {
  max-width: 500px;
  margin-top: 25px;
}
.description {
  white-space: pre-line;
}
#order-status details {
  margin-bottom: 20px;
}
#order-status code {
  overflow-wrap: anywhere;
  font-size: 11px;
}
@media (max-width: 700px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 1rem;
}

.cart-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.cart-btn:hover {
    background: #c0392b;
}

/* Filters */
.filters {
    background: white;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f0f0f0;
    display: block;
}

.product-image-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-category {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 0.5rem;
}

.product-stock {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.in-stock {
    color: #27ae60;
    font-weight: 600;
}

.out-of-stock {
    color: #e74c3c;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.8rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #2980b9;
}

.add-to-cart-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    background: #f8f9fa;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    color: #2c3e50;
}

.cart-items {
    padding: 1rem;
    min-height: 200px;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

.cart-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.cart-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1rem;
}

.cart-item p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.item-actions button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    min-width: 30px;
}

.item-actions button:hover {
    background: #2980b9;
}

.item-actions span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.item-actions .remove-btn {
    background: #e74c3c;
    margin-left: auto;
}

.item-actions .remove-btn:hover {
    background: #c0392b;
}

.cart-summary {
    padding: 1.5rem;
    border-top: 2px solid #ecf0f1;
    background: #f8f9fa;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    border-top: 2px solid #dee2e6;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #229954;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    padding-right: 30px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.close:hover {
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #229954;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .modal-content {
        margin: 1rem auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        padding: 1rem;
    }
}


