/* These styles are generated from project.scss. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --app-bg:       #f4f7ff;
  --app-surface:  #ffffff;
  --app-primary:  #1d6feb;
  --app-primary-hover: #1558cc;
  --app-muted:    #5a7ca8;
  --app-border:   #dde8fb;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --app-text:     #0d1b2e;
}

.app-body {
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.app-navbar {
  background: #13111a;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 900;
}

/* faint violet glow behind logo */
.app-navbar .container {
  position: relative;
}

.app-navbar .nav-link {
  color: #a09cb8;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  color: #ffffff;
}

.app-navbar .navbar-brand {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-navbar .navbar-brand::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #1d6feb, #60a5fa);
  border-radius: 7px;
  flex-shrink: 0;
}

.app-navbar .navbar-brand:hover { color: #ffffff; }

.navbar-brand-dot { color: #60a5fa; }

/* cart icon in navbar */
.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  background: rgba(29,111,235,0.18);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(29,111,235,0.3);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.nav-cart-btn:hover {
  background: rgba(29,111,235,0.28);
  color: #fff;
}

.app-alert {
  border: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* ===== PAGE HEADERS ===== */
.page-title {
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--app-muted);
  margin-bottom: 1.5rem;
}

/* ===== CARDS ===== */
.surface-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(109,40,217,0.05), 0 1px 3px rgba(0,0,0,0.04);
}

.surface-card .table { margin-bottom: 0; }

.surface-card .table thead th {
  background: #f8f7fd;
  border-bottom-width: 1px;
  color: #4a4568;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.surface-card .table tbody tr:hover { background: #f8f7fd; }

.form-panel { padding: 1.25rem; }

.empty-state {
  padding: 1.5rem;
  border: 1px dashed #d6cfee;
  border-radius: 10px;
  background: #f8f7fd;
  color: #6b6787;
}

.error-page {
  max-width: 700px;
  margin: 2rem auto;
  text-align: center;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.quick-links a { text-decoration: none; }
.quick-links a:hover { text-decoration: underline; }

/* ===== HOME HERO ===== */
.home-hero {
  border-radius: 18px;
  padding: 2.5rem 2rem;
  background: linear-gradient(130deg, #0d1b2e 0%, #1558cc 55%, #1d6feb 100%);
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(29,111,235,0.3);
}

.home-chip {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.home-hero-title {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.home-hero-subtitle {
  max-width: 55ch;
  margin-bottom: 1.2rem;
  color: rgba(248,250,252,0.85);
  font-size: 0.95rem;
}

.home-hero .btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.home-hero .btn-outline-light:hover {
  background: rgba(255,255,255,0.14);
  border-color: #fff;
}

@media (max-width: 767px) {
  .home-hero { padding: 1.6rem 1.25rem; }
}

/* ===== CATALOG HERO ===== */
.hero-minimal {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--app-border);
}

.hero-minimal-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-minimal-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--app-text);
  letter-spacing: -0.02em;
}

.hero-minimal-breadcrumb {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: #a09cb8;
}

.hero-minimal-breadcrumb a {
  color: #a09cb8;
  text-decoration: none;
}
.hero-minimal-breadcrumb a:hover { color: var(--app-text); }

@media (max-width: 575px) {
  .hero-minimal-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ===== CATALOG TIP ===== */
.catalog-tip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.86rem;
  color: #1e40af;
  margin: 0;
}

.catalog-tip-icon { font-size: 0.95rem; flex-shrink: 0; }

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

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }
}

/* ===== PRODUCT CARD ===== */
.product-card {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: var(--app-surface);
  box-shadow: 0 1px 4px rgba(109,40,217,0.05), 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(29,111,235,0.14), 0 2px 8px rgba(0,0,0,0.06);
  border-color: #93c5fd;
}

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eff6ff;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease;
}

.product-card:hover .product-card-image { transform: scale(1.06); }

.product-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8b0d4;
  font-size: 0.82rem;
}

.product-card-urgency-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

.product-card-body {
  padding: 0.9rem 1rem 0.6rem;
  flex: 1;
}

.product-card-category {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a09cb8;
}

.product-card-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.3;
}

.product-card-price {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--app-text);
  letter-spacing: -0.03em;
}

.product-card-cta {
  display: block;
  width: 100%;
  padding: 0.72rem 1rem;
  border: none;
  border-top: 1px solid var(--app-border);
  border-radius: 0 0 16px 16px;
  background: #1d6feb;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
  text-align: center;
  letter-spacing: 0.01em;
}

