/* ===== TRẦN HỮU MINH - VẬT LIỆU XÂY DỰNG ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap&font-display=swap');

:root {
  --primary: #1a2940;
  --primary-light: #2c3e6b;
  --accent: #e94560;
  --accent-hover: #d6304a;
  --gold: #f6b93b;
  --gold-dark: #d4a017;
  --light-bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #e1e5eb;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { font-family:'Inter','Segoe UI',Arial,Tahoma,Verdana,sans-serif; background:var(--light-bg); color:var(--text); line-height:1.7; }
a { text-decoration:none; color:inherit; transition:.2s; }
img { max-width:100%; height:auto; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

input, textarea, select, button { font-family:inherit; }

/* ===== TOPBAR ===== */
.topbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color:#b2bec3; font-size:13px; padding:10px 0;
  border-bottom: 2px solid var(--accent);
}
.topbar .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.topbar .hotline { color:var(--gold); font-weight:700; font-size:16px; letter-spacing:.5px; }
.topbar .hotline:hover { color:var(--white); }

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, #0f1a2e 100%);
  padding:20px 0; position:sticky; top:0; z-index:100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:15px; }
.logo { display:flex; align-items:center; gap:12px; }
.logo-img { height:48px; width:auto; }
.logo-icon { font-size:40px; line-height:1; display:flex; align-items:center; }
.logo-text h1 { font-size:26px; font-weight:800; color:var(--white); letter-spacing:-.5px; }
.logo-text h1 span { color:var(--accent); }
.logo-text .slogan { font-size:12px; color:var(--gold); margin-top:2px; letter-spacing:.5px; font-weight:600; }

.header-search input {
  padding:10px 16px; border-radius:25px; border:2px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.08); color:var(--white); font-size:14px;
  width:280px; outline:none; transition:.3s; backdrop-filter:blur(4px);
}
.header-search input::placeholder { color:rgba(255,255,255,0.4); }
.header-search input:focus { border-color:var(--accent); background:rgba(255,255,255,0.15); width:320px; }

/* ===== NAV ===== */
.nav { background:var(--white); border-bottom:1px solid var(--border); position:sticky; top:72px; z-index:99; contain:layout style; }
.nav-list { display:flex; list-style:none; gap:0; }
.nav-list > li { position:relative; }
.nav-list > li > a {
  display:block; padding:14px 20px; font-weight:600; font-size:14px;
  color:var(--text); transition:.2s; border-bottom:3px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.nav-list > li > a:hover { color:var(--accent); border-bottom-color:var(--accent); background:#fafafa; }



/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f1a2e 50%, #1a1215 100%);
  padding:60px 0 50px; text-align:center; position:relative; overflow:hidden;
  contain:layout;
}
.hero::before {
  content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%;
  background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.08) 0%, transparent 50%);
  animation:heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow { 0%,100%{opacity:.5} 50%{opacity:1} }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.hero-content { position:relative; z-index:1; }
