:root {
  --white: #ffffff;
  --cream: #FBF8F3;
  --line: #ECE6D9;
  --ink: #231F18;
  --ink-soft: #5B5448;
  --gold: #B8863C;
  --gold-deep: #8C5E22;
  --coffee: #3B2A1E;
  --green: #2BAA52;
  --green-deep: #1F8F42;
  --shadow-sm: 0 2px 10px rgba(35, 31, 24, 0.06);
  --shadow-md: 0 10px 30px rgba(35, 31, 24, 0.10);
  --shadow-lg: 0 24px 60px rgba(35, 31, 24, 0.16);
  --radius: 16px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--coffee);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  background: var(--gold-deep);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--green-deep);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
  border-radius: 999px;
}

.btn-block {
  width: 100%;
}

/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  display: block;
  box-shadow: var(--shadow-sm);
}

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: .2s;
}

.icon-btn:hover {
  background: var(--line);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--line);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(35, 31, 24, 0.4);
  z-index: 600;
  display: none;
}

.mobile-drawer.open {
  display: block;
}

.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  padding: 90px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .3s ease;
}

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

.mobile-panel a {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 26px;
  background: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(20, 16, 10, 0.55), rgba(20, 16, 10, 0.62)),
    url('../assets/images/heroimg.jpeg') center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.hero .eyebrow {
  color: #E8C988;
}

.hero .eyebrow::before {
  background: #E8C988;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  color: #fff;
  margin: 18px 0 14px;
  line-height: 1.02;
}

.hero h1 em {
  font-style: italic;
  color: #E8C988;
}

.hero .tag {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll .line {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrolld 1.8s infinite;
}

@keyframes scrolld {
  0% {
    opacity: 0;
    transform: scaleY(0.3);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  100% {
    opacity: 0;
    transform: scaleY(0.3);
    transform-origin: bottom;
  }
}

/* ---------- SECTION GENERIC ---------- */
section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 14px 0 12px;
}

.section-head p {
  font-size: 16px;
}

/* ---------- MENU ---------- */
#menu {
  background: var(--cream);
}

.cat-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.cat-tab {
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  transition: .2s;
}

.cat-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cat-tab:hover {
  border-color: var(--ink);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

.menu-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.menu-card .img-wrap {
  max-height: 300px;
  overflow: hidden;
  position: relative;
  object-fit: cover;
}

.menu-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.menu-card:hover .img-wrap img {
  transform: scale(1.07);
}

.menu-card .cat-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: .04em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.menu-card .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.menu-card h4 {
  font-size: 19px;
}

.menu-card p.desc {
  font-size: 13.5px;
  flex: 1;
}

.menu-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.price {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

.price small {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}

.add-btn:hover {
  background: var(--gold-deep);
}

.empty-note {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
  grid-column: 1/-1;
}

/* ---------- OFFERS ---------- */
#offers {
  background: #fff;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.offer-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-sm);
}

.offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.94;
}

