/* ═══════════════════════════════════════════════════════════════
   Olenka Coffee — Coffy-Style Storefront
   ═══════════════════════════════════════════════════════════════ */
:root {
  --accent: #2BB5A0;
  --accent-dark: #239A88;
  --accent-light: #3DCBB4;
  --bg: #f5f5f5;
  --white: #ffffff;
  --dark: #1a1a1a;
  --gray: #666;
  --gray-light: #999;
  --gray-bg: #f0f0f0;
  --border: #e8e8e8;
  --gold: #C8860A;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-full: 9999px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family:'Inter',-apple-system,sans-serif;
  background: var(--bg); color: var(--dark);
  max-width:430px; margin:0 auto; min-height:100dvh;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
.hidden { display:none !important; }

/* ─── Splash ─── */
.splash {
  position:fixed; inset:0; z-index:100;
  background:#6B6B6B;
  display:flex; align-items:center; justify-content:center;
  transition: opacity 0.6s, transform 0.6s;
}
.splash.fade-out { opacity:0; transform:scale(1.05); pointer-events:none; }
.splash-content { position:relative; width:260px; height:260px; display:flex; align-items:center; justify-content:center; }
.splash-ring { position:absolute; border-radius:50%; border-style:solid; border-color:transparent; }
.splash-ring.outer { width:260px; height:260px; border-width:3px; border-top-color:rgba(255,255,255,0.6); border-right-color:rgba(255,255,255,0.2); animation:spin 1.8s linear infinite; }
.splash-ring.inner { width:220px; height:220px; border-width:3px; border-bottom-color:#8BA888; border-left-color:rgba(139,168,136,0.3); animation:spin-r 1.4s linear infinite; }
.splash-logo-circle { width:160px; height:160px; border-radius:50%; background:#C5D8C0; display:flex; align-items:center; justify-content:center; box-shadow:0 0 40px rgba(139,168,136,0.3); z-index:2; }
.splash-logo-img { width:110px; height:110px; object-fit:contain; border-radius:50%; }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes spin-r { to{transform:rotate(-360deg)} }

/* ─── Screens ─── */
.app-shell { min-height:100dvh; padding-bottom:70px; }
.screen { display:none; animation:fadeIn .3s ease; }
.screen.active { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

/* ─── Branch Select Page ─── */
.branches-page { background:#0F0700; min-height:100dvh; padding-bottom:80px; }
.branches-header { text-align:center; padding:40px 20px 20px; }
.branches-logo { width:80px; height:80px; object-fit:contain; border-radius:50%; margin-bottom:12px; }
.branches-header h1 { font-size:28px; font-weight:800; background:linear-gradient(135deg,#C8860A,#E8A020); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.branches-header p { font-size:14px; color:#B89060; margin-top:4px; }
.branch-list { padding:0 20px; }
.branch-card { background:#1E1108; border:1px solid rgba(200,134,10,0.1); border-radius:16px; padding:16px; margin-bottom:12px; cursor:pointer; transition:all .25s; display:flex; align-items:flex-start; gap:12px; }
.branch-card:hover { border-color:#C8860A; transform:translateY(-2px); box-shadow:0 8px 24px rgba(200,134,10,0.12); }
.branch-card-emoji { font-size:28px; flex-shrink:0; margin-top:2px; }
.branch-card-info { flex:1; min-width:0; }
.branch-card-name { font-size:15px; font-weight:700; color:#F5E6D0; margin-bottom:2px; }
.branch-card-address { font-size:12px; color:#B89060; line-height:1.4; margin-bottom:4px; }
.branch-card-hours { font-size:12px; color:#7A5C3A; display:flex; align-items:center; gap:4px; }
.branch-card-hours .dot { width:6px; height:6px; border-radius:50%; background:#22C55E; }
.branch-card-arrow { color:#C8860A; font-size:18px; align-self:center; flex-shrink:0; }
/* Coming Soon */
.branch-card.coming-soon { opacity:0.55; cursor:default; }
.branch-card.coming-soon:hover { border-color:rgba(200,134,10,0.1); background:#1E1108; transform:none; box-shadow:none; }
.coming-soon-badge { display:inline-block; background:#F59E0B; color:#0F0700; font-size:10px; font-weight:700; padding:2px 8px; border-radius:var(--r-full); margin-left:8px; vertical-align:middle; }
.dot-soon { background:#F59E0B !important; }
/* CTA */
.cta-card { margin:20px; padding:20px; background:linear-gradient(135deg,rgba(200,134,10,0.12),rgba(200,134,10,0.04)); border:1px solid rgba(200,134,10,0.2); border-radius:20px; display:flex; align-items:center; gap:16px; }
.cta-icon { font-size:32px; }
.cta-text strong { font-size:14px; color:#F5E6D0; display:block; }
.cta-text p { font-size:12px; color:#B89060; margin-top:2px; }
.cta-btn { background:#C8860A; color:#0F0700; border:none; border-radius:12px; padding:8px 16px; font-weight:700; font-size:13px; cursor:pointer; white-space:nowrap; }

/* ═══ MENU PAGE (Coffy Style — Light Theme) ═══ */

/* Top Bar */
.menu-topbar { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; padding-top:calc(var(--sat) + 12px); background:var(--white); }
.topbar-brand { font-size:22px; font-weight:800; letter-spacing:2px; color:var(--dark); }
.topbar-left, .topbar-right { font-size:14px; color:var(--gray); cursor:pointer; }

/* Branch Selector */
.branch-selector { display:flex; align-items:center; gap:8px; padding:10px 16px; background:var(--accent); color:var(--white); cursor:pointer; font-size:14px; font-weight:600; }
.branch-sel-icon { font-size:18px; }
.branch-sel-name { flex:1; }
.branch-sel-arrow { font-size:16px; }

/* Menu Scroll */
.menu-scroll { background:var(--bg); }

/* Promo Carousel */
.promo-carousel { position:relative; overflow:hidden; background:var(--white); }
.promo-track { display:flex; transition:transform .4s ease; }
.promo-slide { min-width:100%; padding:16px; }
.promo-banner { width:100%; height:160px; border-radius:var(--r-lg); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.promo-banner.p1 { background:linear-gradient(135deg,#FFE4B5,#FFD700,#FFA500); }
.promo-banner.p2 { background:linear-gradient(135deg,#E8D5B7,#C8860A,#8B6914); }
.promo-text { text-align:center; z-index:2; }
.promo-text h3 { font-size:14px; font-weight:700; color:var(--dark); margin-bottom:4px; }
.promo-text .promo-big { font-size:48px; font-weight:800; color:var(--dark); line-height:1; }
.promo-text .promo-sub { font-size:13px; font-weight:600; color:var(--dark); opacity:0.8; }
.promo-corner { position:absolute; top:8px; right:8px; background:rgba(0,0,0,0.7); color:#fff; font-size:10px; font-weight:700; padding:4px 10px; border-radius:var(--r-full); }
.promo-dots { display:flex; justify-content:center; gap:6px; padding:0 0 12px; }
.promo-dot { width:8px; height:8px; border-radius:50%; background:var(--border); transition:all .3s; }
.promo-dot.active { background:var(--accent); width:20px; border-radius:4px; }

/* Loyalty Card */
.loyalty-card { margin:12px 16px; background:var(--white); border-radius:var(--r-lg); padding:14px 16px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.loyalty-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.loyalty-title { font-size:14px; font-weight:700; color:var(--dark); }
.loyalty-link { font-size:13px; color:var(--accent); font-weight:600; cursor:pointer; }
.loyalty-bottom { display:flex; align-items:center; gap:10px; }
.loyalty-count { font-size:15px; color:var(--dark); min-width:30px; }
.loyalty-count strong { color:var(--accent); }
.loyalty-bar { flex:1; height:8px; background:var(--gray-bg); border-radius:var(--r-full); overflow:hidden; }
.loyalty-fill { height:100%; background:var(--accent); border-radius:var(--r-full); transition:width .5s; }
.loyalty-reward { display:flex; align-items:center; gap:6px; }
.loyalty-reward-num { width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--white); font-size:14px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.loyalty-reward-label { font-size:10px; color:var(--gray); line-height:1.2; }

/* Category Tabs */
.cat-tabs-wrap { display:flex; gap:8px; padding:12px 16px; overflow-x:auto; scrollbar-width:none; background:var(--white); border-bottom:1px solid var(--border); }
.cat-tabs-wrap::-webkit-scrollbar { display:none; }
.cat-tab { flex-shrink:0; display:flex; align-items:center; gap:5px; padding:8px 16px; border-radius:var(--r-full); font-size:13px; font-weight:500; cursor:pointer; border:1.5px solid var(--border); color:var(--gray); background:var(--white); transition:all .2s; white-space:nowrap; }
.cat-tab.active { background:var(--accent); border-color:var(--accent); color:var(--white); font-weight:700; }
.cat-tab-icon { font-size:15px; }

/* Menu Content */
.menu-content { padding:0 16px 20px; }
.menu-section-title { font-size:17px; font-weight:700; color:var(--dark); padding:16px 0 10px; }

/* Product Grid */
.product-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.product-card { background:var(--white); border-radius:var(--r-lg); overflow:hidden; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,0.06); transition:transform .2s, box-shadow .2s; position:relative; }
.product-card:active { transform:scale(0.97); }
.product-img-wrap { position:relative; width:100%; aspect-ratio:1; background:var(--gray-bg); display:flex; align-items:center; justify-content:center; }
.product-img-wrap .product-emoji { font-size:56px; }
.product-fav { position:absolute; top:8px; right:8px; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,0.85); display:flex; align-items:center; justify-content:center; font-size:16px; cursor:pointer; border:none; }
.product-add { position:absolute; bottom:8px; right:8px; width:32px; height:32px; border-radius:50%; background:var(--white); border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; color:var(--dark); cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,0.1); }
.product-info { padding:10px 12px 14px; }
.product-name { font-size:14px; font-weight:600; color:var(--dark); line-height:1.3; margin-bottom:4px; min-height:36px; }
.product-price { font-size:15px; font-weight:700; color:var(--dark); }

/* Bottom CTA */
.bottom-cta { padding:16px; text-align:center; }
.bottom-cta-btn { width:100%; padding:14px; background:var(--accent); border:none; border-radius:var(--r-lg); color:var(--white); font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; }

/* ═══ PROFILE / HESABIM ═══ */
.profile-content { background:var(--white); padding-bottom:100px; }
.profile-avatar { font-size:64px; text-align:center; padding:30px 0 10px; }
.profile-name { font-size:20px; font-weight:700; text-align:center; }
.profile-sub { font-size:13px; color:var(--gray); text-align:center; margin-bottom:24px; }
.profile-menu { padding:0 16px; }
.profile-item { display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); cursor:pointer; font-size:15px; }
.profile-item span:first-child { font-size:20px; width:28px; text-align:center; }
.profile-item span:nth-child(2) { flex:1; font-weight:500; }
.profile-arrow { color:var(--gray-light); font-size:18px; }

/* ═══ CAMPAIGNS / KAMPANYALAR ═══ */
.camp-topbar { text-align:center; font-size:17px; font-weight:700; padding:14px 16px; padding-top:calc(var(--sat) + 14px); background:var(--white); border-bottom:1px solid var(--border); }
.promo-code-bar { display:flex; align-items:center; gap:10px; margin:16px; padding:10px 14px; background:var(--white); border:1.5px solid var(--border); border-radius:var(--r-lg); }
.promo-code-icon { font-size:18px; color:var(--accent); flex-shrink:0; }
.promo-code-input { flex:1; border:none; outline:none; font-size:14px; font-family:inherit; color:var(--dark); background:transparent; }
.promo-code-input::placeholder { color:var(--gray-light); }
.promo-code-btn { background:var(--accent); color:var(--white); border:none; border-radius:var(--r-md); padding:8px 16px; font-size:13px; font-weight:700; cursor:pointer; font-family:inherit; white-space:nowrap; }
.camp-section-title { font-size:15px; font-weight:600; color:var(--dark); padding:4px 16px 8px; }
.camp-list { padding:0 16px 100px; }
.camp-card { background:var(--white); border-radius:var(--r-lg); overflow:hidden; margin-bottom:14px; box-shadow:0 1px 4px rgba(0,0,0,0.06); cursor:pointer; transition:transform .2s; }
.camp-card:active { transform:scale(0.98); }
.camp-banner { width:100%; height:150px; display:flex; align-items:center; justify-content:center; padding:20px; position:relative; }
.camp-banner-text { font-size:18px; font-weight:800; line-height:1.3; white-space:pre-line; text-align:center; text-shadow:0 1px 4px rgba(0,0,0,0.2); }
.camp-tags { position:absolute; bottom:10px; left:12px; display:flex; gap:6px; }
.camp-tag { background:rgba(255,255,255,0.9); color:var(--dark); font-size:9px; font-weight:700; padding:4px 8px; border-radius:6px; white-space:pre-line; line-height:1.2; text-align:center; }
.camp-card-bottom { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; }
.camp-card-title { font-size:14px; font-weight:600; color:var(--dark); flex:1; }
.camp-card-arrow { font-size:18px; color:var(--gray-light); flex-shrink:0; }

/* ═══ CART / SEPETİM PAGE ═══ */
.cart-topbar { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; padding-top:calc(var(--sat) + 12px); background:var(--white); border-bottom:1px solid var(--border); }
.cart-topbar-title { font-size:17px; font-weight:700; }
.cart-empty { background:var(--gray-bg); display:flex; align-items:center; justify-content:center; height:220px; }
.cart-empty-icon { font-size:80px; opacity:0.35; }
.cart-sheet { background:var(--white); border-radius:20px 20px 0 0; padding:16px 16px 100px; box-shadow:0 -4px 20px rgba(0,0,0,0.08); position:relative; animation:sheetUp .4s ease; }
.cart-sheet-handle { width:40px; height:4px; background:var(--border); border-radius:var(--r-full); margin:0 auto 16px; }
.cart-sheet-title { font-size:20px; font-weight:800; text-align:center; margin-bottom:16px; }
@keyframes sheetUp { from{transform:translateY(40px);opacity:0} to{transform:none;opacity:1} }

/* Suggestion list items */
.suggest-item { display:flex; align-items:center; gap:12px; padding:12px; background:var(--white); border:1px solid var(--border); border-radius:var(--r-lg); margin-bottom:8px; cursor:pointer; transition:background .2s; }
.suggest-item:active { background:var(--gray-bg); }
.suggest-img { width:64px; height:64px; border-radius:var(--r-md); background:var(--gray-bg); display:flex; align-items:center; justify-content:center; font-size:36px; flex-shrink:0; }
.suggest-info { flex:1; }
.suggest-name { font-size:14px; font-weight:600; color:var(--dark); margin-bottom:2px; }
.suggest-price { font-size:14px; font-weight:700; color:var(--dark); }
.suggest-add { width:34px; height:34px; border-radius:50%; border:1.5px solid var(--border); background:var(--white); display:flex; align-items:center; justify-content:center; font-size:20px; color:var(--dark); cursor:pointer; flex-shrink:0; }

/* ═══ DETAIL PAGE ═══ */
.detail-topbar { padding:12px 16px; padding-top:calc(var(--sat) + 12px); background:var(--white); border-bottom:1px solid var(--border); }
.detail-back { background:none; border:none; font-size:15px; color:var(--accent); cursor:pointer; font-family:inherit; font-weight:600; }
.detail-scroll { background:var(--white); }
.detail-hero { width:100%; height:260px; background:var(--gray-bg); display:flex; align-items:center; justify-content:center; font-size:100px; }
.detail-body { padding:20px 16px 40px; }
.detail-name { font-size:24px; font-weight:800; margin-bottom:4px; }
.detail-desc { font-size:14px; color:var(--gray); line-height:1.6; margin-bottom:16px; }
.detail-price { font-size:26px; font-weight:800; color:var(--accent-dark); margin-bottom:20px; }
.detail-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.detail-meta-item { background:var(--gray-bg); border-radius:var(--r-md); padding:12px; text-align:center; }
.detail-meta-label { font-size:11px; color:var(--gray-light); text-transform:uppercase; letter-spacing:.5px; }
.detail-meta-value { font-size:17px; font-weight:700; margin-top:4px; }
.detail-modifiers { margin-bottom:16px; }
.detail-mod-title { font-size:15px; font-weight:700; margin-bottom:8px; }
.detail-mod-item { display:flex; justify-content:space-between; padding:10px 12px; background:var(--gray-bg); border-radius:var(--r-sm); margin-bottom:4px; }
.detail-mod-name { font-size:14px; }
.detail-mod-price { font-size:14px; color:var(--accent-dark); font-weight:600; }
.detail-order-btn { width:100%; padding:16px; background:var(--accent); border:none; border-radius:var(--r-lg); color:var(--white); font-size:16px; font-weight:700; cursor:pointer; font-family:inherit; margin-top:12px; }

/* ─── Tab Bar ─── */
.tab-bar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:430px; background:var(--white); border-top:1px solid var(--border); display:flex; padding:6px 0; padding-bottom:max(6px,var(--sab)); z-index:50; }
.tab-item { flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer; padding:4px 0; }
.tab-icon { font-size:20px; }
.tab-label { font-size:10px; color:var(--gray-light); font-weight:500; }
.tab-item.active .tab-label { color:var(--accent); font-weight:700; }
.tab-item.active .tab-icon { filter:none; }

/* Desktop */
@media(min-width:431px) { body { border:1px solid var(--border); box-shadow:0 0 40px rgba(0,0,0,0.08); } }
::-webkit-scrollbar { width:0; }
