:root {
  --bg: #fffaf4;
  --bg-soft: #fff4e8;
  --bg-alt: #fdf0df;
  --surface: #ffffff;
  --surface-2: #fff8ef;
  --surface-3: #f8ead8;

  --line: #ead8c4;
  --line-strong: #d7b894;

  --text: #3f2b20;
  --text-soft: #6d5444;
  --text-muted: #8b6e59;
  --text-dark: #24160f;

  --primary: #c27c48;
  --primary-strong: #a96431;
  --primary-soft: #f5dfc9;

  --accent: #8f5a3c;
  --accent-soft: #f3e1d3;

  --success: #5f8b56;
  --danger: #b96060;

  --shadow-sm: 0 10px 24px rgba(120, 82, 58, 0.08);
  --shadow-md: 0 18px 40px rgba(120, 82, 58, 0.12);
  --shadow-lg: 0 28px 70px rgba(120, 82, 58, 0.16);

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 42px;

  --container: 1240px;
  --header-height: 84px;

  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(243, 213, 181, 0.55), transparent 24%),
    radial-gradient(circle at bottom right, rgba(241, 221, 194, 0.65), transparent 22%),
    linear-gradient(180deg, #fffaf4 0%, #fff5ea 44%, #fffaf5 100%);
  overflow-x: hidden;
}

body.menu-open,
body.cart-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

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

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  color: inherit;
}

input:focus,
button:focus,
a:focus,
textarea:focus,
select:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

section {
  position: relative;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.page-home main,
.page-menu main,
.page-product main,
.page-gallery main {
  padding-bottom: 4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f7ecdf;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d9b089, #ba7b48);
  border-radius: 999px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 248, 240, 0.82);
  backdrop-filter: blur(18px);
}

.header-main {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  flex-shrink: 0;
}

.brand__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-strong);
  font-weight: 700;
}

.brand__name {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 2.3vw, 2.45rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-dark);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 160, 124, 0.28);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
}

.desktop-nav a {
  padding: 0.74rem 1.04rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text-dark);
  background: linear-gradient(135deg, rgba(194, 124, 72, 0.14), rgba(255, 255, 255, 0.88));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.icon-btn {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(199, 160, 124, 0.28);
  background: rgba(255, 255, 255, 0.72);
  position: relative;
  flex-shrink: 0;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  box-shadow: 0 8px 18px rgba(120, 82, 58, 0.05);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.icon-btn i {
  font-size: 1.04rem;
  color: var(--text-dark);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding-inline: 0.32rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 20px rgba(169, 100, 49, 0.24);
}

.mobile-only {
  display: none;
}

/* Buttons / links */

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  padding: 0.92rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition),
    color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 14px 30px rgba(169, 100, 49, 0.18);
}

.btn--primary:hover {
  box-shadow: 0 20px 40px rgba(169, 100, 49, 0.24);
}

.btn--secondary {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(199, 160, 124, 0.28);
  box-shadow: 0 10px 22px rgba(120, 82, 58, 0.06);
}

.btn--secondary:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.btn--wide {
  width: 100%;
}

.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: var(--primary-strong);
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
}

.text-link:hover,
.section-link:hover {
  opacity: 0.88;
  transform: translateX(3px);
}

/* Shared headings */

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-heading--with-note {
  align-items: center;
}

.section-heading h2,
.hero-content h1,
.menu-hero__copy h1,
.gallery-hero__copy h1,
.product-info h1,
.contact-card h2,
.gallery-intro-card h2,
.cart-drawer__header h2,
.details-panel h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-dark);
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-tag {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-strong);
  font-weight: 700;
}

.section-subtext,
.section-note {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  max-width: 620px;
}

.section-cta {
  flex-shrink: 0;
}

/* Pills */

.pill,
.hero-badge,
.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  padding: 0.54rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 124, 72, 0.18);
  background: rgba(255, 247, 238, 0.9);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(120, 82, 58, 0.05);
}

/* Shared cards / surfaces */

.product-card,
.contact-card,
.map-card,
.cta-panel,
.product-panel,
.details-main,
.sidebar-card,
.cart-drawer__panel,
.mobile-menu__panel,
.menu-toolbar__wrap,
.gallery-intro-card,
.gallery-item,
.empty-state-message {
  backdrop-filter: blur(12px);
}

