/* ---- Sticky Wrapper ---- */
.pg-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--pg-white);
}
.admin-bar .pg-sticky-wrapper { top: 32px; }

/* ---- Main Header ---- */
.pg-header {
    position: relative;
    z-index: 10;
    background: var(--pg-white);
    border-bottom: 1px solid var(--pg-border-subtle);
    transition: box-shadow 0.3s ease;
}
.pg-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pg-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ---- Logo ---- */
.pg-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.pg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.pg-logo-img {
    height: 30px;
    width: auto;
    max-width: none;
}
.pg-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--pg-dark);
    letter-spacing: -0.01em;
}
.pg-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 2px;
}
.pg-mobile-toggle:hover { background: var(--pg-light-grey); }

/* ---- Navigation ---- */
.pg-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
}
.pg-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 4px;
}
.pg-nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}
.pg-nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pg-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
    border-bottom: 2px solid transparent;
}
.pg-nav-item > a:hover { opacity: 0.7; }
.pg-nav-item.active > a {
    border-bottom-color: var(--pg-galaxy);
    opacity: 1;
}
.pg-nav-icon {
    width: 17px;
    height: 17px;
    flex: none;
    color: var(--pg-galaxy);
}
.pg-nav-chevron {
    transition: transform 0.2s;
    margin-top: 1px;
}
.pg-nav-item.active .pg-nav-chevron {
    transform: rotate(180deg);
}

/* ---- Header Icons ---- */
.pg-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.pg-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 2px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 4px;
    position: relative;
    color: var(--pg-dark);
    text-decoration: none;
    transition: background 0.2s;
}
button.pg-icon-btn {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
}
.pg-icon-btn:hover { background: var(--pg-light-grey); }
.pg-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--pg-galaxy);
    color: var(--pg-white);
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ---- Account Logged-In Indicator ---- */
.pg-account-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--pg-success);
    border: 2px solid var(--pg-white);
    pointer-events: none;
    box-shadow: 0 0 0 1px var(--pg-success);
}

/* ---- Header Locale ---- */
.pg-header-locale {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--pg-grey-light);
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--pg-border-light);
}
.pg-locale-sep {
    color: var(--pg-border-medium);
}

/* Search bar moved to search.css (full-screen overlay) */

/* ---- Preset "kit box" thumbnail grid ---------------------------------------
   Composed thumbnail for preset rackets without a featured image: the 3 real
   component images (bois on top, the 2 revêtements below). Defined here because
   the header CSS group loads on every page, while the host containers
   (.pg-mega-card-img, .pg-cat-card-img, .pg-featured-card-img) live on
   different pages. The parent container is already square; the grid fills it. */
.pg-preset-thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    width: 100%;
    height: 100%;
    background: var(--pg-light-grey);
    overflow: hidden;
}
.pg-preset-thumb-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    background: var(--pg-white);
}
.pg-preset-thumb-cell--bois {
    grid-column: 1 / -1;
}
.pg-preset-thumb-cell--face {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}
.pg-preset-thumb-cell--revers {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
.pg-preset-thumb-cell img,
.pg-preset-thumb-img {
    width: 100%;
    height: 100%;
    display: block;
}
/* Spécificité (0,2,1) > (0,1,1) de `.pg-cat-card-img img` (cover) pour que
   le kit reste en `contain` même sur la page catégorie où product-grid.css
   charge après. */
.pg-preset-thumb-grid .pg-preset-thumb-cell img,
.pg-preset-thumb-grid .pg-preset-thumb-img {
    object-fit: contain;
}

