/* ================================
   PALETA DE COLORES (EDITABLE)
================================ */
:root {
  --main-green: #63b32e;
  --dark-green: #4e9922;
  --light-green: #e8f8e2;
  --dark-text: #222;
  --light-text: #777;
}

/* ================================
   GENERAL
================================ */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: var(--dark-text);
}

/* Títulos */
h1, h2, h3, .h1, .h2, .h3 {
  font-weight: 700;
  color: var(--dark-text);
}

/* Enlaces */
a {
  color: var(--main-green);
}
a:hover {
  color: var(--dark-green);
}

/* ================================
   CABECERA SUPERIOR / MENÚ
================================ */

/* Fondo superior */
.header-top, 
.header-nav {
  background-color: var(--main-green) !important;
  padding: 12px 0;
}

/* Ocultar menú principal por defecto (Clothes, Accessories, Art) */
.header-top .header-top-right nav,
.header-top .header-top-right .menu,
#_desktop_top_menu,
#_mobile_top_menu {
  display: none !important;
}


/* Main Header Columns */
.main-header {
    padding: 10px 0;      /* antes era 20px */
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Centrar contenido en columna derecha */
.header-icons {
  justify-content: flex-end;
  display: flex;
  gap: 20px;
}

/* Buscador estilo Naturitas */
.header-search #search_widget form input {
  height: 45px;
  border-radius: 30px;
  border: 2px solid #8bc69a;
}

.header-search #search_widget form button {
  border-radius: 30px;
}


/* Enlaces menú principal */
#_desktop_top_menu .navbar-nav > li > a {
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}
#_desktop_top_menu .navbar-nav > li > a:hover {
  opacity: .9;
}

/* Barra de búsqueda */
#search_widget form input[type="text"] {
  border-radius: 30px;
  border: 1px solid var(--main-green);
}
#search_widget form button[type="submit"] {
  background-color: var(--main-green);
  border-radius: 30px;
}

/* ================================
   BOTONES
================================ */
.btn,
.btn-primary,
.add-to-cart,
input[type="submit"],
button {
  background-color: var(--main-green) !important;
  border-color: var(--main-green) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: 0.2s ease-in-out;
}

.btn:hover,
.btn-primary:hover,
.add-to-cart:hover {
  background-color: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
}

/* ================================
   MINIATURAS DE PRODUCTOS (GRID)
================================ */
.product-miniature {
  padding: 12px;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  background: #fff;
  transition: 0.25s ease;
}

.product-miniature:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* Nombre del producto */
.product-miniature .product-title a {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
}

/* Precio */
.product-miniature .price {
  font-size: 18px;
  color: var(--main-green);
  font-weight: bold;
}

/* Botón dentro del producto */
.product-miniature .add-to-cart {
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
}

/* Imagen del producto */
.product-image-container img {
  border-radius: 8px;
}

/* ================================
   PÁGINA DE PRODUCTO
================================ */
.product-prices {
  background: var(--light-green);
  padding: 16px;
  border-radius: 10px;
}

.product-actions .add-to-cart {
  padding: 12px 22px;
  font-size: 18px;
}

.product-actions .product-quantity {
  margin-bottom: 12px;
}

/* Tabs de descripción */
.tabs .nav-link {
  font-weight: 600;
  color: var(--dark-text);
}
.tabs .nav-link.active {
  color: var(--main-green);
  border-bottom: 2px solid var(--main-green);
}

/* ================================
   SECCIONES DE LA HOME
================================ */

/* Tarjetas de categorías destacadas */
.featured-category-box {
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
  transition: 0.25s;
}
.featured-category-box:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.featured-category-box img {
  border-radius: 12px;
  width: 100%;
}

/* Título de sección */
.section-title {
  padding: 10px 0;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-text);
  border-left: 4px solid var(--main-green);
  padding-left: 12px;
}

/* ================================
   FOOTER
================================ */
#footer {
  background: #f8f8f8;
  padding-top: 30px;
}

#footer a {
  color: var(--main-green);
  font-weight: 600;
}

#footer .h3 {
  color: var(--dark-text);
}

/* ================================
   BANNER PRINCIPAL – FOODSTORE STYLE
================================ */

.home-banner {
  position: relative;
}

.banner-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.banner-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  filter: brightness(0.75);
  transition: transform .8s ease;
}

.banner-wrapper:hover .banner-img {
  transform: scale(1.05);
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 420px;
}

.banner-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #fff;
}

.banner-subtitle {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f1f1f1;
}