.surface-card {
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

/* Hero - Homepage */

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section--background {
  padding-block: 3.5rem;
}

.hero-background,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(56, 35, 22, 0.32), rgba(56, 35, 22, 0.5)),
    radial-gradient(circle at center, rgba(255, 248, 240, 0.08), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: #fff;
}

.hero-content--center {
  text-align: center;
  margin-inline: auto;
}

.hero-content h1 {
  margin-top: 1rem;
  font-size: clamp(3rem, 6vw, 5.8rem);
  color: #fff;
}

.hero-content h1 span,
.menu-hero__copy h1 span,
.gallery-hero__copy h1 span {
  display: inline-block;
  color: #ffe5c7;
}

.hero-text {
  margin: 1.15rem auto 0;
  max-width: 700px;
  font-size: 1.05rem;
  color: rgba(255, 249, 242, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
  justify-content: center;
}

/* Products */

.products-section,
.contact-section,
.menu-hero,
.menu-toolbar,
.product-hero,
.product-details-section,
.gallery-hero,
.gallery-intro-section,
.gallery-section {
  padding-top: 2.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.products-grid--menu,
.products-grid--related,
.products-grid--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(169, 100, 49, 0.28);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  background: #f6ecdf;
}

.product-card__media img,
.product-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-card:hover .product-card__media img,
.product-card:hover .product-card__media video {
  transform: scale(1.04);
}

.product-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.product-card__top,
.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
}

.product-card__icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 249, 242, 0.92);
  transition: var(--transition);
  flex-shrink: 0;
}

.product-card__icon:hover {
  background: var(--primary-soft);
  border-color: rgba(169, 100, 49, 0.26);
  color: var(--primary-strong);
}

.product-card__title-wrap {
  display: block;
  margin: 0.9rem 0 1rem;
}

.product-card__title-wrap h3 {
  margin: 0 0 0.38rem;
  font-size: 1.1rem;
  line-height: 1.22;
  color: var(--text-dark);
}

.product-card__title-wrap p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.product-card__bottom {
  margin-top: auto;
}

.product-card__bottom strong {
  font-size: 1.03rem;
  line-height: 1.2;
  color: var(--text-dark);
}

.product-card__bottom strong span {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.products-more,
.menu-help-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(199, 160, 124, 0.2);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.products-more p,
.menu-help-note p {
  margin: 0;
  color: var(--text-soft);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.contact-card,
.map-card {
  border-radius: 30px;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.contact-card {
  padding: 1.4rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list article {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid rgba(199, 160, 124, 0.18);
}

.contact-list i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  flex-shrink: 0;
}

.contact-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.contact-list p,
.contact-list a {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.contact-list a:hover {
  color: var(--primary-strong);
}

.map-card {
  min-height: 420px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* Menu hero */

.menu-hero__grid,
.gallery-hero__grid,
.product-layout,
.details-layout {
  display: grid;
  gap: 1.2rem;
}

.menu-hero__grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.menu-hero__copy h1,
.gallery-hero__copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  margin-top: 0.95rem;
}

.menu-hero__visual,
.gallery-hero__visual {
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(199, 160, 124, 0.24);
  box-shadow: var(--shadow-lg);
  background: #f5e8d8;
}

.menu-hero__visual img,
.gallery-hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.menu-hero--fresh .menu-hero__copy,
.gallery-hero__copy {
  padding: 0.5rem 0;
}

/* Menu toolbar */

.menu-toolbar__wrap {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 26px;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.menu-toolbar__search {
  position: relative;
}

.menu-toolbar__search i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.menu-toolbar__search input {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1rem 0.95rem 2.8rem;
  border-radius: 18px;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 251, 246, 0.95);
}

.menu-toolbar__search input::placeholder {
  color: var(--text-muted);
}

.menu-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
}

.filter-chip,
.option-chip,
.details-tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 251, 246, 0.94);
  color: var(--text-soft);
  font-weight: 600;
  transition: var(--transition);
}

.filter-chip:hover,
.option-chip:hover,
.details-tab:hover,
.filter-chip.is-active,
.option-chip.is-active,
.details-tab.is-active {
  color: var(--text-dark);
  background: var(--primary-soft);
  border-color: rgba(169, 100, 49, 0.24);
}

.empty-state-message {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}

/* Breadcrumb */

.breadcrumb-section {
  padding-top: 1.15rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--primary-strong);
}

