/* =========================================
   VARIABLES & GLOBAL
   ========================================= */
   
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');
   
:root {
    --primary: #fbb100;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-white: #f5f5f5;
    --text-gray: #a0a0a0;
    --danger: #ff3b30;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: "Google Sans Flex", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    margin: 0;
    overscroll-behavior-y: none;
    
    /* Ajuste para que el contenido no quede bajo el header fijo */
    /* Header (155px) + Espacio (15px) = 170px */
    padding-top: 170px !important; 
    padding-bottom: 110px;
}

/* =========================================
   HEADER FIJO (COMPACTO & LOGO)
   ========================================= */
.app-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    
    /* Altura calculada para Logo + Buscador + Nav + Espacios */
    height: 175px !important; 
    
    /* Padding: Arriba | Derecha | Abajo | Izquierda */
    padding: 10px 15px 0 15px; 
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px !important; /* Espacio entre elementos */
    
    border-bottom: 1px solid #333;
}

/* --- LOGO --- */
.logo-container {
    width: 100%;
    height: 40px; /* Altura controlada */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
}

.app-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 220px;
}

/* --- BUSCADOR --- */
.search-input {
    width: 100%; 
    background: #2a2a2a; 
    border: 1px solid #444; 
    border-radius: 12px;
    padding: 10px 15px; /* Ligeramente más compacto */
    color: white; 
    font-size: 22px; 
    outline: none;
    transition: 0.3s;
	margin-bottom: 5px;
	margin-top: -8px;
}
.search-input:focus { border-color: var(--primary); background: #333; }

/* --- BARRA DE CATEGORÍAS (NAV) --- */
.nav-categories {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
    width: 100%;
    margin-top: 0 !important;
    
    /* SOLUCIÓN AL CORTE DE BOTONES: */
    /* Damos espacio abajo para que la sombra (box-shadow) se vea */
    padding-bottom: 1px !important; 
    padding-left: 5px; /* Pequeño margen izq para que no se pegue al borde */
}
.nav-categories::-webkit-scrollbar { display: none;}

/* BOTONES DE CATEGORÍA */
.cat-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    height: 40px !important;
    padding: 0 16px !important;
    
    background: #2a2a2a;
    color: #f5f5f5;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    line-height: 1 !important;
}

.cat-pill.active {
    background: var(--primary);
    color: #000;
    /* Esta sombra es la que se cortaba antes */
    box-shadow: 0 4px 10px rgba(249, 74, 5, 0.3); 
    border-color: var(--primary);
}

/* =========================================
   GRID DE PRODUCTOS & TARJETAS
   ========================================= */
.product-grid {
    padding: 10px 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px;
}

.card {
    background: var(--bg-card); 
    border-radius: 16px; 
    padding: 12px;
    display: flex; 
    gap: 15px; 
    align-items: center;
    border: 1px solid #333; 
    position: relative;
    cursor: pointer;
}
.card:active { transform: scale(0.98); background: #252525; }

.card img {
    width: 130px; height: 100px; 
    border-radius: 12px; 
    object-fit: cover; 
    background: #000;
}

.card-info { flex: 1; }
.card-title { font-weight: 700; font-size: 20px; margin-bottom: 5px; line-height: 1.3; }
.card-price { color: var(--primary); font-weight: 800; font-size: 23px; }

.badge-qty {
    background: white; color: black; font-weight: 800;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; position: absolute; top: -10px; right: -10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5); z-index: 5;
    border: 2px solid var(--bg-dark);
}

.btn-delete-card {
    position: absolute; top: -10px; left: -10px;
    width: 30px; height: 30px;
    background-color: var(--danger); color: white;
    border-radius: 50%; display: none; align-items: center; justify-content: center;
    font-weight: bold; font-size: 16px; z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); border: 2px solid var(--bg-dark);
}

/* =========================================
   BARRA INFERIOR (VER PEDIDO)
   ========================================= */
.bottom-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #1a1a1a; 
    padding: 15px 20px;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
    border-top: 1px solid #333;
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    gap: 20px; z-index: 2000;
    transform: translateY(150%); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.6);
}
.bottom-bar.visible { transform: translateY(0); }

