/*
Theme Name: Hannan - Theme
Description: Tema personalizado para Hannan World
Version: 1.0.7
*/

/* Tus estilos CSS existentes */
html {
  scroll-behavior: smooth;
}

.bg-hero {
  position: relative;
}

.bg-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  z-index: -2;
}

.bg-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Estilos del carrusel */
.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 1.5rem;
}

.product-card {
  flex: 0 0 auto;
  width: 75%;
}

@media (min-width: 640px) {
  .product-card {
    width: 45%;
  }
}

@media (min-width: 1024px) {
  .product-card {
    width: 23%;
  }
}


/* ----------------------- */

/* Material Symbols base styles */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Tamaños específicos para nuestros íconos */
.material-symbols-outlined.text-base {
  font-size: 16px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.material-symbols-outlined.text-lg {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.text-xl {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.text-2xl {
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.text-4xl {
  font-size: 32px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

.material-symbols-outlined.text-6xl {
  font-size: 48px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

/* ----------------------- */

/* Estilos para WooCommerce */
.woocommerce-message {
    @apply bg-green-500 text-white p-4 rounded-lg mb-6;
}

.woocommerce-error {
    @apply bg-red-500 text-white p-4 rounded-lg mb-6;
}

.woocommerce-info {
    @apply bg-blue-500 text-white p-4 rounded-lg mb-6;
}

/* Animaciones para el carrito */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-notification {
    animation: slideInRight 0.3s ease-out;
}

/* Mejoras para la galería de productos */
.gallery-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
}

.gallery-thumbnail.border-primary {
    border-color: #b85814 !important;
}

/* Estados de botones deshabilitados */
.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos para el navbar */
.sticky-header {
    transition: all 0.3s ease;
}

/* Menú móvil */
#mobile-menu {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Contador del carrito */
.cart-count {
    font-size: 0.75rem;
    min-width: 1.25rem;
    height: 1.25rem;
}

/* Estados del menú móvil */
#mobile-menu-button .material-symbols-outlined {
    transition: transform 0.3s ease;
}

#mobile-menu-button:hover .material-symbols-outlined {
    transform: scale(1.1);
}

/* Enlaces del menú */
.header-nav a {
    position: relative;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    color: #b85814;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b85814;
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ----------------------- */

/* Estilos para el navbar */
.sticky-header {
    transition: all 0.3s ease;
}

/* Menú móvil */
#mobile-menu {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Contador del carrito */
.cart-count {
    font-size: 0.75rem;
    min-width: 1.25rem;
    height: 1.25rem;
}

/* Estados del menú móvil */
#mobile-menu-button .material-symbols-outlined {
    transition: transform 0.3s ease;
}

#mobile-menu-button:hover .material-symbols-outlined {
    transform: scale(1.1);
}

/* Enlaces del menú */
.header-nav a {
    position: relative;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    color: #b85814;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b85814;
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ----------------------- */

/* Estilos para el logo */
.custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

/* Asegurar que las imágenes se muestren correctamente */
img {
    max-width: 100%;
    height: auto;
}

/* Logo en header */
header img {
    display: block;
}

/* Logo en hero */
.bg-hero img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Responsive para logos */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 50px;
    }
    
    .bg-hero img {
        max-height: 120px;
    }
}

/* Modo oscuro para logo */
.dark .custom-logo {
    filter: brightness(0) invert(1);
}

/* Prevenir que las imágenes se desborden */
.container img {
    max-width: 100%;
}

.wc-block-cart__submit-container a,
.wc-block-components-button {
    border: 1px solid #d6d3d1;
    transition: 0.35s all;
}

.wc-block-cart__submit-container a:hover,
.wc-block-components-button:hover {
    background-color: #664d03;
}

/* Animaciones para el contador del carrito */
.cart-count {
    transition: all 0.3s ease-in-out;
}

.animate-bounce {
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Asegurar que el contador sea visible */
.cart-count {
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mejoras adicionales para el modal */
#quick-view-modal .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: #d6d3d1 transparent;
}

#quick-view-modal .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#quick-view-modal .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

#quick-view-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 3px;
}

#quick-view-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* Asegurar buen contraste */
#quick-view-modal .text-stone-900 {
    color: #1c1917;
}

#quick-view-modal .text-stone-700 {
    color: #44403c;
}

/* Sombras y efectos */
#quick-view-modal > div {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/*------ modal vista rapida -----*/
/* Estilos corregidos para el modal de vista rápida */
#quick-view-modal {
    z-index: 9999;
}

#quick-view-modal > div {
    max-width: 90vw;
    width: 1000px;
    margin: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

#quick-view-modal .modal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#quick-view-modal .flex {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
}

#quick-view-modal .md\:w-1\/2 {
    width: 50%;
    min-width: 300px;
}

/* Asegurar que las imágenes se muestren correctamente */
#modal-product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Espaciado y tipografía mejorados */
#modal-product-name {
    font-size: 1.875rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1c1917;
}

#modal-product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #57534e;
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

#modal-product-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Contenedor de categorías */
#modal-product-categories {
    margin-bottom: 1.5rem;
}

/* Botones del modal */
#quick-view-modal .mt-6 {
    margin-top: 1.5rem;
}

#quick-view-modal .flex.gap-3 {
    gap: 1rem;
}

/* Asegurar que el modal se vea bien en móviles */
@media (max-width: 768px) {
    #quick-view-modal > div {
        max-width: 95vw;
        margin: 1rem;
        max-height: 95vh;
    }
    
    #quick-view-modal .flex {
        flex-direction: column;
    }
    
    #quick-view-modal .md\:w-1\/2 {
        width: 100%;
        min-width: auto;
    }
    
    #modal-product-image {
        height: 300px;
    }
}

/* Estilos para el contenido de la página Acerca De */
.page-content-section h2 {
    font-family: "Newsreader", serif;
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.page-content-section h3 {
    font-family: "Newsreader", serif;
    font-size: 1.45rem; /* text-3xl */
    font-weight: 600; /* font-bold */
    color: #fdfdfd;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.page-content-section p {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content-section p:first-child {
    margin-top: 0;
}

.page-content-section p:last-child {
    margin-bottom: 0;
}

/* Line clamp para cards del blog */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