/* Product page */

.product-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 0.95rem;
  position: sticky;
  top: calc(var(--header-height) + 1.15rem);
}

.product-gallery__main {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(199, 160, 124, 0.24);
  min-height: 620px;
  background: #f6ebde;
  box-shadow: var(--shadow-md);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 22px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.product-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: var(--transition);
  background: #f3e6d6;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb:hover,
.product-thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(169, 100, 49, 0.28);
  box-shadow: 0 10px 20px rgba(120, 82, 58, 0.08);
}

.product-info {
  display: grid;
  gap: 1rem;
}

.product-info__top h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.9rem);
  margin: 0.42rem 0 0.65rem;
}

.product-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.72rem;
  color: var(--text-soft);
}

.product-rating__stars {
  display: inline-flex;
  gap: 0.25rem;
  color: var(--primary);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid rgba(199, 160, 124, 0.18);
  border-bottom: 1px solid rgba(199, 160, 124, 0.18);
}

.product-price strong,
#sidebarPrice,
#mobileStickyPrice {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--text-dark);
}

.product-price span,
#productUnit {
  color: var(--text-muted);
  font-size: 1rem;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--success);
  font-size: 0.95rem;
  font-weight: 600;
}

.product-status i {
  font-size: 0.7rem;
}

.product-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.product-highlights {
  display: grid;
  gap: 0.78rem;
}

.product-highlights article {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(199, 160, 124, 0.2);
  box-shadow: var(--shadow-sm);
}

.product-highlights i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  flex-shrink: 0;
}

.product-highlights h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.product-highlights p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.product-panel {
  padding: 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.product-panel__head {
  margin-bottom: 0.92rem;
}

.product-panel__head h2 {
  margin: 0 0 0.18rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.product-panel__head p {
  margin: 0;
  color: var(--text-muted);
}

.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 251, 246, 0.95);
}

.quantity-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: var(--transition);
}

.quantity-btn:hover {
  background: var(--primary-soft);
}

.quantity-input {
  width: 64px;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--text-dark);
  font-weight: 700;
}

.quantity-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.product-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.84rem;
}

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

.product-meta article {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(199, 160, 124, 0.2);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.product-meta span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.product-meta strong {
  font-size: 1rem;
  color: var(--text-dark);
}

.details-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.55fr);
  align-items: start;
}

.details-main,
.sidebar-card {
  padding: 1.3rem;
  border-radius: 26px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.details-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
  margin-bottom: 1.2rem;
}

.details-panel {
  display: none;
  animation: fadeUp 240ms ease;
}

.details-panel.is-active {
  display: block;
}

.details-panel h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  margin: 0 0 0.78rem;
}

.details-panel p {
  margin: 0 0 0.82rem;
  color: var(--text-soft);
}

.luxury-list {
  display: grid;
  gap: 0.72rem;
  list-style: none;
}

.luxury-list li {
  position: relative;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid rgba(199, 160, 124, 0.16);
  color: var(--text-soft);
}

.details-sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar-stats,
.sidebar-points {
  display: grid;
  gap: 0.8rem;
}

.sidebar-stats article,
.sidebar-points article {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(199, 160, 124, 0.14);
}

.sidebar-stats article:last-child,
.sidebar-points article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-stats span,
.sidebar-points span {
  color: var(--text-soft);
}

.sidebar-stats strong,
.sidebar-points strong {
  color: var(--text-dark);
}

/* Mobile sticky product bar */

.mobile-sticky-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(255, 250, 244, 0.95);
  border-top: 1px solid rgba(199, 160, 124, 0.24);
  backdrop-filter: blur(16px);
  box-shadow: 0 -18px 40px rgba(120, 82, 58, 0.1);
}

.mobile-sticky-cart.is-visible {
  display: flex;
}

