/* ===== SHARED INNER-PAGE STYLES ===== */

/* Page Hero */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(99,102,241,0.3) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(168,85,247,0.15) 0%, transparent 55%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px; color: var(--muted);
  max-width: 560px; margin: 0 auto; line-height: 1.75;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99,102,241,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(168,85,247,0.12) 0%, transparent 55%);
}
.auth-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 44px;
  width: 100%; max-width: 480px;
  position: relative; z-index: 2;
}
.auth-logo {
  text-align: center; margin-bottom: 32px;
}
.auth-logo a { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; }
.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; text-align: center; }
.auth-sub { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 32px; }

/* Toggle B2B / B2C */
.type-toggle {
  display: flex; background: var(--dark-3);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 4px; margin-bottom: 28px; gap: 4px;
}
.type-btn {
  flex: 1; padding: 10px; border-radius: 9px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--muted);
  transition: all 0.25s; font-family: 'Inter', sans-serif;
}
.type-btn.active {
  background: var(--grad-1); color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}

/* Form */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #c7d2fe; margin-bottom: 8px; letter-spacing: 0.02em;
}
.form-input {
  width: 100%; padding: 13px 16px;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 12px; color: #fff; font-size: 15px;
  font-family: 'Inter', sans-serif; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-input.hidden { display: none; }

.form-check {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--indigo); cursor: pointer;
}
.form-check a { color: #a5b4fc; }
.form-check a:hover { color: #fff; }

.form-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.form-link { font-size: 13px; color: #a5b4fc; transition: color 0.2s; }
.form-link:hover { color: #fff; }

.btn-full { width: 100%; justify-content: center; padding: 15px; font-size: 16px; border-radius: 14px; }

.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn-social {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: var(--dark-3); border: 1px solid var(--border); color: #fff;
  cursor: pointer; transition: all 0.25s; font-family: 'Inter', sans-serif;
}
.btn-social:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

.auth-footer {
  text-align: center; margin-top: 28px;
  font-size: 14px; color: var(--muted);
}
.auth-footer a { color: #a5b4fc; font-weight: 600; }
.auth-footer a:hover { color: #fff; }

/* ===== PRODUCTS PAGE ===== */
.products-page { padding: 40px 0 100px; }
.products-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 32px; align-items: start;
}

/* Search Bar */
.search-bar-wrap {
  margin-bottom: 32px;
  display: flex; gap: 12px; align-items: center;
}
.search-bar {
  flex: 1; display: flex; align-items: center; gap: 12px;
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 0 20px; transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--indigo); }
.search-bar span { font-size: 18px; color: var(--muted); }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 15px; padding: 14px 0;
  font-family: 'Inter', sans-serif;
}
.search-bar input::placeholder { color: var(--muted); }
.sort-select {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px; color: #fff;
  font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; cursor: pointer; min-width: 160px;
}
.sort-select option { background: var(--dark-2); }

/* Filter Sidebar */
.filter-sidebar {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px;
  position: sticky; top: 90px;
}
.filter-sidebar h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 28px; }
.filter-group h4 { font-size: 13px; font-weight: 700; color: #a5b4fc; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted); cursor: pointer;
  padding: 6px 0; transition: color 0.2s;
}
.filter-option:hover { color: #fff; }
.filter-option input[type="checkbox"] { accent-color: var(--indigo); width: 15px; height: 15px; cursor: pointer; }
.filter-option.active { color: #fff; }
.filter-count { margin-left: auto; font-size: 12px; color: var(--muted); }

.price-range { display: flex; gap: 8px; align-items: center; }
.price-input {
  flex: 1; background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; color: #fff;
  font-size: 13px; font-family: 'Inter', sans-serif; outline: none;
  transition: border-color 0.2s;
}
.price-input:focus { border-color: var(--indigo); }
.price-sep { color: var(--muted); font-size: 13px; }

.btn-apply-filter {
  width: 100%; padding: 12px; border-radius: 10px; margin-top: 8px;
  background: var(--grad-1); color: #fff; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: opacity 0.2s;
}
.btn-apply-filter:hover { opacity: 0.9; }

/* Product Grid */
.products-main {}
.products-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.products-count { font-size: 14px; color: var(--muted); }
.products-count strong { color: #fff; }
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Product Card */
.prod-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all 0.3s ease;
}
.prod-card:hover { transform: translateY(-5px); border-color: rgba(99,102,241,0.4); box-shadow: 0 16px 48px rgba(99,102,241,0.14); }
.prod-img {
  background: var(--dark-3); height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 64px;
}
.prod-emoji { display: block; }
.prod-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; letter-spacing: 0.04em;
}
.badge-sale { background: rgba(249,115,22,0.2); color: #fb923c; border: 1px solid rgba(249,115,22,0.4); }
.badge-new  { background: rgba(6,182,212,0.2);  color: #22d3ee; border: 1px solid rgba(6,182,212,0.4); }
.badge-top  { background: rgba(99,102,241,0.2);  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.4); }
.prod-body { padding: 20px; }
.prod-brand { font-size: 11px; font-weight: 700; color: var(--indigo); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.prod-name { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.prod-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.rating-num { font-size: 13px; font-weight: 700; }
.rating-count { font-size: 12px; color: var(--muted); }
.prod-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prod-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-current { font-size: 18px; font-weight: 800; background: var(--grad-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-original { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-discount { font-size: 11px; font-weight: 700; color: #fb923c; }
.btn-cart {
  padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 700;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc; cursor: pointer; transition: all 0.25s;
  font-family: 'Inter', sans-serif; white-space: nowrap;
}
.btn-cart:hover { background: var(--grad-1); color: #fff; border-color: transparent; }

/* Cart Toast */
.cart-toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 9999;
  background: var(--dark-2); border: 1px solid rgba(99,102,241,0.4);
  border-radius: 14px; padding: 16px 24px;
  font-size: 14px; font-weight: 500; color: #fff;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(20px); opacity: 0;
  transition: all 0.35s ease;
}
.cart-toast.show { transform: translateY(0); opacity: 1; }

/* No results */
.no-results {
  grid-column: 1/-1; text-align: center;
  padding: 80px 24px; color: var(--muted);
}
.no-results .nr-icon { font-size: 56px; margin-bottom: 16px; }
.no-results h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }

/* ===== CATEGORY PAGE ===== */
.cat-hero {
  padding: 130px 0 70px;
  position: relative; overflow: hidden; text-align: center;
}
.cat-hero-content { position: relative; z-index: 2; }
.cat-hero-icon { font-size: 72px; margin-bottom: 20px; display: block; }
.cat-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 12px; }
.cat-hero p { font-size: 17px; color: var(--muted); max-width: 500px; margin: 0 auto 32px; }
.cat-breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 20px;
}
.cat-breadcrumb a { color: var(--muted); transition: color 0.2s; }
.cat-breadcrumb a:hover { color: #fff; }
.cat-breadcrumb span { color: var(--muted); }

/* ===== ABOUT PAGE ===== */
.about-mission {
  padding: 100px 0;
  background: var(--dark-2);
  position: relative; overflow: hidden;
}
.about-mission-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 0% 50%, rgba(6,182,212,0.07) 0%, transparent 55%),
              radial-gradient(ellipse 60% 50% at 100% 50%, rgba(168,85,247,0.07) 0%, transparent 55%);
}
.about-mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; position: relative; z-index: 2;
}
.about-mission-text .section-sub { margin-bottom: 32px; }
.about-values { display: flex; flex-direction: column; gap: 16px; }
.about-value {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px;
}
.about-value-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.about-value h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.about-value p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.about-stats { padding: 80px 0; }
.about-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-stat-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 24px; text-align: center;
  transition: all 0.3s;
}
.about-stat-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.4); }
.about-stat-num { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 8px; }
.about-stat-label { font-size: 14px; color: var(--muted); }

.team-section { padding: 100px 0; background: var(--dark-2); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.team-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px 28px; text-align: center;
  transition: all 0.3s;
}
.team-card:hover { transform: translateY(-5px); border-color: rgba(99,102,241,0.4); box-shadow: 0 16px 48px rgba(99,102,241,0.12); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; margin: 0 auto 20px;
}
.team-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.team-bio { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 80px 0 100px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: all 0.3s;
}
.contact-card:hover { border-color: rgba(99,102,241,0.4); transform: translateX(4px); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ci-blue   { background: rgba(59,130,246,0.15); }
.ci-purple { background: rgba(168,85,247,0.15); }
.ci-cyan   { background: rgba(6,182,212,0.15); }
.contact-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.contact-form-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px 36px;
}
.contact-form-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.contact-form-card > p { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.form-textarea {
  width: 100%; padding: 13px 16px; min-height: 130px; resize: vertical;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 12px; color: #fff; font-size: 15px;
  font-family: 'Inter', sans-serif; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-textarea::placeholder { color: var(--muted); }
.form-textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

.faq-section { padding: 80px 0 100px; background: var(--dark-2); }
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; font-size: 15px; font-weight: 600; color: #fff;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: 'Inter', sans-serif; transition: color 0.2s;
}
.faq-q:hover { color: #a5b4fc; }
.faq-q .faq-icon { font-size: 20px; transition: transform 0.3s; flex-shrink: 0; color: var(--muted); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: #a5b4fc; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 14px; color: var(--muted); line-height: 1.75;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .products-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: 1fr; }
  .search-bar-wrap { flex-direction: column; }
  .sort-select { width: 100%; }
}
