/* ===========================================================================
   Technology Packaging — Premium Product UI
   Blocksy uyumlu. Marka paleti: zümrüt/teal (Blocksy palette).
   Renkler Blocksy değişkenlerinden + marka fallback'leri ile gelir.
   =========================================================================== */

.tp-product-archive,
.tp-product-single {
  --tp-primary:   var(--theme-palette-color-1, #076951);
  --tp-primary-2: var(--theme-palette-color-2, #16876b);
  --tp-heading:   var(--theme-palette-color-4, #102a22);
  --tp-ink:       #43544e;
  --tp-muted:     #6b7d77;
  --tp-line:      var(--theme-palette-color-5, #e2efeb);
  --tp-soft:      var(--theme-palette-color-6, #f2f7f6);
  --tp-softer:    var(--theme-palette-color-7, #f8fafa);
  --tp-white:     #ffffff;

  --tp-1: 8px;  --tp-2: 16px; --tp-3: 24px; --tp-4: 32px;
  --tp-5: 48px; --tp-6: 64px; --tp-7: 96px;

  --tp-r-sm: 10px; --tp-r: 16px; --tp-r-lg: 26px; --tp-r-pill: 999px;

  --tp-shadow:    0 4px 18px -8px rgba(16, 42, 34, .18);
  --tp-shadow-md: 0 18px 40px -22px rgba(16, 42, 34, .35);
  --tp-shadow-lg: 0 36px 70px -34px rgba(7, 105, 81, .45);

  --tp-grad: linear-gradient(135deg, var(--tp-primary) 0%, var(--tp-primary-2) 100%);
  --tp-ease: cubic-bezier(.2, .7, .3, 1);

  color: var(--tp-ink);
}

.tp-product-archive *,
.tp-product-single * { box-sizing: border-box; }

/* ===========================================================================
   REVEAL ANIMATIONS
   =========================================================================== */
.tp-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--tp-ease), transform .6s var(--tp-ease);
  will-change: opacity, transform;
}
.tp-reveal.is-visible { opacity: 1; transform: none; }
.tp-product-grid .tp-reveal:nth-child(2) { transition-delay: .06s; }
.tp-product-grid .tp-reveal:nth-child(3) { transition-delay: .12s; }
.tp-product-grid .tp-reveal:nth-child(4) { transition-delay: .18s; }
.tp-product-grid .tp-reveal:nth-child(5) { transition-delay: .24s; }
.tp-product-grid .tp-reveal:nth-child(6) { transition-delay: .30s; }

/* ===========================================================================
   SECTION HEADER (archive + category)
   =========================================================================== */
.tp-cat-header {
  margin: var(--tp-4) auto var(--tp-5);
  max-width: 780px;
  text-align: center;
}
.tp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tp-primary-2); margin-bottom: var(--tp-2);
}
.tp-eyebrow::before {
  content: ""; width: 16px; height: 2px; background: var(--tp-primary-2); border-radius: 2px;
}
.tp-cat-title {
  margin: 0 0 var(--tp-2); color: var(--tp-heading);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  font-size: clamp(30px, 4vw, 46px);
}
.tp-cat-desc { color: var(--tp-muted); line-height: 1.7; font-size: 17px; }
.tp-cat-desc p { margin: 0 0 .6em; }

/* Breadcrumb */
.tp-breadcrumb {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; margin-bottom: var(--tp-3); font-size: 13.5px; color: var(--tp-muted);
}
.tp-breadcrumb a { color: var(--tp-primary); text-decoration: none; font-weight: 600; }
.tp-breadcrumb a:hover { color: var(--tp-primary-2); }
.tp-breadcrumb .tp-sep { opacity: .4; }
.tp-breadcrumb .tp-current { color: var(--tp-heading); font-weight: 700; }

/* ===========================================================================
   GRID + CARDS (premium)
   =========================================================================== */
.tp-product-grid {
  display: grid;
  /* auto-fit → az sayıda kart (ör. 3 üst kategori) satırı tam genişlikte doldurur,
     boş kolon bırakmaz; çok kart olduğunda responsive şekilde sarar. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--tp-3);
  margin: 0 0 var(--tp-5);
}
/* Tek kart varsa (ör. tek ilgili ürün) auto-fill kullan: kart satırın tamamına
   yayılmaz, normal kart genişliğinde kalır; dar ekranda yine tam genişlik olur. */
.tp-product-grid.tp-grid-single {
  /* Kart, kategori sayfalarındaki standart kart genişliğinde kalsın; dar ekranda
     kendiliğinden küçülür, hiçbir genişlikte satırın tamamına yayılmaz. */
  grid-template-columns: minmax(0, 414px);
}

.tp-product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--tp-white);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r-lg);
  overflow: hidden;
  box-shadow: var(--tp-shadow);
  transition: transform .45s var(--tp-ease), box-shadow .45s var(--tp-ease),
              border-color .45s var(--tp-ease);
}
.tp-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tp-shadow-lg);
  border-color: transparent;
}

