/* ============================================================
   TechStyle — Inner pages: shop, product, cart, forms, etc.
   ============================================================ */

/* ---------- Shop layout ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: flex-start;
}
.shop-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: sticky;
  top: 100px;
}
.filter-block { padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.filter-block:first-child { padding-top: 0; }
.filter-block:last-child { border-bottom: none; }
.filter-block h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.filter-list { display: flex; flex-direction: column; gap: 11px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-range input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-toolbar .result-count { font-size: 13.5px; color: var(--muted); }
.shop-toolbar select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  background: #fff;
}
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pagination a:hover, .pagination .is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.pd-gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-thumbs { display: flex; gap: 12px; }
.pd-gallery-thumbs button {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.2s var(--ease);
}
.pd-gallery-thumbs button.is-active { border-color: var(--primary); }
.pd-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 {
  font-size: 25px;
  margin-bottom: 10px;
}
.pd-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 18px;
}
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.pd-price { font-family: var(--font-heading); font-size: 30px; font-weight: 800; color: var(--accent-red); }
.pd-price-old { font-size: 16px; color: var(--muted-light); text-decoration: line-through; }
.pd-save { font-size: 12.5px; font-weight: 700; color: #19b674; background: #e7f9f1; padding: 4px 10px; border-radius: var(--radius-full); }

.pd-specs-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
}
.pd-specs-mini li { font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 6px; }
.pd-specs-mini b { color: var(--ink); font-weight: 700; }

.pd-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-input button {
  width: 42px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease);
}
.qty-input button:hover { background: var(--bg-soft); }
.qty-input input {
  width: 42px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 14.5px;
}
.pd-actions .btn-primary { flex: 1; padding: 15px 20px; }
.pd-wish-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pd-wish-btn svg { width: 19px; height: 19px; }
.pd-wish-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }

.pd-trust { display: flex; flex-direction: column; gap: 10px; }
.pd-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.pd-trust svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }

.pd-tabs { margin-top: 60px; }
.pd-tab-head { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.pd-tab-head button {
  padding: 14px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pd-tab-head button.is-active, .pd-tab-head button:hover { color: var(--primary); border-color: var(--primary); }
.pd-tab-panel { display: none; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }
.pd-tab-panel.is-active { display: block; }
.pd-tab-panel ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.related-heading { margin-top: 64px; margin-bottom: 24px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: flex-start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cart-table td { padding: 18px 0; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border); }
.cart-product-name { font-weight: 700; font-size: 14px; max-width: 220px; }
.cart-price { font-weight: 700; color: var(--ink); }
.cart-remove { color: var(--muted-light); transition: color 0.2s var(--ease); }
.cart-remove:hover { color: var(--accent-red); }
.cart-remove svg { width: 18px; height: 18px; }

.cart-summary {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.cart-summary h3 { font-size: 18px; margin-bottom: 20px; }
.cart-summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-soft); padding: 10px 0; }
.cart-summary-row.total { font-weight: 800; font-size: 17px; color: var(--ink); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; }
.cart-summary-row.total .amount { color: var(--accent-red); }
.coupon-row { display: flex; gap: 8px; margin: 18px 0; }
.coupon-row input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; }

.cart-empty { text-align: center; padding: 60px 0; }
.cart-empty svg { width: 84px; height: 84px; color: var(--muted-light); margin: 0 auto 20px; }
.cart-empty p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Forms (contact / login / register) ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.form-check input { width: 15px; height: 15px; accent-color: var(--primary); }
.form-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13.5px; }

.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
  height: calc(100vh - 304px);
}
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-head h1 { font-size: 24px; margin-bottom: 8px; }
.auth-head p { color: var(--muted); font-size: 14px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted-light); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-auth { display: flex; gap: 12px; }
.social-auth button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.social-auth button:hover { border-color: var(--primary); background: var(--primary-light); }
.social-auth svg { width: 18px; height: 18px; }

.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
}
.contact-info-card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.contact-info-card__icon svg { width: 24px; height: 24px; }
.contact-info-card h4 { font-size: 15px; margin-bottom: 6px; }
.contact-info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--border);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Support / FAQ ---------- */
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 56px; }
.support-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.support-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.support-card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.support-card__icon svg { width: 26px; height: 26px; }
.support-card h4 { font-size: 15px; margin-bottom: 8px; }
.support-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  text-align: left;
  background: #fff;
  transition: background 0.2s var(--ease);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--primary); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-item.is-open .faq-q { background: var(--bg-soft); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-a p { padding: 0 22px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- News detail ---------- */
.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 21 / 9;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.article-body h2 { font-size: 21px; margin: 32px 0 14px; }
.article-body p { margin-bottom: 18px; }
.article-body ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.article-body img { border-radius: var(--radius-md); margin: 24px 0; }
.article-tags { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.article-tags a {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.article-tags a:hover { background: var(--primary); color: #fff; }
.article-share { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.article-share span { font-size: 13px; font-weight: 700; color: var(--muted); }
.article-share a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.article-share svg { width: 16px; height: 16px; }
.article-share a:hover { background: var(--primary); color: #fff; }

/* ---------- Promotion page ---------- */
.promo-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 48px;
}
.promo-hero h1 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.promo-hero p { color: #b7c3dd; font-size: 15px; }
.promo-banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
.promo-banner-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
}
.promo-banner-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,10,28,0.15), rgba(4,10,28,0.85));
}
.promo-banner-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.promo-banner-card__content { position: relative; z-index: 2; }
.promo-banner-card__content b { display: block; font-size: 17px; font-family: var(--font-heading); margin-bottom: 4px; }
.promo-banner-card__content span { font-size: 12.5px; color: #d3ddf3; }

/* ---------- Misc page blocks ---------- */
.value-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-props li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.value-props svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; }
.value-props b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.value-props span { font-size: 13px; color: var(--muted); line-height: 1.6; }

.empty-state { text-align: center; padding: 40px 0; color: var(--muted); font-size: 14px; }
