/* ============================================================
   LAPROM PREMIUM HEADER — eCommerce Pill Design
   ============================================================ */

/* Google Fonts loaded via PHP wp_enqueue_style for better performance */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --lph-orange: #E87A15;
    --lph-orange-dark: #C96810;
    --lph-orange-light: #FFF8F0;
    --lph-orange-glow: rgba(232, 122, 21, 0.15);
    --lph-text: #1a1a2e;
    --lph-text-secondary: #4a5568;
    --lph-text-muted: #94a3b8;
    --lph-border: #e2e8f0;
    --lph-border-light: #f1f5f9;
    --lph-bg: #ffffff;
    --lph-bg-subtle: #f8fafc;
    --lph-green: #059669;
    --lph-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --lph-shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --lph-shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --lph-shadow-xl: 0 20px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08);
    --lph-radius: 50px;
    --lph-radius-inner: 12px;
    --lph-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --lph-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --lph-header-height: 72px;
    --lph-nav-height: 48px;
}

/* ============================================================
   HIDE EXISTING THEME HEADER
   ============================================================ */
.site-header,
#masthead,
.header-wrapper,
.header-main,
.header-top,
#header,
.top-header,
.main-header,
header.banner,
.flatsome-header,
.header-inner,
.header-bg,
.nav-container,
.elementor-location-header,
#Top_bar {
    display: none !important;
}

/* ============================================================
   WRAPPER
   ============================================================ */
.lph-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: var(--lph-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all var(--lph-transition);
}

.lph-wrapper *,
.lph-wrapper *::before,
.lph-wrapper *::after {
    box-sizing: border-box;
}

/* Spacer to push content down */
.lph-spacer {
    height: calc(var(--lph-header-height) + var(--lph-nav-height));
    transition: height var(--lph-transition);
}


/* ============================================================
   ADMIN BAR OFFSET (when logged in)
   ============================================================ */
body.admin-bar .lph-wrapper {
    top: 32px;
}

body.admin-bar .lph-spacer {
    height: calc(var(--lph-header-height) + var(--lph-nav-height) + 32px);
}

body.admin-bar .lph-mega-menu {
    top: calc(var(--lph-header-height) + var(--lph-nav-height) + 32px);
}

body.admin-bar .lph-mobile-search-overlay {
    top: 32px;
}

body.admin-bar.lph-body-locked .lph-mobile-menu {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .lph-wrapper {
        top: 46px;
    }
    body.admin-bar .lph-spacer {
        height: calc(var(--lph-header-height) + var(--lph-nav-height) + 46px);
    }
}

/* ============================================================
   MAIN HEADER BAR — Full Width
   ============================================================ */
.lph-main {
    width: 100%;
    margin: 0;
    background: var(--lph-bg);
    border-radius: 0;
    box-shadow: var(--lph-shadow-md);
    transition: all var(--lph-transition);
    border-top: none;
    border-bottom: none;
    position: relative;
    overflow: visible;
}

.lph-main::before {
    display: none;
}

.lph-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--lph-header-height);
    transition: all var(--lph-transition);
}

/* ===== SCROLLED STATE ===== */
.lph-wrapper.lph-scrolled .lph-main {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

.lph-wrapper.lph-scrolled .lph-container {
    max-width: 1200px;
    height: 60px;
}

.lph-wrapper.lph-scrolled .lph-spacer,
.lph-wrapper.lph-scrolled ~ .lph-spacer {
    height: calc(60px + var(--lph-nav-height));
}

.lph-wrapper.lph-scrolled .lph-nav-row {
    border-top-color: var(--lph-border);
}

.lph-wrapper.lph-scrolled .lph-nav-inner {
    height: 40px;
    max-width: 1200px;
    padding: 0 20px;
}

/* ============================================================
   LOGO
   ============================================================ */
.lph-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--lph-transition), opacity var(--lph-transition);
}

