/* ================================================================
   COMPONENTS — Buttons, Cards, Form, FAQ, Zalo Widget
   Style: Editorial Streetwear / Whenever.vn
   ================================================================ */

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

/* Primary: Black fill */
.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-black);
  border-color: var(--color-accent);
}

/* Outline: Thin black border */
.btn-outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* Accent: Red CTA */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-black);
  color: var(--color-accent);
  border-color: var(--color-black);
}

/* Zalo specific */
.btn-zalo {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  font-weight: 800;
}

.btn-zalo:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-sm { padding: 9px 18px; font-size: 0.68rem; }
.btn-lg { padding: 16px 38px; font-size: 0.8rem; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════
   PRODUCT CARD
═══════════════════════════════════════ */
.product-card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--color-black);
  transform: translateY(-4px);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-cat {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}

.product-card-name a { color: var(--color-text); }
.product-card-name a:hover { color: var(--color-accent-dk); text-decoration: underline; }

.product-card-desc {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #22a55d;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stock-indicator::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Product badge label */
.product-label {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 2;
}

.product-label.accent {
  background: var(--color-accent);
  color: var(--color-black);
}

/* ═══════════════════════════════════════
   FLOATING ZALO WIDGET
═══════════════════════════════════════ */
.zalo-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 20px 12px 14px;
  border: 2px solid var(--color-black);
  box-shadow: 4px 4px 0 var(--color-black);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  animation: pulse-red 2.4s ease infinite;
  text-decoration: none;
}

.zalo-float:hover {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 6px 6px 0 var(--color-accent);
  animation: none;
  transform: translateY(-2px);
}

.zalo-float-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.zalo-float:hover .zalo-float-icon {
  background: var(--color-accent);
  color: var(--color-white);
}

.zalo-float-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* ═══════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════ */
.faq-item {
  border-bottom: 1px solid var(--color-border-dk);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
  transition: color var(--dur-fast);
}

.faq-question:hover { color: var(--color-text-sub); }

.faq-q-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast), color var(--dur-fast);
  font-size: 1.2rem;
  font-weight: 300;
}

.faq-item.open .faq-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-item.open .faq-answer { max-height: 240px; }

.faq-answer-inner {
  font-size: 0.88rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  padding-bottom: 22px;
}

/* ═══════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════ */
.form-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  margin-bottom: 8px;
  display: block;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border-dk);
  background: var(--color-bg-2);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 3px 3px 0 rgba(192,0,0,0.18);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-group { margin-bottom: 22px; }

/* ═══════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--color-black);
  color: var(--color-accent);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--color-accent);
  z-index: 1000;
  transition: all var(--dur-mid) var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
   SPECS TABLE
═══════════════════════════════════════ */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border-dk);
}

.specs-table tr { border-bottom: 1px solid var(--color-border); }
.specs-table tr:last-child { border-bottom: none; }

.specs-table td {
  padding: 13px 18px;
  font-size: 0.875rem;
}

.specs-key {
  font-weight: 600;
  background: var(--color-bg-alt);
  color: var(--color-text-sub);
  width: 38%;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
