/* ============================================================
   Tronicera Store — Main Stylesheet
   Professional, clean, SEO-friendly beauty affiliate site
   ============================================================ */

:root {
  --primary: #1a3c5a;
  --primary-light: #2a5a82;
  --accent: #c8855a;
  --accent-light: #e8a070;
  --bg: #f9f8f6;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-muted: #666666;
  --border: #e2e0dc;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.07);
  --radius: 8px;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Trebuchet MS', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-link { display: flex; align-items: center; }
.logo-img { height: 60px; width: auto; }
.footer-logo { height: 50px; width: auto; margin-bottom: 12px; }

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* ---- DISCLOSURE BAR ---- */
.disclosure-bar {
  background: #f0f4f8;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
  text-align: center;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero-content { max-width: 700px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  margin: 6px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.5);
  margin: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ---- SECTIONS ---- */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: normal;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-img-link {
  display: block;
  background: #f5f5f5;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s;
}

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

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-block;
  background: #e8f0f8;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.product-info h3 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--primary); }

.product-info p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.btn-buy {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-buy:hover { background: var(--primary-light); color: var(--white); }

/* ---- TRUST GRID ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

.trust-item {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.trust-icon { font-size: 36px; margin-bottom: 14px; }

.trust-item h3 {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 10px;
}

.trust-item p { font-size: 14px; color: var(--text-muted); }

/* ---- BLOG GRID ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.blog-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--primary); }

.blog-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.read-more {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.read-more:hover { color: var(--accent); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: normal;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* ---- PROSE CONTENT ---- */
.prose-section { padding: 60px 0; }

.prose {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.prose h2 {
  font-size: 24px;
  color: var(--primary);
  margin: 36px 0 14px;
  font-weight: normal;
}

.prose h3 {
  font-size: 19px;
  color: var(--primary);
  margin: 28px 0 10px;
}

.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 18px; }
.prose li { margin-bottom: 6px; }

.prose a { color: var(--primary); text-decoration: underline; }

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-info h2 { font-size: 24px; color: var(--primary); margin-bottom: 20px; font-weight: normal; }
.contact-info p { margin-bottom: 14px; color: var(--text-muted); font-size: 15px; }
.contact-info strong { color: var(--text); }
.contact-info a { color: var(--primary); }

.contact-form h2 { font-size: 24px; color: var(--primary); margin-bottom: 20px; font-weight: normal; }

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

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.btn-submit {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--accent-light); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding-top: 50px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.65); max-width: 260px; }

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-contact p { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: #f0f4f8;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
}

/* ---- ADVERTORIAL LABEL ---- */
.advertorial-label {
  display: block;
  background: #fffbe6;
  border: 1px solid #e6d800;
  color: #666;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 7px;
  margin-bottom: 30px;
  border-radius: var(--radius);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 20px;
    border-bottom: none;
  }

  .hero { padding: 50px 0; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .contact-grid { grid-template-columns: 1fr; gap: 30px; }

  .product-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---- PRODUCT DETAIL ---- */
.product-detail {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.product-detail:last-child { border-bottom: none; }

.product-detail-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  align-items: start;
}

.product-detail-inner.reverse {
  grid-template-columns: 1fr 380px;
}

.product-detail-inner.reverse .product-detail-img {
  order: 2;
}

.product-detail-img {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.product-detail-img img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  margin: 0 auto;
}

.product-detail-content h2 {
  font-size: 26px;
  color: var(--primary);
  margin: 12px 0 8px;
  font-weight: normal;
}

.product-tagline {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}

.product-detail-content p { margin-bottom: 14px; font-size: 15px; }

@media (max-width: 900px) {
  .product-detail-inner,
  .product-detail-inner.reverse {
    grid-template-columns: 1fr;
  }
  .product-detail-inner.reverse .product-detail-img { order: 0; }
}