.tp-card-media {
  position: relative; display: block;
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--tp-soft);
}
.tp-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,42,34,.30), rgba(16,42,34,0) 55%);
  opacity: 0; transition: opacity .45s var(--tp-ease);
}
.tp-product-card:hover .tp-card-media::after { opacity: 1; }
.tp-card-image, .tp-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--tp-ease);
}
.tp-product-card:hover .tp-card-image { transform: scale(1.07); }

.tp-card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; padding: 6px 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--tp-primary);
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  border-radius: var(--tp-r-pill); box-shadow: 0 4px 12px -6px rgba(16,42,34,.4);
}

.tp-card-body { display: flex; flex-direction: column; gap: 10px; padding: var(--tp-3); flex: 1; }
.tp-card-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.tp-card-title a { color: var(--tp-heading); text-decoration: none; }
.tp-card-title a:hover { color: var(--tp-primary); }
.tp-card-excerpt { color: var(--tp-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

.tp-card-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; color: var(--tp-primary);
  text-decoration: none; padding-top: 6px;
}
.tp-card-cta::after { content: "→"; transition: transform .35s var(--tp-ease); }
.tp-product-card:hover .tp-card-cta::after { transform: translateX(5px); }

.tp-cat-card .tp-card-media { background: var(--tp-grad); }
.tp-cat-card .tp-card-media:has(img) { background: var(--tp-soft); }

/* ===========================================================================
   PRODUCT SINGLE — layout
   =========================================================================== */
.tp-product-single { padding-bottom: var(--tp-6); }
.tp-product-single .tp-breadcrumb { justify-content: flex-start; margin-top: var(--tp-3); }

/* ---- HERO ---- */
.tp-product-hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: var(--tp-5); align-items: start; margin: var(--tp-3) 0 var(--tp-5);
}
.tp-hero-gallery { position: sticky; top: 90px; }
.tp-hero-main {
  position: relative; border-radius: var(--tp-r-lg); overflow: hidden;
  background: var(--tp-soft); border: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow-md); aspect-ratio: 4 / 3; cursor: zoom-in;
}
.tp-hero-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--tp-ease);
}
.tp-hero-main.is-zoomed img { transform: scale(1.6); cursor: zoom-out; }

.tp-hero-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.tp-hero-thumb {
  width: 78px; height: 78px; padding: 0; border: 2px solid var(--tp-line);
  border-radius: var(--tp-r-sm); overflow: hidden; cursor: pointer; background: var(--tp-soft);
  transition: border-color .3s var(--tp-ease), transform .3s var(--tp-ease);
}
.tp-hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-hero-thumb:hover { transform: translateY(-2px); }
.tp-hero-thumb.is-active { border-color: var(--tp-primary); }

