:root {
  --paper: #fffdf9;
  --warm: #f5efe5;
  --cream: #ebe0cf;
  --ink: #241b14;
  --muted: #746a60;
  --line: #e5dacb;
  --gold: #c69335;
  --gold-dark: #9b6a1f;
  --brown: #3d2b1c;
  --teal: #0d9aa5;
  --shadow: 0 18px 45px rgba(48, 35, 22, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

.shipping-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  background: linear-gradient(90deg, #efe2cc, #fbf7ee, #efe2cc);
  color: #3a2a1d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 116px;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.82;
}

.brand span {
  font-family: Parisienne, cursive;
  font-size: clamp(46px, 6vw, 74px);
}

.brand small {
  position: relative;
  margin-top: 8px;
  color: #7e6b55;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 7px;
}

.brand small::before,
.brand small::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.brand small::before {
  right: calc(100% + 8px);
}

.brand small::after {
  left: calc(100% + 2px);
}

.search-field {
  display: flex;
  align-items: center;
  max-width: 260px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 0;
  color: var(--ink);
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 13px;
}

.icon-button,
.bag-button,
.heart,
.remove {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.bag-button {
  position: relative;
}

.bag-button strong {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 10px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 56px);
  min-height: 54px;
  align-items: center;
  border-top: 1px solid #f0e8de;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a:first-child {
  color: var(--gold-dark);
}

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--warm);
}

.hero img {
  width: 100%;
  height: clamp(430px, 50vw, 560px);
  object-fit: cover;
  object-position: 58% center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 249, 0.94), rgba(255, 253, 249, 0.65) 34%, rgba(255, 253, 249, 0.05) 68%);
}

.hero-copy {
  position: absolute;
  z-index: 1;
  left: max(28px, calc((100vw - 1180px) / 2 + 24px));
  top: 50%;
  max-width: 460px;
  transform: translateY(-50%);
}

.hero h1 {
  margin: 0 0 28px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 600;
  line-height: 0.98;
}

