/* Intent bar */
.intent-bar { background:var(--surface); border-bottom:1px solid var(--border); padding:12px 32px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.intent-label { font-size:11px; color:var(--muted); margin-right:8px; }
.intent-btn { padding:6px 14px; border-radius:20px; font-size:11px; font-weight:500; background:var(--surface2); color:var(--muted); border:1px solid var(--border); cursor:pointer; transition:all .2s; text-decoration:none; }
.intent-btn:hover { border-color:var(--accent); color:var(--text); }
.intent-btn.is-active { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:500; }

/* Product layout */
.product-page { max-width:1200px; margin:0 auto; padding:40px 32px; display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
@media(max-width:768px){ .product-page{grid-template-columns:1fr; padding:24px 20px; gap:28px} }

/* Gallery */
.product-gallery { position:sticky; top:calc(var(--nav-h)+24px); background:var(--surface); border:1px solid var(--border); border-radius:12px; aspect-ratio:1/0.9; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.product-gallery .main-image { font-size:100px; opacity:.15; transition:transform .4s; }
.product-gallery:hover .main-image { transform:scale(1.08); }
.gallery-badge { position:absolute; top:16px; right:16px; font-size:10px; font-weight:700; letter-spacing:.05em; padding:4px 10px; border-radius:4px; background:var(--accent); color:#fff; text-transform:uppercase; }
.gallery-thumbs { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.gallery-thumb { width:48px; height:48px; background:var(--surface2); border:1.5px solid var(--border); border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:20px; opacity:.5; cursor:pointer; transition:all .2s; }
.gallery-thumb.is-active, .gallery-thumb:hover { opacity:1; border-color:var(--accent); }
@media(max-width:768px){ .product-gallery{position:static} }

/* Product info */
.product-sku { font-size:11px; color:var(--muted); letter-spacing:.05em; text-transform:uppercase; margin-bottom:8px; }
.product-title { font-family:'Unbounded',sans-serif; font-size:clamp(22px,3vw,32px); font-weight:600; letter-spacing:-.02em; line-height:1.15; margin-bottom:8px; }
.product-subtitle { font-size:14px; color:var(--muted); line-height:1.5; margin-bottom:24px; }
.product-status { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:20px; font-size:12px; font-weight:500; margin-bottom:24px; }
.product-status.in-stock { background:rgba(255, 141, 0, 0.05); color:var(--accent); border:1px solid rgba(255, 141, 0, 0.12); }
.product-status .dot { width:6px; height:6px; border-radius:50%; background:var(--accent); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Specs */
.specs-table { width:100%; border-collapse:collapse; margin-bottom:36px; }
.specs-table tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
.specs-table tr:hover { background: rgba(0, 0, 0, 0.02); }
.specs-table td { padding: 16px 12px; font-size:14px; vertical-align:top; }
.specs-table td:first-child { color: var(--muted); width:160px; padding-left: 0; }
.specs-table td:last-child { font-weight:500; color: var(--text); padding-right: 0; }

/* ─── CALCULATOR ─── */
.calc-block { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:24px; margin-bottom:28px; }
.calc-title { font-family:'Unbounded',sans-serif; font-size:13px; font-weight:600; margin-bottom:4px; display:flex; align-items:center; gap:8px; }
.calc-subtitle { font-size:12px; color:var(--muted); margin-bottom:20px; }

.calc-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.calc-field label { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; font-weight:600; margin-bottom:4px; display:block; }
.calc-field input, .calc-field select { width:100%; padding:10px 14px; background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius); color:var(--text); font-size:13px; font-family:'Onest',sans-serif; outline:none; transition:border-color .2s; }
.calc-field input:focus, .calc-field select:focus { border-color:var(--accent); }
.calc-field select option { background:var(--surface2); }

.calc-result { display:none; padding:14px; border-radius:var(--radius); background:rgba(255, 141, 0, 0.04); border:1px solid rgba(255, 141, 0, 0.1); margin-bottom:16px; font-size:13px; }
.calc-result.is-visible { display:block; }
.calc-result strong { color:var(--accent); }

.calc-actions { display:flex; gap:10px; }
.calc-btn { flex:1; padding:12px; display:flex; align-items:center; justify-content:center; gap:6px; border-radius:var(--radius); font-size:12px; font-weight:600; font-family:'Unbounded',sans-serif; cursor:pointer; transition:all .2s; border:none; }
.calc-btn-primary { background:var(--cta); color:#fff; }
.calc-btn-primary:hover { background:var(--accent-dim); }
.calc-btn-secondary { background:transparent; color:var(--accent); border:1px solid rgba(0, 48, 141, .2); }
.calc-btn-secondary:hover { border-color:var(--accent); background:rgba(0, 48, 141, .05); }

/* Finishing tags */
.finishing-tags { margin-bottom: 32px; }
.finishing-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 12px; }
.finishing-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.finishing-tag { display: inline-flex; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.finishing-tag:hover { background: var(--surface3); color: var(--text); border-color: var(--muted); }

/* Request block */
.request-block { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:24px; margin-bottom:28px; }
.request-title { font-family:'Unbounded',sans-serif; font-size:13px; font-weight:600; margin-bottom:6px; }
.request-note { font-size:12px; color:var(--muted); margin-bottom:16px; line-height:1.5; }
.request-actions { display:flex; gap:10px; }
.request-btn { flex:1; padding:14px; display:flex; align-items:center; justify-content:center; gap:8px; background:var(--cta); color:#fff; font-family:'Unbounded',sans-serif; font-size:12px; font-weight:500; border:none; border-radius:var(--radius); cursor:pointer; transition:background .2s; }
.request-btn:hover { background:var(--cta-dim); }
.request-btn.added { background:#2d7a3a; color:#fff; }
.request-btn-outline { flex:1; padding:14px; display:flex; align-items:center; justify-content:center; gap:8px; background:transparent; color:var(--accent); font-family:'Unbounded',sans-serif; font-size:12px; font-weight:500; border:1px solid rgba(255, 141, 0, 0.15); border-radius:var(--radius); cursor:pointer; transition:all .2s; text-decoration:none; }
.request-btn-outline:hover { border-color:var(--accent); background:rgba(255, 141, 0, 0.05); }

/* Description */
.product-description { margin-bottom:40px; }
.desc-title { font-family:'Unbounded',sans-serif; font-size:13px; font-weight:600; margin-bottom:12px; }
.desc-text { font-size:13px; color:var(--muted); line-height:1.7; }
.desc-text ul { margin:10px 0; padding-left:20px; }
.desc-text li { margin-bottom:4px; }

/* Related */
.related-section { max-width:1200px; margin:0 auto; padding:0 32px 80px; }
.related-title { font-family:'Unbounded',sans-serif; font-size:18px; font-weight:600; margin-bottom:24px; letter-spacing:-.02em; }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; }
.related-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; overflow:hidden; text-decoration:none; color:inherit; transition:border-color .3s, transform .2s; display:flex; flex-direction:column; }
.related-card:hover { border-color:rgba(0,0,0,.15); transform:translateY(-4px); box-shadow:0 12px 40px rgba(0,0,0,.1); }
.related-image { width:100%; aspect-ratio:1/0.7; background:var(--surface2); display:flex; align-items:center; justify-content:center; }
.related-image .ph { font-size:40px; opacity:.2; }
.related-body { padding:16px; flex:1; display:flex; flex-direction:column; }
.related-mat { font-size:10px; font-weight:600; letter-spacing:.05em; color:var(--accent); text-transform:uppercase; margin-bottom:6px; }
.related-name { font-size:14px; font-weight:500; line-height:1.3; margin-bottom:8px; }
.related-cta { font-size:12px; color:var(--accent); margin-top:auto; }

.back-link { display:inline-flex; align-items:center; gap:6px; padding:10px 20px; background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius); font-size:12px; color:var(--text); text-decoration:none; transition:border-color .2s, color .2s; }
.back-link:hover { border-color:var(--accent); color:var(--accent); }

@media(max-width:768px){ .related-section{padding:0 20px 60px} }

/* ==============================================
   FORM: BRIEF (Senior UI/UX)
============================================== */
.product-brief {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.product-brief::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

.brief-header { margin-bottom: 24px; }
.brief-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.brief-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.brief-base {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
}
.brief-base strong {
  color: var(--accent);
  margin-right: 8px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  margin-bottom: 32px;
}
.brief-field.full {
  grid-column: 1 / -1;
}
.brief-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  margin-bottom: 8px;
  margin-left: 2px;
}
.brief-field input {
  width: 100%;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}
.brief-field input::placeholder { color: #555; }
.brief-field input:focus {
  outline: none;
  background: #fff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}

.brief-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.brief-btn-primary {
  flex: 1;
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 24px;
  font-weight: 500;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 48, 141, 0.2);
}
.brief-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 48, 141, 0.3);
}

.brief-btn-secondary {
  flex: 1;
  background: rgba(255, 141, 0, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 24px;
  font-weight: 600;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.brief-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.brief-note {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.5;
  color: #777;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .brief-actions {
    flex-direction: column;
  }
}

/* ==============================================
   FORM ENHANCEMENTS: UPLOAD & FINISHING
============================================== */
.brief-finishing { margin-bottom: 28px; }
.brief-finishing label, .brief-upload label { 
  display: block; font-size: 12px; font-weight: 500; color: #888; margin-bottom: 12px; 
}

.finishing-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.finish-chip { cursor: pointer; position: relative; }
.finish-input { position: absolute; opacity: 0; width: 0; height: 0; }
.finish-name { 
  display: block; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); 
  font-size: 13px; color: var(--muted); transition: all 0.2s; background: var(--surface2);
}
.finish-input:checked + .finish-name { 
  background: var(--cta); color: #fff; border-color: var(--cta); 
  box-shadow: 0 4px 12px rgba(0, 48, 141, 0.15); 
}
.finish-chip:hover .finish-name { border-color: var(--accent); }

.brief-upload { margin-bottom: 32px; }
.upload-zone { 
  border: 2px dashed var(--border); border-radius: 12px; padding: 32px; 
  text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg);
}
.upload-zone:hover { border-color: var(--accent); background: rgba(255, 141, 0, 0.02); }
.upload-content { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-icon { font-size: 32px; margin-bottom: 4px; }
.upload-text { font-size: 14px; color: var(--text); font-weight: 500; }
.upload-limit { font-size: 11px; color: var(--muted); }

.upload-file-info { 
  display: flex; align-items: center; justify-content: center; gap: 12px; 
  background: var(--surface2); padding: 12px 20px; border-radius: 10px; border: 1px solid var(--border);
}
.file-name { font-size: 14px; font-weight: 600; color: var(--text); }
.file-remove { 
  background: #eee; border: none; width: 24px; height: 24px; border-radius: 50%; 
  color: #888; cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.file-remove:hover { background: #ff4d4d; color: #fff; }

.requirements-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--accent); text-decoration: none; transition: color .2s; }
.requirements-link:hover { color: var(--cta); }

.brief-field textarea {
  width: 100%; min-height: 80px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: all .2s;
  resize: vertical;
}
.brief-field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); }
