/* =========================
   HEADER MOCK (HOME)
   ========================= */

/* Iconos genéricos (forzamos por si vendors.css mete tamaños raros) */
.home-mock .icon {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor;
    stroke-width: 1.8 !important;
    fill: none !important;
    flex-shrink: 0;
    display: block;
}
.home-mock .icon-small {
    width: 18px !important;
    height: 18px !important;
}

/* TOP NAVBAR */
.top-navbar {
    background: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50; /* por encima del resto */
}

.top-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 130px;
}
.logo-img {
    opacity: 1;
    height: 50px;
    display: block;
    max-width: none;
}

/* SEARCH */
.search-bar {
    flex: 1;
    max-width: 750px;
    display: flex;
    align-items: center;
    background: var(--grey-04);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    gap: 12px;
}
.search-bar input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: .9rem;
    color: var(--grey-01);
}
.search-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease;
    color: var(--white);
    padding: 0;
}
.search-btn:hover { background: var(--primary-dark); }

/* Right icons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: .9rem;
    color: var(--grey-01);
}
.nav-icon-btn {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-01);
}
.nav-icon-btn:hover { color: var(--color-dark); }

/* Badge carrito */
.nav-icon-btn .nav-badge{
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
}

/* CATEGORY BAR */
.category-bar {
    background: var(--white);
    border-bottom: 1px solid rgba(17,24,39,0.05);
    position: relative;
    z-index: 45;
}
.category-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-bar-inner::-webkit-scrollbar{ display:none; }

.category-pill-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--grey-05);
    white-space: nowrap;
    font-size: .86rem;
    color: var(--grey-01);
}
.category-pill {
    white-space: nowrap;
    font-size: .88rem;
    cursor: pointer;
    color: var(--grey-01);
}
.category-pill.special {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive header */
@media (max-width: 768px) {
    .top-navbar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-actions {
        justify-content: flex-end;
        width: 100%;
    }
}

/* =========================
   DROPDOWN Language/Currency (MOCK)
   ========================= */

/* Que no se recorte el dropdown en el header */
.top-navbar,
.top-navbar .container,
.top-navbar-inner{
    overflow: visible !important;
}

/* panel */
#settings-dd { position: relative; }
#settings-dd .dropdown-menu.mock-dd-panel{
    width: 320px;
    padding: 18px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
    background: #fff;
    z-index: 9999 !important;

    /* Forzamos a que salga debajo del icono */
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
}

/* fields */
.mock-field{ position: relative; }
.mock-label{
    position:absolute;
    top:-9px;
    left:14px;
    background:#fff;
    padding:0 8px;
    font-size:13px;
    color:#202020;
    z-index:2;
    font-weight: 500;
}

.mock-select{
    width:100%;
    height:56px;
    border-radius:14px;
    border:2px solid #5D6C80;
    background:#fff;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    cursor:pointer;
}

.mock-value{
    font-size:18px;
    font-weight:500;
    color:#202020;
}

.mock-caret{
    font-size:14px;
    color:#202020;
    line-height:1;
}

/* Lista interna */
.mock-list{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top: calc(100% + 10px);
    background:#fff;
    border-radius: 14px;
    border: 1px solid #DEE6EA;
    box-shadow: 0 14px 24px rgba(15,23,42,.12);
    padding: 8px 0;
    max-height: 260px;
    overflow:auto;
    z-index: 99999;
}

.mock-field.is-open .mock-list{ display:block; }

.mock-option{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    color:#202020 !important;
    background:#fff;
    font-size:14px;
    text-decoration:none !important;
}

.mock-option:hover{ background:#F8F9FB; }
.mock-option.active{ font-weight:700; }
.mock-option img{ flex-shrink:0; }

/* =========================
   MEGA MENU width full + centered content
   (si ya lo tienes, esto lo consolida)
   ========================= */

#hover-category-menu{
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background: #fff;
    z-index: 60;
}

/* quitamos el límite del container SOLO aquí */
#hover-category-menu > .container{
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* centramos el contenido real */
#hover-category-menu .row{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
#hover-category-menu .sub-cat-menu{
    background: #fff;
}

/* =========================
   CARET ICON (flecha)
   ========================= */

.nav-icon-btn{
    gap: 6px;
}

.nav-caret{
    font-size: 12px;
    line-height: 1;
    margin-left: 2px;
    color: var(--grey-01);
    display: inline-block;
    transform: translateY(1px);
}

/* =========================
   USER DROPDOWN (logged)
   ========================= */

.user-dd .dropdown-menu{
    border-radius: 14px;
    border: 0;
    padding: 10px 0;
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
    min-width: 220px;
}

.user-dd-menu .dropdown-item{
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 10px 18px;
    color: #202020;
}

.user-dd-menu .dropdown-item i{
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #5D6C80;
}

.user-dd-menu .dropdown-item:hover{
    background: #F8F9FB;
}

.user-dd-menu .dropdown-divider{
    margin: 8px 0;
}

/* asegura que no se corte */
.top-navbar,
.top-navbar .container,
.top-navbar-inner{
    overflow: visible !important;
}

.nav-cta-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 40px;
    padding: 0 16px;

    border-radius: 10px;
    background: rgb(28,133,143);
    color: #fff !important;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;

    box-shadow: 0 8px 20px rgba(28,133,143,.25);
    transition: all .15s ease;
}

.nav-cta-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(28,133,143,.3);
}

.nav-cta-icon{
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2.4;
    fill: none;
    display: block;
}