.lph-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: height var(--lph-transition);
}

.lph-logo:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.lph-wrapper.lph-scrolled .lph-logo img {
    height: 40px;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.lph-search {
    flex: 0 1 460px;
    position: relative;
    min-width: 0;
}

.lph-search-form {
    display: flex;
    align-items: center;
    background: var(--lph-bg-subtle);
    border: 2px solid var(--lph-border);
    border-radius: var(--lph-radius);
    height: 46px;
    padding: 0 6px 0 16px;
    transition: all var(--lph-transition);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.lph-search-form:focus-within {
    border-color: var(--lph-orange);
    box-shadow: 0 0 0 4px var(--lph-orange-glow);
    background: var(--lph-bg);
}

.lph-search-icon {
    width: 18px;
    height: 18px;
    color: var(--lph-text-muted);
    flex-shrink: 0;
    transition: color var(--lph-transition);
}

.lph-search-form:focus-within .lph-search-icon {
    color: var(--lph-orange);
}

.lph-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--lph-text) !important;
    padding: 0 12px !important;
    font-family: var(--lph-font);
    height: 100%;
    margin: 0;
    -webkit-appearance: none;
}

.lph-search-input::placeholder {
    color: var(--lph-text-muted);
    font-weight: 400;
}

.lph-search-clear {
    display: none !important;
    width: 28px;
    height: 28px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: var(--lph-border) !important;
    color: #666 !important;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--lph-transition);
    padding: 0;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

.lph-search-clear:hover {
    background: #c5d0da !important;
    color: var(--lph-text) !important;
}

.lph-search.lph-has-value .lph-search-clear {
    display: none;
}

/* Search Submit Button */
.lph-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: var(--lph-orange) !important;
    color: #fff !important;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--lph-transition);
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    margin-left: 4px;
}
.lph-search-submit:hover {
    background: var(--lph-orange-dark) !important;
    transform: scale(1.08);
}
.lph-search-submit svg {
    display: block;
    color: inherit;
}

.lph-wrapper.lph-scrolled .lph-search-form {
    height: 40px;
}
.lph-wrapper.lph-scrolled .lph-search-submit {
    width: 30px;
    height: 30px;
}

/* ===== Search Dropdown ===== */
.lph-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--lph-bg);
    border-radius: var(--lph-radius-inner);
    box-shadow: var(--lph-shadow-xl);
    border: 1px solid var(--lph-border);
    z-index: 100;
    display: none;
    overflow: hidden;
    max-height: 460px;
    overflow-y: auto;
}

.lph-search-dropdown.lph-dropdown-visible {
    display: block;
    animation: lph-slide-down 0.25s ease;
}

@keyframes lph-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lph-search-loading {
    display: none;
    padding: 24px;
    text-align: center;
    color: var(--lph-text-muted);
    font-size: 13px;
    font-weight: 500;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.lph-search-loading.lph-visible {
    display: flex;
}

.lph-search-empty {
    display: none;
    padding: 32px 24px;
    text-align: center;
    color: var(--lph-text-muted);
}

.lph-search-empty.lph-visible {
    display: block;
}

.lph-search-empty svg {
    margin: 0 auto 8px;
    opacity: 0.4;
}

.lph-search-empty p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Search Result Item */
.lph-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--lph-text);
    transition: background var(--lph-transition);
    border-bottom: 1px solid var(--lph-border-light);
    cursor: pointer;
}

.lph-search-item:last-child {
    border-bottom: none;
}

.lph-search-item:hover,
.lph-search-item.lph-search-active {
    background: var(--lph-orange-light);
}

.lph-search-item-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--lph-bg-subtle);
    flex-shrink: 0;
    border: 1px solid var(--lph-border-light);
}

.lph-search-item-info {
    flex: 1;
    min-width: 0;
}

.lph-search-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--lph-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.3;
}

.lph-search-item-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--lph-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-top: 2px;
}