.mobile-sticky-cart__summary {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.mobile-sticky-cart__summary span {
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-sticky-cart__summary strong {
  font-size: 1.4rem;
}

.mobile-sticky-cart__btn {
  flex-shrink: 0;
  min-height: 50px;
  padding-inline: 1rem;
}

/* Cart Drawer */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 28, 19, 0.36);
  opacity: 0;
  transition: opacity 220ms ease;
}

.cart-drawer.is-open .cart-drawer__overlay {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 430px);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 250, 244, 0.98);
  box-shadow: -20px 0 50px rgba(74, 47, 31, 0.12);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

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

.cart-drawer__header,
.cart-drawer__footer {
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(199, 160, 124, 0.16);
}

.cart-drawer__footer {
  border-top: 1px solid rgba(199, 160, 124, 0.16);
  border-bottom: 0;
  margin-top: auto;
}

.cart-drawer__body {
  padding: 1rem;
  overflow: auto;
  display: grid;
  gap: 1rem;
}

.cart-items {
  display: grid;
  gap: 0.85rem;
}

.cart-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.7rem;
  min-height: 320px;
  border-radius: 24px;
  border: 1px dashed rgba(199, 160, 124, 0.26);
  background: rgba(255, 255, 255, 0.64);
  padding: 1.2rem;
}

.cart-empty__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 1.2rem;
}

.cart-empty h3,
.cart-item h3 {
  margin: 0;
  color: var(--text-dark);
}

.cart-empty p {
  margin: 0;
  color: var(--text-soft);
}

.cart-summary {
  display: grid;
  gap: 0.72rem;
  margin-bottom: 1rem;
}

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
}

.cart-summary__row strong {
  color: var(--text-dark);
}

.cart-drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(199, 160, 124, 0.2);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.cart-item:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 100, 49, 0.24);
}

.cart-item__image {
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 16px;
  background: #f4e7d8;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__content {
  min-width: 0;
}

.cart-item__meta,
.cart-item__price {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.cart-item__price span {
  color: var(--text-muted);
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.cart-item__qty-btn,
.cart-item__remove {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 251, 246, 0.96);
}

.cart-item__qty {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-item__total {
  font-weight: 700;
  color: var(--text-dark);
}

/* Mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(45, 28, 19, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 360px);
  height: 100%;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  background: rgba(255, 250, 244, 0.98);
  border-left: 1px solid rgba(199, 160, 124, 0.22);
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-menu__nav {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.mobile-menu__nav a {
  padding: 0.92rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(199, 160, 124, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-soft);
  font-weight: 600;
}

.mobile-menu__nav a.is-active,
.mobile-menu__nav a:hover {
  color: var(--text-dark);
  background: var(--primary-soft);
  border-color: rgba(169, 100, 49, 0.22);
}

.mobile-menu__actions {
  display: grid;
  gap: 0.8rem;
}

/* Gallery */

.gallery-hero__grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.gallery-intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.3rem;
  border-radius: 24px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.gallery-intro-card h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
}

.gallery-intro-card p {
  margin: 0;
  max-width: 560px;
  color: var(--text-soft);
}

.gallery-masonry {
  column-count: 4;
  column-gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(169, 100, 49, 0.28);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #f2e6d8;
}

.gallery-item--video video {
  min-height: 180px;
}

.gallery-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
}

.gallery-note {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.gallery-lightbox.is-open {
  display: block;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 18, 0.68);
  backdrop-filter: blur(10px);
}

.gallery-lightbox__dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0.9rem;
  border-radius: 28px;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 250, 244, 0.98);
  box-shadow: var(--shadow-lg);
}

.gallery-lightbox__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.gallery-lightbox__content {
  width: 100%;
  max-height: calc(100vh - 3.8rem);
  overflow: hidden;
  border-radius: 22px;
  background: #f4e8db;
  display: grid;
  place-items: center;
}

.gallery-lightbox__content img,
.gallery-lightbox__content video {
  width: 100%;
  max-height: calc(100vh - 3.8rem);
  object-fit: contain;
}

/* Footer */