.product-card-cta:hover { background: #1558cc; }

.product-card-cta-disabled {
  background: #e8f0fe;
  color: #93b4d4;
  cursor: not-allowed;
}

.product-card-cta-disabled:hover { background: #e8f0fe; }

.product-card-stock {
  color: #6b6787;
  font-size: 0.9rem;
}

/* ===== HOME INTRO ===== */
.home-intro {
  padding: 0.9rem 1rem;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
}

/* ===== TRUST GRID ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.trust-item {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
}

.trust-item-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--app-text);
}

.trust-item-label {
  margin: 0;
  color: #6b6787;
  font-size: 0.88rem;
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.benefit-card {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  padding: 1.1rem;
  box-shadow: 0 2px 10px rgba(109,40,217,0.05);
}

.benefit-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.benefit-card p {
  margin-bottom: 0;
  color: #6b6787;
  font-size: 0.9rem;
}

/* ===== SECTION HEADERS ===== */
.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.section-headline p {
  margin-bottom: 0;
  color: #8b87a4;
  font-size: 0.88rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-header-title {
  margin: 0 0 0.1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--app-text);
  letter-spacing: -0.02em;
}

.section-header-sub {
  margin: 0;
  font-size: 0.86rem;
  color: #8b87a4;
}

/* ===== PRODUCT TOOLBAR ===== */
.home-product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-product-counter {
  color: #8b87a4;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===== STOCK BADGES ===== */
.stock-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.stock-badge-ok  { background: #d1fae5; color: #065f46; }
.stock-badge-low { background: #fef3c7; color: #92400e; }
.stock-badge-out { background: #fee2e2; color: #991b1b; }

/* ===== ABOUT ===== */
.about-block {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  padding: 1.1rem;
  height: 100%;
}

.about-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.about-block p,
.about-block li { color: #6b6787; }

/* ===== SEARCH FORM ===== */
.search-form-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-form-field {
  flex: 1;
  min-width: 200px;
}

.search-form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 0.4rem;
}

.search-form-field input,
.search-form-field select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  background: var(--app-surface);
  color: var(--app-text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.search-form-field input:focus,
.search-form-field select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(29,111,235,0.1);
}

.alert-debug  { color: black; background-color: white; border-color: #d6e9c6; }
.alert-error  { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; }

@media (max-width: 767px) {
  .trust-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .home-product-toolbar { flex-direction: column; align-items: stretch; }
}

/* ===== CART FAB ===== */
.cart-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: none;
  background: #1d6feb;
  color: #fff;
  box-shadow: 0 6px 20px rgba(29,111,235,0.45);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.cart-fab:hover {
  background: #1558cc;
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgba(29,111,235,0.55);
}

.cart-fab:active { transform: scale(0.97); }

.cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  transition: transform 0.15s;
}

.cart-fab-badge[data-cart-count="0"] { display: none; }

/* ===== CART OVERLAY ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1041;
  background: rgba(19,17,26,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-overlay.cart-open {
  opacity: 1;
  visibility: visible;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1042;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 40px rgba(29,111,235,0.1), -2px 0 8px rgba(0,0,0,0.06);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.cart-sidebar.cart-open { transform: translateX(0); }

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--app-border);
  background: #f0f6ff;
  flex-shrink: 0;
}

.cart-sidebar-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--app-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #8b87a4;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cart-sidebar-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.cart-sidebar-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.75rem 1rem;
}

.cart-sidebar-footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--app-border);
  background: #f0f6ff;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.cart-total-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a4568;
}

.cart-total-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--app-text);
  letter-spacing: -0.02em;
}

/* Override Bootstrap btn-success to violet for WhatsApp CTA */
.cart-sidebar-footer .btn-success {
  background: #25d366;
  border-color: #25d366;
  font-weight: 700;
}

.cart-sidebar-footer .btn-success:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

@media (max-width: 480px) {
  .cart-sidebar { width: 100vw; }
  .cart-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
  }
}

body.cart-sidebar-open { overflow: hidden; }

.suggestion-box {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.suggestion-kicker {
  margin-bottom: 0.35rem;
  color: var(--app-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.suggestion-title {
  margin-bottom: 0.45rem;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 800;
}

.suggestion-copy {
  max-width: 34ch;
  margin-bottom: 0;
  color: #6b7280;
}

.suggestion-form .form-label {
  color: #374151;
  font-size: 0.82rem;
  font-weight: 700;
}

.suggestion-page {
  max-width: 860px;
  margin: 0 auto;
}

.suggestion-page-copy {
  margin-bottom: 1.25rem;
}

.suggestion-page .suggestion-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.suggestion-page .suggestion-box {
  display: block;
}

@media (max-width: 767px) {
  .suggestion-box {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }
}
