/* Cafe v2 theme (16th Street Cafe), 2026-11-21. Goes only to 16th Street's shop; never to the Life Cafe Server.
   Loaded by the shop page only while the "cafev2" decoration is chosen (see lifecafe/local_themes.py).
   A calm, editorial café look from the shop's mock-up: cream paper, serif headings, plum accents, crest card.

   Two parts:
   1. Look (every screen size): fonts, colours, banner, cards, tabs, buttons.
   2. Desktop layout (961px and wider only): banner with the text left and the crest card right, small menu sections
      side by side, steps 2 and 3 side by side. Phones and tablets keep the normal one-column page, the sliding
      section tabs and the checkout bar at the bottom, untouched. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

/* =================================================================== 1. look (all sizes) */
body.deco-cafev2 {
  --heading-font: "Cormorant Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --body-font: "Inter", "Noto Sans SC", "Segoe UI", "PingFang SC", system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(60, 40, 30, .05), 0 8px 24px rgba(60, 40, 30, .06);
  --cream-2: #efe6d9;          /* the banner and photo tiles */
  font-size: 15px;
  font-variant-numeric: lining-nums;   /* Cormorant draws old-style numerals by default ("ı6th") */
}
body.deco-cafev2 .fx { display: none; }

/* top bar: quiet, light, shop name in serif */
body.deco-cafev2 .topbar { border-bottom: 1px solid var(--line); box-shadow: none; }
body.deco-cafev2 .brand { font-family: var(--heading-font); font-weight: 600; font-size: 1.3rem; letter-spacing: .2px; }
body.deco-cafev2 .lang { border-color: var(--line); }
body.deco-cafev2 .lang button.active { background: var(--primary); color: #fff; }

/* banner: a cream card; eyebrow in plum small caps, big serif title, the crest shown as a card (the decoration's
   right-hand image; the left one is not used) */
body.deco-cafev2 .hero { max-width: 1180px; margin: 22px auto 26px; padding: 0 16px; overflow: visible; text-align: center; }
body.deco-cafev2 .hero-inner { max-width: none; background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 22px 30px; }
body.deco-cafev2 .deco-left { display: none !important; }
body.deco-cafev2 .deco-right { position: static; display: block; width: 150px; margin: 0 auto -6px; opacity: 1; animation: none; }
body.deco-cafev2 .hero { display: flex; flex-direction: column; }
body.deco-cafev2 .deco-right { order: -1; position: relative; z-index: 2; margin-bottom: -40px; }
body.deco-cafev2 .deco-right img { background: #f7f1e8; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
body.deco-cafev2 .hero-inner { padding-top: 54px; }
body.deco-cafev2 .hero-badge { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; font-size: .74rem;
  letter-spacing: 2.4px; text-transform: uppercase; font-family: var(--body-font); }
body.deco-cafev2 .hero h1 { font-family: var(--heading-font); font-weight: 600; color: var(--ink); text-shadow: none; letter-spacing: -.5px;
  font-size: clamp(2.4rem, 9vw, 4.2rem); line-height: 1.02; margin: 10px 0 12px; }
body.deco-cafev2 .hero p { color: #5d5149; font-size: 1rem; line-height: 1.6; opacity: 1; }
body.deco-cafev2 .hero-note { background: transparent; color: var(--primary); padding: 0; margin-top: 16px; font-size: .86rem; font-weight: 600; }

/* panels: flat cream cards with hairline borders; the step number is an outlined circle */
body.deco-cafev2 .panel { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
body.deco-cafev2 .panel h2, body.deco-cafev2 .summary h2 { font-family: var(--heading-font); font-weight: 600; font-size: 1.75rem; letter-spacing: -.2px; }
body.deco-cafev2 .step-no { background: transparent; color: var(--ink); border: 1px solid #b9ab9b; width: 30px; height: 30px; font-size: .9rem; font-weight: 500; }

/* section tabs: underlined text links instead of pills (still a sliding row on phones) */
body.deco-cafev2 .group-nav { gap: 2px; border-bottom: 1px solid var(--line); padding: 4px 0 0; margin: -6px 0 0; }
body.deco-cafev2 .group-nav a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent;
  padding: 8px 12px 9px; font-size: .84rem; color: #5d5149; }
body.deco-cafev2 .group-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }
body.deco-cafev2 .group-title { font-family: var(--heading-font); font-weight: 600; font-size: 1.6rem; border-bottom: 0; padding-bottom: 0;
  margin-bottom: 14px; letter-spacing: -.2px; }
body.deco-cafev2 .group-title span { font-family: var(--body-font); font-size: .78rem; }

/* menu cards: white, hairline border, photo on a cream tile, serif title, small plum price */
body.deco-cafev2 .menu-grid { gap: 16px; }
body.deco-cafev2 .card { border-radius: 8px; border-color: var(--line); box-shadow: none; }
body.deco-cafev2 .card:hover { box-shadow: var(--shadow); }
body.deco-cafev2 .card.in-cart { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
body.deco-cafev2 .card-photo { background: var(--cream-2); }
body.deco-cafev2 .card-body { padding: 12px 12px 14px; gap: 5px; }
body.deco-cafev2 .card-title { font-family: var(--heading-font); font-weight: 600; font-size: 1.22rem; line-height: 1.15; }
body.deco-cafev2 .card-title span { display: block; font-family: var(--body-font); font-weight: 400; font-size: .74rem; color: var(--muted); margin-top: 3px; }
body.deco-cafev2 .card-size, body.deco-cafev2 .opt-count { font-size: .78rem; }
body.deco-cafev2 .card-desc { font-size: .8rem; color: #5d5149; opacity: 1; }
body.deco-cafev2 .more { font-size: .78rem; }
body.deco-cafev2 .price strong { font-size: 1.05rem; font-weight: 600; }
body.deco-cafev2 .qty-ctrl button { width: 34px; height: 34px; font-size: 1.1rem; }
body.deco-cafev2 .btn-opt { border-radius: 6px; font-size: .8rem; }
body.deco-cafev2 .ph { background: var(--cream-2); color: var(--primary); font-weight: 600; font-size: 1.5rem; }
body.deco-cafev2 .ph small { color: var(--muted); }

/* buttons, choices, calendar */
body.deco-cafev2 .btn-primary { border-radius: 6px; box-shadow: none; letter-spacing: .3px; }
body.deco-cafev2 .btn-ghost { border-radius: 6px; }
body.deco-cafev2 .choice, body.deco-cafev2 .field input { border-radius: 8px; border-width: 1px; }
body.deco-cafev2 .date-cal { border-radius: 10px; }

/* footer: a cream band with the serif line */
body.deco-cafev2 .footer { margin-top: 10px; background: var(--cream-2); border-top: 1px solid var(--line); color: var(--ink); padding: 28px 16px 36px; }
body.deco-cafev2 .footer p:first-child { font-family: var(--heading-font); font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; }
body.deco-cafev2 .footer p:first-child::after { content: " ☕"; font-size: 1rem; }

/* =================================================================== 2. desktop layout (961px and wider) */
@media (min-width: 961px) {
  /* banner: text on the left, crest card on the right */
  body.deco-cafev2 .hero { display: block; position: relative; }
  body.deco-cafev2 .hero-inner { text-align: left; padding: 48px 52px 46px; min-height: 290px; display: flex; flex-direction: column; justify-content: center; }
  body.deco-cafev2 .hero-inner > * { max-width: 52%; }
  body.deco-cafev2 .hero p { margin: 0; }
  body.deco-cafev2 .hero-note { align-self: flex-start; }
  body.deco-cafev2 .deco-right { position: absolute; right: 16px; top: 0; bottom: 0; width: 42%; margin: 0; z-index: 2;
    display: flex !important; align-items: center; justify-content: center; border-left: 1px solid var(--line);
    background: #f7f1e8; border-radius: 0 14px 14px 0; }
  body.deco-cafev2 .deco-right img { width: min(300px, 70%); background: none; border: 0; box-shadow: none; padding: 0; }

  /* the page: menu and order summary on top; pickup and details side by side under the menu.
     The summary stays beside you (sticky) all the way down, so "Proceed to payment" is always in reach. */
  body.deco-cafev2 .layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 22px; row-gap: 22px; }
  body.deco-cafev2 .steps { display: contents; }
  body.deco-cafev2 #stepMenu { grid-column: 1 / 10; grid-row: 1; }
  body.deco-cafev2 #stepPickup { grid-column: 1 / 6; grid-row: 2; }
  body.deco-cafev2 #stepDetails { grid-column: 6 / 10; grid-row: 2; }
  body.deco-cafev2 #summary { grid-column: 10 / 13; grid-row: 1 / 3; align-self: start; padding: 20px; }
  body.deco-cafev2 #stepDetails .fields { grid-template-columns: 1fr; }
  body.deco-cafev2 .choice-grid { grid-template-columns: 1fr; }
}

/* small sections side by side (wide screens): each card takes a quarter of the menu's width, so a section with
   one card takes 3 of 12 columns, two cards 6, three 9, four or more the whole row (cards wrap 4 to a row) */
@media (min-width: 1100px) {
  body.deco-cafev2 .menu-groups { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 18px; row-gap: 30px; }
  body.deco-cafev2 .group-nav { grid-column: 1 / -1; }
  body.deco-cafev2 .menu-group { grid-column: span 12; min-width: 0; }
  body.deco-cafev2 .menu-group .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.deco-cafev2 .menu-group:not(:has(.card:nth-child(4))) { grid-column: span 9; }
  body.deco-cafev2 .menu-group:not(:has(.card:nth-child(4))) .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.deco-cafev2 .menu-group:not(:has(.card:nth-child(3))) { grid-column: span 6; }
  body.deco-cafev2 .menu-group:not(:has(.card:nth-child(3))) .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.deco-cafev2 .menu-group:not(:has(.card:nth-child(2))) { grid-column: span 3; }
  body.deco-cafev2 .menu-group:not(:has(.card:nth-child(2))) .menu-grid { grid-template-columns: 1fr; }
  /* the first section (the signature dishes) with two or three cards: a whole row of large cards */
  body.deco-cafev2 .menu-group:first-of-type:not(:has(.card:nth-child(4))) { grid-column: span 12; }
  body.deco-cafev2 .menu-group:first-of-type:not(:has(.card:nth-child(4))) .menu-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  /* boxes / sets: wide cards, photo on the left, two to a row */
  body.deco-cafev2 .menu-group:has(.card .btn-opt[data-box]) { grid-column: span 12; }
  body.deco-cafev2 .menu-group:has(.card .btn-opt[data-box]) .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.deco-cafev2 .menu-group:has(.card .btn-opt[data-box]) .card { flex-direction: row; }
  body.deco-cafev2 .menu-group:has(.card .btn-opt[data-box]) .card-photo { flex: 0 0 42%; aspect-ratio: auto; min-height: 170px; }
}

/* =================================================================== phones */
@media (max-width: 640px) {
  body.deco-cafev2 .hero { margin: 14px auto 18px; }
  body.deco-cafev2 .hero-inner { padding: 50px 18px 24px; }
  body.deco-cafev2 .deco-right { width: 120px; }
  body.deco-cafev2 .panel h2, body.deco-cafev2 .summary h2 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { body.deco-cafev2 .card { transition: none; } }
