@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Cinzel:wght@400;500;600;700;800;900&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
  --charcoal: #121212;
  --charcoal-deep: #0a0a0a;
  --gold: #d3ab59;
  --gold-soft: #e8bf61;
  --cream: #f4efe6;
  --muted: rgba(244, 239, 230, 0.64);
  --line: rgba(211, 171, 89, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--charcoal);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'EB Garamond', serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

.site-shell {
  min-height: 100vh;
  background: var(--charcoal);
  padding: 30px 15px;
}

/* Enlarged poster width for a grander premium menu feel */
.poster-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 0 60px;
  border: 1px solid rgba(211, 171, 89, 0.28);
  background: var(--charcoal);
  transition: opacity 0.18s ease-in-out;
}

.poster-page.fade-transitioning {
  opacity: 0;
}

.dots-row {
  width: 100%;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='7.5' cy='7.5' r='6.5' fill='%23d3ab59'/%3E%3Ccircle cx='22.5' cy='7.5' r='6' fill='none' stroke='%23d3ab59' stroke-width='1.6'/%3E%3Ccircle cx='7.5' cy='22.5' r='6' fill='none' stroke='%23d3ab59' stroke-width='1.6'/%3E%3Ccircle cx='22.5' cy='22.5' r='6.5' fill='%23d3ab59'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 30px 30px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 46px 44px 6px;
  flex-wrap: nowrap; /* Keep MENU and logo on same line always */
  gap: 20px;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold-soft);
  letter-spacing: 1px;
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: var(--gold-soft);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.3s ease, color 0.3s ease;
  padding: 2px 6px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
}

.lang-switcher button:hover {
  opacity: 1;
  color: var(--cream);
}

.lang-switcher button.active {
  opacity: 1;
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1.5px solid var(--gold);
}

.lang-switcher .separator {
  color: rgba(211, 171, 89, 0.3);
  font-size: 12px;
  pointer-events: none;
  user-select: none;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: 10px;
  color: var(--cream);
  line-height: 1;
}

.brand-name .accent-dot {
  color: var(--gold);
}

/* Removed circle border, border-radius, background, and shadows around the logo */
.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  width: 135px;
  height: 135px;
  overflow: hidden;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.logo-slot:hover {
  transform: scale(1.05);
}

.logo-slot img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.sections {
  display: flex;
  align-items: flex-start;
  gap: 0 60px;
  padding: 20px 40px 0;
}

.col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.col.left {
  padding-top: 0;
}

.col.right {
  padding-top: 78px;
}

.full-width {
  padding: 44px 40px 0;
}

.full-width h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 38px);
  color: var(--cream);
  letter-spacing: 0.5px;
  line-height: 0.98;
  max-width: 420px;
}

.full-width h2 .accent {
  color: var(--gold);
}

.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.sub-grid > :nth-child(even) {
  padding-top: 78px; /* Staggers the right column items down */
}

.section {
  position: relative;
  page-break-inside: avoid;
  break-inside: avoid;
}

.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--cream);
  letter-spacing: 0.5px;
  line-height: 0.98;
  max-width: 320px;
  margin: 0;
}

.section h2 .accent {
  color: var(--gold);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 12px 0 24px;
}

.icon-block {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 16px;
}

.icon-block svg {
  width: 72px;
  height: 72px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 8px;
  margin: 0 -8px;
  transition: background-color 0.25s ease;
  border-radius: 4px;
}

.item:not(.unavailable):hover {
  background-color: rgba(211, 171, 89, 0.04);
}

.item.unavailable {
  opacity: 0.35;
}

.out-of-stock-badge {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: var(--gold-soft);
  text-transform: none;
  margin-left: 4px;
  display: inline-block;
}

.item-name {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 19px; /* enlarged slightly */
  color: var(--cream);
}

.item-price {
  white-space: nowrap;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px; /* enlarged slightly */
  color: var(--gold);
}

.item-price .egp {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--gold-soft);
  margin-left: 4px;
  letter-spacing: 1px;
}

.footer {
  margin-top: 54px;
}

.dots-row.small {
  height: 18px;
  background-size: 18px 18px;
  opacity: 0.8;
}

.contact-row {
  padding: 24px 40px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer .sep {
  color: var(--line);
  font-size: 12px;
}

.footer .contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--gold-soft);
}

.footer svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

@media (max-width: 760px) {
  .site-shell {
    padding: 0;
  }
  .poster-page {
    border: none;
    width: 100%;
    padding-bottom: 30px;
  }
  .header {
    padding: 30px 16px 6px;
    flex-wrap: nowrap; /* Keep logo and MENU side-by-side */
    gap: 10px;
  }
  .sections {
    padding: 10px 16px 0;
    gap: 0 20px;
    /* Removed flex-direction: column to keep categories side-by-side */
  }
  .col {
    gap: 30px;
  }
  .col.right {
    padding-top: 48px; /* Original offset spacing */
  }
  .full-width {
    padding: 24px 16px 0;
  }
  .sub-grid {
    gap: 0 20px;
    /* Keep sub-grid elements side-by-side */
  }
  .sub-grid > :nth-child(even) {
    padding-top: 48px; /* Staggers the right column items down on mobile */
  }
}

@media (max-width: 520px) {
  .header {
    padding: 20px 12px 6px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .sections {
    padding: 10px 12px 0;
    gap: 0 12px;
  }
  .col {
    gap: 20px;
  }
  .col.right {
    padding-top: 32px;
  }
  .full-width {
    padding: 16px 12px 0;
  }
  .sub-grid {
    gap: 0 12px;
  }
  .sub-grid > :nth-child(even) {
    padding-top: 32px; /* Staggers the right column items down on small screens */
  }
  .item-name {
    font-size: 13px;
  }
  .item-price {
    font-size: 13px;
  }
  .section h2 {
    font-size: 20px;
  }
  .brand-name {
    font-size: clamp(24px, 5vw, 36px);
    letter-spacing: 4px;
  }
  .logo-slot {
    width: 80px;
    height: 80px;
  }
  .contact-row {
    padding: 16px 4px 4px;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .footer .contact {
    font-size: 10px;
    gap: 4px;
  }
  .footer svg {
    width: 11px;
    height: 11px;
  }
}

/* Arabic Garamond/Amiri overrides */
.lang-ar .section {
  direction: rtl;
}

.lang-ar .sub-grid {
  direction: rtl;
}

.lang-ar .footer {
  direction: rtl;
}

.lang-ar .brand-name {
  letter-spacing: 2px;
}

.lang-ar .section h2 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 32px);
  letter-spacing: 0;
  line-height: 1.2;
}

.lang-ar .divider {
  margin: 8px 0 20px;
}

.lang-ar .item-name {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0;
}

.lang-ar .out-of-stock-badge {
  font-family: 'Amiri', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-soft);
  margin-right: 6px;
  margin-left: 0;
}

.lang-ar .item-price {
  font-family: 'Cinzel', serif;
}

.lang-ar .item-price .egp {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-soft);
  margin-right: 5px;
  margin-left: 0;
  letter-spacing: 0;
}

.lang-ar .footer .contact {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  direction: ltr;
}

.lang-ar .footer .contact a {
  direction: ltr;
  display: inline-block;
}

.lang-ar .contact-row {
  flex-direction: row-reverse;
}
