:root {
  color-scheme: light;
  --cream: #f7f1e7;
  --dark-green: #0f3d2e;
  --burgundy: #7a1f2b;
  --black: #111111;
  --white: #ffffff;
  --bg: var(--cream);
  --surface: #fffaf2;
  --ink: var(--black);
  --muted: #615d55;
  --line: #e4d8c8;
  --brand: var(--dark-green);
  --brand-2: var(--burgundy);
  --accent: var(--burgundy);
  --shadow: 0 18px 48px rgba(17, 17, 17, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 82px;
  overflow-x: hidden;
}

body.cart-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.site-header {
  align-items: center;
  background: rgba(247, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  left: 0;
  padding: 8px 12px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
  max-width: 58vw;
}

.brand-mark {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  flex: 0 0 40px;
  height: 40px;
  justify-items: center;
  overflow: hidden;
  width: 40px;
}

.brand-mark img {
  height: 100%;
  object-fit: contain;
  padding: 4px;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  margin-top: 4px;
  white-space: nowrap;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.language-pill {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.language-pill:hover {
  border-color: var(--brand-2);
}

.language-divider {
  color: var(--brand-2);
  font-weight: 900;
}

.text-button,
.cart-button,
.primary-button,
.secondary-button,
.checkout-button,
.add-button,
.qty-button,
.close-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.text-button,
.secondary-button {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  padding: 0 13px;
  position: relative;
}

.text-button::after {
  background: var(--brand-2);
  bottom: -3px;
  content: "";
  height: 2px;
  left: 12px;
  opacity: 0;
  position: absolute;
  right: 12px;
  transition: opacity 160ms ease;
}

.text-button:hover::after {
  opacity: 1;
}

.text-button:hover,
.secondary-button:hover,
.qty-button:hover,
.close-button:hover {
  background: var(--white);
  border-color: var(--brand-2);
  color: var(--brand-2);
}

.cart-button,
.primary-button,
.checkout-button,
.add-button {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  font-weight: 700;
  padding: 0 16px;
}

.cart-button:hover,
.primary-button:hover,
.checkout-button:hover,
.add-button:hover {
  background: var(--brand);
  border-color: var(--brand-2);
}

.primary-button,
.secondary-button {
  min-height: 48px;
}

.cart-count {
  align-items: center;
  background: var(--brand-2);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 0.78rem;
  height: 24px;
  justify-content: center;
  margin-inline-start: 8px;
  min-width: 24px;
  padding: 0 6px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: var(--max);
  padding: 24px 14px 16px;
}

.hero-copy {
  max-width: 620px;
  min-width: 0;
}

.eyebrow {
  color: var(--brand-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--brand);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h3 {
  color: var(--brand);
}

h1 {
  font-size: clamp(2.05rem, 10vw, 2.55rem);
  line-height: 1;
  margin-bottom: 12px;
  max-width: 680px;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.55rem, 7vw, 2.05rem);
  line-height: 1.08;
  margin-bottom: 0;
}

.hero-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}

.hero-actions {
  display: grid;
  gap: 9px;
}

.hero-media {
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  width: calc(100% + 28px);
  margin-inline: -14px;
}

.quick-links {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: var(--max);
  padding: 6px 14px 20px;
}

.quick-links a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  min-width: 0;
  padding: 12px 14px;
}

.quick-links a:hover {
  border-color: var(--brand-2);
}

.quick-links strong {
  color: var(--brand);
}

.quick-links span {
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

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

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

.category-scroll {
  display: flex;
  gap: 8px;
  margin: 0 -14px 16px;
  overflow-x: auto;
  padding: 0 14px 8px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-button {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 38px;
  padding: 0 11px;
}

.category-button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.category-button:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
  display: grid;
  overflow: hidden;
}

.product-media {
  align-items: center;
  aspect-ratio: 1 / 0.86;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  min-height: 88px;
  overflow: hidden;
  padding: 7px;
}

.product-media img {
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(0.94);
  width: 100%;
}

.product-media.image-missing::before {
  color: var(--muted);
  content: attr(data-fallback);
  font-weight: 700;
  text-align: center;
}

.product-body {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.product-title-row {
  align-items: start;
  display: grid;
  gap: 5px;
  justify-items: center;
  text-align: center;
}

.product-title-row h3 {
  color: var(--brand);
  font-size: 0.72rem;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: center;
  width: 100%;
}

.price {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  justify-self: center;
  text-align: center;
}

.product-form {
  display: grid;
  gap: 6px;
}

.field,
.option-group {
  display: grid;
  gap: 7px;
}

.field span,
.option-label {
  color: var(--brand-2);
  font-size: 0.62rem;
  font-weight: 700;
}

select,
textarea,
input {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.72rem;
  min-height: 32px;
  outline: none;
  padding: 6px 7px;
  width: 100%;
}

select:focus,
textarea:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.16);
}

.ltr-value,
.price,
#cartTotal {
  direction: ltr;
  display: inline-block;
  text-align: left;
  unicode-bidi: isolate;
}

textarea {
  min-height: 38px;
  resize: vertical;
}

.checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.checkbox-pill {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.66rem;
  gap: 5px;
  min-height: 30px;
  padding: 0 7px;
}

.checkbox-pill input {
  accent-color: var(--brand);
  height: 16px;
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.add-button {
  font-size: 0.7rem;
  min-height: 34px;
  padding-inline: 5px;
  width: 100%;
}

.reviews-section {
  background: var(--bg);
  padding-top: 24px;
}

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

.review-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.review-action .primary-button {
  border-radius: 999px;
  min-width: 170px;
  padding-inline: 24px;
}

.review-card {
  background: linear-gradient(180deg, var(--white), var(--surface));
  border: 1px solid rgba(122, 31, 43, 0.14);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.07);
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 16px;
}

.review-card .stars {
  background: linear-gradient(45deg, #FFD700, #FFC300, #FFB800);
  -webkit-background-clip: text;
  background-clip: text;
  color: #FFD700;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(255, 195, 0, 0.3);
  -webkit-text-fill-color: transparent;
}

.review-card p {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}

.review-card strong {
  color: var(--muted);
  font-size: 0.86rem;
}

.instagram-section {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--black));
  color: var(--cream);
  display: grid;
  gap: 14px;
  margin: 20px auto 0;
  max-width: var(--max);
  padding: 28px 14px;
}