.banner-btn {
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 6px;
}

/* ===========================================
   TOP BAR
=========================================== */
.top-bar-naturitas {
  background: #9cd3a5;
  padding: 6px 0;
  font-size: 14px;
  color: #fff;
}

.top-bar-naturitas .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-naturitas .tb-item {
  color: #fff;
  font-weight: 500;
	 white-space: nowrap;
  padding: 0 10px;
}

/* ===========================================
   MAIN HEADER
=========================================== */
.main-header {
  padding: 16px 0;
}

.header-logo img {
  max-height: 55px;
}

.header-search {
  flex-grow: 1;
  padding: 0 40px;
}

#search_widget form input {
  height: 48px;
  border-radius: 40px;
  border: 1px solid #ccc;
  padding-left: 15px;
}

#search_widget form button {
  border-radius: 40px;
}

/* ===========================================
   ICONS
=========================================== */
.header-icons .icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 18px;
  text-align: center;
  font-size: 13px;
  color: #333;
}

.header-icons .icon-svg {
  font-size: 22px;
  margin-bottom: 2px;
}

/* ===========================================
   MAIN MENU
=========================================== */
.main-menu-naturitas {
  background: #9cd3a5;
  padding: 10px 0;
}

.menu-list {
  list-style: none;
  display: flex;
  gap: 25px;
  font-weight: 600;
}

.menu-list li a {
  color: #fff;
  font-size: 15px;
}

.menu-list li a:hover {
  opacity: .8;
}

/* Dropdown */
.menu-list .dropdown {
  position: relative;
}

.dropdown-menu {
  background: #fff;
  color: #333;
  position: absolute;
  top: 30px;
  left: 0;
  min-width: 180px;
  border-radius: 6px;
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 6px 15px;
}

.dropdown-menu li a {
  color: #333 !important;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  color: #4e9922;
}

/* Ajustar altura general del header superior */
.main-header {
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 110px; /* Ajusta este valor si quieres más altura */
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* Logo - buscador - iconos */
  align-items: center;
}

/* Logo sin deformación */
.header-logo img {
  max-height: 150px;       /* Aumenta aquí si quieres más grande */
  width: auto !important; /* Mantener proporción */
  height: auto !important;
  object-fit: contain;
}

/* Centrado vertical en buscador */
.header-search {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Iconos centrados verticalmente */
.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
}

/* Ajustar contenido de login y carrito */
.header-icons #_desktop_user_info a,
.header-icons #_desktop_cart .header {
  display: flex;
  align-items: center;
}

.header-icons i {
  font-size: 22px;
  margin-right: 4px;
}

/* ==== CONTENEDOR PRINCIPAL ==== */
.main-header {
  padding: 20px 0;
  background: #ffffff;     /* fondo igual para ambas filas */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==== FILA 1: 3 COLUMNAS ==== */
.logo img-fluid {
  max-height: 100px;  /* Ajusta si quieres más o menos */
  width: auto;
  height: auto;
}


.header-row-1 {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  width: 100%;
  min-height: 60px;  /* antes era más alto */
}

/* Columnas */
.header-col {
  display: flex;
  align-items: center;
}

.logo-col {
  justify-content: flex-start;
}

.search-col {
  justify-content: center;
}

.icons-col {
  justify-content: flex-end;
  gap: 20px;
}

/* ==== FILA 2: CATEGORÍAS ==== */

.header-row-2 {
  width: 100%;
  display: flex;
  justify-content: flex-start; /* ALINEAR A LA IZQUIERDA */
  padding-top: 2px;
}

.header-categories {
  list-style: none;
  display: flex;
  gap: 18px;         /* separación más pequeña */
  padding: 0;
  margin: 0;
}

.header-categories li a {
  font-weight: 600;
  font-size: 14px;   /* un poco más pequeño */
  color: #333;
  text-decoration: none;
}

.header-categories li a:hover {
  color: #5aa05f;
}

/* Aumentar el padding del input para no solapar la lupa */
#search_widget form input[type="text"] {
  padding-left: 40px !important;   /* antes era muy poco */
  height: 42px;
  border-radius: 25px;
}

/* Posicionar bien el icono de la lupa */
#search_widget .material-icons.search {
  position: absolute;
  left: 12px;
  top:30%;
  transform: translateY(-50%);
  color: green;
  font-size: 20px;
  pointer-events: none;
}

/* Asegurar que el contenedor sea relativo para posicionar correctamente */
#search_widget form {
  position: relative;
}