.total-section {
    display: flex; flex-direction: column; justify-content: center;
    min-width: 80px;
}
.total-label { font-size: 18px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.total-price { font-size: 24px; font-weight: 800; color: white; line-height: 1; }

.btn-checkout {
    flex: 1; 
    background: #fbb100;
    color: #000; border: none;
    padding: 14px 20px; border-radius: 12px; 
    font-weight: 800; font-size: 20px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* =========================================
   MODALES (ESTRUCTURA GENERAL)
   ========================================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 3000;
    justify-content: center; align-items: flex-end;
    opacity: 0; transition: opacity 0.2s;
}
.modal-overlay.open { display: flex; opacity: 1; }

.modal-content {
    background: #1e1e1e; width: 100%; height: 95vh;
    border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column;
    transform: translateY(100%); 
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.modal-overlay.open .modal-content { transform: translateY(0); }

/* Imagen en Modal de Producto */
.modal-img-cover {
    width: 100%; height: 180px; object-fit: cover;
    border-radius: 20px 20px 0 0;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.modal-header {
    padding: 20px; border-bottom: 1px solid #333;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 20px; font-weight: 800; margin: 0; }
.btn-close {
  /* Dimensiones del círculo */
  width: 40px;
  height: 40px;
  
  /* Colores (Usando el amarillo sugerido para suplantar el naranja) */
  background-color: #ff3b30; 
  color: #f5f5f5; /* Color de la X (oscuro para que contraste con amarillo) */
  
  /* Forma circular */
  border-radius: 50%;
  
  /* Centrado perfecto de la X */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Estilos de fuente y puntero */
  font-size: 35px;
  cursor: pointer;
  
  /* Limpieza de espaciados */
  padding: 0; 
  line-height: 0;
  
  /* Efecto visual al pasar el mouse */
  transition: transform 0.2s ease;
}

.btn-close:hover {
  transform: scale(1.1); /* Se agranda un poquito al tocarlo */
  background-color: #FADA5E; /* Un amarillo un poco más intenso */
}

/* =========================================
   ESTILOS INTERNOS DE MODALES (CARRITO Y PRODUCTO)
   ========================================= */

/* --- BOTONES DE CANTIDAD (+ y -) --- */
.qty-control, #modalCuerpo .counter-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    background: #333 !important;
    padding: 5px 15px !important;
    border-radius: 50px !important;
    border: 1px solid #555 !important;
    width: fit-content !important;
    margin: 0 !important;
    flex: 0 0 auto !important;

}

.btn-qty, #modalCuerpo .btn-count {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    font-weight: 900 !important;
    
    /* 1. Mantenemos el tamaño de fuente que elijas */
    font-size: 35px !important; 

    /* 2. Centrado absoluto con Flexbox */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* 3. TRUCO VITAL: Resetear la altura de línea y el padding */
    line-height: 1 !important; /* Cambia 0 por 1 para dar cuerpo al carácter */
    padding: 0 !important;
    margin: 0 !important;
    
    cursor: pointer !important;
    color: #000;
}






/* Botón Menos (-) */
.btn-qty.minus, #modalCuerpo .btn-minus {
    background-color: #333 !important;
    color: #fbb100 !important;
    border: 2px solid #fbb100 !important;
    
    /* FUERZA EL TAMAÑO AQUÍ */
    font-size: 35px !important; 
}

/* Botón Más (+) */
.btn-qty.plus, #modalCuerpo .btn-plus {
    background-color: #fbb100 !important;
    color: #000 !important;
    border: none !important;
    
    /* FUERZA EL TAMAÑO AQUÍ */
    font-size: 27px !important; 
}

/* El contenedor (la pastilla gris oscura) */
.qty-control, #modalCuerpo .counter-wrapper {
    background: #333 !important; /* Fondo de la cápsula */
    border: 1px solid #333 !important;
}

/* El número de la cantidad */
.qty-control span, #modalCuerpo .count-display {
    color: #fbb100 !important; /* Color del número central */
    font-weight: 800 !important;
}


.qty-control span, #modalCuerpo .count-display {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    height: 32px !important; /* Misma altura que los botones para alinear la base */
    line-height: 0 !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    color: #fbb100 !important;
    
    /* Si el número se ve muy a la izquierda o derecha */
    text-align: center !important;
    min-width: 25px !important;
}