.lph-search-item-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--lph-orange);
    white-space: nowrap;
    flex-shrink: 0;
}

.lph-search-item-price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.lph-search-view-all {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    background: var(--lph-bg-subtle);
    color: var(--lph-orange);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid var(--lph-border-light);
    transition: all var(--lph-transition);
}

.lph-search-view-all.lph-visible {
    display: flex;
}

.lph-search-view-all:hover {
    background: var(--lph-orange-light);
    color: var(--lph-orange-dark);
}

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.lph-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.lph-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--lph-text-secondary);
    transition: all var(--lph-transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.lph-btn:hover {
    background: var(--lph-bg-subtle);
    color: var(--lph-text);
    border-color: var(--lph-border);
}

.lph-btn svg {
    flex-shrink: 0;
}

.lph-btn-phone:hover {
    color: var(--lph-green);
}

.lph-btn-contact:hover {
    color: var(--lph-orange);
}

/* ============================================================
   CART ICON & POPUP — Inline in header top-right (.lph-actions)
   ============================================================ */
.lph-cart {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
}

.lph-cart-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lph-orange) 0%, var(--lph-orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--lph-transition);
    box-shadow: 0 3px 10px rgba(232, 122, 21, 0.3);
}

.lph-cart-circle svg {
    color: #fff;
}

.lph-cart-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(232, 122, 21, 0.45);
}

/* Cart tooltip — disabled in header context to avoid clutter */
.lph-cart-circle::before { content: none; }

.lph-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--lph-text);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--lph-bg);
    line-height: 1;
    transition: all var(--lph-transition);
}

.lph-cart-count:empty,
.lph-cart-count[data-count="0"] {
    display: none;
}

/* Animate count change */
@keyframes lph-count-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.lph-cart-count.lph-count-updated {
    animation: lph-count-pop 0.3s ease;
}

/* Subtle pulse ring when cart has items */
.lph-cart-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--lph-orange);
    opacity: 0;
    animation: lph-cart-ring 3s ease-in-out infinite;
}
@keyframes lph-cart-ring {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.08); }
}

.lph-wrapper.lph-scrolled .lph-cart-circle {
    width: 38px;
    height: 38px;
}

/* ===== Cart Popup — drops DOWN from header cart icon ===== */
.lph-cart-popup {
    position: absolute;
    top: calc(100% + 12px);
    bottom: auto;
    right: 0;
    width: 320px;
    background: var(--lph-bg);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--lph-border-light);
    z-index: 999999;
    display: none;
    overflow: hidden;
}

.lph-cart-popup.lph-popup-visible {
    display: block;
    animation: lph-slide-down 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lph-slide-down {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

.lph-cart-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--lph-border-light);
    background: var(--lph-bg-subtle);
}

.lph-cart-popup-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--lph-text);
    margin: 0;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.lph-cart-popup-count {
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: var(--lph-orange);
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.lph-cart-popup-body {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 4px 0;
}

.lph-cart-popup-loading {
    display: none;
    padding: 32px;
    text-align: center;
}

.lph-cart-popup-loading.lph-visible {
    display: block;
}

.lph-cart-popup-empty {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--lph-text-muted);
}

.lph-cart-popup-empty.lph-visible {
    display: block;
}

.lph-cart-popup-empty svg {
    margin: 0 auto 10px;
    opacity: 0.3;
}

.lph-cart-popup-empty p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Cart Item */
.lph-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--lph-border-light);
    transition: background var(--lph-transition);
}

.lph-cart-item:last-child {
    border-bottom: none;
}

.lph-cart-item:hover {
    background: var(--lph-bg-subtle);
}

.lph-cart-item-img {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    background: var(--lph-bg-subtle);
    flex-shrink: 0;
    border: 1px solid var(--lph-border-light);
}

.lph-cart-item-info {
    flex: 1;
    min-width: 0;
}

.lph-cart-item-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lph-text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    line-height: 1.3;
}