.site-footer {
  margin-top: 4rem;
  background:
    radial-gradient(circle at top right, rgba(229, 193, 159, 0.24), transparent 24%),
    linear-gradient(180deg, #f8ecdd 0%, #f5e4d0 100%);
  border-top: 1px solid rgba(199, 160, 124, 0.24);
}

.site-footer--full .footer-main {
  width: min(calc(100% - 2rem), 1320px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding: 2.4rem 0 1.6rem;
}

.footer-branding p {
  margin: 1rem 0 0;
  max-width: 420px;
  color: var(--text-soft);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-strong);
  transition: var(--transition);
}

.footer-socials a:hover {
  transform: translateY(-2px);
  background: var(--primary-soft);
}

.footer-links-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer-links h3 {
  margin: 0 0 0.9rem;
  color: var(--text-dark);
  font-size: 1rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-soft);
  transition: color var(--transition), transform var(--transition);
}

.footer-links a:hover {
  color: var(--primary-strong);
  transform: translateX(2px);
}

.footer-bottom-bar {
  width: 100%;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(199, 160, 124, 0.18);
  text-align: center;
  color: var(--text-muted);
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 1180px) {
  .products-grid,
  .products-grid--menu,
  .products-grid--related,
  .products-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-layout,
  .details-layout,
  .contact-grid,
  .menu-hero__grid,
  .gallery-hero__grid,
  .site-footer--full .footer-main {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .gallery-masonry {
    column-count: 3;
  }

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

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
  }

  .products-grid,
  .products-grid--menu,
  .products-grid--related,
  .products-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-meta {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-masonry {
    column-count: 2;
  }



  .section-heading {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .hero-section {
    min-height: auto;
  }

  .hero-section--background {
    padding-block: 5.4rem 4rem;
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .section-heading,
  .products-more,
  .menu-help-note,
  .gallery-intro-card,
  .cart-drawer__actions,
  .product-action-row {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .products-more,
  .menu-help-note,
  .gallery-intro-card {
    display: grid;
  }

  .products-more,
  .menu-help-note {
    justify-items: start;
  }

  .product-gallery__main,
  .product-gallery__main img {
    min-height: 420px;
  }

  .product-price-row,
  .quantity-row {
    align-items: flex-start;
  }

  .map-card,
  .map-card iframe {
    min-height: 320px;
  }
.footer-links-wrap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.footer-links {
  gap: 0.42rem;
}

.footer-links h3 {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  line-height: 1.35;
}

.site-footer--full .footer-main {
  gap: 1.2rem;
  padding-top: 1.7rem;
  padding-bottom: 1.2rem;
}

.footer-branding p {
  margin-top: 0.7rem;
  font-size: 0.92rem;
}

.footer-socials {
  margin-top: 0.8rem;
}
 
  .gallery-lightbox__dialog {
    width: calc(100% - 1rem);
    padding: 0.7rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.1rem), var(--container));
  }

  .header-main {
    min-height: 76px;
  }

  .brand__name {
    font-size: 1.8rem;
  }

  .btn {
    min-height: 50px;
    padding: 0.85rem 1.15rem;
  }

  .products-grid,
  .products-grid--menu,
  .products-grid--related,
  .products-grid--home {
    gap: 0.85rem;
  }

  .product-card {
    border-radius: 22px;
  }

  .product-card__content {
    padding: 0.85rem;
  }

  .product-card__title-wrap {
    margin: 0.8rem 0 0.85rem;
  }

  .product-card__title-wrap h3 {
    font-size: 0.98rem;
  }

  .product-card__title-wrap p {
    font-size: 0.9rem;
  }

  .product-card__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .product-card__bottom strong {
    font-size: 0.95rem;
  }

  .pill,
  .hero-badge,
  .gallery-badge {
    font-size: 0.72rem;
    padding: 0.48rem 0.74rem;
  }

  .section-heading h2,
  .gallery-intro-card h2 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .menu-hero__copy h1,
  .gallery-hero__copy h1,
  .product-info__top h1 {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
  }

  .product-gallery__main,
  .product-gallery__main img {
    min-height: 320px;
    border-radius: 24px;
  }

  .product-gallery__thumbs {
    gap: 0.55rem;
    padding: 0.55rem;
  }

  .product-panel,
  .details-main,
  .sidebar-card,
  .contact-card {
    padding: 1rem;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .details-tabs,
  .product-options,
  .menu-toolbar__filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .details-tabs::-webkit-scrollbar,
  .product-options::-webkit-scrollbar,
  .menu-toolbar__filters::-webkit-scrollbar {
    display: none;
  }

  .details-tab,
  .option-chip,
  .filter-chip {
    flex: 0 0 auto;
  }

  .gallery-masonry {
    column-count: 2;
    column-gap: 0.72rem;
  }

  .gallery-item {
    margin-bottom: 0.72rem;
    border-radius: 20px;
  }

  .cart-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .cart-item__total {
    grid-column: 2;
    justify-self: end;
  }

  .mobile-sticky-cart {
    gap: 0.7rem;
  }
}

@media (max-width: 460px) {
  .products-grid,
  .products-grid--menu,
  .products-grid--related,
  .products-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-list article {
    padding: 0.9rem;
  }

  .gallery-lightbox__close {
    width: 40px;
    height: 40px;
  }
.site-footer--full .footer-main {
  padding-top: 1.5rem;
}

.footer-links-wrap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.footer-links h3 {
  font-size: 0.86rem;
}

.footer-links a {
  font-size: 0.82rem;
}
 
}

@media (min-width: 821px) {
  .mobile-sticky-cart {
    display: none !important;
  }
}


.cart-empty.is-hidden {
  display: none !important;
}
/* Background hero variants for menu and gallery */

.menu-hero--background,
.gallery-hero--background {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 3.5rem;
  border-bottom: 1px solid rgba(199, 160, 124, 0.18);
}

.menu-hero__background,
.gallery-hero__background,
.menu-hero__overlay,
.gallery-hero__overlay {
  position: absolute;
  inset: 0;
}

.menu-hero__background img,
.gallery-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-hero__overlay {
  background:
    linear-gradient(180deg, rgba(64, 40, 26, 0.36), rgba(64, 40, 26, 0.52)),
    radial-gradient(circle at center, rgba(255, 245, 233, 0.08), transparent 38%);
}

.gallery-hero__overlay {
  background:
    linear-gradient(180deg, rgba(49, 31, 21, 0.34), rgba(49, 31, 21, 0.56)),
    radial-gradient(circle at top right, rgba(255, 234, 206, 0.08), transparent 30%);
}

.menu-hero__content,
.gallery-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
  padding-block: 2rem;
}

.menu-hero__content h1,
.gallery-hero__content h1 {
  margin-top: 1rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: #fff;
}

.menu-hero__content h1 span,
.gallery-hero__content h1 span {
  display: inline-block;
  color: #ffe5c7;
}

.menu-hero__content .hero-text,
.gallery-hero__content .hero-text {
  margin: 1.1rem 0 0;
  max-width: 660px;
  color: rgba(255, 249, 242, 0.95);
  font-size: 1.02rem;
}

@media (max-width: 760px) {
  .menu-hero--background,
  .gallery-hero--background {
    min-height: 60vh;
    padding-block: 4rem 3rem;
  }

  .menu-hero__content h1,
  .gallery-hero__content h1 {
    font-size: clamp(2.3rem, 10vw, 3.8rem);
  }

  .menu-hero__content,
  .gallery-hero__content {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
  }

  .products-grid,
  .products-grid--menu,
  .products-grid--related,
  .products-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-meta {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-masonry {
    column-count: 2;
  }

  .footer-links-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .section-heading {
    align-items: start;
  }
}

/* -------------------------------------------------------------------------- */
/* Checkout Page                                                               */
/* -------------------------------------------------------------------------- */

.page-checkout main {
  padding-bottom: 5rem;
}

.checkout-hero {
  padding-top: 2.2rem;
}

.checkout-hero__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.35rem;
  border-radius: 26px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.checkout-hero__wrap h1 {
  margin: 0.35rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 0.96;
  color: var(--text-dark);
}

.checkout-section {
  padding-top: 2rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.2rem;
  align-items: start;
}

.checkout-main,
.checkout-sidebar {
  display: grid;
  gap: 1rem;
}

.checkout-card {
  padding: 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.checkout-card__head {
  margin-bottom: 1rem;
}

.checkout-card__head h2 {
  margin: 0.2rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 0.96;
  color: var(--text-dark);
}

.checkout-form {
  display: grid;
  gap: 1rem;
}

.checkout-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 54px;
  padding: 0.92rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 251, 246, 0.96);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input[readonly] {
  background: #f9f0e4;
  color: var(--text-muted);
  font-weight: 600;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(169, 100, 49, 0.32);
  box-shadow: 0 0 0 4px rgba(194, 124, 72, 0.08);
  background: #fff;
}

/* Terms / fee box */

.checkout-terms-box {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(199, 160, 124, 0.18);
  background: var(--surface-2);
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  cursor: pointer;
  color: var(--text-soft);
}

.terms-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--primary-strong);
  flex-shrink: 0;
}

.terms-check span {
  line-height: 1.5;
}

.terms-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.terms-link:hover {
  opacity: 0.88;
}

.checkout-fee-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.checkout-actions {
  display: grid;
  margin-top: 0.15rem;
}

.checkout-actions .btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

/* Checkout summary / items */

.checkout-items {
  display: grid;
  gap: 0.85rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(199, 160, 124, 0.18);
  background: rgba(255, 251, 246, 0.92);
}

.checkout-item__image {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: #f3e6d6;
}

.checkout-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item__content {
  min-width: 0;
}

.checkout-item__content h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text-dark);
}

