/* OPS Urla — shared styles. Brand: turquoise #86B1B0 (CMYK 45/15/24/6) and the logo olive #857341.
   Text uses the logo olive: #857341 for headings, a deeper #6E5F33 for body text (AA contrast),
   and #433920 on turquoise. */
:root { --ops-turkuaz: #86B1B0; --ops-ink: #6E5F33; --ops-deep: #433920; --ops-olive: #857341; --ops-ground: #ECEBE6; }
h1, h2, h3 { color: var(--ops-olive); }
[style*="background: #86B1B0"] h1, [style*="background: #86B1B0"] h2, [style*="background: #86B1B0"] h3 { color: inherit; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ops-ground); }
img { max-width: 100%; }
a { color: #5F5229; }
a:hover { color: var(--ops-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ops-deep); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Product filter (urunler.html) */
.ops-tab { font: inherit; text-align: left; cursor: pointer; min-height: 44px; padding: 8px 12px; border-radius: 6px; border: 0; background: transparent; color: var(--ops-ink); display: flex; justify-content: space-between; gap: 12px; }
.ops-tab .ops-tab-n { color: var(--ops-ink); }
.ops-tab:hover { background: #F2F1EC; }
.ops-tab[aria-selected="true"] { background: var(--ops-turkuaz); color: var(--ops-deep); }
.ops-tab[aria-selected="true"] .ops-tab-n { color: var(--ops-deep); }

/* Grain picker (bugdaylarimiz.html) */
.ops-gtab { font: inherit; cursor: pointer; padding: 0; border: 3px solid transparent; border-radius: 8px; background: #FFFFFF; overflow: hidden; text-align: left; color: var(--ops-ink); opacity: 0.8; font-weight: 500; }
.ops-gtab:hover { opacity: 1; }
.ops-gtab[aria-selected="true"] { border-color: var(--ops-turkuaz); opacity: 1; font-weight: 600; }

@media (max-width: 640px) {
  .ops-grain img { height: 320px !important; }
  .ops-grain > div { padding: 28px !important; }
}

/* Phone home: full-bleed photos with the bakery name laid over them, tighter sections */
@media (max-width: 640px) {
  .ops-hero { min-height: 78svh !important; flex-basis: 100% !important; }
  .ops-hero > div { padding: 96px 24px 28px !important; min-height: 0 !important; color: #FBF8F0;
    background: linear-gradient(to top, rgba(43, 36, 20, .82) 0%, rgba(43, 36, 20, .55) 55%, rgba(43, 36, 20, 0) 100%) !important; }
  .ops-hero h2 { font-size: 68px !important; color: #FBF8F0 !important; }
  .ops-hero p:last-child { font-size: 16px !important; }
  .ops-hero + .ops-hero { border-top: 2px solid #86B1B0; }

  section[aria-label="İki fırın"] + section { padding: 48px 24px 32px !important; }
  #nasil { padding-bottom: 56px !important; }
  #ozel { padding-top: 56px !important; padding-bottom: 56px !important; }
  #ozel h2 { margin-bottom: 24px !important; }
  #ekmekler > div, #hikaye > div { padding-top: 56px !important; padding-bottom: 56px !important; gap: 32px !important; }
  #nasil { padding-top: 0 !important; }

  /* Steps: swipe sideways instead of three tall cards */
  #nasil ol { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; margin: 0 -24px !important; padding: 0 24px 8px !important; scrollbar-width: none; }
  #nasil ol::-webkit-scrollbar { display: none; }
  #nasil li { flex: 0 0 78%; scroll-snap-align: center; padding: 24px !important; }
  #nasil li > div { font-size: 36px !important; }

  /* Bread table: name and price on one line, ingredients underneath */
  #ekmekler thead { display: none; }
  #ekmekler tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 12px 0; }
  #ekmekler td { padding: 0 !important; }
  #ekmekler td:nth-child(1) { grid-column: 1; font-size: 20px !important; }
  #ekmekler td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: center; }
  #ekmekler td:nth-child(2) { grid-column: 1 / -1; margin-top: 2px; }
  #ekmekler img { aspect-ratio: 4 / 3 !important; }

  #ozel article img { height: 220px !important; }
  #ozel article > div { padding: 24px !important; }
  #hikaye img { width: 96px !important; height: 96px !important; }
}

/* Flour chips under the product filter */
.ops-chip { min-height: 36px; padding: 6px 12px; border-radius: 999px; background: #F2F1EC; font-size: 14px; gap: 6px; }

/* Sticky header: stays on top, logo shrinks once the page scrolls */
header { position: sticky; top: 0; z-index: 20; transition: box-shadow .2s; }
header img { transition: width .2s, height .2s; }
header.is-scrolled { box-shadow: 0 2px 12px rgba(67, 57, 32, .08); }
header.is-scrolled > div > a[aria-label] img { width: 52px !important; height: 52px !important; }
[id] { scroll-margin-top: 96px; }

/* Product filter stays beside the products while scrolling (wide screens only) */
@media (min-width: 960px) {
  .ops-filter { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; }
}

/* Narrow screens: the filter sits above the products, so show every option as a compact chip */
@media (max-width: 959px) {
  .ops-filter { padding: 16px !important; }
  .ops-filter [role="tablist"] { flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; }
  .ops-filter .ops-tab { min-height: 36px; padding: 6px 12px; border-radius: 999px; background: #F2F1EC; font-size: 14px; gap: 6px; }
}
.ops-filter .ops-tab[aria-selected="true"] { background: var(--ops-turkuaz); color: var(--ops-deep); }
.ops-filter { scroll-margin-top: 84px; }

/* Phone home: the two bakeries as inset photo cards */
@media (max-width: 640px) {
  section[aria-label="İki fırın"] { padding: 10px 12px 0; gap: 10px; }
  .ops-hero { min-height: 62svh !important; border-radius: 22px; overflow: hidden; }
  .ops-hero + .ops-hero { border-top: 0 !important; }
  .ops-hero > div { padding: 88px 22px 24px !important; }
  .ops-hero h2 { font-size: 58px !important; }
}

/* Phone home: the two bakery cards sit side by side and swipe */
@media (max-width: 640px) {
  section[aria-label="İki fırın"] { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 0 !important; gap: 10px !important; scrollbar-width: none; }
  section[aria-label="İki fırın"]::-webkit-scrollbar { display: none; }
  .ops-hero { flex: 0 0 84% !important; min-height: 66svh !important; scroll-snap-align: center; }
  .ops-hero h2 { font-size: 52px !important; }
}

/* Phone header on every page: logo in the middle, two links stacked on each side */
@media (max-width: 640px) {
  header > div { flex-wrap: nowrap !important; padding: 6px 16px !important; gap: 0 8px !important; }
  header > div > a[aria-label] img { width: 56px !important; height: 56px !important; }
  header nav { flex: 1 1 0; flex-direction: column; flex-wrap: nowrap !important; gap: 0 !important; font-size: 13.5px !important; }
  header nav:first-child { align-items: flex-start; }
  header nav:last-child { align-items: flex-end; }
  header nav a { padding: 5px 0 !important; line-height: 22px; border-bottom: 2px solid transparent; }
  header.is-scrolled > div > a[aria-label] img { width: 40px !important; height: 40px !important; }
}
