/* ═══════════════════════════════════════════
   Kapa REN Ltd — Main Stylesheet
   ═══════════════════════════════════════════ */
 
/* ── Reset & Variables ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #e06020;
  --orange-light: #f5e6d8;
  --orange-soft: #fff3ec;
  --dark: #1a1a1a;
  --gray: #f5f0eb;
  --white: #fff;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--dark);
  background: #fafafa;
  line-height: 1.6;
}

/* ── Navigation ── */
nav {
  display: flex;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow: visible;
}

nav .logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

nav .logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ── Language Toggle ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e06020;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 0.75rem;
  transition: background 0.2s;
  min-width: 60px;
}
.lang-toggle:hover {
  background: #c04a10;
}

/* ── Language Visibility (CSS-driven) ── */
html[lang="el"] .lang-en { display: none !important; }
html[lang="en"] .lang-el { display: none !important; }

/* ── Mobile Menu Toggle ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a1a 0%, #2a1a0a 30%, #1a1a1a 60%, #111 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.jpg") center/cover;
  opacity: 0.25;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(224,96,32,0.12) 0%, transparent 70%);
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero .tagline {
  font-size: 1.2rem;
  color: #fff;
  max-width: 700px;
  margin-bottom: 0.5rem;
  font-weight: 400;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero .location {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.hero .scroll {
  margin-top: 3rem;
  width: 30px;
  height: 50px;
  border: 2px solid var(--orange);
  border-radius: 15px;
  position: relative;
  animation: float 2s ease-in-out infinite;
}

.hero .scroll::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes scroll {
  0%, 100% { opacity: 1; top: 10px; }
  50% { opacity: 0.5; top: 20px; }
}

/* ── Page Header ── */
.page-h {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 3rem;
  background: linear-gradient(160deg, var(--orange-soft) 0%, #fff 60%);
}

.page-h h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-h h1 span { color: var(--orange); }

.page-h p {
  color: #666;
  max-width: 600px;
  font-weight: 300;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ── Sections ── */
section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .label {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #888;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Container ── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5% 4rem;
}

/* ── Timeline ── */
.tl {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.tl-card {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  padding: 2rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s;
  position: relative;
}

.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.tl-card .y { font-size: 1.4rem; font-weight: 800; color: var(--orange); }
.tl-card .e { font-size: 0.8rem; color: #666; margin-top: 0.5rem; line-height: 1.4; }

.tl-card::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -1.2rem;
  transform: translateY(-50%);
  color: #ddd;
}

.tl-card:last-child::after { display: none; }

/* ── Flow ── */
.flow-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  margin-top: 2rem;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.fc {
  flex: 1;
  min-width: 200px;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.2s;
}

.fc:hover { transform: scale(1.02); }

.fc .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.fc-soft .icon { background: #e8f4f8; }
.fc-hard .icon { background: var(--orange-soft); }
.fc-prod .icon { background: #e8f8e8; }
.fc-soft, .fc-hard, .fc-prod { background: var(--gray); }

.fc h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.fc p { font-size: 0.85rem; color: #777; }

.flow-arrow { font-size: 1.5rem; color: var(--orange); min-width: 30px; text-align: center; }

/* ── Product Grid ── */
.pg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pc {
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.pc:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.pc .ic { font-size: 2.5rem; margin-bottom: 1rem; }
.pc h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.pc p { color: #666; font-size: 0.9rem; line-height: 1.7; }

.pc .tags {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pc .tags span { padding: 0.2rem 0.8rem; border-radius: 15px; font-size: 0.7rem; font-weight: 600; }

.t-core { background: #fff3ec; color: var(--orange); }
.t-iot  { background: #e8f4fd; color: #2563eb; }
.t-hard { background: #e8f4f8; color: #2a7a9c; }
.t-auto { background: #e8f8e8; color: #3a8a3a; }
.t-espa { background: #f0e8ff; color: #7a3acc; }
.t-rnd { background: #fff8e0; color: #b8860b; }

.subtitle {
  color: #888;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
  font-weight: 300;
}

/* ── Product Detail ── */
.product-detail {
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  margin-bottom: 2rem;
  overflow: hidden;
}

.product-detail .hero-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-detail h2 {
  color: var(--orange);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.product-detail h3 {
  color: var(--dark);
  margin: 1.5rem 0 0.8rem;
  font-size: 1.15rem;
}

.product-detail p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.product-detail ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.product-detail ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  font-size: 0.9rem;
  border-bottom: 1px solid #f5f5f0;
}

.product-detail ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ── Research Grid ── */
.rg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.rc {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #f0f0f0;
  border-left: 4px solid var(--orange);
  transition: transform 0.2s;
}

.rc:hover { transform: translateX(4px); }

.rc h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--dark); }

.rc .rm {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.rc .rm span {
  padding: 0.15rem 0.6rem;
  background: var(--gray);
  border-radius: 10px;
  font-size: 0.75rem;
  color: #666;
}

.rc p { color: #666; font-size: 0.9rem; margin-bottom: 0.8rem; line-height: 1.7; }
.rc a { color: var(--orange); text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.rc a:hover { text-decoration: underline; }

/* ── Research Detail ── */
.proj {
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  border-left: 4px solid var(--orange);
  margin-bottom: 2rem;
  transition: transform 0.2s;
}

.proj:hover { transform: translateX(4px); }

.proj h2 { color: var(--orange); margin-bottom: 0.5rem; }

.proj .meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.proj .meta span {
  padding: 0.2rem 0.8rem;
  background: var(--gray);
  border-radius: 12px;
  font-size: 0.8rem;
  color: #555;
}

.proj p { color: #555; line-height: 1.8; margin-bottom: 0.8rem; }
.proj a { color: var(--orange); text-decoration: none; font-weight: 600; }
.proj a:hover { text-decoration: underline; }

/* ── Subsidiaries Grid ── */
.sg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.sc {
  padding: 2rem;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  transition: transform 0.2s;
}

.sc:hover { transform: translateY(-4px); }
.sc h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.sc .st { font-size: 0.75rem; color: var(--orange); font-weight: 600; margin-bottom: 0.8rem; }
.sc p { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.5rem; line-height: 1.5; }
.sc a { color: var(--orange); text-decoration: none; font-size: 0.85rem; }
.sc a:hover { text-decoration: underline; }

/* ── Subsidiary Detail ── */
.sd {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
}

.sd .sl {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: var(--gray);
}

.sd h2 { margin-bottom: 0.3rem; }

.sd .st {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sd p { color: #555; line-height: 1.8; margin-bottom: 0.5rem; }
.sd a { color: var(--orange); text-decoration: none; font-weight: 600; }
.sd a:hover { text-decoration: underline; }

/* ── About Cards ── */
.about-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #f0f0f0;
  margin-bottom: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.about-card h3 {
  color: var(--orange);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.about-card p { color: #555; line-height: 1.8; }

.about-card table {
  width: 100%;
  border-collapse: collapse;
}

.about-card td {
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.about-card td:first-child {
  font-weight: 600;
  width: 140px;
  color: #888;
}

.about-card a { color: var(--orange); }

.about-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.about-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  font-size: 0.9rem;
  border-bottom: 1px solid #f5f5f0;
}

.about-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ── Contact ── */
.cb {
  max-width: 480px;
  margin: 3rem auto;
  padding: 3rem;
  background: var(--white);
  color: #555;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid #eee;
}

.cb h3 { font-size: 1.4rem; margin-bottom: 0.3rem; color: var(--dark); }
.cb .role { font-size: 0.85rem; color: #888; margin-bottom: 1.5rem; }

.cb .info {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.cb .info a { color: var(--orange); text-decoration: none; }
.cb .info a:hover { text-decoration: underline; }
.cb .addr { margin-top: 1.5rem; font-size: 0.8rem; opacity: 0.5; }

/* ── Contact Links ── */
.links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.links a {
  padding: 1rem 2rem;
  background: var(--gray);
  border-radius: 12px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
  min-width: 150px;
}

.links a:hover {
  background: var(--orange-soft);
  color: var(--orange);
}

/* ── Contact Section (on index) ── */
.contact-section { text-align: center; }

.contact-section .cb {
  max-width: 480px;
  margin: 0 auto;
}

/* ── News ── */
.news-list article {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  border-left: 4px solid var(--orange);
  margin-bottom: 1.5rem;
  transition: transform 0.2s;
}

.news-list article:hover { transform: translateX(4px); }

.news-list .date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.3rem;
}

.news-list .date .tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.news-list h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.news-list p { color: #555; font-size: 0.9rem; line-height: 1.7; }
.news-list a { color: var(--orange); text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.news-list a:hover { text-decoration: underline; }

/* ── CTA ── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.cta:hover { text-decoration: underline; }

/* ── Button ── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 15px rgba(224,96,32,0.3);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn:hover { opacity: 0.9; }

/* ── Metrics ── */
.metrics {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.metric {
  text-align: center;
  padding: 2rem;
  min-width: 150px;
}

.metric .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
}

.metric .lbl {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.3rem;
}

/* ── Industries ── */
.industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.industry {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  text-align: center;
  border: 1px solid #eee;
}

.industry .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.industry .name { font-weight: 600; font-size: 0.9rem; }

/* ── Back Link ── */
.back-link {
  display: inline-block;
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--orange); }

/* ── Atman Section ── */
.atman-section {
  padding: 3rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  margin-top: 2rem;
  text-align: center;
}

.atman-section h2 { color: var(--orange); margin-bottom: 1rem; }
.atman-section p { color: #555; max-width: 600px; margin: 0 auto 1rem; }
.atman-section a { color: var(--orange); text-decoration: none; font-weight: 600; }
.atman-section a:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
  background: var(--dark);
  color: #ccc;
  text-align: center;
  padding: 2.5rem 5%;
  font-size: 0.85rem;
}

footer a { color: var(--orange); text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer .flinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

footer .flinks a { color: #bbb; text-decoration: none; font-size: 0.85rem; }
footer .flinks a:hover { color: var(--orange); }

footer .copy {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* ── Section with Gray Background ── */
.section-gray {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 4rem 5%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 5%;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links a { font-size: 0.95rem; padding: 0.5rem 0; }

  .nav-links a::after { display: none; }

  .flow-arrow { transform: rotate(90deg); }
  .tl-card::after { display: none; }
  .rg { grid-template-columns: 1fr; }

  .page-h h1 { font-size: 2rem; }

  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .hero .tagline { font-size: 1rem; }

  .section-header h2 { font-size: 1.6rem; }

  .metrics { gap: 1rem; }
  .metric { min-width: 120px; padding: 1.5rem; }
  .metric .num { font-size: 2rem; }

  .pg { grid-template-columns: 1fr; }
  .sg { grid-template-columns: 1fr; }

  .container { padding: 0 5% 3rem; }

  section { padding: 3rem 5%; }

  .links { gap: 1rem; }
  .links a { min-width: 120px; padding: 0.8rem 1.5rem; }

  .about-card td:first-child { width: 100px; font-size: 0.8rem; }
  .about-card td { font-size: 0.8rem; }
}

@media (max-width: 500px) {
  .nav-links { gap: 0.3rem; }
  .nav-links a { font-size: 0.65rem; }
  .page-h h1 { font-size: 1.6rem; }
  .product-detail { padding: 1.5rem; }
}

/* ── PCB Gallery ── */
/* ── PCB Gallery (inline with text) ── */
.pcb-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: flex-start;
  align-items: flex-start;
}
.pcb-gallery figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  flex: 0 1 auto;
  max-width: 45%;
}
.pcb-gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
  object-fit: contain;
}

/* Float option for more natural text wrapping */
.pcb-gallery.float-left {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.pcb-gallery.float-right {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Clearfix for float containers */
.product-detail {
  overflow: auto;
}

.card-bottom {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-bottom .tags {
  margin-top: 0;
  padding-top: 0;
}

.card-more {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.card-more:hover {
  text-decoration: underline;
}

/* Responsive - stack on mobile */
@media (max-width: 600px) {
  .pcb-gallery figure {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .pcb-gallery.float-left,
  .pcb-gallery.float-right {
    float: none;
    margin: 1rem 0;
  }
}