.hero-content h2 { font-size:42px; font-weight:800; color:var(--white); margin-bottom:16px; }
.hero-content h2 span { color:var(--accent); display:block; font-size:28px; }
.hero-content p { font-size:16px; color:rgba(255,255,255,0.7); max-width:600px; margin:0 auto 24px; line-height:1.8; }
.btn {
  display:inline-block; padding:14px 36px; background:linear-gradient(135deg,var(--accent),#c0392b);
  color:var(--white); font-weight:700; border-radius:30px; font-size:15px;
  transition:.3s; box-shadow:0 4px 20px rgba(233,69,96,0.4);
}
.btn:hover { transform:translateY(-2px); box-shadow:0 6px 28px rgba(233,69,96,0.5); }

.brand-strip { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:30px; position:relative; z-index:1; }
.brand-tag {
  padding:8px 18px; border-radius:20px; font-size:12px; font-weight:700;
  letter-spacing:1px; transition:.3s; cursor:default;
}
.brand-tag:hover { transform:scale(1.05); }

/* ===== FLOATING CONTACT BUTTONS ===== */
.float-contact {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  animation: float-pulse 2s ease-in-out infinite;
}
.float-btn span { font-size: 26px; }
.float-phone { background: #e94560; color: #fff; }
.float-zalo { background: #0068ff; color: #fff; animation-delay: .3s; }
.float-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}
@keyframes float-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media(max-width:768px) {
  .float-btn { width: 48px; height: 48px; }
  .float-btn span { font-size: 22px; }
}
.bt-munich { background:rgba(233,69,96,0.2); color:#ff6b81; border:1px solid rgba(233,69,96,0.3); }
.bt-nano { background:rgba(15,185,177,0.2); color:#55efc4; border:1px solid rgba(15,185,177,0.3); }
.bt-sika { background:rgba(108,92,231,0.2); color:#a29bfe; border:1px solid rgba(108,92,231,0.3); }
.bt-dulux { background:rgba(9,132,227,0.2); color:#74b9ff; border:1px solid rgba(9,132,227,0.3); }
.bt-jotun { background:rgba(243,156,18,0.2); color:#f9ca24; border:1px solid rgba(243,156,18,0.3); }
.bt-kova { background:rgba(225,112,85,0.2); color:#fab1a0; border:1px solid rgba(225,112,85,0.3); }
.bt-nippon { background:rgba(0,184,148,0.2); color:#55efc4; border:1px solid rgba(0,184,148,0.3); }
.bt-maxilite { background:rgba(212,160,23,0.2); color:#f6b93b; border:1px solid rgba(212,160,23,0.3); }

/* ===== MAIN ===== */
main { padding:40px 0; }
.section { display:none; padding:20px 0; }
.section.active-section { display:block; }
.section-title {
  font-size:26px; font-weight:800; color:var(--primary); text-align:center;
  margin:30px 0 20px; position:relative;
}
.section-title::after {
  content:''; display:block; width:60px; height:3px; background:var(--accent);
  margin:10px auto; border-radius:3px;
}

.feat-card h3 { font-size:16px; font-weight:700; margin-bottom:8px; color:var(--primary); }
.feat-card p { font-size:13px; color:var(--text-light); line-height:1.6; }

/* ===== BRAND GRID ===== */
.brand-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; }
.brand-card {
  background: var(--card-bg); border-radius: var(--radius); padding:24px 16px;
  text-align: center; border: 1px solid var(--border); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.brand-card:hover,
.brand-card:active { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.brand-card .bi { font-size: 36px; margin-bottom: 8px; }
.brand-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.brand-card .cnt { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 12px; background: var(--light-bg); font-size: 11px; color: var(--text-light); font-weight: 600; }

/* ===== BRAND SECTIONS ===== */
.brand-head { padding:20px; border-radius:var(--radius); margin-bottom:20px; text-align:center; color:var(--white); }
.brand-head h2 { font-size:22px; font-weight:800; margin-bottom:6px; }
.brand-head p { font-size:13px; opacity:.85; }
.bh-munich { background:linear-gradient(135deg,#e94560,#c0392b); }
.bh-nano { background:linear-gradient(135deg,#0fb9b1,#00a89f); }
.bh-sika { background:linear-gradient(135deg,#6c5ce7,#5541d9); }
.bh-dulux { background:linear-gradient(135deg,#0984e3,#0767b5); }
.bh-jotun { background:linear-gradient(135deg,#f39c12,#d68910); }
.bh-kova { background:linear-gradient(135deg,#e17055,#c95a42); }
.bh-nippon { background:linear-gradient(135deg,#00b894,#009977); }
.bh-maxilite { background:linear-gradient(135deg,#d4a017,#b8860b); }

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cat-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #f0f2f5;
  color: var(--text);
  transition: .2s;
  border: 1px solid transparent;
}
.cat-tab:hover {
  background: #e0e4ea;
}
.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cat-products { display:none; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.cat-products.active { display:grid; }
.prod-card {
  background:var(--card-bg); border-radius:var(--radius); padding:18px;
  border:1px solid var(--border); transition:transform .3s cubic-bezier(.2,0,.3,1), box-shadow .3s ease; position:relative;
  will-change: transform;
}
.prod-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.prod-card:active { transform:translateY(-1px); }
.prod-card .code { font-size:11px; color:var(--accent); font-weight:700; }
.prod-card h4 { font-size:14px; font-weight:700; margin:4px 0 6px; color:var(--primary); }
.prod-card .spec { font-size:12px; color:var(--text-light); margin-bottom:4px; }
.prod-card .desc { font-size:12px; color:var(--text-light); margin-bottom:4px; }
.prod-card .dm { font-size:11px; color:#888; font-style:italic; }

  background:var(--card-bg); border-radius:var(--radius); padding:24px;
  text-align:center; border:1px solid var(--border); transition:transform .3s ease, box-shadow .3s ease;
  will-change: transform;

/* ===== CONTACT ===== */
.contact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; }
.contact-card {
  background:var(--card-bg); border-radius:var(--radius); padding:24px;
  border:1px solid var(--border);
}
.contact-card h3 { font-size:14px; font-weight:700; color:var(--primary); margin-bottom:8px; }
.contact-card p { font-size:13px; color:var(--text-light); }
.contact-card.wide { grid-column:1/-1; }
.crow { padding:6px 0; font-size:13px; border-bottom:1px dashed var(--border); }
.crow:last-child { border-bottom:none; }
.crow .lb { font-weight:700; color:var(--primary); }

/* ===== NOTE ===== */
.note { text-align:center; font-size:13px; color:var(--text-light); margin-bottom:16px; }

/* ===== FOOTER ===== */
.footer {
  background:linear-gradient(135deg,var(--primary),#0f1a2e); color:rgba(255,255,255,0.7);
  padding:40px 0 0; margin-top:40px;
}
.footer-inner { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:30px; padding-bottom:30px; }
.footer-col h4 { color:var(--white); font-size:15px; font-weight:700; margin-bottom:12px; }
.footer-col p { font-size:13px; line-height:2; }
.footer-bot { border-top:1px solid rgba(255,255,255,0.08); padding:16px 0; text-align:center; font-size:13px; }
.footer-bot strong { color:var(--gold); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered fade-in variant for product cards */
.prod-card.fade-in { transition-delay: calc(var(--card-index, 0) * 0.06s); }

/* ===== SCROLL-TO-TOP BUTTON ===== */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: 2px solid var(--accent);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  text-decoration: none;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(233,69,96,0.4);
}
.scroll-top:active { transform:translateY(-1px); }

/* ===== TOOLTIP ===== */
.float-btn {
  position: relative;
}
.float-btn .tooltip-text {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.float-btn .tooltip-text::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--primary);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.float-btn:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media(max-width:992px) {
  .header-search input { width: 200px; }
  .header-search input:focus { width: 240px; }
  .logo-text h1 { font-size: 22px; }
  .nav { top:64px; }
}

/* Mobile hamburger nav toggle */
.nav-toggle {
  display:none;
  background:none; border:none; color:var(--text); font-size:24px;
  cursor:pointer; padding:10px 16px; -webkit-tap-highlight-color:transparent;
}

@media(max-width:768px) {
  .hero-content h2 { font-size:28px; }
  .hero-content h2 span { font-size:20px; }
  .header-search input { width:100%; }
  .header-search input:focus { width:100%; }
  .footer-inner { grid-template-columns:1fr; }
  .topbar .container { flex-direction:column; text-align:center; gap:4px; }
  .topbar { font-size:12px; }
  .header .container { flex-direction:column; gap:10px; }
  .logo { justify-content:center; }
  .brand-grid { grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; }

@media(max-width:480px) {
  .hero-content h2 { font-size:22px; }
  .hero-content h2 span { font-size:16px; }
  .hero-content p { font-size:14px; }
  .btn { padding:14px 28px; font-size:15px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
  .section-title { font-size:20px; margin:24px 0 16px; }
  .logo-text h1 { font-size:18px; }
  .logo-img { height:36px; }
  .logo-icon { font-size:32px; }
  .header-search input { font-size:13px; padding:8px 14px; }

/* Print styles */
@media print {
  .nav, .topbar, .float-contact, .scroll-top, .header-search, .float-btn { display:none !important; }
  .section { display:block !important; page-break-inside:avoid; }
}

/* ===== SIMPLE BRAND DROPDOWN ===== */
.nav-dropdown {
  display: none;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
}

/* Desktop: show on hover */
@media(min-width:769px) {
  .nav-list > li:has(.nav-dropdown):hover .nav-dropdown,
  .nav-list > li:has(.nav-dropdown):focus-within .nav-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
  }
  .nav-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: .2s;
  }
  .nav-dropdown a:hover {
    background: #f5f5f5;
    color: var(--accent);
    padding-left: 24px;
  }
}

/* Mobile: toggle with .open class */
@media(max-width:768px) {
  .nav-dropdown.open {
    display: block;
    padding: 4px 0;
  }
  .nav-dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-dropdown a:last-child {
    border-bottom: none;
  }
  .nav-dropdown a:hover,
  .nav-dropdown a:active {
    background: #f5f5f5;
    color: var(--accent);
    padding-left: 24px;
  }
}

/* ===== BRAND BUTTON ===== */
.quote-section { max-width:600px; margin:0 auto 40px; }
.quote-form { background:var(--card-bg); padding:24px; border-radius:var(--radius); border:1px solid var(--border); }
.qf-row { display:flex; gap:12px; margin-bottom:12px; }
.qf-row input, .qf-row textarea {
  flex:1; padding:10px 14px; border:1px solid var(--border); border-radius:6px;
  font-size:14px; outline:none; transition:.2s;
}
.qf-row input:focus, .qf-row textarea:focus { border-color:var(--accent); }
@media(max-width:500px) { .qf-row { flex-direction:column; } }

/* ===== TAG STYLES ===== */
.tag {
  display:inline-block; padding:3px 10px; border-radius:4px;
  font-size:11px; font-weight:700; color:#fff; letter-spacing:.3px;
}
.tag-munich { background:#e94560; }
.tag-nano { background:#0fb9b1; }
.tag-sika { background:#6c5ce7; }
.tag-dulux { background:#0984e3; }
.tag-jotun { background:#f39c12; }
.tag-kova { background:#e17055; }
.tag-nippon { background:#00b894; }
.tag-maxilite { background:#d4a017; }

/* ===== PROD PRICE ===== */
.prod-price { margin:8px 0 6px; padding:8px 10px; background:#fef9ef; border-radius:6px; border:1px solid #f1dca7; font-size:13px; }
.price-val { color:var(--accent); font-weight:800; font-size:15px; }
.price-contact { color:var(--primary); font-weight:700; font-size:13px; animation:blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ===== PROD ACTIONS ===== */
.prod-actions { display:flex; gap:8px; margin-top:8px; }
.pa-btn {
  flex:1; padding:8px 10px; border-radius:6px; text-align:center;
  font-weight:700; font-size:13px; transition:.2s; text-decoration:none;
}
.pa-btn:hover { transform:translateY(-1px); }
.pa-call { background:#e94560; color:#fff; }
.pa-call:hover { background:#c0392b; }
.pa-zalo { background:#0068ff; color:#fff; }
.pa-zalo:hover { background:#0052cc; }
.pa-quote { background:#f39c12; color:#fff; }
.pa-quote:hover { background:#d68910; }

.social-row { display:flex; gap:8px; flex-wrap:wrap; padding:8px 0 !important; }
.social-btn {
  display:inline-flex; align-items:center; gap:4px; padding:8px 14px;
  border-radius:6px; color:#fff; font-weight:700; font-size:13px;
  text-decoration:none; transition:.2s;
}
.social-btn:hover { transform:translateY(-2px); filter:brightness(1.15); }

/* ===== PDF BUTTON ===== */
.pdf-wrap { text-align:center; margin:20px 0; }
.btn-pdf {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 32px; background:linear-gradient(135deg,#e94560,#c0392b);
  color:#fff; font-weight:700; border-radius:30px; font-size:15px;
  transition:.3s; box-shadow:0 4px 20px rgba(233,69,96,0.3); text-decoration:none;
}
.btn-pdf:hover { transform:translateY(-2px); box-shadow:0 6px 28px rgba(233,69,96,0.5); }

/* ===== PROJECT GRID ===== */
  display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; margin-top:20px;
  background:var(--card-bg); border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--border); transition:transform .3s ease, box-shadow .3s ease;
  will-change: transform;

/* ===== QUY TRÌNH THI CÔNG STEPS ===== */
.step-card {
  background: white;
  border-radius: 16px;
  padding: 25px 20px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
  position: relative;
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #f6b93b);
  color: white;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -50px auto 15px;
  box-shadow: 0 4px 10px rgba(233,69,96,0.3);
}
.step-card h3 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 10px;
}
.step-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== SUB-TABS (Cây 3 cấp) ===== */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.sub-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  background: #f0f0f0;
  color: #666;
  transition: all 0.2s;
  white-space: nowrap;
}
.sub-tab:hover { background: #e0e0e0; }
.sub-tab.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
}
.sub-products { display: none; }
.sub-products.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }

/* ===== PRODUCT IMAGE IN CARD ===== */
.prod-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.prod-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.prod-body {
  padding: 12px 14px;
}

/* ===== GALLERY ===== */

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}
.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ===== TOPBAR SOCIAL ===== */
.topbar-social a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 13px;
  transition: 0.2s;
}
.topbar-social a:hover {
  background: rgba(255,255,255,0.2);
  color: white !important;
}
}
}

/* ===== PROJECT GALLERY ===== */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.proj-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.proj-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.proj-item img:hover {
  transform: scale(1.05);
}
@media(max-width:480px) {
  .proj-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