.lph-cart-item-name:hover {
    color: var(--lph-orange);
}

.lph-cart-item-meta {
    font-size: 11px;
    color: var(--lph-text-muted);
    font-weight: 500;
    margin-top: 1px;
}

.lph-cart-item-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--lph-orange);
    white-space: nowrap;
    flex-shrink: 0;
}

.lph-cart-item-price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Cart Footer */
.lph-cart-popup-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--lph-border-light);
    background: var(--lph-bg-subtle);
}

/* Subtotal removed — total moved inside checkout button */
.lph-cart-popup-subtotal { display: none !important; }

.lph-btn-checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 8px 14px;
    background: var(--lph-orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--lph-transition);
    font-family: var(--lph-font);
    box-shadow: 0 3px 10px rgba(232, 122, 21, 0.25);
}

.lph-btn-checkout-label {
    flex: 1;
    text-align: left;
    line-height: 1.2;
}

.lph-btn-checkout-total {
    font-size: 14px;
    font-weight: 800;
    background: rgba(255,255,255,0.18);
    padding: 5px 10px;
    border-radius: 7px;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    line-height: 1.1;
}

.lph-btn-checkout svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.lph-btn-checkout:hover {
    background: var(--lph-orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 122, 21, 0.4);
}

.lph-btn-checkout:hover .lph-btn-checkout-total {
    background: rgba(255,255,255,0.26);
}

/* ============================================================
   CATEGORY NAVIGATION ROW (inside pill)
   ============================================================ */
.lph-nav-row {
    background: var(--lph-bg-subtle);
    border-top: none;
    transition: all var(--lph-transition);
    position: relative;
}
.lph-nav-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lph-border) 30%, var(--lph-border) 70%, transparent);
    opacity: 0.5;
}

.lph-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: var(--lph-nav-height);
    gap: 0;
}

.lph-nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lph-text-secondary);
    text-decoration: none;
    position: relative;
    transition: all var(--lph-transition);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lph-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--lph-orange);
    border-radius: 3px 3px 0 0;
    transition: width var(--lph-transition);
}

.lph-nav-link:hover {
    color: var(--lph-orange);
    background: var(--lph-orange-light);
    border-radius: 6px;
}

.lph-nav-link:hover::after,
.lph-nav-link.lph-nav-active::after {
    width: 70%;
}

.lph-nav-link.lph-nav-active {
    color: var(--lph-orange);
}

/* ============================================================
   CATALOG PRODUSE BUTTON + MEGA MENU
   ============================================================ */
.lph-catalog-wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}
.lph-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 18px;
    background: var(--lph-orange);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: var(--lph-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(232, 122, 21, 0.28);
}
.lph-catalog-btn:hover {
    background: var(--lph-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(232, 122, 21, 0.42);
}
.lph-catalog-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(232, 122, 21, 0.28);
}
.lph-catalog-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.lph-catalog-wrap:hover .lph-catalog-btn svg {
    transform: rotate(90deg);
}

/* Mega Menu Dropdown — full width bar */
.lph-mega-menu {
    position: fixed;
    top: calc(var(--lph-header-height) + var(--lph-nav-height));
    left: 0;
    width: 100vw;
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    background: #f8fafc;
    border: none;
    border-top: 1px solid var(--lph-border);
    border-bottom: 2px solid var(--lph-border-light);
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    padding-left: max(0px, calc((100vw - 1200px) / 2));
    padding-right: max(0px, calc((100vw - 1200px) / 2));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999997;
}
.lph-wrapper.lph-scrolled .lph-mega-menu {
    top: calc(60px + 40px);
}
.lph-catalog-wrap:hover .lph-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nav separator (thin vertical line) */
.lph-nav-sep {
    width: 1px;
    height: 18px;
    background: var(--lph-border);
    flex-shrink: 0;
    margin: 0 4px;
}