.tp-hero-info { padding-top: 4px; }
.tp-hero-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tp-primary-2); margin-bottom: 14px;
}
.tp-hero-cat a { color: inherit; text-decoration: none; }
.tp-hero-cat a:hover { text-decoration: underline; }
.tp-hero-title {
  margin: 0 0 var(--tp-2); color: var(--tp-heading);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(30px, 4.4vw, 50px);
}
.tp-hero-excerpt { color: var(--tp-ink); font-size: 18px; line-height: 1.7; margin-bottom: var(--tp-3); }

.tp-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--tp-3); }
.tp-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--tp-primary);
  background: var(--tp-soft); border: 1px solid var(--tp-line); border-radius: var(--tp-r-pill);
}
.tp-pill svg { width: 16px; height: 16px; color: var(--tp-primary-2); }

.tp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tp-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 30px;
  font-weight: 700; font-size: 15.5px; line-height: 1; border-radius: var(--tp-r-pill);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--tp-ease), box-shadow .3s var(--tp-ease),
              background .3s var(--tp-ease), color .3s var(--tp-ease);
}
.tp-btn-primary { color: #fff; background-image: var(--tp-grad); box-shadow: 0 16px 30px -14px rgba(7,105,81,.7); }
.tp-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(7,105,81,.8); color: #fff; }
.tp-btn-ghost { color: var(--tp-primary); background: transparent; border-color: var(--tp-line); }
.tp-btn-ghost:hover { border-color: var(--tp-primary); background: var(--tp-soft); }
.tp-hero-cta {
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 30px;
  font-weight: 700; border-radius: var(--tp-r-pill); color: #fff;
  background-image: var(--tp-grad); text-decoration: none;
  box-shadow: 0 16px 30px -14px rgba(7,105,81,.7); transition: transform .3s var(--tp-ease);
}
.tp-hero-cta:hover { transform: translateY(-3px); color: #fff; }

/* ===========================================================================
   STATS / HIGHLIGHTS BAR
   =========================================================================== */
.tp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--tp-line); border: 1px solid var(--tp-line);
  border-radius: var(--tp-r); overflow: hidden; margin: 0 0 var(--tp-5);
}
.tp-stat { background: var(--tp-white); padding: var(--tp-3); text-align: center; }
.tp-stat-value {
  /* Punto, en uzun kutu değerine göre ölçülerek küçültüldü (müşteri, 12.08.2026):
     "High Temperature" 1440px'de 33px'e kadar tek satıra sığıyor; tüm kutularda
     aynı boyut kullanıldığı için sınır o değere göre belirlendi. */
  font-size: clamp(14px, 1.8vw, 30px); font-weight: 800; letter-spacing: -.02em;
  color: var(--tp-primary); line-height: 1.1;
}
.tp-stat-label { margin-top: 8px; font-size: 13.5px; color: var(--tp-muted); font-weight: 600; }

/* ===========================================================================
   TABS
   =========================================================================== */
.tp-tabs { margin: 0 0 var(--tp-6); }
.tp-tab-nav {
  position: relative; display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 1px solid var(--tp-line); margin-bottom: var(--tp-4);
}
.tp-tab-btn {
  position: relative; background: none; border: 0; cursor: pointer;
  padding: 16px 20px; font-size: 15px; font-weight: 700; color: var(--tp-muted);
  border-radius: var(--tp-r-sm) var(--tp-r-sm) 0 0;
  transition: color .3s var(--tp-ease), background .3s var(--tp-ease);
}
.tp-tab-btn::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
  height: 3px; border-radius: 3px; background: var(--tp-grad);
  transform: scaleX(0); transform-origin: center; transition: transform .35s var(--tp-ease);
}
.tp-tab-btn:hover { color: var(--tp-heading); background: var(--tp-softer); }
.tp-tab-btn.is-active { color: var(--tp-primary); }
.tp-tab-btn.is-active::after { transform: scaleX(1); }

