/*
  styles.css - Estilos principales del proyecto
  Variables globales para colores y tamaños
*/
:root {
  --bg-dark: #0b1220;
  --text-light: #e9ecef;
  --accent: #0d6efd;
}

.body-main {
  padding-top: 60px;
}

.header-nav {
  display: flex;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 1030;
}

.carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
  background-color: black;
}

.carousel-item {
  transition: transform .6s ease-in-out;
  background-color: #000;
  min-height: 500px;
}

.carousel .carousel-item {
  transition: transform 0.6s ease-in-out !important;
}

.carousel-caption {
  color: black;
  text-shadow: 0px 0px 10px white;
}

.items-container {
  padding: 0px 5%;
  background-color: transparent;
  background-image: url('../img/wallpaper.jpg');
}

.items-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 20px 20px 20px 20px;
  background: white;
  border: 10px transparent rgba(226, 226, 226, 0.4);
}

.items-cards .card {
  width: 100%;
  max-width: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.items-cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-dark {
  background-color: #0b1220;
  color: #e9ecef;
}

.footer-dark a {
  color: #e9ecef;
  text-decoration: none;
}

.footer-dark a:hover {
  color: #adb5bd;
  text-decoration: none;
}

.footer-dark .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease, transform 0.12s ease;
  font-size: 1.15rem;
}

.footer-dark .social-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.footer-dark h5 {
  margin-bottom: 0.25rem;
}

.footer-dark p.small {
  margin: 0;
  opacity: 0.9;
}

/* Contact style */
.header-nav-contact {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
}
.underlined {
  text-decoration: underline !important;
  text-underline-offset: 2px;
  color: black;
  font-size: large;
}

/* Contact page */
.contact-row {
  gap: 1rem;
}
.contact-logo {
  width: 160px;
  height: 160px;
  max-width: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: block;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .contact-logo {
    width: 120px;
    height: 120px;
  }
}
.contact-text {
  padding-top: 0.5rem;
}

/* Contact buttons styling */
.contact-buttons h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.contact-buttons .buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.contact-buttons .btn {
  background: transparent !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.05rem;
}
.contact-buttons .btn:hover {
  background: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.navbar-brand img {
  border-radius: 50%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .contact-logo { margin: 0; }
  .contact-text { padding-left: 1.5rem; }
}

/* Contact page background */
.contact-page {
  background-image: url('../img/wallpaper.jpg');
  min-height: 100vh;
  background-attachment: fixed;
  position: relative;
  color: black;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.contact-page .container {
  position: relative;
  z-index: 1;
}

.offcanvas-cart{
  --bs-offcanvas-width: 450px;
}

.offcanvas-cart .offcanvas-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 0;
}

/* El listado interior debe ser el elemento scrolleable */
.offcanvas-cart .cart-list {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-right: 8px;
}

/* Footer fijo dentro del offcanvas (total + botón) */
.offcanvas-cart .cart-footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: .75rem;
  box-shadow: 0 -6px 12px rgba(0,0,0,0.08);
  z-index: 10;
}

/* Búsqueda de productos */
.item-search {
  padding: 30px 20px 20px 30px;
  background: white;
  
}

.item-search-form {
  max-width: 40%;
}

.card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}