 :root {
    --green:   #16a34a;
    --green2:  #22c55e;
    --green-lt:#dcfce7;
    --purple:  #7c3aed;
    --purple2: #8b5cf6;
    --orange:  #f97316;
    --orange2: #fb923c;
    --red:     #ef4444;
    --ink:     #111827;
    --ink2:    #374151;
    --muted:   #6b7280;
    --soft:    #9ca3af;
    --bg:      #f9fafb;
    --white:   #ffffff;
    --border:  #e5e7eb;
    --card:    #ffffff;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { font-size: 15px; scroll-behavior: smooth; }
  body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }

  /* ══ NAVBAR ══ */
  nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  }
  .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--purple);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .logo-dot { color: var(--green); }

  .location-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink2);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s;
  }
  .location-btn:hover { border-color: var(--purple); }
  .location-btn .pin { color: var(--purple); font-size: 0.9rem; }
  .location-btn .chevron { color: var(--soft); font-size: 0.7rem; }

  .search-wrap {
    flex: 1;
    position: relative;
  }
  .search-wrap input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.85rem;
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
  }
  .search-wrap input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
  }
  .search-wrap input::placeholder { color: var(--soft); }
  .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--soft);
    font-size: 0.9rem;
  }

  .nav-actions { display: flex; gap: 10px; align-items: center; }
  .btn-login {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink2);
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
  }
  .btn-login:hover { border-color: var(--purple); color: var(--purple); }
  .btn-register {
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    background: var(--purple);
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
  }
  .btn-register:hover { background: var(--purple2); }
  .cart-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: border-color .2s;
  }
  .cart-btn:hover { border-color: var(--purple); }
  .cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 17px; height: 17px;
    background: var(--orange);
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
  }

  /* ══ WRAPPER ══ */
  .page { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

  /* ══ HERO ══ */
  .hero {
    margin: 20px 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 220px;
    background: linear-gradient(120deg, #3b1e8e 0%, #7c3aed 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    padding: 36px 44px;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 80% at 75% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
      url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .hero-tag span { font-size: 0.8rem; }
  .hero h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: white;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .hero p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 22px;
  }
  .hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
  .hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: white;
    color: var(--purple);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
  }
  .hero-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
  .hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 24px;
    border: 1.5px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
  }
  .hero-btn-secondary:hover { background: rgba(255,255,255,0.25); }
  .hero-image-side {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 45%;
    overflow: hidden;
    border-radius: 0 20px 20px 0;
  }
  .hero-image-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #7c3aed 0%, transparent 50%);
    z-index: 1;
  }
  .hero-emoji-grid {
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    opacity: 0.9;
  }
  .hero-emoji {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
  }

  /* ══ SECTION HEADER ══ */
  .sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 16px;
  }
  .sec-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sec-title .icon { font-size: 1.1rem; }
  .sec-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s;
  }
  .sec-more:hover { gap: 7px; }

  /* ══ KATEGORİLER ══ */
  .categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .categories-scroll::-webkit-scrollbar { display: none; }
  .cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform .15s;
  }
  .cat-item:hover { transform: translateY(-3px); }
  .cat-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 2.5px solid transparent;
    transition: border-color .2s, box-shadow .2s;
  }
  .cat-item:hover .cat-icon { border-color: var(--purple); box-shadow: 0 4px 12px rgba(124,58,237,0.15); }
  .cat-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink2);
    text-align: center;
  }

  /* ══ KAMPANYALAR ══ */
  .campaigns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 0;
  }
  .campaign-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    height: 150px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
  }
  .campaign-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.14); }
  .campaign-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: 0.25;
  }
  .campaign-overlay {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .campaign-badge {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    color: white;
  }
  .campaign-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }
  .campaign-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }
  .campaign-card-1 { background: linear-gradient(135deg, #16a34a, #4ade80); }
  .campaign-card-2 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
  .campaign-card-3 { background: linear-gradient(135deg, #ea580c, #f97316); }

  /* ══ MAĞAZALAR ══ */
  .stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .store-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    position: relative;
  }
  .store-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .store-img {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
  }
  .store-badge-open {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--green);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
  }
  .store-badge-closed {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--red);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
  }
  .store-rating {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
  }
  .store-body { padding: 12px 14px 14px; }
  .store-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--ink);
    margin-bottom: 3px;
  }
  .store-sub {
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .store-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--soft);
    font-weight: 600;
  }
  .store-meta .delivery {
    color: var(--green);
    font-weight: 700;
  }
  .store-meta .time {
    color: var(--muted);
  }

  /* ══ ESNAF CTA ══ */
  .esnaf-cta {
    background: linear-gradient(120deg, #1e1b4b 0%, #312e81 60%, #4c1d95 100%);
    border-radius: 20px;
    padding: 40px 48px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
  }
  .esnaf-cta::before {
    content: '🏪';
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 7rem;
    opacity: 0.12;
  }
  .esnaf-cta-content h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  .esnaf-cta-content p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    max-width: 420px;
    margin-bottom: 24px;
  }
  .btn-esnaf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--purple);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 11px 24px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
  }
  .btn-esnaf:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

  /* ══ ÖNE ÇIKAN ÜRÜNLER ══ */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
  .product-card {
    background: var(--card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
  }
  .product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  .product-img {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    background: var(--bg);
  }
  .product-body { padding: 10px 12px 12px; }
  .product-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--ink);
    margin-bottom: 2px;
    line-height: 1.3;
  }
  .product-store {
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .product-price {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--green);
  }
  .product-price .old {
    font-size: 0.7rem;
    color: var(--soft);
    text-decoration: line-through;
    font-weight: 600;
    margin-right: 3px;
  }
  .add-btn {
    width: 28px; height: 28px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .1s;
    line-height: 1;
  }
  .add-btn:hover { background: var(--purple2); transform: scale(1.1); }

  /* ══ FOOTER ══ */
  footer {
    background: #1f1f2e;
    margin-top: 48px;
    padding: 48px 0 24px;
  }
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
  }
  .footer-brand .logo { font-size: 1.3rem; }
  .footer-brand p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    margin: 12px 0 18px;
    max-width: 240px;
  }
  .footer-socials { display: flex; gap: 10px; }
  .social-btn {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .2s;
  }
  .social-btn:hover { background: rgba(255,255,255,0.14); }
  .footer-col h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: white;
    margin-bottom: 14px;
  }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-col ul a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color .2s;
  }
  .footer-col ul a:hover { color: rgba(255,255,255,0.8); }
  .app-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  .app-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .2s;
  }
  .app-badge:hover { background: rgba(255,255,255,0.12); }
  .app-badge .app-icon { font-size: 1.3rem; }
  .app-badge-text { line-height: 1.2; }
  .app-badge-text .sub { font-size: 0.6rem; color: rgba(255,255,255,0.45); }
  .app-badge-text .name { font-size: 0.8rem; font-weight: 700; color: white; }
  .footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { color: rgba(255,255,255,0.25); text-decoration: none; transition: color .2s; }
  .footer-links a:hover { color: rgba(255,255,255,0.6); }

  /* ── REVEAL ── */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.visible { opacity: 1; transform: none; }

  @media (max-width: 768px) {
    .campaigns-grid { grid-template-columns: 1fr; }
    .stores-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .esnaf-cta { flex-direction: column; padding: 32px 28px; }
    .hero-emoji-grid { display: none; }
  }