/* Nav spacer — pushes utility links to the right */
.lph-nav-spacer {
    flex: 1;
}

/* Inline category links */
.lph-nav-cat-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lph-text);
    text-decoration: none;
    position: relative;
    transition: color var(--lph-transition);
    white-space: nowrap;
}

.lph-nav-cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--lph-orange);
    border-radius: 3px 3px 0 0;
    transition: width var(--lph-transition);
}

.lph-nav-cat-link:hover {
    color: var(--lph-orange);
}

.lph-nav-cat-link:hover::after,
.lph-nav-cat-link.lph-nav-active::after {
    width: 60%;
}

.lph-nav-cat-link.lph-nav-active {
    color: var(--lph-orange);
}

/* Mega Menu Items */
.lph-mega-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 16px;
    border-radius: 0;
    border-right: 1px solid var(--lph-border-light);
    text-decoration: none !important;
    color: var(--lph-text) !important;
    transition: background 0.15s ease, color 0.15s ease;
    min-width: 0;
    position: relative;
}
.lph-mega-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--lph-orange);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.lph-mega-item:last-child {
    border-right: none;
}
.lph-mega-item:hover {
    background: var(--lph-orange-light);
    color: var(--lph-orange) !important;
}
.lph-mega-item:hover::after {
    transform: scaleX(1);
    opacity: 1;
}
.lph-mega-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}
.lph-mega-item:hover .lph-mega-icon {
    transform: scale(1.12);
    box-shadow: 0 3px 10px rgba(232, 122, 21, 0.18);
}
.lph-mega-label {
    font-family: var(--lph-font);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lph-mega-arrow {
    display: none;
}


/* Mobile search icon button (visible on mobile only) */
.lph-mobile-search-trigger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--lph-bg-subtle);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--lph-text-secondary);
    transition: all var(--lph-transition);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.lph-mobile-search-trigger:hover {
    background: var(--lph-orange-light);
    color: var(--lph-orange);
}

/* Mobile search overlay */
.lph-mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--lph-bg);
    z-index: 1000002;
    padding: 10px 12px;
    box-shadow: var(--lph-shadow-md);
    animation: lph-slide-down 0.2s ease;
}

.lph-mobile-search-overlay.lph-search-overlay-visible {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lph-mobile-search-overlay form {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--lph-bg-subtle);
    border: 2px solid var(--lph-orange);
    border-radius: 12px;
    height: 44px;
    padding: 0 14px;
}

.lph-mobile-search-overlay input[type="text"] {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 15px;
    font-weight: 500;
    color: var(--lph-text) !important;
    padding: 0 10px !important;
    font-family: var(--lph-font);
    -webkit-appearance: none;
}

.lph-mobile-search-overlay .lph-search-overlay-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--lph-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lph-text-secondary);
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.lph-mobile-search-overlay .lph-search-overlay-close:hover {
    background: var(--lph-text-muted);
    color: #fff;
}

/* ============================================================
   MOBILE TOGGLE (Hidden on desktop)
   ============================================================ */
.lph-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.lph-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.lph-hamburger span {
    display: block;
    height: 2.5px;
    background: var(--lph-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.lph-mobile-toggle.lph-menu-open .lph-hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.lph-mobile-toggle.lph-menu-open .lph-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.lph-mobile-toggle.lph-menu-open .lph-hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.lph-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--lph-bg);
    z-index: 1000001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--lph-shadow-xl);
}

.lph-mobile-menu.lph-mobile-open {
    transform: translateX(0);
}

.lph-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.lph-mobile-backdrop.lph-backdrop-visible {
    opacity: 1;
    visibility: visible;
}

.lph-mobile-menu-inner {
    padding: 0;
}

.lph-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lph-border-light);
}

.lph-mobile-menu-header .lph-logo img {
    height: 32px;
}

.lph-mobile-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--lph-bg-subtle);
    border-radius: 50%;
    font-size: 24px;
    color: var(--lph-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--lph-transition);
    line-height: 1;
}

