/*
 Theme Name:   Greyka Child
 Theme URI:    https://greyka.com/
 Description:  Tema personalizado para la tienda Greyka
 Author:       Tu Nombre
 Template:     astra
 Version:      1.0.0
*/

/* Aquí podrás añadir todo tu CSS personalizado más adelante */

/* Estructura Base del Header */
:root {
    --color-greyka-onyx: #1A1C20;
    --color-vapor-white: #F4F5F7;
    --color-kinetic-blue: #2952FF;
    --color-concrete: #9CA3AF;
}

/* Global Body Background Application */
body, .gk-page-bg {
    background-color: var(--color-vapor-white);
    color: var(--color-greyka-onyx);
}

/* ============================================================================
   Custom Header Styles for Greyka
   Font: Inter, sans-serif
   ============================================================================ */

.gk-header {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff; /* White header stands out on Vapor White body */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 15px 0;
    color: var(--color-greyka-onyx);
}

.gk-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.gk-header-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- TOP ROW (Flexbox) --- */
.gk-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.gk-logo-area {
    /* Fixed width to perfectly align with bottom nav later */
    width: 200px;
    flex-shrink: 0;
}

.gk-logo-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.gk-main-logo {
    max-height: 100px;
    width: auto;
    display: block;

}

/* --- SEARCH BAR --- */
.gk-search-area {
    flex-grow: 1;
    max-width: 650px;
}

.gk-search-form {
    display: flex;
    align-items: center;
    background-color: var(--color-vapor-white);
    border: 1px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gk-search-form:focus-within {
    background-color: #ffffff;
    border-color: var(--color-kinetic-blue);
    box-shadow: 0 0 0 3px rgba(41, 82, 255, 0.1);
}

.gk-search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 16px;
    font-size: 15px;
    color: var(--color-greyka-onyx);
    height: 100%;
    outline: none;
    width: 100%;
}

.gk-search-field::placeholder {
    color: var(--color-concrete);
}

.gk-search-submit {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--color-concrete);
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.gk-search-submit:hover {
    color: var(--color-greyka-onyx);
}

/* --- HEADER ACTIONS --- */
.gk-actions-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-shrink: 0;
}

.gk-currency-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-concrete);
    cursor: pointer;
    transition: color 0.2s;
}

.gk-currency-selector:hover {
    color: var(--color-greyka-onyx);
}

.gk-separator {
    width: 1px;
    height: 24px;
    background-color: var(--color-vapor-white);
}

.gk-action-item {
    color: var(--color-greyka-onyx);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.gk-action-item:hover {
    color: var(--color-kinetic-blue);
}

.gk-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gk-action-item svg {
    color: var(--color-greyka-onyx);
    transition: color 0.2s;
}

.gk-action-item:hover svg {
    color: var(--color-kinetic-blue);
}

.gk-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-greyka-onyx); /* Fallback */
    box-shadow: 0 0 0 2px #ffffff;
}

/* Red badge for Wishlist - Keeping the visual design */
.gk-badge-red {
    background-color: #ef4444; 
}

/* Blue badge for Cart - Using Kinetic Blue */
.gk-badge-blue {
    background-color: var(--color-kinetic-blue); 
}

.gk-user-name {
    font-size: 15px;
    font-weight: 500;
}

/* --- BOTTOM ROW (Flexbox) Navigation --- */
.gk-bottom-row {
    display: flex;
    align-items: center;
    gap: 40px; /* Exact same gap as top row */
}

.gk-bottom-spacer {
    /* Exact same width as logo area to perfectly align Nav with Search bar */
    width: 200px;
    flex-shrink: 0;
}

.gk-nav-area {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.gk-main-nav {
    width: 100%;
}

.gk-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.gk-nav-item a {
    text-decoration: none;
    color: var(--color-greyka-onyx);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.gk-nav-item a:hover {
    color: var(--color-kinetic-blue);
}

.gk-has-dropdown a {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .gk-top-row, .gk-bottom-row {
        gap: 20px;
    }
    .gk-logo-area, .gk-bottom-spacer {
        width: 160px;
    }
    .gk-actions-area {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gk-header-rows {
        gap: 15px;
    }
    .gk-top-row {
        flex-wrap: wrap;
    }
    .gk-logo-area {
        width: auto;
    }
    .gk-search-area {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    .gk-actions-area {
        flex-grow: 1;
        justify-content: flex-end;
    }
    .gk-bottom-row {
        display: none; /* Hide desktop nav on mobile */
    }
}