.instagram-section .eyebrow {
  color: #f4d79b;
}

.instagram-section h2 {
  color: var(--cream);
  max-width: 680px;
}

.instagram-section .primary-button {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--brand);
  border-radius: 999px;
  width: fit-content;
}

.instagram-user {
  color: var(--cream);
  font-size: clamp(1.28rem, 7vw, 2rem);
  font-weight: 800;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}

.instagram-section,
.instagram-section p,
.instagram-section a {
  color: var(--cream);
}

.instagram-section .primary-button {
  color: var(--brand);
}

.instagram-user.ltr-value {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.cart-overlay {
  background: rgba(31, 38, 34, 0.42);
  inset: 0;
  position: fixed;
  z-index: 35;
}

.cart-drawer {
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  bottom: 0;
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  max-width: 100%;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 220ms ease;
  width: 100%;
  z-index: 40;
}

[dir="rtl"] .cart-drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 15px 14px;
}

.cart-drawer-header h2 {
  font-size: 1.45rem;
}

.close-button,
.qty-button {
  background: var(--white);
  color: var(--ink);
  min-height: 36px;
  min-width: 36px;
  padding: 0;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 14px;
}

.empty-cart {
  color: var(--muted);
  line-height: 1.7;
  padding: 18px 0;
}

.cart-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.cart-item-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.cart-item h3 {
  font-size: 0.98rem;
  margin: 0 0 4px;
}

.cart-item small,
.cart-options,
.cart-note {
  color: var(--muted);
  line-height: 1.45;
}

.cart-item-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.quantity-control {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.remove-button {
  background: transparent;
  border: 0;
  color: var(--brand-2);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 0;
}

.checkout-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
}

.checkout-form label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-total-row {
  align-items: center;
  display: flex;
  font-size: 1.1rem;
  justify-content: space-between;
  margin-bottom: 4px;
}

.checkout-button {
  min-height: 48px;
  width: 100%;
}

.toast {
  background: var(--ink);
  border-radius: 6px;
  bottom: 20px;
  color: var(--white);
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bottom-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 8px;
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.16);
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  left: 8px;
  padding: 5px;
  position: fixed;
  right: 8px;
  z-index: 30;
}

.bottom-nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: clamp(0.54rem, 2.25vw, 0.68rem);
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  min-width: 0;
  padding: 0 3px;
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.bottom-nav-item.active {
  background: var(--brand);
  color: var(--white);
}

.bottom-cart-count {
  align-items: center;
  background: var(--brand-2);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.58rem;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 4px;
  position: absolute;
  right: 3px;
  top: 2px;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .hero-media img,
[dir="rtl"] .product-media img,
[dir="rtl"] .brand-mark img {
  transform-origin: center;
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-text {
    max-width: 32ch;
  }

  .header-actions {
    display: flex;
    flex: 0 0 auto;
  }
}

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

  .product-media {
    min-height: 112px;
  }

  .brand strong {
    font-size: 0.72rem;
  }

  .brand small {
    font-size: 0.56rem;
  }

  .language-pill {
    font-size: 0.66rem;
    gap: 5px;
    padding: 0 8px;
  }

  .bottom-nav-item {
    font-size: 0.55rem;
  }
}

@media (min-width: 560px) {
  .quick-links a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .quick-links span {
    text-align: end;
  }

  .quick-links,
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .product-media {
    min-height: 250px;
    padding: 34px;
  }

  .product-body {
    gap: 14px;
    padding: 16px;
  }

  .product-title-row {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
  }

  .product-title-row h3 {
    font-size: 1.08rem;
  }

  .price {
    font-size: 1rem;
  }

  .product-form {
    gap: 12px;
  }

  .field span,
  .option-label {
    font-size: 0.82rem;
  }

  select,
  textarea,
  input {
    min-height: 44px;
    padding: 10px 12px;
  }

  textarea {
    min-height: 78px;
  }

  .add-button {
    min-height: 46px;
  }
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    padding: 14px 28px;
  }

  .hero {
    gap: 42px;
    grid-template-columns: 0.92fr 1.08fr;
    padding: 48px 28px 26px;
  }

  h1 {
    font-size: 4.4rem;
  }

  .quick-links,
  .section,
  .instagram-section {
    padding-left: 28px;
    padding-right: 28px;
  }

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

  .product-media {
    min-height: 288px;
    padding: 42px;
  }

  .instagram-section {
    grid-template-columns: 1fr auto;
  }

  .bottom-nav {
    display: none;
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