/* --- BOTÓN ELIMINAR (Basura) --- */
.btn-trash {
    background: transparent !important;
    color: #ff3b30 !important;
    border: 1px solid #ff3b30 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    height: 36px !important;
    transition: all 0.2s !important;
}
.btn-trash:active { background: #ff3b30 !important; color: white !important; }

/* --- FILAS DEL CARRITO --- */
.cart-list { flex: 1; overflow-y: auto; padding: 20px; }

.cart-item {
    background: #252525; border-radius: 12px; padding: 15px;
    margin-bottom: 15px; border: 1px solid #333;
}
.cart-item-header {
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px;
}
.cart-item-title { font-weight: 700; font-size: 22px; color: white; width: 70%; }
.cart-item-price { font-weight: 800; color: #f5f5f5; font-size: 26px; }

/* Fila de Producto Simple en Carrito (Control izq - Eliminar der) */
.cart-simple-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #333 !important;
    width: 100% !important;
}

/* Sub-items (Sabores) */
.cart-subitem {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-top: 1px solid #333; font-size: 20px; color: #ccc;
}
.subitem-name { flex: 1; text-transform: capitalize; }
.qty-control.small { padding: 2px 8px !important; gap: 8px !important; }
.qty-control.small .btn-qty { width: 30px !important; height: 30px !important; font-size: 18px !important; }

/* --- CONTROLES EN MODAL DE PRODUCTO --- */
#modalCuerpo .option-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #333 !important;
}
#modalCuerpo .option-name { font-size: 23px !important; color: white; text-transform: capitalize; }
#modalCuerpo p { color: #aaa !important; font-size: 20px !important; margin-bottom: 20px !important; text-align: center !important; }

/* Botón AGREGAR Grande */
#modalProducto .btn-confirm {
    display: block !important;
    width: 100% !important;
    background: #fbb100 !important;
    color: #000; !important;
    border: none !important;
    padding: 16px !important;
    border-radius: 12px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 25px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(249, 74, 5, 0.4) !important;
}
#modalProducto .btn-confirm:active { transform: scale(0.96) !important; }