.offer-card.c1::before {
  background: linear-gradient(135deg, #3B2A1E, #5C3F26);
}

.offer-card.c2::before {
  background: linear-gradient(135deg, #8C5E22, #B8863C);
}

.offer-card.c3::before {
  background: linear-gradient(135deg, #1F8F42, #2BAA52);
}

.offer-card.c4::before {
  background: linear-gradient(135deg, #231F18, #43392B);
}

.offer-card .tagchip {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.18);
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.offer-card h3 {
  position: relative;
  z-index: 1;
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}

.offer-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* ---------- ABOUT STRIP ---------- */
.about-strip {
  background: var(--coffee);
  color: #fff;
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.gallery-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-img:hover img {
  transform: scale(1.05);
}

@media(max-width:640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.cat-manage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-manage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 8px 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.cat-manage-pill button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.cat-manage-pill button:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.cat-manage-pill button[data-act="delcat"]:hover {
  color: #c0392b;
}

.about-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.about-strip .stat h3 {
  font-size: 38px;
  color: #E8C988;
  margin-bottom: 6px;
}

.about-strip .stat p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

/* ---------- CONTACT ---------- */
#contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-row input,
.form-row textarea,
.form-row select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  background: var(--cream);
  transition: .2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0 26px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-item .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-deep);
}

.info-item h5 {
  font-size: 14px;
  margin-bottom: 3px;
}

.info-item p {
  font-size: 14px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: .2s;
  color: var(--ink);
}

.social-row a:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.footer-grid .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid a:hover {
  color: #E8C988;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- FLOATING WHATSAPP ---------- */
.fab-wa {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 700;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(43, 170, 82, 0.45);
  animation: pulse 2.6s infinite;
}

.fab-wa:hover {
  background: var(--green-deep);
}

@keyframes pulse {
  0% {
    box-shadow: 0 10px 26px rgba(43, 170, 82, 0.45), 0 0 0 0 rgba(43, 170, 82, 0.5);
  }

  70% {
    box-shadow: 0 10px 26px rgba(43, 170, 82, 0.45), 0 0 0 14px rgba(43, 170, 82, 0);
  }

  100% {
    box-shadow: 0 10px 26px rgba(43, 170, 82, 0.45), 0 0 0 0 rgba(43, 170, 82, 0);
  }
}

/* ---------- CART DRAWER ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 31, 24, 0.45);
  z-index: 800;
  display: none;
}

.cart-overlay.open {
  display: block;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92%);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s ease;
  box-shadow: var(--shadow-lg);
}

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

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

.cart-head h3 {
  font-size: 22px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 10px;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-item img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item .ci-info {
  flex: 1;
}

.cart-item h5 {
  font-size: 14.5px;
  margin-bottom: 4px;
}

.cart-item .ci-price {
  font-size: 13px;
  color: var(--ink-soft);
}

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.qty-ctrl button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
  font-weight: 700;
  font-size: 14px;
}

.qty-ctrl span {
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
}

.remove-x {
  color: #C0392B;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.cart-foot {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
}

.cart-foot .form-row {
  margin-bottom: 12px;
}

/* ---------- ADMIN ---------- */
#admin {
  display: none;
  background: var(--cream);
  min-height: 100vh;
  padding: 40px 0 80px;
}

.admin-login {
  max-width: 380px;
  margin: 60px auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.admin-login h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.admin-login p {
  margin-bottom: 24px;
  font-size: 13.5px;
}

.admin-shell {
  display: none;
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 13.5px;
}

.admin-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.stat-card .num {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-deep);
}

.stat-card .lbl {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.admin-panel-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.admin-panel-box h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  padding: 10px 8px;
  border-bottom: 1.5px solid var(--line);
}

.admin-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}

.admin-table img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.act-edit {
  background: var(--cream);
  color: var(--ink);
}

.act-del {
  background: #FBE7E5;
  color: #C0392B;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-form-grid .full {
  grid-column: 1/-1;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-feed .act-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.activity-feed .act-row b {
  color: var(--ink);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 31, 24, 0.5);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-box h3 {
  margin-bottom: 18px;
  font-size: 21px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.img-preview {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-top: 8px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  opacity: 0;
  transition: .3s;
  pointer-events: none;
}

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

.logout-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.admin-footer-note {
  text-align: center;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-strip .wrap {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

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

  .hamburger {
    display: flex;
  }

  section {
    padding: 64px 0;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-strip .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   ADDED FOR DYNAMIC IMAGE SIZES, GENERIC VARIANTS & OFFERS IMAGES
   ============================================================ */

/* Menu Card Variants Box */
.menu-card .variants-box {
  margin-top: 6px;
  margin-bottom: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-card .variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  transition: all 0.2s ease;
  user-select: none;
}

.menu-card .variant-row:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.menu-card .variant-row.selected {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.menu-card .variant-row input {
  margin: 0;
  display: none; /* Hide default radio check since row is styled */
}

/* Offer Card with Image Style */
.offer-card.has-img {
  padding: 0;
  justify-content: flex-start;
}

.offer-card.has-img::before {
  top: 180px; /* offset the overlay gradient so the image is clean */
}

.offer-card .offer-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

.offer-card .offer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.offer-card:hover .offer-img-wrap img {
  transform: scale(1.05);
}

.offer-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  position: relative;
  z-index: 2;
}

.offer-card:not(.has-img) .offer-card-content {
  padding: 0;
  display: block;
}

/* Admin Variants Section & Editor */
.admin-variants-section {
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.admin-variants-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.admin-variant-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-variant-item input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  background: var(--white);
  color: var(--ink);
}

.admin-variant-item input[type="text"] {
  flex: 1;
}

.admin-variant-item input[type="number"] {
  width: 110px;
}

.admin-variant-item button.act-del-var {
  background: #ffeded;
  color: #ff3b30;
  border: 1px solid #ffccd0;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.admin-variant-item button.act-del-var:hover {
  background: #ff3b30;
  color: var(--white);
}

/* Admin Order Manager UI */
.order-detail-meta {
  margin-bottom: 20px;
  font-size: 13.5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-detail-meta div {
  background: var(--cream);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.order-detail-meta h5 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
}

.order-detail-meta p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.orders-detail-items {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.orders-detail-items th,
.orders-detail-items td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  font-size: 14px;
}

.orders-detail-items th {
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--cream);
}

.orders-detail-items tbody tr:last-child td {
  border-bottom: none;
}

/* CSS styles for custom sizing */
.menu-card .img-wrap.custom-dim img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}