.checkout-item__content p,
.checkout-item__content span {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.checkout-item__content span {
  display: inline-block;
  margin-top: 0.2rem;
}

.checkout-item__total {
  font-size: 0.95rem;
  color: var(--text-dark);
  white-space: nowrap;
}

.checkout-empty {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  text-align: center;
  min-height: 260px;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px dashed rgba(199, 160, 124, 0.26);
  background: rgba(255, 255, 255, 0.72);
}

.checkout-empty__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 1.2rem;
}

.checkout-empty h3 {
  margin: 0;
  color: var(--text-dark);
}

.checkout-empty p {
  margin: 0;
  color: var(--text-soft);
}

.checkout-summary {
  display: grid;
  gap: 0.8rem;
}

.checkout-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
}

.checkout-summary__row strong {
  color: var(--text-dark);
}

.checkout-summary__row--total {
  padding-top: 0.8rem;
  margin-top: 0.1rem;
  border-top: 1px solid rgba(199, 160, 124, 0.18);
  font-size: 1.05rem;
}

.checkout-summary__row--total strong {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.checkout-summary__note {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.invoice-actions {
  display: grid;
  gap: 0.8rem;
}

.invoice-actions .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Confirmation */

.checkout-confirmation {
  padding-top: 2rem;
}

.checkout-confirmation__card {
  max-width: 820px;
  margin-inline: auto;
  padding: 2rem;
  text-align: center;
  border-radius: 30px;
  border: 1px solid rgba(199, 160, 124, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.checkout-confirmation__icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(95, 139, 86, 0.12);
  color: var(--success);
  font-size: 2rem;
}

.checkout-confirmation__card h2 {
  margin: 0.25rem 0 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--text-dark);
}

.checkout-confirmation__card p {
  margin: 0;
  color: var(--text-soft);
}

.checkout-confirmation__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.checkout-confirmation__meta article {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(199, 160, 124, 0.18);
  background: var(--surface-2);
}

.checkout-confirmation__meta span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.checkout-confirmation__meta strong {
  color: var(--text-dark);
  font-size: 1rem;
}

.checkout-confirmation__actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.checkout-confirmation__redirect-note {
  margin-top: 1rem !important;
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

/* Terms drawer */

.terms-drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
  pointer-events: none;
}

.terms-drawer.is-open {
  pointer-events: auto;
}

.terms-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 18, 0.42);
  opacity: 0;
  transition: opacity 220ms ease;
}