.lph-mobile-close:hover {
    background: var(--lph-border);
    color: var(--lph-text);
}

/* Mobile Search */
.lph-mobile-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--lph-border-light);
}

.lph-mobile-search form {
    display: flex;
    align-items: center;
    background: var(--lph-bg-subtle);
    border: 2px solid var(--lph-border);
    border-radius: 12px;
    height: 48px;
    padding: 0 14px;
    transition: all var(--lph-transition);
}

.lph-mobile-search form:focus-within {
    border-color: var(--lph-orange);
    box-shadow: 0 0 0 3px var(--lph-orange-glow);
}

.lph-mobile-search .lph-search-icon {
    color: var(--lph-text-muted);
    flex-shrink: 0;
}

.lph-mobile-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 15px;
    font-weight: 500;
    color: var(--lph-text) !important;
    padding: 0 12px !important;
    font-family: var(--lph-font);
    -webkit-appearance: none;
}

.lph-mobile-search-input::placeholder {
    color: var(--lph-text-muted);
}

/* Mobile Catalog CTA */
.lph-mobile-catalog-cta {
    padding: 12px 20px;
}
.lph-mobile-catalog-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--lph-orange) 0%, #d06a0c 100%);
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-family: var(--lph-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(232, 122, 21, 0.3);
    transition: all 0.2s ease;
}
.lph-mobile-catalog-btn:hover {
    box-shadow: 0 6px 20px rgba(232, 122, 21, 0.45);
    transform: translateY(-1px);
}
.lph-mobile-catalog-arrow {
    margin-left: auto;
    opacity: 0.7;
}

/* Mobile Section Labels */
.lph-mobile-section-label {
    padding: 10px 20px 6px;
    font-family: var(--lph-font);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lph-text-muted);
}

/* Mobile Nav Links */
.lph-mobile-nav {
    padding: 4px 0;
}

.lph-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    text-decoration: none;
    color: var(--lph-text);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--lph-transition);
    border-bottom: 1px solid var(--lph-border-light);
    opacity: 0;
    transform: translateX(-20px);
}

.lph-mobile-menu.lph-mobile-open .lph-mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
    transition-delay: calc(0.08s + var(--item-index, 0) * 0.04s);
}

.lph-mobile-nav-link:last-child {
    border-bottom: none;
}

.lph-mobile-nav-link:hover,
.lph-mobile-nav-link:active,
.lph-mobile-nav-link.lph-mobile-nav-active {
    background: var(--lph-orange-light);
    color: var(--lph-orange);
}

.lph-mobile-nav-icon {
    font-size: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--lph-bg-subtle);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.lph-mobile-nav-link:hover .lph-mobile-nav-icon,
.lph-mobile-nav-link:active .lph-mobile-nav-icon,
.lph-mobile-nav-link.lph-mobile-nav-active .lph-mobile-nav-icon {
    background: #fff;
    box-shadow: 0 2px 8px rgba(232, 122, 21, 0.15);
}

.lph-mobile-nav-link svg {
    margin-left: auto;
    color: var(--lph-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.lph-mobile-nav-link:hover svg,
.lph-mobile-nav-link:active svg {
    color: var(--lph-orange);
    transform: translateX(3px);
}

/* Mobile Utility Links */
.lph-mobile-util-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--lph-bg-subtle);
    border-radius: 10px;
    color: var(--lph-text-secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.lph-mobile-nav-link:hover .lph-mobile-util-icon,
.lph-mobile-nav-link:active .lph-mobile-util-icon {
    background: #fff;
    color: var(--lph-orange);
    box-shadow: 0 2px 8px rgba(232, 122, 21, 0.15);
}

/* Mobile Actions */
.lph-mobile-actions {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--lph-border-light);
}

.lph-mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--lph-transition);
    font-family: var(--lph-font);
}