.hero em {
  display: block;
  color: var(--gold);
  font-family: Parisienne, cursive;
  font-size: 0.95em;
  font-style: normal;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 34px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(180deg, #d3a042, #bc8428);
  color: white;
}

.button.outline {
  background: transparent;
  color: var(--gold-dark);
}

.button.wide {
  width: 100%;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 20px;
}

.section-title {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.section-title h2,
.free-shipping h2,
.cart-panel h2,
.checkout-panel h2,
.product-info h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.section-title h2 {
  font-size: 28px;
}

.section-title span {
  width: 44px;
  height: 10px;
  background: radial-gradient(circle at center, var(--gold) 2px, transparent 3px), linear-gradient(var(--gold), var(--gold)) center/100% 1px no-repeat;
}

.category-grid,
.product-grid,
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.category-card {
  display: grid;
  text-align: center;
  text-transform: uppercase;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1 / 1.28;
  object-fit: cover;
  object-position: center;
}

.image-pos-two img {
  object-position: 70% center;
}

.image-pos-three img {
  object-position: 35% center;
}

.image-pos-four img {
  object-position: 88% center;
}

.category-card strong {
  padding-top: 18px;
  font-size: 16px;
  font-weight: 600;
}

.category-card small {
  padding: 8px 0 18px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
}

.product-card {
  position: relative;
  padding-bottom: 18px;
}

.product-card .favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
}

.product-card:nth-child(1) img {
  object-position: center;
}

.product-card:nth-child(2) img {
  object-position: 55% center;
}

.product-card:nth-child(3) img {
  object-position: 45% center;
}

.product-card:nth-child(4) img {
  object-position: center;
}

.product-card h3 {
  min-height: 38px;
  margin: 14px 16px 6px;
  font-size: 14px;
  font-weight: 600;
}

.product-card p {
  margin: 0 16px 2px;
  text-align: center;
}

.product-card .product-price {
  font-size: 18px;
  font-weight: 800;
}

.product-card small {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  text-align: center;
}

.product-card .button {
  width: calc(100% - 32px);
  margin: 0 16px;
  min-height: 40px;
}

.free-shipping {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 36px auto 18px;
  padding: 30px 72px;
  background: linear-gradient(100deg, #f7efe2, #fffdf9 55%, #ead8bc);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.truck {
  font-size: 52px;
}

.free-shipping h2 {
  font-size: 42px;
  text-transform: uppercase;
}

.free-shipping p {
  margin: 2px 0 0;
  font-size: 20px;
}

.instagram-grid img {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.instagram-grid img:nth-child(2) {
  object-position: 68% center;
}

.instagram-grid img:nth-child(3) {
  object-position: 25% center;
}

.instagram-grid img:nth-child(4) {
  object-position: 88% center;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.store-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 26px auto 48px;
  padding: 0 24px;
}

.product-detail,
.cart-panel,
.checkout-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.breadcrumbs {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.product-layout {
  display: grid;
  grid-template-columns: 76px minmax(280px, 420px) 1fr;
  gap: 22px;
}

.thumbs {
  display: grid;
  gap: 12px;
  align-content: start;
}

.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  background: var(--warm);
  cursor: pointer;
}

.thumbs button.active {
  border-color: var(--gold);
}

.thumbs img {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
}

.product-photo {
  background: var(--warm);
  border-radius: 6px;
  overflow: hidden;
}

.product-photo img {
  width: 100%;
  height: 100%;
  min-height: 455px;
  object-fit: cover;
  object-position: center;
}

.product-info h2 {
  font-size: 26px;
}

.rating {
  margin: 12px 0 20px;
  color: var(--gold);
  font-size: 15px;
}

.rating span,
.installments {
  color: var(--muted);
}

.price {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.installments {
  margin: 4px 0 22px;
  font-size: 13px;
}

.product-info ul {
  margin: 0 0 24px;
  padding-left: 18px;
  line-height: 2;
  font-size: 14px;
}

.size-block {
  margin-bottom: 24px;
}

.sizes {
  display: flex;
  gap: 9px;
  margin: 10px 0;
}

.sizes button,
.quantity button,
.size-pill {
  min-width: 42px;
  height: 40px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
}

.sizes button {
  cursor: pointer;
}

.sizes button.active {
  border-color: var(--gold);
  background: #fff7e8;
  color: var(--gold-dark);
  font-weight: 800;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  margin-top: 12px;
}

.heart {
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-dark);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.cart-panel h2,
.checkout-panel h2 {
  margin-bottom: 22px;
  font-size: 30px;
  text-transform: uppercase;
}

.cart-head {
  display: grid;
  grid-template-columns: 1fr 90px 130px 110px;
  gap: 16px;
  padding: 14px;
  background: #f5f0e9;
  color: #4f4439;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr 90px 130px 110px 34px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img,
.mini-item img {
  width: 72px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.quantity {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.quantity button {
  min-width: 38px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.quantity span {
  display: grid;
  place-items: center;
  width: 38px;
}

.continue {
  display: inline-block;
  margin: 20px 0 0;
  color: var(--gold-dark);
  font-size: 13px;
  text-decoration: underline;
}

.summary {
  width: min(100%, 430px);
  margin: -18px 0 0 auto;
  padding: 18px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.summary p,
.order-box p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary .total,
.order-box .total {
  border-bottom: 0;
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.steps span {
  border-top: 1px solid #cfc6bb;
  padding-top: 10px;
}

.steps .active {
  color: var(--gold-dark);
  font-weight: 800;
}

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 44px;
}

.checkout-form h3,
.order-box h3 {
  margin: 0 0 18px;
  font-size: 15px;
  text-transform: uppercase;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}

.checkout-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 14px;
  outline-color: var(--gold);
}

.order-box {
  padding: 18px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.mini-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mini-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.footer {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding: 48px max(24px, calc((100vw - 1180px) / 2 + 24px)) 24px;
  background: linear-gradient(135deg, #3b2819, #6d4b25);
  color: #fff7e9;
}

.footer-brand {
  align-items: flex-start;
}

.footer-brand span {
  font-size: 44px;
}

.footer-brand small {
  color: #dcc7a5;
}

.footer h3 {
  margin: 8px 0 18px;
  font-size: 14px;
  text-transform: uppercase;
}

.footer p,
.footer a {
  display: block;
  color: rgba(255, 247, 233, 0.84);
  font-size: 13px;
  line-height: 1.8;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.socials a {
  font-size: 22px;
  line-height: 1;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 42px;
  height: 44px;
  margin-top: 16px;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

.newsletter input,
.newsletter button {
  border: 0;
}

.newsletter input {
  min-width: 0;
  padding: 0 12px;
}

.newsletter button {
  background: var(--gold);
  color: white;
  cursor: pointer;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 247, 233, 0.7);
  text-align: center;
}

@media (max-width: 980px) {
  .header-main {
    grid-template-columns: 1fr auto;
    min-height: 92px;
  }

  .search-field {
    display: none;
  }

  .brand {
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 18px;
  }

  .category-grid,
  .product-grid,
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .free-shipping,
  .product-layout,
  .checkout-form {
    grid-template-columns: 1fr;
  }

  .thumbs {
    grid-template-columns: repeat(4, 72px);
    order: 2;
  }

  .product-photo {
    order: 1;
  }

  .product-info {
    order: 3;
  }

  .cart-head {
    display: none;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item > :nth-child(n + 3) {
    justify-self: start;
  }

  .summary {
    margin: 22px 0 0;
  }

  .footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shipping-bar {
    font-size: 11px;
  }

  .header-main {
    padding: 0 16px;
  }

  .header-actions a:first-child,
  .icon-button {
    display: none;
  }

  .brand span {
    font-size: 42px;
  }

  .brand small {
    font-size: 10px;
    letter-spacing: 5px;
  }

  .brand small::before,
  .brand small::after {
    display: none;
  }

  .main-nav {
    gap: 22px;
    min-height: 48px;
    font-size: 12px;
  }

  .hero img {
    height: 530px;
    object-position: 64% center;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 253, 249, 0.62) 45%, rgba(255, 253, 249, 0.08));
  }

  .hero-copy {
    top: 110px;
    left: 20px;
    right: 20px;
    max-width: none;
    transform: none;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 36px;
  }

  .section,
  .store-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card h3 {
    margin: 12px 10px 6px;
    font-size: 12px;
  }

  .product-card .product-price {
    font-size: 15px;
  }

  .product-card .button {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 0 10px;
  }

  .free-shipping {
    margin-left: 16px;
    margin-right: 16px;
    padding: 24px;
  }

  .free-shipping h2 {
    font-size: 32px;
  }

  .instagram-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-detail,
  .cart-panel,
  .checkout-panel {
    padding: 18px;
  }

  .product-photo img {
    min-height: 340px;
  }

  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumbs img {
    width: 100%;
  }

  .sizes {
    flex-wrap: wrap;
  }

  .trust-row,
  .steps,
  .footer {
    grid-template-columns: 1fr;
  }

  .mini-item {
    grid-template-columns: 64px 1fr;
  }

  .mini-item b {
    grid-column: 2;
  }
}