.terms-drawer.is-open .terms-drawer__overlay {
  opacity: 1;
}

.terms-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 480px);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  border-left: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 250, 244, 0.98);
  box-shadow: -20px 0 46px rgba(74, 47, 31, 0.12);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

.terms-drawer.is-open .terms-drawer__panel {
  transform: translateX(0);
}

.terms-drawer__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.terms-drawer__head h2 {
  margin: 0.2rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 0.96;
  color: var(--text-dark);
}

.terms-drawer__body {
  overflow: auto;
  padding-right: 0.2rem;
}

.terms-content {
  display: grid;
  gap: 1rem;
}

.terms-content article {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(199, 160, 124, 0.16);
  background: rgba(255, 255, 255, 0.84);
}

.terms-content h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.terms-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Invoice modal */

.invoice-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
}

.invoice-modal.is-open {
  display: block;
}

.invoice-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 18, 0.62);
  backdrop-filter: blur(8px);
}

.invoice-modal__dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 1.2rem));
  max-height: calc(100vh - 1.2rem);
  padding: 0.9rem;
  border-radius: 28px;
  border: 1px solid rgba(199, 160, 124, 0.24);
  background: rgba(255, 250, 244, 0.98);
  box-shadow: var(--shadow-lg);
}

.invoice-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
}

