:root {
  --accent:#F25C05;
  --font: "Poppins", sans-serif;
  --font-title: "Playfair Display", serif;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background-color: #faf7f5;

}


.icon-user {
    font-size: 2px;
    display: inline-block;
    filter: brightness(0) invert(0.6);   /* gris medio forzado */
    transition: 0.3s ease;
}

.icon-user:hover {
    filter: brightness(0) invert(1);     /* blanco forzado */
}


/* HEADER */
.site-header{
  position:absolute;
  top:18px;
  left:20px;
  right:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:1000;
}

.logo img{ height:100px; display:block; }


#primary_nav_wrap ul{
  list-style:none;
  display:flex;
  gap:18px;
  align-items:center;
  margin:0;
  padding:0;
}

/*  Oscurece imagen  */
#primary_nav_wrap img,
.slide {
  filter: brightness(0.6); 
  transition: filter 0.3s ease;
}

#primary_nav_wrap img:hover,
.slide:hover {
  filter: brightness(0.8); }


* Submenús */
#primary_nav_wrap ul ul li a:hover{ background:#f6f6f6; }


#primary_nav_wrap ul li{ position:relative; }

#primary_nav_wrap ul li a{
  color: var(--accent);
  text-decoration:none;
  font-weight:600;
  font-size:18px;
  padding:8px 6px;
  display:inline-block;
  transition: color .18s ease;
  font-family: var(--font-title);
}

#primary_nav_wrap ul li a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  transform-origin: center;
  transition: transform .22s ease;
}

#primary_nav_wrap ul li:hover > a::after{
  transform: translateX(-50%) scaleX(1);
}

/* Submenús */
#primary_nav_wrap ul ul{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  right:0;
  background:#fff;
  padding:6px 0;
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
  border-radius:6px;
  min-width:200px;
  z-index:1100;
}

#primary_nav_wrap ul li:hover > ul{ display:block; }

#primary_nav_wrap ul ul li a{
  color:#333;
  padding:9px 16px;
  display:block;
  font-weight:500;
  font-family: var(--font);
}

#primary_nav_wrap ul ul li a:hover{ background:#f6f6f6; }

/* HERO */
.hero{
  width:100%;
  height:100vh;
  position:relative;
  overflow:hidden;
}



  /* Forzar estilos*/
  .btn-pedido {
    background-color: #ff6600 !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
  }

  
.carrito {
  max-width: 900pc;
  margin: 180px auto 60px; /* bajado por el header */
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.carrito h2 {
  text-align: center;
  color: #F25C05;
  font-family: var(--font-title);
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0d8b0;
}

th {
  color: #7a3d00;
  font-weight: 600;
  font-family: var(--font-title);
}

.vacio {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-style: italic;
}

.foto {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.caja-cant {
  width: 60px;
  text-align: center;
  padding: 5px;
  border: 1px solid #e0b47a;
  border-radius: 6px;
}

.borrar {
  border: none;
  background: none;
  color: black;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s;
}

.borrar:hover {
  transform: scale(1.2);
}







.icon-carrito {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.icon-carrito:hover {
    transform: scale(1.05);
}

.badge-carrito {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #F25C05, #ff7f32);
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(242, 92, 5, 0.4);
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.badge-carrito:empty {
    display: none;
}

.icono-carrito-producto {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.icono-carrito-producto:hover {
    background: #F25C05;
    color: white;
    transform: scale(1.1);
}

/* Animaciones para notificación */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

