
:root {
  --black: #111111;
  --cream: #f7f4ed;
  --white: #ffffff;
  --gold: #b89555;
  --grey: #77746e;
  --border: #e8e3d9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--black);
  font-family: "DM Sans", sans-serif;
}

button, input, select {
  font: inherit;
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.header {
  min-height: 78px;
  padding: 18px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo span {
  color: var(--gold);
}

.header nav {
  display: flex;
  gap: 32px;
}

.header nav a {
  font-size: 14px;
}

.header nav a:hover {
  color: var(--gold);
}

.bag-button {
  background: var(--black);
  color: white;
  border: 0;
  padding: 12px 18px;
  border-radius: 3px;
}

.hero {
  min-height: 450px;
  padding: 75px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
}

.hero-content {
  max-width: 550px;
}

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--gold);
}

.hero-description {
  max-width: 390px;
  color: #c6c2b9;
  line-height: 1.8;
  margin-bottom: 30px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: 0.2s ease;
}

.primary-button:hover {
  background: #d0b277;
  border-color: #d0b277;
}

.hero-decoration {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  border: 1px solid #5b4c32;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.hero-decoration span {
  font-family: "Playfair Display", serif;
  font-size: 130px;
  line-height: 1;
}

.hero-decoration p {
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 8px;
}

.shop-section {
  padding: 75px 7%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.modal h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(29px, 4vw, 42px);
}

.product-count {
  color: var(--grey);
  font-size: 13px;
}

.filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-row input,
.filter-row select {
  min-height: 46px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  outline-color: var(--gold);
}

.filter-row input {
  flex: 1;
  min-width: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
}

.product-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  background: #eeeae2;
  overflow: hidden;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-details {
  padding: 17px;
}

.product-category {
  color: var(--grey);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}

.product-details h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.product-price {
  font-size: 17px;
  font-weight: 700;
  color: #927039;
  margin-bottom: 16px;
}

.option-button {
  width: 100%;
  min-height: 43px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.option-button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 35px 7%;
  background: #eae4d8;
}

.service-strip div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-strip strong {
  color: var(--gold);
  font-size: 22px;
}

.service-strip span {
  font-size: 13px;
}

footer {
  padding: 42px 7%;
  background: var(--black);
  color: var(--cream);
  text-align: center;
}

footer .logo {
  display: inline-block;
  margin-bottom: 12px;
}

footer p {
  font-size: 13px;
  color: #c4c0b6;
  margin-bottom: 12px;
}

footer .copyright {
  margin-top: 25px;
  font-size: 11px;
}

/* MODALS */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  overflow-y: auto;
}

.overlay.active {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 850px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 5px;
}

.product-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-image {
  min-height: 420px;
  background: #eeeae2;
}

.modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 650px;
  object-fit: cover;
}

.modal-info {
  padding: 35px 28px;
}

.modal-info h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.modal-price {
  font-size: 21px;
  font-weight: 700;
  color: #927039;
  margin-bottom: 12px;
}

.modal-description {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.modal-info label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 17px 0 8px;
}

.modal-info select,
.quantity-control input {
  width: 100%;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 12px;
  background: var(--white);
  outline-color: var(--gold);
}

.quantity-control {
  display: flex;
  width: 150px;
  height: 43px;
  border: 1px solid var(--border);
}

.quantity-control button {
  width: 44px;
  border: 0;
  background: var(--cream);
  font-size: 20px;
}

.quantity-control input {
  height: 41px;
  min-width: 0;
  padding: 0;
  text-align: center;
  border: 0;
  border-radius: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.line-total {
  display: flex;
  justify-content: space-between;
  margin: 23px 0;
  font-size: 14px;
}

.line-total strong {
  color: #927039;
}

.full-button {
  width: 100%;
}

.close-button {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--white);
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  box-shadow: 0 2px 12px #00000012;
}

.bag-modal {
  max-width: 600px;
  padding: 35px;
}

.bag-modal h2 {
  margin-bottom: 25px;
}

.bag-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.bag-item h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.bag-item p {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.8;
}

.bag-item-price {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
}

.remove-item {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #a13e32;
  font-size: 12px;
  text-decoration: underline;
}

.bag-summary {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 17px;
}

.bag-summary strong {
  color: #927039;
}

.small-note {
  margin-top: 14px;
  color: var(--grey);
  font-size: 11px;
  text-align: center;
  line-height: 1.7;
}

.empty-bag {
  padding: 25px 0;
  color: var(--grey);
  font-size: 14px;
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-decoration {
    width: 190px;
    height: 190px;
  }

  .hero-decoration span {
    font-size: 100px;
  }
}

@media (max-width: 650px) {
  .header {
    min-height: 68px;
    padding: 15px 5%;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  .header nav {
    display: none;
  }

  .bag-button {
    padding: 11px 13px;
    font-size: 12px;
  }

  .hero {
    min-height: 390px;
    padding: 65px 7%;
  }

  .hero-decoration {
    display: none;
  }

  .hero h1 {
    font-size: 53px;
  }

  .shop-section {
    padding: 50px 5%;
  }

  .section-heading {
    align-items: start;
  }

  .filter-row {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .product-details {
    padding: 12px;
  }

  .product-details h3 {
    font-size: 13px;
  }

  .product-price {
    font-size: 15px;
  }

  .option-button {
    font-size: 10px;
  }

  .service-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 7%;
  }

  .overlay {
    padding: 12px;
  }

  .product-modal {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .modal-image,
  .modal-image img {
    min-height: 0;
    height: 240px;
  }

  .modal-info {
    padding: 25px 20px;
  }

  .modal-info h2 {
    font-size: 25px;
    padding-right: 22px;
  }

  .bag-modal {
    padding: 28px 20px;
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    aspect-ratio: 1 / 0.75;
  }
}