/* --- FOOTER DEL CARRITO --- */
.cart-footer { padding: 20px; background: #1a1a1a; border-top: 1px solid #333; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.summary-label { font-size: 24px; color: #aaa; }
.summary-total { font-size: 35px; font-weight: 800; color: white; }

.payment-method { margin-bottom: 15px; font-size: 20px;}
.payment-select {
    width: 100%; padding: 12px; background: #333; color: white; border: 1px solid #444;
    border-radius: 8px; font-size: 20px; outline: none;
}

.btn-finalize {
    width: 100%; background: #fbb100; color: #000; padding: 16px;
    border: none; border-radius: 12px; font-size: 18px; font-weight: 800;
    text-align: center; display: block;
}


/* --- ESTILO DEL INDICADOR DE MESA --- */
/* ESTILO DEL INDICADOR */
.mesa-badge {
    background-color: #fbb100; /* Verde brillante */
    color: #000;
    padding: 5px 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: clamp(1rem, 5vw, 3rem);
    text-align: center;
    margin: 5px auto;
    width: fit-content;
    border: 1px solid #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 9999; /* Asegura que esté por encima de todo */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- CONTENEDOR DE LA FILA SUPERIOR --- */
.header-top {
    display: flex !important;
    justify-content: space-between !important; /* EMPUJA UNO A CADA LADO */
    align-items: center !important; /* Centrados verticalmente */
    width: 100% !important;
    margin-bottom: 10px !important; /* Un poco de aire antes del buscador */
}

/* Ajuste del contenedor del logo para que no ocupe todo el ancho */
.logo-container {
    width: auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ajuste del Badge de Mesa para quitarle el margen automático viejo */
.mesa-badge {
    margin: 0 !important; /* Quitamos el auto-centrado */
    /* El resto de estilos (color verde, etc.) se mantienen igual */
}

/* ESTILO PARA EL INPUT DEL NOMBRE */
.input-nombre {
    width: 100%;
    padding: 12px 15px;
    background: #333;
    color: white;
    border: 2px solid #444;
    border-radius: 12px;
    font-size: 22px;
    outline: none;
    transition: all 0.3s ease;
}

.input-nombre:focus {
    border-color: #fbb100; /* Se pone naranja al tocarlo */
    background: #404040;
}

.input-nombre::placeholder {
    color: #888;
}

/* --- ESTILOS DE ERROR (VALIDACIÓN) --- */
.input-error {
    border: 2px solid #ff3b30 !important; /* Borde Rojo Intenso */
    background-color: rgba(255, 59, 48, 0.1) !important; /* Fondo rojizo suave */
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.4);
    animation: shake 0.4s ease-in-out; /* Vibración */
}

/* Animación de vibración */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Estilo para las filas que actúan como Radio Buttons */
.option-row.radio-style {
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 12px;
    padding: 15px 10px;
    margin-bottom: 5px;
}

/* El círculo exterior del Radio */
.radio-circle {
    width: 26px;
    height: 26px;
    border: 2px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Cuando la fila está seleccionada */
.option-row.selected-option {
    background: rgba(251, 177, 0, 0.1) !important;
}

.option-row.selected-option .radio-circle {
    border-color: var(--primary);
}

/* El punto central del Radio (el check) */
.radio-inner {
    width: 14px;
    height: 14px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: scaleIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.option-row.selected-option .option-name {
    color: var(--primary);
    font-weight: 800;
}

/* Estilo para mostrar cantidad fija en el carrito */
.qty-display-only {
    background: #333;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid #444;
}




.destacados-slider {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 10px 20px 20px 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .destacados-slider::-webkit-scrollbar { display: none; }
    
    .slider-item {
        flex: 0 0 80%;
        max-width: 300px;
        scroll-snap-align: center;
        position: relative;
        border-radius: 15px;
        overflow: hidden;
        height: 180px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    .slider-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .slider-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
        padding: 15px;
        color: white;
    }
    .slider-title { font-weight: bold; font-size: 16px; }
    .slider-tag {
        position: absolute;
        top: 10px;
        left: 10px;
        background: #fbb100;
        color: black;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: bold;
    }
	




/* --- AJUSTES DEL HEADER --- */
.app-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Eliminamos cualquier height: 150px !important que pusiste antes */
    height: auto !important; 
}

/* Fila Superior: Logo - Lupa - Mesa */
.header-content-row {
    display: flex;
    justify-content: flex-end; /* CAMBIO: Empuja los iconos (Lupa/Mesa) a la derecha */
    align-items: center;
    padding: 10px 15px;
    width: 100%;
    height: 80px; /* Tu altura definida */
    position: relative; /* IMPORTANTE: Para que el logo se centre respecto a esto */
}

/* Logo */
.logo-wrapper {
    position: absolute; /* Lo saca de la fila para moverlo libremente */
    left: 25%;          /* Lo mueve a la mitad horizontal */
    top: 50%;           /* Lo mueve a la mitad vertical */
    transform: translate(-50%, -50%); /* Corrige el centro exacto del objeto */
    z-index: 10;        /* Asegura que quede por encima si la pantalla es muy chica */
}
.app-logo {
    height: 60px; /* Ajusta el tamaño de tu logo aquí */
    width: auto;
    display: block;
}

/* Contenedor Derecha (Lupa y Mesa) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icono Lupa (Botón cuadrado) */
.icon-trigger {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #2a2a2a;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Círculo Mesa */
.mesa-circle {
    width: 60px;
    height: 60px;
    background: #fbb100;
    color: #000;
    border-radius: 50%;
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(251, 177, 0, 0.4);
}

/* Categorías */
.category-scroll-container {
    padding: 0 15px 10px 15px;
    width: 100%;
    overflow-x: auto;
}
.nav-categories { 
    display: flex; 
    gap: 10px; 
    padding-bottom: 5px; 
}
.cat-pill {
    padding: 6px 14px;
    background: #2a2a2a;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    font-size: 20px;
    border: 1px solid #333;
}
.cat-pill.active {
    background: #fbb100;
    color: black;
    font-weight: bold;
}

/* Ajuste Body */
body { padding-top: 130px !important; }

/* --- ESTILOS DEL POPUP BUSCADOR --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 9999;
    opacity: 0; visibility: hidden; transition: 0.3s;
    display: flex; justify-content: center;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.search-box-popup {
    width: 100%;
    background: #1e1e1e;
    position: absolute; top: 0;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid #333;
}

.popup-header { display: flex; justify-content: space-between; margin-bottom: 15px; align-items: center; }

/* Input Buscador (Estilo original preservado) */
.search-wrapper { position: relative; width: 100%; }

.search-input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px !important;
    font-size: 20px;
    height: 45px;
    border: 1px solid #f5f5f5;
    border-radius: 12px;
    background-color: #2a2a2a;
    color: white;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fbb100'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 24px;
}
.search-input.has-text { background-image: none; }
.search-input::placeholder { color: #f5f5f5; opacity: 0.7; }

.clear-icon {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    font-size: 24px; color: #f5f5f5; cursor: pointer; display: none;
}
.search-input.has-text + .clear-icon { display: block; }