/* ==========================================================================
   GOLDEN PORTAS - CLEAN WHITE THEME & ADMIN PANEL STYLES
   ========================================================================== */

:root {
  /* Color Palette - White Theme & Gold Accent */
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-surface: #f1f5f9;
  
  --primary-gold: #be9b48;
  --primary-gold-hover: #9c7f38;
  --primary-gold-light: #fef0c7;
  
  --color-green: #25d366;
  --color-green-dark: #1ea952;
  
  --text-main: #18181b;
  --text-muted: #64748b;
  --text-dark: #09090b;
  --border-color: #e2e8f0;
  --border-gold: #be9b48;

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  line-height: 1.5;
  overflow-x: hidden;
  background-color: #f8fafc;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
  background: #18181b;
  border-bottom: 1px solid #27272a;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: #a1a1aa;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-item i {
  color: var(--primary-gold);
}

/* HEADER & LOGO (WHITE THEME) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-gold);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-gold {
  background: var(--primary-gold);
  color: #ffffff;
}

.btn-gold:hover {
  background: var(--primary-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(190, 155, 72, 0.3);
}

.btn-whatsapp-outline {
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-outline:hover {
  background: #1ea952;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* CATALOG SECTION */
.catalog-section {
  padding: 2.5rem 0 5rem;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.pill-btn:hover, .pill-btn.active {
  background: var(--primary-gold);
  color: #ffffff;
  border-color: var(--primary-gold);
  box-shadow: 0 4px 10px rgba(190, 155, 72, 0.3);
}

/* PRODUCT CARD & QUANTITY MATRIX */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.product-card:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-card-img-wrap {
  height: 280px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.product-card-img-wrap img {
  max-height: 100%;
  object-fit: contain;
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* QUANTITY MATRIX TABLE */
.matrix-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.matrix-table th {
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.matrix-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.4rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--primary-gold);
  color: #ffffff;
  border-color: var(--primary-gold);
}

.qty-num {
  font-weight: 800;
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.matrix-total-row {
  background: #fef0c7;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #78350f;
  margin-bottom: 1.25rem;
  border: 1px solid #fde047;
}

/* WHY KITS PORTA PRONTA */
.features-section {
  padding: 5rem 0;
  background: var(--bg-surface);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comp-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.comp-box.golden {
  border-color: var(--border-gold);
}

.comp-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
}

/* REVIEWS & FAQS */
.reviews-section { padding: 5rem 0; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.faq-section { padding: 5rem 0; background: var(--bg-surface); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.4rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: none;
}

.faq-item.active .faq-answer { display: block; }

/* FOOTER */
.footer {
  background: #18181b;
  border-top: 1px solid #27272a;
  padding: 4rem 0 2rem;
  color: #a1a1aa;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* FLOATING WHATSAPP & MODALS */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* ==========================================
   ADMIN PANEL DASHBOARD STYLING
   ========================================== */
.modal-card-admin {
  max-width: 1000px;
  width: 95%;
  padding: 2.25rem;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-badge.giro { background: #dbeafe; color: #1e40af; }
.admin-badge.pivotante { background: #fef3c7; color: #92400e; }
.admin-badge.correr { background: #f3e8ff; color: #6b21a8; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.btn-admin-edit {
  background: #3b82f6;
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-admin-edit:hover { background: #2563eb; }

.btn-admin-delete {
  background: #ef4444;
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-admin-delete:hover { background: #dc2626; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(190, 155, 72, 0.2);
}

@media (max-width: 992px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
}

@media (max-width: 640px) {
  .top-bar-info { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
