/*!
 * Librería Central - Custom Theme
 * Colors based on logo: Red #E30613, White #FFFFFF
 */

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

:root {
  --red-primary:   #E30613;
  --red-dark:      #b0040f;
  --red-light:     #ff4d57;
  --white:         #ffffff;
  --gray-50:       #f8f9fa;
  --gray-100:      #f1f3f5;
  --gray-300:      #dee2e6;
  --gray-600:      #6c757d;
  --gray-900:      #212529;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --radius:        .625rem;
}

/* ── Base ── */
body {
  padding-top: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--gray-100);
  color: var(--gray-900);
}

/* ── Header / logo strip ── */
.header-strip {
  background: var(--white);
  border-bottom: 3px solid var(--red-primary);
  padding: .75rem 0 .5rem;
}

.header-strip img {
  max-height: 90px;
  width: auto;
}

/* ── Navbar ── */
.navbar-custom {
  background-color: var(--red-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-text {
  color: var(--white);
  font-weight: 700;
  letter-spacing: .03em;
}

.navbar-custom .navbar-nav .nav-link {
  color: rgba(255,255,255,.88);
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: .375rem;
  transition: background .2s, color .2s;
}

.navbar-custom .nav-item.active .nav-link,
.navbar-custom .nav-item:hover .nav-link {
  color: var(--white);
  background-color: rgba(255,255,255,.15);
}

.navbar-custom .navbar-toggler {
  border-color: rgba(255,255,255,.5);
}

/* ── Search input inside navbar ── */
.navbar-custom .form-control {
  border: none;
  border-radius: .375rem 0 0 .375rem;
  box-shadow: none;
  font-size: .92rem;
}

.navbar-custom .form-control:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}

/* ── Custom button (search / add-to-cart) ── */
.custom-btn {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--red-primary);
  font-weight: 600;
  border-radius: .375rem;
  transition: background .2s, color .2s, box-shadow .2s;
}

.custom-btn:hover,
.custom-btn:focus {
  background-color: var(--gray-100);
  border-color: var(--gray-100);
  color: var(--red-dark);
  box-shadow: 0 0 0 3px rgba(255,255,255,.4);
}

/* ── Sidebar category list ── */
.list-group-item {
  border: none;
  border-bottom: 1px solid var(--gray-300);
  color: var(--gray-900);
  font-weight: 500;
  transition: background .15s, color .15s, padding-left .15s;
}

.list-group-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.list-group-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }

.list-group-item:hover,
.list-group-item.active {
  background-color: var(--red-primary);
  color: var(--white);
  padding-left: 1.4rem;
  border-color: var(--red-primary);
}

/* ── Section headings ── */
h1.my-4 {
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: -.01em;
  border-bottom: 3px solid var(--red-primary);
  padding-bottom: .4rem;
  display: inline-block;
}

/* ── Product cards ── */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  background: var(--white);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card a {
  text-decoration: none;
  color: var(--gray-900);
  transition: color .2s;
}

.card a:hover { color: var(--red-primary); }

.card-title a {
  font-size: 1rem;
  font-weight: 600;
}

.card-title h4 { margin-bottom: .25rem; }

.card h5 {
  color: var(--red-primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.card-text {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.card-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-300);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Add-to-cart button inside card footer */
.card-footer .btn,
.card-footer .btn-primary {
  background-color: var(--red-primary);
  border-color: var(--red-primary);
  color: var(--white);
  font-weight: 600;
  border-radius: .375rem;
  transition: background .2s, box-shadow .2s;
  text-decoration: none;
}

.card-footer .btn:hover,
.card-footer .btn-primary:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 3px 10px rgba(227,6,19,.35);
}

/* ── Footer ── */
.bg-pie,
footer.bg-dark {
  background-color: #1a1a1a !important;
  border-top: 4px solid var(--red-primary);
}

footer p { font-size: .875rem; opacity: .85; }

footer .fa {
  transition: color .2s, transform .2s;
  opacity: .75;
}

footer .fa:hover {
  color: var(--red-light) !important;
  opacity: 1;
  transform: scale(1.15);
}

/* ── Utility ── */
.container { max-width: 1200px; }