/* Ürün pasaportu ana sayfası — ortak tokenlar/arka plan kaf.css içinde */
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(40px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
}

/* Başlık */
header { text-align: center; animation: rise .7s ease both; }

.logo {
  width: 108px; height: 108px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--brand-soft), var(--brand) 55%, var(--brand-deep));
  box-shadow:
    0 0 0 6px rgba(166, 127, 136, 0.12),
    0 20px 60px -10px rgba(166, 127, 136, 0.55);
}
.logo img { width: 52%; height: auto; display: block; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-soft);
  padding: 6px 12px; border: 1px solid rgba(166, 127, 136, 0.35); border-radius: 999px;
  background: rgba(166, 127, 136, 0.08);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #7ddc9a; box-shadow: 0 0 10px #7ddc9a; }

h1 { margin-top: 14px; font-size: clamp(26px, 7vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.sub { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Ürün kartı */
.product {
  margin-top: 28px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  animation: rise .7s .08s ease both;
}
.product .thumb {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  background:
    repeating-linear-gradient(100deg, #8a5a3b 0 4px, #9b6a48 4px 9px, #7d5034 9px 12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.product .meta { flex: 1; min-width: 0; }
.product .name { font-weight: 700; font-size: 15px; }
.product .info { color: var(--muted); font-size: 13px; margin-top: 2px; }
.product .care {
  flex: none; text-align: right; font-size: 11px; color: var(--muted); line-height: 1.3;
}
.product .care b { display: block; font-size: 15px; color: var(--text); }

/* Ana aksiyon */
.primary {
  margin-top: 18px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  font: inherit; text-align: left; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 18px 40px -14px rgba(166, 127, 136, 0.8), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: rise .7s .14s ease both;
}
.primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -14px rgba(166, 127, 136, 0.9), inset 0 1px 0 rgba(255,255,255,0.25); }
.primary .t { font-weight: 800; font-size: 17px; }
.primary .d { font-size: 13px; opacity: .85; margin-top: 2px; }
.primary .arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,0.18);
}

/* Aksiyon ızgarası */
.section-title {
  margin: 30px 4px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

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

.action, .primary { text-decoration: none; }
.action {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 132px; padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  animation: rise .6s ease both;
}
.action::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; opacity: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(166, 127, 136, 0.28), transparent 60%);
  transition: opacity .25s ease;
}
.action:hover { transform: translateY(-3px); background: var(--glass-hover); border-color: rgba(166, 127, 136, 0.45); }
.action:hover::before { opacity: 1; }
.action:active, .primary:active { transform: scale(.98); }
.action:focus-visible, .primary:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }

.icon {
  position: relative;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--brand-soft);
  background: rgba(166, 127, 136, 0.14);
  border: 1px solid rgba(166, 127, 136, 0.25);
}
.icon svg { width: 22px; height: 22px; }
.label { position: relative; margin-top: auto; }
.label .t { font-weight: 700; font-size: 15px; line-height: 1.25; }
.label .d { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }

.badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 999px;
  color: #1a1213; background: var(--brand-soft);
}

.action.wide { grid-column: span 2; flex-direction: row; align-items: center; min-height: 0; }
.action.wide .label { margin-top: 0; }

.grid .action:nth-child(1) { animation-delay: .18s; }
.grid .action:nth-child(2) { animation-delay: .22s; }
.grid .action:nth-child(3) { animation-delay: .26s; }
.grid .action:nth-child(4) { animation-delay: .30s; }
.grid .action:nth-child(5) { animation-delay: .34s; }
.grid .action:nth-child(6) { animation-delay: .38s; }
.grid .action:nth-child(7) { animation-delay: .42s; }

footer {
  margin-top: 36px; text-align: center; color: var(--muted); font-size: 12.5px;
}
footer a { color: var(--brand-soft); text-decoration: none; font-weight: 600; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 360px) {
  .action { min-height: 120px; padding: 14px; }
  .product .care { min-width: 0; }
}

/* Karşılama (kayıt yokken) */
.intro {
  margin-top: 28px; padding: 18px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(14px);
  animation: rise .7s .08s ease both;
}
.intro-steps { display: grid; gap: 12px; }
.intro-steps div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.intro-steps b {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; color: var(--brand-soft); background: rgba(166,127,136,.14); border: 1px solid rgba(166,127,136,.3);
}

/* Kayıtlı ürünler */
.my-products { margin-top: 28px; display: grid; gap: 10px; }
.product .status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; margin-top: 4px; }
.product .status.approved { color: #7ddc9a; }
.product .status.pending { color: #f2c48d; }
.product .status.rejected { color: #ff8f8f; }
.product .care.due b { color: #f2c48d; }
.product.grain-end-grain .thumb { background:
  repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 8px),
  repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 1px, transparent 1px 8px),
  conic-gradient(from 45deg, #9b6a48, #c2915f, #7d5034, #a8754c, #9b6a48); }
.product.grain-edge-grain .thumb { background: repeating-linear-gradient(90deg, #b48256 0 5px, #8f5f3c 5px 7px, #c79868 7px 12px, #7d5034 12px 14px); }
.my-products .product { margin-top: 0; }

.intro-title { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.specs span {
  font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  color: var(--brand-soft); background: rgba(166,127,136,.12); border: 1px solid rgba(166,127,136,.25);
}