.lph-mobile-action-phone {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.25);
}
.lph-mobile-action-phone:hover {
    box-shadow: 0 5px 18px rgba(5, 150, 105, 0.4);
    transform: translateY(-1px);
}

/* Mobile Footer */
.lph-mobile-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--lph-border-light);
}
.lph-mobile-footer p {
    margin: 0;
    font-family: var(--lph-font);
    font-size: 12px;
    color: var(--lph-text-muted);
    font-weight: 500;
}

/* ============================================================
   LOADER SPINNER
   ============================================================ */
.lph-loader {
    width: 22px;
    height: 22px;
    border: 3px solid var(--lph-border);
    border-top-color: var(--lph-orange);
    border-radius: 50%;
    animation: lph-spin 0.6s linear infinite;
    margin: 0 auto;
}

@keyframes lph-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE — TABLET (< 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .lph-main {
        max-width: calc(100% - 24px);
        margin: 8px auto 0;
    }

    .lph-container {
        padding: 0 20px;
        gap: 14px;
    }

    .lph-btn-label {
        display: none;
    }

    .lph-btn {
        padding: 8px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .lph-nav-link {
        padding: 0 10px;
        font-size: 11px;
    }

    .lph-nav-inner {
        padding: 0 20px;
    }

    .lph-nav-cat-link,
    .lph-nav-sep {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --lph-header-height: 60px;
        --lph-nav-height: 0px;
    }

    .lph-catalog-wrap {
        display: none;
    }

    .lph-main {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: var(--lph-shadow-sm);
    }

    .lph-nav-row {
        display: none;
    }

    .lph-container {
        padding: 0 12px;
        gap: 10px;
        height: 60px;
    }

    .lph-spacer {
        height: 60px !important;
    }

    .lph-logo img {
        height: 38px;
    }

    /* Hide desktop search on mobile */
    .lph-search {
        display: none;
    }

    /* Hide desktop actions */
    .lph-actions .lph-btn {
        display: none;
    }

    /* Show mobile search trigger */
    .lph-mobile-search-trigger {
        display: flex;
    }

    /* Show mobile toggle */
    .lph-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: -1;
    }

    /* Cart stays visible but smaller */
    .lph-cart-circle {
        width: 42px;
        height: 42px;
    }

    .lph-cart-circle svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile search icon button */
    .lph-mobile-search-btn {
        display: flex;
    }

    /* Cart popup full width on mobile */
    .lph-cart-popup {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--lph-border);
        max-height: calc(100vh - 60px);
    }

    /* Search dropdown mobile */
    .lph-search-dropdown {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        border-radius: 0;
        max-height: calc(100vh - 60px);
    }

    /* Scroll state on mobile */
    .lph-wrapper.lph-scrolled .lph-container {
        height: 56px;
    }

    .lph-wrapper.lph-scrolled .lph-logo img {
        height: 28px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (< 400px)
   ============================================================ */
@media (max-width: 400px) {
    .lph-container {
        padding: 0 10px;
        gap: 8px;
    }

    .lph-logo img {
        height: 26px;
    }

    .lph-cart-circle {
        width: 38px;
        height: 38px;
    }

    .lph-cart-count {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: -3px;
        right: -3px;
    }
}

/* ============================================================
   BODY SCROLL LOCK (when mobile menu open)
   ============================================================ */
body.lph-body-locked {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* ============================================================
   PRINT — Hide header
   ============================================================ */
@media print {
    .lph-wrapper,
    .lph-spacer {
        display: none !important;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .lph-wrapper,
    .lph-wrapper *,
    .lph-mobile-menu,
    .lph-mobile-backdrop {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ============================================================
   CART BOUNCE ANIMATION (after add to cart)
   ============================================================ */
@keyframes lphCartBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.3); }
    50%  { transform: scale(0.9); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.lph-cart-bounce {
    animation: lphCartBounce 0.5s ease-out !important;
}

