/* Store header */
.pf-announcement {
    background: var(--surface-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.pf-announcement-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 37px;
}

.pf-announcement span { align-items: center; display: inline-flex; gap: 8px; }
.pf-announcement i { color: var(--secondary); }
.pf-announcement a { align-items: center; display: inline-flex; gap: 7px; text-decoration: none; }
.pf-announcement a:hover { color: var(--secondary); }

.pf-header { background: #fff; border-bottom: 1px solid #e9e7ed; position: relative; transition: box-shadow 220ms ease; z-index: 20; }

/* Lighter header on non-homepage pages (Shop, Product, Cart, Checkout,
   Account...) — no announcement bar above it, so the bar itself trims
   the height; this just tightens the bar's own vertical padding too. */
.pf-header--compact .pf-header-main { min-height: 74px; }

.pf-header-main {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 178px minmax(250px, 1fr) auto;
    min-height: 86px;
}

.pf-logo { display: inline-flex; max-width: 158px; }
.pf-logo img { height: auto; max-height: 53px; object-fit: contain; width: 100%; }

.pf-action {
    align-items: center;
    color: #292434;
    display: inline-flex;
    gap: 10px;
    text-align: left;
    text-decoration: none;
}

.pf-action span:not(.pf-cart-icon) { display: grid; line-height: 1.2; }
.pf-action small { color: #777182; font-size: 11px; font-weight: 500; }
.pf-action strong { font-size: 13px; font-weight: 700; white-space: nowrap; }

.pf-search {
    align-items: center;
    background: #f8f7fa;
    border: 1px solid #e3e0e8;
    border-radius: 7px;
    display: flex;
    min-width: 0;
    padding-left: 15px;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pf-search:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }
.pf-search > i { color: #746d7c; font-size: 15px; }
.pf-search input { background: transparent; border: 0; color: var(--text); flex: 1; font-size: 14px; height: 46px; min-width: 0; outline: none; padding: 0 12px; }
.pf-search input::placeholder { color: #96909d; }
.pf-search button { align-self: stretch; background: transparent; border: 0; border-left: 1px solid #e3e0e8; color: var(--primary); font-size: 12px; font-weight: 700; padding: 0 15px; }
.pf-search button:hover { background: #fff0f8; }

.pf-header-actions { align-items: center; display: flex; gap: 21px; }
.pf-action { gap: 8px; }
.pf-action > .fa-user { color: var(--text); font-size: 20px; }
.pf-action:hover { color: var(--primary); }

.pf-mobile-menu-toggle { display: none; background: transparent; border: 0; color: var(--text); font-size: 20px; padding: 0; }
.pf-mobile-menu-toggle:hover { color: var(--primary); }

.pf-cart-icon { align-items: center; color: var(--text); display: inline-flex; font-size: 20px; position: relative; }
.pf-cart-icon b { align-items: center; background: var(--primary); border: 2px solid #fff; border-radius: 50%; color: #fff; display: inline-flex; font-size: 9px; height: 17px; justify-content: center; position: absolute; right: -10px; top: -10px; width: 17px; }

.pf-category-nav { background: #fff; border-top: 1px solid #f0eef2; }
.pf-nav-wrap { align-items: center; display: flex; min-height: 50px; }
.pf-shop-all { align-items: center; color: var(--text); display: inline-flex; font-size: 14px; font-weight: 700; gap: 9px; margin-right: 27px; text-decoration: none; white-space: nowrap; }
.pf-shop-all i { color: var(--primary); }
.pf-shop-all:hover { color: var(--primary); }
/* Scoped to a DIRECT child of .pf-nav-wrap (not the bare ".pf-category-nav
   ul/li/a" descendant form used before) — that broader form also matched
   the mega-dropdown's own nested <ul>/<li>/<a> (.pf-mega-dropdown__grid and
   its columns/links live inside this same <nav>), and being more specific
   than their own classes, silently won and forced them to this row's
   flex/nowrap/overflow-x layout instead of their intended grid, breaking
   the dropdown (especially the single-column mobile layout). */
.pf-nav-wrap > ul { align-items: center; display: flex; flex: 1; gap: 10px; list-style: none; margin: 0; overflow-x: auto; padding: 0; scrollbar-width: none; }
.pf-nav-wrap > ul::-webkit-scrollbar { display: none; }
.pf-nav-wrap > ul > li { flex: 0 0 auto; }
.pf-nav-wrap > ul > li > a { border-radius: 6px; color: #4e4858; display: inline-block; font-size: 13px; font-weight: 600; padding: 16px 8px; text-decoration: none; white-space: nowrap; }
.pf-nav-wrap > ul > li > a:hover { background: var(--surface-tint); color: var(--primary); }
.pf-nav-wrap > ul .pf-nav-highlight { color: var(--primary); }

@media (max-width: 1120px) {
    .pf-header-main { gap: 16px; grid-template-columns: 150px minmax(210px, 1fr) auto; }
    .pf-header-actions { gap: 14px; }
    .pf-action span:not(.pf-cart-icon) { display: none; }
    .pf-action > .fa-user, .pf-cart-icon { font-size: 21px; }
    .pf-nav-wrap > ul { gap: 6px; }
}

@media (max-width: 760px) {
    .pf-announcement { font-size: 11px; }
    .pf-announcement-inner { justify-content: center; min-height: 34px; }
    .pf-announcement a { display: none; }
    /* max-content, not auto: a grid track sized "auto" has an infinite growth
       limit, so with .pf-search hidden below, these two flanking columns
       soak up all the leftover free space meant for the middle 1fr track and
       blow the header past the viewport. max-content caps their growth at
       what the toggle/actions content actually needs. */
    .pf-header-main { gap: 13px; grid-template-columns: max-content minmax(116px, 1fr) max-content; min-height: 68px; }
    .pf-logo { max-width: 132px; }
    /* Scoped to .pf-header: the mobile search overlay (#pf-mobile-search,
       outside <header>) reuses the same .pf-search form markup to show the
       icon/input/submit button — an unscoped rule here hid that too,
       leaving only the overlay's close button visible. */
    .pf-header .pf-search { display: none; }
    .pf-header-actions { gap: 15px; }
    .pf-mobile-menu-toggle { display: inline-flex; align-items: center; }
    .pf-category-nav { border-top: 1px solid #eeeaf0; }
    .pf-nav-wrap { min-height: 46px; padding-right: 0; }
    .pf-shop-all { font-size: 12px; margin-right: 17px; }
    .pf-nav-wrap > ul { gap: 4px; }
    .pf-nav-wrap > ul > li > a { font-size: 12px; padding: 14px 6px; }
}

@media (max-width: 420px) {
    .pf-header-main { gap: 10px; }
    .pf-logo { max-width: 112px; }
    .pf-header-actions { gap: 12px; }
}

.pf-search-suggest {
    background: #fff;
    border: 1px solid #e9e7ed;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(43, 30, 120, 0.16);
    left: 0;
    margin-top: 10px;
    max-height: 420px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 40;
}

.pf-search-suggest__list { list-style: none; margin: 0; padding: 8px; }

.pf-search-suggest__item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    line-height: normal;
    min-width: 0;
    padding: 8px;
    text-align: left;
    width: 100%;
}

.pf-search-suggest__item:hover,
.pf-search-suggest__item.is-active { background: var(--surface-tint); }

.pf-search-suggest__item img { border-radius: 6px; flex: 0 0 auto; height: 44px; object-fit: cover; width: 44px; }
.pf-search-suggest__info { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; text-align: left; }
.pf-search-suggest__title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-search-suggest__price { color: var(--primary); font-size: 12px; font-weight: 700; }
.pf-search-suggest__price ins { text-decoration: none; }
.pf-search-suggest__price del { color: var(--text-light); margin-right: 4px; text-decoration: none; }

.pf-search-suggest__see-all {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--border);
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    width: 100%;
}

.pf-search-suggest__see-all:hover { background: var(--surface-tint); }

.pf-search-suggest__empty { color: var(--text-light); font-size: 13px; margin: 0; padding: 16px; }

#pf-category-menu{
    display:flex;
    align-items:center;
    list-style:none;
    margin:0;
    padding:0;
}

#pf-category-menu > li{
    position:relative;
}

#pf-category-menu > li > a{
    display:block;
    padding:12px 18px;
    text-decoration:none;
}

.pf-dropdown{
    position:absolute;
    top:100%;
    left:0;
    min-width:220px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    list-style:none;
    margin:0;
    padding:8px 0;

    /* IMPORTANT */
    display:none;
    z-index:99999;
}

.pf-dropdown li{
    width:100%;
}

.pf-dropdown li a{
    display:block;
    padding:10px 18px;
    white-space:nowrap;
}

.pf-menu-item:hover > .pf-dropdown{
    display:block;
}

/* Mega menu: title (top level) -> category columns -> subcategory list,
   driven by the WordPress menu assigned to Appearance > Menus > Primary Menu. */
.pf-mega-menu .pf-menu-item { position: relative; }

.pf-mega-menu .pf-menu-item--has-dropdown > a {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.pf-mega-menu .pf-menu-item--has-dropdown > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: 9px;
    font-weight: 900;
    color: #9c96a6;
    transition: transform 200ms ease;
}

.pf-mega-menu .pf-menu-item--has-dropdown:hover > a::after,
.pf-mega-menu .pf-menu-item--has-dropdown:focus-within > a::after { transform: rotate(180deg); }

.pf-mega-dropdown {
    background: #fff;
    border: 0;
    border-radius: 6px;
    /* A tighter, closer-to-the-surface shadow (matching Motta's "0 2px 6px
       rgba(0,0,0,.15)" card style) instead of a large diffuse glow — reads
       as a crisp dropdown rather than a floating panel. */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    left: 0;
    /* Flush against the trigger (no gap) so the pointer never crosses dead
       space between the link and the panel while moving down into it — a
       gap here is what breaks :hover and makes the dropdown seem to not
       work at all. The breathing room comes from padding-top instead,
       which is still inside the hoverable box. */
    top: 100%;
    padding: 23px 8px 20px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    visibility: hidden;
    z-index: 50;
}

.pf-menu-item--has-dropdown:hover > .pf-mega-dropdown,
.pf-menu-item--has-dropdown:focus-within > .pf-mega-dropdown,
.pf-menu-item--has-dropdown.is-open > .pf-mega-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

/* Nested (4th-level) lists, e.g. Shop By > Trinkets > Fashion Jewelry > Necklaces. */
.pf-mega-col__list .pf-mega-col__list {
    border-top: 1px dashed var(--border);
    margin: 6px 0 6px 4px;
    padding-top: 6px;
}
.pf-mega-col__list .pf-mega-col__list a { color: var(--text-light); font-size: 12px; padding-left: 8px; }

.pf-mega-dropdown__grid {
    display: grid;
    gap: 24px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    list-style: none;
    margin: 0;
    max-width: 90vw;
    padding: 0 14px;
}

.pf-mega-col__heading {
    color: var(--text);
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 2;
    margin-bottom: 4px;
    border-radius: 6px;
    padding: 4px 10px;
    white-space: nowrap;
}

.pf-mega-col__heading:hover { background: var(--surface-tint); color: var(--primary); }

.pf-mega-col__list { list-style: none; margin: 0; padding: 0; }
.pf-mega-col__list li + li { margin-top: 1px; }

.pf-mega-col__list a {
    border-radius: 6px;
    color: var(--text-light);
    display: block;
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap;
}

.pf-mega-col__list a:hover { background: var(--surface-tint); color: var(--primary); }

/* Group divider within a column, e.g. "Wall Art" grouping "Finger Print
   frame", "Canvas Frame", ... underneath it — bolder than a leaf link so
   it reads as a heading, not just another item in the list. */
.pf-mega-subheading + li { margin-top: 6px; }
.pf-mega-subheading__title {
    color: var(--text);
    font-weight: 600;
}
.pf-mega-subheading__title:hover { background: var(--surface-tint); color: var(--primary); }

@media (max-width: 980px) {
    .pf-mega-dropdown { left: auto; right: 0; }
    .pf-mega-dropdown__grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

/* Touch devices (see assets/js/mega-menu.js): tapping the top-level item opens
   the dropdown as a full-width panel anchored under the header, since hover
   doesn't exist and a floating multi-column flyout doesn't fit a phone/tablet
   screen. JS sets `top` inline to the header's actual bottom edge. */
@media (max-width: 760px) {
    .pf-mega-dropdown {
        border-radius: 0;
        left: 0;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        position: fixed;
        right: 0;
        width: 100%;
    }

    .pf-mega-dropdown__grid {
        gap: 4px;
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        max-width: none;
    }

    .pf-mega-col { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
    .pf-mega-col:last-child { border-bottom: 0; }
    .pf-mega-col__heading { font-size: 15px; padding: 6px 0; }
    .pf-mega-col__list a { font-size: 14px; padding: 8px 0; }
}

/* Off-canvas mobile menu (assets/js/mobile-menu.js) */
.pf-mobile-menu { inset: 0; position: fixed; z-index: 110; }
.pf-mobile-menu[hidden] { display: none; }

.pf-mobile-menu__overlay {
    background: rgba(36, 18, 95, 0.45);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 250ms ease;
}

.pf-mobile-menu.is-open .pf-mobile-menu__overlay { opacity: 1; }

.pf-mobile-menu__panel {
    background: #fff;
    bottom: 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    left: 0;
    max-width: 320px;
    overflow-y: auto;
    position: absolute;
    top: 0;
    transform: translateX(-100%);
    transition: transform 250ms ease;
    width: 86%;
}

.pf-mobile-menu.is-open .pf-mobile-menu__panel { transform: translateX(0); }

.pf-mobile-menu__header {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

.pf-mobile-menu__close { background: transparent; border: 0; color: var(--text); font-size: 20px; height: 36px; width: 36px; }
.pf-mobile-menu__close:hover { color: var(--primary); }

.pf-mobile-menu__account {
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
}

.pf-mobile-menu__account a {
    align-items: center;
    color: var(--text);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    padding: 10px 4px;
    text-decoration: none;
}

.pf-mobile-menu__account a:hover { color: var(--primary); }
.pf-mobile-menu__account i { color: var(--primary); width: 18px; text-align: center; }

.pf-mobile-menu__nav { padding: 8px 8px 24px; }

.pf-mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.pf-mobile-nav-list li { border-bottom: 1px solid var(--border); position: relative; }
.pf-mobile-nav-list li:last-child { border-bottom: 0; }

.pf-mobile-nav-list > li > a {
    color: var(--text);
    display: block;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 34px 13px 8px;
    text-decoration: none;
}

.pf-mobile-nav-list a:hover,
.pf-mobile-nav-list .pf-nav-highlight { color: var(--primary); }

.pf-mobile-submenu-toggle {
    background: transparent;
    border: 0;
    color: var(--text-light);
    height: 40px;
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
}

.pf-mobile-submenu-toggle i { transition: transform 200ms ease; }
.is-submenu-open > .pf-mobile-submenu-toggle i { transform: rotate(180deg); }

.pf-mobile-submenu {
    display: none;
    list-style: none;
    margin: 0 0 8px;
    padding: 0 0 0 14px;
}

.is-submenu-open > .pf-mobile-submenu { display: block; }

.pf-mobile-submenu a {
    color: var(--text-light);
    display: block;
    font-size: 13px;
    padding: 9px 8px;
    text-decoration: none;
}

body.pf-mobile-menu-open { overflow: hidden; }

@media (min-width: 761px) {
    .pf-mobile-menu-toggle,
    .pf-mobile-menu { display: none; }
}