/*
 Theme Name:   GeneratePress Child - Perfumes
 Template:     generatepress
 Version:      1.2
*/

/* ---- FONDO BLANCO UNIFORME ---- */
body,
.site,
.site-content,
.content-area,
.inside-article,
.entry-content,
.post-image,
.page-hero,
.container {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* ---- HEADER: LOGO + BUSCADOR ---- */
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #eee !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.inside-header {
    display: flex !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 40px !important;
    gap: 20px;
}

/* Logo */
.site-logo,
.site-branding-container {
    flex-shrink: 0;
    padding-left: 12px;
}

.site-logo a,
.custom-logo-link {
    display: flex;
    align-items: center;
}

.site-logo img,
.header-image,
.custom-logo {
    max-height: 65px !important;
    width: auto !important;
}

/* Ocultar titulo texto */
.site-branding .main-title,
.site-branding .site-description {
    display: none !important;
}

/* Ocultar navegacion */
.main-navigation,
#site-navigation,
.menu-toggle {
    display: none !important;
}

/* ---- BUSCADOR: ocupa todo el espacio ---- */
.header-search-wrapper {
    flex: 1;
    min-width: 0;
}

.header-search-form {
    display: flex;
    align-items: center;
    margin: 0;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    width: 100%;
}

.header-search-form:focus-within {
    background: #fff;
    border-color: #3483fa;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.1);
}

.header-search-input {
    flex: 1;
    padding: 11px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    min-width: 0;
}

.header-search-input::placeholder {
    color: #999;
}

.header-search-btn {
    padding: 11px 16px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.header-search-btn:hover {
    color: #3483fa;
}

/* ---- OCULTAR COMENTARIOS ---- */
.comments-area,
#comments,
.comment-form,
.comment-respond {
    display: none !important;
}

/* ---- RESPONSIVE HEADER ---- */
@media (max-width: 768px) {
    .inside-header {
        padding: 10px 16px !important;
        gap: 12px;
    }

    .site-logo img,
    .header-image,
    .custom-logo {
        max-height: 38px !important;
    }

    .header-search-input {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .site-logo img,
    .header-image,
    .custom-logo {
        max-height: 32px !important;
    }
}

/* ============================================================
   LISTADO DE PRODUCTOS (ARCHIVE / BLOG)
   ============================================================ */

.site-main > .post,
.site-main > article {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 24px !important;
    padding: 0 !important;
    background: #fff;
}

.site-main > .post:hover,
.site-main > article:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.site-main .post-image {
    display: block !important;
    background: #fafafa !important;
    margin: 0 !important;
    padding: 24px !important;
    text-align: center;
}

.site-main .post-image a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.site-main .post-image img {
    max-height: 240px;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    margin: 0 auto;
}

.site-main > .post .inside-article,
.site-main > article .inside-article {
    padding: 0 !important;
    background: #fff !important;
}

.site-main > .post .entry-header,
.site-main > article .entry-header {
    padding: 20px 24px 0 !important;
    margin: 0 !important;
}

.site-main .entry-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    color: #1a1a2e;
}

.site-main .entry-title a {
    color: #1a1a2e !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.site-main .entry-title a:hover {
    color: #e94560 !important;
}

.site-main .entry-summary,
.site-main .entry-content:not(:has(.producto-afiliado-container)) {
    padding: 0 24px 20px !important;
    margin: 0 !important;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.site-main .entry-meta {
    display: none !important;
}

/* Paginacion */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links .page-numbers:hover {
    border-color: #3483fa;
    color: #3483fa;
}

.nav-links .page-numbers.current {
    background: #3483fa;
    border-color: #3483fa;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #f8f9fa !important;
    color: #999 !important;
    border-top: 1px solid #eee;
}

.site-footer a {
    color: #3483fa !important;
}

.copyright-bar {
    display: none;
}

/* ---- HOME FULL WIDTH ---- */
body.home-fullwidth .site-content .content-area {
    width: 100% !important;
}

body.home-fullwidth .site-content .content-area,
body.home-fullwidth .inside-article,
body.home-fullwidth .entry-content,
body.home-fullwidth .container.grid-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home-fullwidth #right-sidebar,
body.home-fullwidth .sidebar,
body.home-fullwidth .entry-header,
body.home-fullwidth .entry-meta {
    display: none !important;
}

/* ============================================================
   HEADER: BUSCADOR + DROPDOWNS HOMBRE/MUJER
   ============================================================ */

/* Search in header */
.nav-search-form {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    min-width: 0;
}

.nav-search-form:focus-within {
    background: #fff;
    border-color: #3483fa;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.1);
}

.nav-search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    min-width: 0;
}

.nav-search-input::placeholder {
    color: #999;
}

.nav-search-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.nav-search-btn:hover {
    color: #3483fa;
}

/* Dropdowns container */
.nav-dropdowns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

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

.nav-dropdown-toggle {
    background: none;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.nav-dropdown-toggle:hover {
    color: #3483fa;
    background: #f5f7ff;
}

.nav-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu - visibility + opacity for smooth transition */
.nav-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 6px;
    list-style: none;
    z-index: 9999;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Inner container for the actual menu styling */
.nav-dropdown-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.nav-dropdown-menu li:first-child {
    border-radius: 10px 10px 0 0;
}

.nav-dropdown-menu li:last-child {
    border-radius: 0 0 10px 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
}

.nav-dropdown-menu {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 300px;
    padding: 6px 0;
    margin: 0;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 11px 20px;
    font-size: 13.5px;
    color: #333;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.nav-dropdown-menu li a:hover {
    background: #f5f7ff;
    color: #3483fa;
}

/* ---- RESPONSIVE NAV ELEMENTS ---- */
@media (max-width: 768px) {
    .inside-header {
        padding: 10px 16px !important;
        gap: 10px;
        flex-wrap: wrap;
    }

    .site-logo,
    .site-branding-container {
        padding-left: 0;
    }

    .nav-search-form {
        flex: 1 1 auto;
        min-width: 120px;
        order: 1;
    }

    .nav-search-input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .nav-dropdowns {
        order: 2;
    }

    .nav-dropdown-toggle {
        padding: 8px 10px;
        font-size: 13px;
    }

    .nav-dropdown-menu {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .inside-header {
        flex-wrap: wrap;
    }

    .nav-search-form {
        flex: 1 1 100%;
        order: 3;
    }

    .nav-dropdowns {
        order: 2;
        margin-left: auto;
    }

    .nav-dropdown-menu {
        position: fixed;
        left: 16px;
        right: 16px;
        top: auto;
        min-width: auto;
        width: auto;
    }
}