.invoice-preview {
  width: 100%;
  max-height: calc(100vh - 3rem);
  overflow: auto;
  padding-top: 1.2rem;
}

.invoice-sheet {
  width: min(100%, 780px);
  margin-inline: auto;
  padding: 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(199, 160, 124, 0.2);
  background: #fffdf9;
  box-shadow: 0 16px 34px rgba(120, 82, 58, 0.08);
}

.invoice-sheet__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(199, 160, 124, 0.18);
}

.invoice-sheet__top h2 {
  margin: 0.2rem 0 0.3rem;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 0.96;
  color: var(--text-dark);
}

.invoice-sheet__top p,
.invoice-sheet__meta p {
  margin: 0;
  color: var(--text-soft);
}

.invoice-sheet__meta {
  display: grid;
  gap: 0.3rem;
}

.invoice-sheet__block {
  padding-top: 1rem;
}

.invoice-sheet__block h3 {
  margin: 0 0 0.6rem;
  color: var(--text-dark);
  font-size: 1rem;
}

.invoice-sheet__block p {
  margin: 0 0 0.45rem;
  color: var(--text-soft);
}

.invoice-sheet__items {
  display: grid;
  gap: 0.7rem;
}

.invoice-sheet__item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid rgba(199, 160, 124, 0.14);
}

.invoice-sheet__item span {
  color: var(--text-soft);
}

.invoice-sheet__item strong {
  color: var(--text-dark);
  white-space: nowrap;
}

.invoice-sheet__totals {
  margin-top: 0.3rem;
}

.invoice-sheet__item--total strong,
.invoice-sheet__item--total span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.invoice-sheet__note {
  margin: 0.8rem 0 0 !important;
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

/* Make checkout button stand out more when enabled */

#payNowButton {
  font-size: 1rem;
}

/* Responsive */

@media (max-width: 1100px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .checkout-hero__wrap {
    padding: 1rem;
  }

  .checkout-form__grid {
    grid-template-columns: 1fr;
  }

  .checkout-confirmation__meta {
    grid-template-columns: 1fr;
  }

  .checkout-confirmation__actions {
    flex-direction: column;
  }

  .invoice-modal__dialog {
    width: calc(100% - 0.8rem);
    padding: 0.7rem;
  }

  .invoice-sheet {
    padding: 1rem;
  }

  .invoice-sheet__top {
    gap: 0.7rem;
  }

  .terms-drawer__panel {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .checkout-card {
    padding: 1rem;
    border-radius: 22px;
  }

  .checkout-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .checkout-item__image {
    width: 64px;
    height: 64px;
  }

  .checkout-item__total {
    grid-column: 2;
    justify-self: end;
    margin-top: 0.25rem;
  }

  .checkout-summary__row--total strong {
    font-size: 1.7rem;
  }

  .checkout-confirmation__card {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .checkout-confirmation__card h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .terms-drawer__head h2 {
    font-size: 1.7rem;
  }

  .invoice-sheet__item {
    flex-direction: column;
    align-items: flex-start;
  }
}


.is-hidden {
  display: none !important;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.footer-powered:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
  border-color: rgba(217,181,109,0.45);
}

.footer-powered__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.footer-powered__name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #d9b56d;
}

.footer-powered i {
  font-size: 0.85rem;
  color: #d9b56d;
}

@media (max-width: 640px) {
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(134,174,254,0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(134,174,254,0.35);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.footer-powered:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
  border-color: rgba(134,174,254,0.6);
}

.footer-powered__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
  color: inherit;
}

.footer-powered__name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #86aefe;
}

.footer-powered i {
  font-size: 0.85rem;
  color: #86aefe;
}