.tp-tab-panel { animation: tp-fade .45s var(--tp-ease); }
.tp-tab-panel[hidden] { display: none; }
@keyframes tp-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tp-tab-content { color: var(--tp-ink); font-size: 16px; line-height: 1.8; max-width: 900px; }
.tp-tab-content h2, .tp-tab-content h3 { color: var(--tp-heading); }
.tp-tab-content p { margin: 0 0 1em; }
.tp-tab-content a { color: var(--tp-primary); }

.tp-tab-content table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--tp-line); border-radius: var(--tp-r); overflow: hidden; margin: 0 0 1em;
}
.tp-tab-content th, .tp-tab-content td {
  text-align: left; padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--tp-line);
}
.tp-tab-content tr:last-child th, .tp-tab-content tr:last-child td { border-bottom: 0; }
.tp-tab-content th { width: 40%; color: var(--tp-heading); font-weight: 700; background: var(--tp-soft); }
.tp-tab-content td { color: var(--tp-ink); }
.tp-tab-content ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.tp-tab-content ul li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; line-height: 1.6; }
.tp-tab-content ul li::before {
  content: ""; flex: 0 0 auto; box-sizing: border-box; width: 16px; height: 16px;
  border-radius: 50%; background: var(--tp-soft); border: 2px solid var(--tp-primary-2);
}

.tp-feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--tp-3); }
.tp-feature-item {
  position: relative; background: var(--tp-white); border: 1px solid var(--tp-line);
  border-radius: var(--tp-r); padding: var(--tp-3); padding-top: calc(var(--tp-3) + 8px);
  transition: transform .35s var(--tp-ease), box-shadow .35s var(--tp-ease);
}
.tp-feature-item:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-md); }
.tp-feature-item::before {
  content: "✓"; position: absolute; top: -16px; left: var(--tp-3);
  width: 38px; height: 38px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
  background-image: var(--tp-grad); border-radius: 12px;
  box-shadow: 0 10px 20px -8px rgba(7,105,81,.7);
}
.tp-feature-title { margin: 6px 0 8px; font-size: 17px; font-weight: 700; color: var(--tp-heading); }
.tp-feature-text { margin: 0; color: var(--tp-muted); font-size: 14.5px; line-height: 1.65; }

/* ===========================================================================
   FAQ accordion
   =========================================================================== */
