/*
Theme Name: Neve Child - Delivery Calendar
Theme URI: https://themeisle.com/themes/neve/
Description: Tema hijo de Neve con calendario de entrega y pestañas adicionales para productos. Adaptado desde un tema hijo de Astra.
Author: Tu Nombre (Adaptado por v0)
Author URI: https://tudominio.com/
Template: neve
Version: 1.2.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neve-child-delivery-calendar
*/

/* 
   Nota: La importación directa del CSS del padre (@import) no es la práctica recomendada.
   Los estilos del padre (Neve) se encolarán correctamente a través de functions.php.
   Si necesitas añadir CSS global que sobreescriba a Neve, puedes hacerlo aquí.
*/

/* Estilos personalizados para el calendario de entrega (sin cambios respecto a la versión de Astra, salvo posibles ajustes de fuentes) */
.delivery-calendar-wrapper {
  margin: 20px 0;
  padding: 20px;
  border: 2px solid #007cba;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 124, 186, 0.1);
}

.delivery-calendar-title {
  font-weight: bold;
  margin-bottom: 15px;
  color: #007cba;
  font-size: 16px;
  text-align: center;
}

.delivery-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.calendar-day {
  padding: 12px 8px;
  text-align: center;
  border: 2px solid #ddd;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease;
  border-radius: 6px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-day.available {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border-color: #28a745;
  color: #155724;
}

.calendar-day.available:hover {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #1e7e34;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
  color: white;
  border-color: #004085;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

.calendar-day.selected::after {
  content: "✓";
  position: absolute;
  top: -5px;
  right: -5px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.day-name {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 2px;
}

.day-date {
  font-size: 14px;
  font-weight: normal;
}

.delivery-info {
  margin-top: 15px;
  text-align: center;
}

.delivery-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 10px;
  border-radius: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.delivery-date-confirmation {
  margin-top: 15px;
  padding: 12px;
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border: 1px solid #b6d4da;
  border-radius: 6px;
  color: #0c5460;
  text-align: center;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

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

.delivery-date-info {
  border-left: 4px solid #007cba !important;
  background: #f8f9fa !important;
  padding: 15px !important;
  margin: 15px 0 !important;
  border-radius: 4px !important;
}

/* Estilos para pestañas adicionales */
.custom-product-tabs {
  margin-top: 30px;
}

.custom-tab-content {
  padding: 20px;
  border: 1px solid #ddd;
  border-top: none;
}

/* Responsive */
@media (max-width: 768px) {
  .delivery-calendar {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .calendar-day {
    padding: 8px 4px;
    min-height: 50px;
  }

  .day-name {
    font-size: 10px;
  }

  .day-date {
    font-size: 12px;
  }
}