.tp-faq { max-width: 880px; display: flex; flex-direction: column; gap: 12px; }
.tp-faq-item {
  border: 1px solid var(--tp-line); border-radius: var(--tp-r); background: var(--tp-white);
  overflow: hidden; transition: border-color .3s var(--tp-ease), box-shadow .3s var(--tp-ease);
}
.tp-faq-item:has(.tp-faq-a.is-open) { border-color: var(--tp-primary-2); box-shadow: var(--tp-shadow); }
.tp-faq-q {
  width: 100%; text-align: left; cursor: pointer; background: none; border: 0;
  padding: 18px 56px 18px 22px; position: relative;
  font-size: 16px; font-weight: 700; color: var(--tp-heading);
}
.tp-faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 22px; font-weight: 400; color: var(--tp-primary);
  border-radius: 50%; background: var(--tp-soft);
  transition: transform .35s var(--tp-ease), background .3s var(--tp-ease), color .3s var(--tp-ease);
}
.tp-faq-q[aria-expanded="true"]::after { content: "−"; background: var(--tp-grad); color: #fff; }
.tp-faq-a {
  max-height: 0; overflow: hidden; padding: 0 22px;
  color: var(--tp-ink); line-height: 1.75; font-size: 15.5px;
  transition: max-height .4s var(--tp-ease), padding .4s var(--tp-ease);
}
.tp-faq-a.is-open { max-height: 600px; padding: 0 22px 20px; }
.tp-faq-a p { margin: 0 0 .7em; }
html:not(.js) .tp-faq-a { max-height: none; padding: 0 22px 20px; }

/* ===========================================================================
   IDEAL USE AREAS (sectors)
   =========================================================================== */
.tp-section { margin: 0 0 var(--tp-6); }
.tp-section-head { margin-bottom: var(--tp-4); max-width: 640px; }
.tp-section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.tp-section-title {
  margin: 6px 0 10px; color: var(--tp-heading); font-weight: 800;
  letter-spacing: -.02em; font-size: clamp(24px, 3vw, 34px);
}
.tp-section-lead { color: var(--tp-muted); line-height: 1.7; font-size: 16px; margin: 0; }

.tp-use-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--tp-3); }
.tp-use-item { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; text-decoration: none; }
.tp-use-icon {
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(90deg, var(--tp-primary-2) 0 50%, var(--tp-primary) 50% 100%);
  box-shadow: var(--tp-shadow-md);
  transition: transform .4s var(--tp-ease), box-shadow .4s var(--tp-ease);
}
.tp-use-icon::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.tp-use-icon svg { width: 44px; height: 44px; color: #fff; position: relative; z-index: 1; }
.tp-use-item:hover .tp-use-icon { transform: translateY(-6px) scale(1.04); box-shadow: var(--tp-shadow-lg); }
/* Ajans rozet ikonları (ana sayfa Industries ile aynı set) — kendi slate çerçeveli;
   teal daireyi ve iç halkayı gösterme. */
.tp-use-icon:has(.tp-agency-badge) { background: none; box-shadow: none; width: 104px; height: 104px; border-radius: 0; }
.tp-use-icon:has(.tp-agency-badge)::after { display: none; }
.tp-use-icon svg.tp-agency-badge { width: 104px; height: 104px; }
.tp-use-item:hover .tp-use-icon:has(.tp-agency-badge) { box-shadow: none; }
.tp-use-label { font-size: 15px; font-weight: 700; color: var(--tp-heading); }

/* ===========================================================================
   RELATED + CTA BAND
   =========================================================================== */
.tp-related { margin: 0 0 var(--tp-6); }
.tp-cta-band {
  position: relative; background-image: var(--tp-grad); border-radius: var(--tp-r-lg);
  padding: clamp(32px, 5vw, 64px); text-align: center; overflow: hidden; color: #fff;
}
.tp-cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.tp-cta-band::after {
  content: ""; position: absolute; left: -60px; bottom: -100px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.tp-cta-band h2 {
  position: relative; margin: 0 0 12px; color: #fff;
  font-weight: 800; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.02em;
}
.tp-cta-band p { position: relative; margin: 0 auto var(--tp-3); max-width: 560px; opacity: .92; font-size: 17px; }
.tp-cta-band .tp-btn { position: relative; background: #fff; color: var(--tp-primary); }
.tp-cta-band .tp-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(0,0,0,.4); }

/* ===========================================================================
   EMPTY STATE
   =========================================================================== */
.tp-product-none { text-align: center; padding: var(--tp-6) var(--tp-3); background: var(--tp-soft); border-radius: var(--tp-r-lg); }
.tp-product-none-title { color: var(--tp-heading); margin: 0 0 10px; }
.tp-product-none-text { color: var(--tp-muted); margin: 0; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1000px) {
  .tp-product-hero { grid-template-columns: 1fr; gap: var(--tp-4); }
  .tp-hero-gallery { position: static; }
}
@media (max-width: 690px) {
  .tp-product-grid { grid-template-columns: 1fr; }
  .tp-tab-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .tp-tab-btn { white-space: nowrap; }
  .tp-hero-actions { width: 100%; }
  .tp-btn, .tp-hero-cta { width: 100%; justify-content: center; }
  .tp-use-icon { width: 88px; height: 88px; }
  .tp-use-icon svg { width: 38px; height: 38px; }
}

/* ===========================================================================
   REDUCED MOTION
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .tp-product-archive *, .tp-product-single * { transition: none !important; animation: none !important; }
  .tp-reveal { opacity: 1; transform: none; }
  .tp-product-card:hover, .tp-feature-item:hover, .tp-use-item:hover .tp-use-icon { transform: none; }
  .tp-product-card:hover .tp-card-image { transform: none; }
}
