/* =============================================
   LAPROM HEADER — Premium eCommerce Header
   Clean rewrite — 2-row layout, 1200px centered
   ============================================= */

/* === VARIABLES === */
:root {
    --lph-orange: #E87A15;
    --lph-orange-hover: #d06a0a;
    --lph-dark: #2d2d2d;
    --lph-dark-hover: #3a3a3a;
    --lph-text: #333;
    --lph-text-light: #666;
    --lph-border: #e5e5e5;
    --lph-white: #fff;
    --lph-radius: 8px;
    --lph-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --lph-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --lph-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --lph-max-width: 1200px;
    --lph-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === HIDE THEME HEADER === */
.site-header,
#masthead,
.header-wrapper,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-main-header-wrap {
    display: none !important;
}

/* === BASE WRAPPER === */
.lph-wrapper {
    font-family: var(--lph-font);
    position: relative;
    z-index: 9999;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lph-main {
    background: var(--lph-white);
    box-shadow: var(--lph-shadow);
    position: relative;
    z-index: 9999;
}

/* === ROW 1 — Logo, Search, Contact, Cart === */
.lph-row1 {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: var(--lph-max-width);
    margin: 0 auto;
    padding: 16px 24px;
    position: relative;
}

/* Logo */
.lph-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--lph-transition);
}

.lph-logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.lph-logo img {
    height: 44px;
    width: auto;
    display: block;
}

/* === SEARCH === */
.lph-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.lph-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lph-search-input {
    width: 100%;
    height: 44px;
    padding: 0 48px 0 18px;
    border: 2px solid var(--lph-border);
    border-radius: var(--lph-radius);
    font-size: 14px;
    color: var(--lph-text);
    background: #f9f9f9;
    outline: none;
    transition: var(--lph-transition);
    font-family: var(--lph-font);
}

.lph-search-input:focus {
    border-color: var(--lph-orange);
    background: var(--lph-white);
    box-shadow: 0 0 0 3px rgba(232, 122, 21, 0.12);
}

.lph-search-input::placeholder {
    color: #aaa;
    font-size: 13.5px;
}

.lph-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lph-orange);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--lph-transition);
    padding: 0;
}

.lph-search-btn:hover {
    background: var(--lph-orange-hover);
    transform: translateY(-50%) scale(1.05);
}

.lph-search-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Search Dropdown */
.lph-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--lph-white);
    border-radius: var(--lph-radius);
    box-shadow: var(--lph-shadow-lg);
    border: 1px solid var(--lph-border);
    display: none;
    z-index: 10000;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}

.lph-search-dropdown.active {
    display: block;
    animation: lphSlideDown 0.2s ease-out;
}

@keyframes lphSlideDown {
    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-light);
    font-size: 13px;
}

.lph-search-loading.active { display: block; }

.lph-search-results { list-style: none; margin: 0; padding: 0; }

.lph-search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--lph-text);
    transition: var(--lph-transition);
    border-bottom: 1px solid #f0f0f0;
}

.lph-search-result-item:last-child { border-bottom: none; }

.lph-search-result-item:hover {
    background: #fef6ee;
}

.lph-search-result-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.lph-search-result-info { flex: 1; min-width: 0; }

.lph-search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--lph-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 3px;
}

.lph-search-result-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--lph-orange);
}

.lph-search-empty {
    display: none;
    padding: 24px;
    text-align: center;
    color: var(--lph-text-light);
    font-size: 13px;
}

.lph-search-empty.active { display: block; }

.lph-search-view-all {
    display: block;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--lph-orange);
    text-decoration: none;
    border-top: 1px solid var(--lph-border);
    transition: var(--lph-transition);
}

.lph-search-view-all:hover {
    background: #fef6ee;
    color: var(--lph-orange-hover);
}

/* === CONTACT LINKS (Phone + Vino la depozit) === */
.lph-contact-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.lph-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--lph-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--lph-transition);
    white-space: nowrap;
}

.lph-phone-link {
    color: var(--lph-text);
    background: #f5f5f5;
}

.lph-phone-link:hover {
    background: #eee;
    color: var(--lph-text);
}

.lph-phone-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--lph-orange);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.lph-depozit-link {
    color: var(--lph-orange);
    background: rgba(232, 122, 21, 0.08);
}

.lph-depozit-link:hover {
    background: rgba(232, 122, 21, 0.15);
    color: var(--lph-orange-hover);
}

.lph-depozit-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--lph-orange);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* === CART === */
.lph-cart {
    flex-shrink: 0;
    position: relative;
}

.lph-cart-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--lph-orange);
    border-radius: 50%;
    position: relative;
    text-decoration: none;
    transition: var(--lph-transition);
    box-shadow: 0 3px 10px rgba(232, 122, 21, 0.3);
}

.lph-cart-circle:hover {
    background: var(--lph-orange-hover);
    transform: scale(1.08);
    box-shadow: 0 5px 16px rgba(232, 122, 21, 0.4);
}

.lph-cart-circle svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lph-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--lph-dark);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--lph-white);
    line-height: 1;
}

/* Cart Popup */
.lph-cart-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: var(--lph-white);
    border-radius: 12px;
    box-shadow: var(--lph-shadow-lg);
    border: 1px solid var(--lph-border);
    display: none;
    z-index: 10001;
    overflow: hidden;
}

.lph-cart-popup.active {
    display: block;
    animation: lphSlideDown 0.2s ease-out;
}

.lph-cart-popup-header {
    padding: 16px 18px;
    font-weight: 700;
    font-size: 15px;
    color: var(--lph-text);
    border-bottom: 1px solid var(--lph-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lph-cart-items {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}

.lph-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    transition: var(--lph-transition);
}

.lph-cart-item:hover { background: #fafafa; }

.lph-cart-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.lph-cart-item-info { flex: 1; min-width: 0; }

.lph-cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--lph-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 3px;
}

.lph-cart-item-meta {
    font-size: 12px;
    color: var(--lph-text-light);
}

.lph-cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--lph-orange);
    white-space: nowrap;
}

.lph-cart-popup-footer {
    padding: 16px 18px;
    border-top: 1px solid var(--lph-border);
    background: #fafafa;
}

.lph-cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: var(--lph-text);
    margin-bottom: 12px;
}

.lph-cart-actions {
    display: flex;
    gap: 8px;
}

.lph-cart-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--lph-radius);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--lph-transition);
}

.lph-cart-btn-outline {
    border: 2px solid var(--lph-border);
    color: var(--lph-text);
    background: var(--lph-white);
}

.lph-cart-btn-outline:hover {
    border-color: var(--lph-text);
    color: var(--lph-text);
}

.lph-cart-btn-primary {
    background: var(--lph-orange);
    color: var(--lph-white);
    border: 2px solid var(--lph-orange);
}

.lph-cart-btn-primary:hover {
    background: var(--lph-orange-hover);
    border-color: var(--lph-orange-hover);
    color: var(--lph-white);
}

.lph-cart-empty {
    padding: 32px 18px;
    text-align: center;
    color: var(--lph-text-light);
    font-size: 14px;
}

.lph-cart-loading {
    display: none;
    padding: 24px;
    text-align: center;
    color: var(--lph-text-light);
    font-size: 13px;
}

.lph-cart-loading.active { display: block; }

/* === ROW 2 — Categories Bar === */
.lph-row2 {
    background: #383838;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.lph-row2-inner {
    max-width: var(--lph-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 0;
}

.lph-cat-link {
    display: inline-flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: var(--lph-transition);
    position: relative;
    white-space: nowrap;
}

.lph-cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--lph-orange);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.lph-cat-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

.lph-cat-link:hover::after {
    transform: scaleX(1);
}

/* === MOBILE HAMBURGER === */
.lph-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: 2px solid var(--lph-border);
    border-radius: var(--lph-radius);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: var(--lph-transition);
}

.lph-mobile-toggle:hover {
    border-color: var(--lph-orange);
    background: rgba(232, 122, 21, 0.05);
}

.lph-mobile-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--lph-text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* === MOBILE MENU OVERLAY === */
.lph-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
}

.lph-mobile-menu.active {
    display: block;
}

.lph-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: lphFadeIn 0.3s ease;
}

@keyframes lphFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

.lph-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--lph-white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: lphSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lphSlideIn {
    from { transform: translateX(100%); } to { transform: translateX(0); }
}

.lph-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--lph-border);
}

.lph-mobile-header img {
    height: 32px;
    width: auto;
}

.lph-mobile-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--lph-transition);
    padding: 0;
}

.lph-mobile-close:hover {
    background: #eee;
    transform: rotate(90deg);
}

.lph-mobile-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--lph-text);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* Mobile Search */
.lph-mobile-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--lph-border);
}

.lph-mobile-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 2px solid var(--lph-border);
    border-radius: var(--lph-radius);
    font-size: 14px;
    outline: none;
    font-family: var(--lph-font);
    transition: var(--lph-transition);
}

.lph-mobile-search input:focus {
    border-color: var(--lph-orange);
}

/* Mobile Nav Links */
.lph-mobile-nav {
    padding: 12px 0;
}

.lph-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--lph-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--lph-transition);
    border-left: 3px solid transparent;
}

.lph-mobile-nav-link:hover {
    background: #fef6ee;
    color: var(--lph-orange);
    border-left-color: var(--lph-orange);
}

.lph-mobile-nav-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--lph-text-light);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.lph-mobile-nav-link:hover svg {
    stroke: var(--lph-orange);
}

/* Mobile Contact Section */
.lph-mobile-contact {
    padding: 16px 20px;
    border-top: 1px solid var(--lph-border);
    margin-top: 8px;
}

.lph-mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--lph-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--lph-transition);
}

.lph-mobile-contact-link.phone {
    background: #f5f5f5;
    color: var(--lph-text);
}

.lph-mobile-contact-link.depozit {
    background: rgba(232, 122, 21, 0.08);
    color: var(--lph-orange);
}

.lph-mobile-contact-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--lph-orange);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Scrolled state */
.lph-main.lph-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
    animation: lphSlideDown 0.3s ease;
}

.lph-main.lph-scrolled .lph-row1 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.lph-main.lph-scrolled .lph-logo img {
    height: 36px;
}

.lph-main.lph-scrolled .lph-cat-link {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 13px;
}

.lph-spacer {
    display: none;
}

.lph-main.lph-scrolled ~ .lph-spacer {
    display: block;
    height: 120px;
}

/* =============================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .lph-row1 {
        gap: 16px;
        padding: 14px 20px;
    }

    .lph-search {
        max-width: 320px;
    }

    .lph-contact-link span {
        font-size: 13px;
    }

    .lph-contact-link {
        padding: 8px 12px;
    }

    .lph-cat-link {
        padding: 13px 14px;
        font-size: 13px;
    }

    .lph-cat-link::after {
        left: 14px;
        right: 14px;
    }
}

/* =============================================
   RESPONSIVE — Small Tablet (max-width: 860px)
   ============================================= */
@media (max-width: 860px) {
    .lph-contact-links {
        display: none;
    }

    .lph-search {
        max-width: none;
        flex: 1;
    }

    .lph-row2 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .lph-row2::-webkit-scrollbar {
        display: none;
    }

    .lph-row2-inner {
        padding: 0 16px;
        min-width: max-content;
    }

    .lph-cat-link {
        padding: 12px 14px;
        font-size: 12.5px;
    }

    .lph-mobile-toggle {
        display: flex;
    }
}

/* =============================================
   RESPONSIVE — Mobile (max-width: 640px)
   ============================================= */
@media (max-width: 640px) {
    .lph-row1 {
        gap: 10px;
        padding: 12px 16px;
    }

    .lph-logo img {
        height: 34px;
    }

    .lph-search-input {
        height: 40px;
        font-size: 13px;
        padding: 0 42px 0 14px;
    }

    .lph-search-btn {
        width: 32px;
        height: 32px;
    }

    .lph-search-btn svg {
        width: 16px;
        height: 16px;
    }

    .lph-cart-circle {
        width: 42px;
        height: 42px;
    }

    .lph-cart-circle svg {
        width: 20px;
        height: 20px;
    }

    .lph-cart-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    /* Full-width search dropdown on mobile */
    .lph-search-dropdown {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        max-height: 60vh;
        border-radius: 12px;
    }

    .lph-search-result-item {
        padding: 10px 14px;
        gap: 10px;
    }

    .lph-search-result-thumb {
        width: 42px;
        height: 42px;
    }

    /* Row 2 categories scroll */
    .lph-row2 {
        overflow-x: auto;
    }

    .lph-row2-inner {
        padding: 0 12px;
    }

    .lph-cat-link {
        padding: 11px 12px;
        font-size: 12px;
        letter-spacing: 0.2px;
    }

    /* Cart popup full width on mobile */
    .lph-cart-popup {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 75vh;
        animation: lphSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes lphSlideUp {
        from { transform: translateY(100%); } to { transform: translateY(0); }
    }

    .lph-cart-items {
        max-height: 45vh;
    }

    /* Mobile panel wider on small screens */
    .lph-mobile-panel {
        width: 300px;
    }

    .lph-mobile-nav-link {
        padding: 13px 18px;
        font-size: 14.5px;
    }

    /* Scrolled state adjustments */
    .lph-main.lph-scrolled .lph-row1 {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .lph-main.lph-scrolled .lph-logo img {
        height: 30px;
    }

    .lph-main.lph-scrolled ~ .lph-spacer {
        height: 100px;
    }
}

/* =============================================
   RESPONSIVE — Very Small (max-width: 400px)
   ============================================= */
@media (max-width: 400px) {
    .lph-row1 {
        gap: 8px;
        padding: 10px 12px;
    }

    .lph-logo img {
        height: 28px;
    }

    .lph-search-input {
        height: 38px;
        font-size: 12.5px;
        border-radius: 6px;
    }

    .lph-search-btn {
        width: 30px;
        height: 30px;
        border-radius: 5px;
    }

    .lph-cart-circle {
        width: 38px;
        height: 38px;
    }

    .lph-cart-circle svg {
        width: 18px;
        height: 18px;
    }

    .lph-mobile-toggle {
        width: 38px;
        height: 38px;
    }

    .lph-mobile-toggle svg {
        width: 20px;
        height: 20px;
    }

    .lph-cat-link {
        padding: 10px 10px;
        font-size: 11.5px;
    }

    .lph-mobile-panel {
        width: 280px;
    }
}

/* === PRINT === */
@media print {
    .lph-wrapper { display: none !important; }
}

/* === FIX: Match template structure === */
/* Search icon is .lph-search-icon SVG, not .lph-search-btn */
.lph-search {
    position: relative;
    display: flex;
    align-items: center;
}

.lph-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px !important;
    height: 20px !important;
    stroke: #999;
    pointer-events: none;
    z-index: 2;
    flex-shrink: 0;
}

.lph-search-input {
    padding-right: 42px !important;
}

.lph-search-input:focus ~ .lph-search-icon {
    stroke: var(--lph-orange);
}

/* Clear button */
.lph-search-clear {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #eee;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    padding: 0;
    line-height: 1;
    z-index: 2;
}

.lph-search-clear:hover {
    background: #ddd;
    color: #666;
}

/* === PREMIUM UPGRADE — Visual Polish === */

/* Top accent strip */
.lph-main::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--lph-orange) 0%, #f5a623 40%, var(--lph-orange) 100%);
}

/* Row 1 subtle warm tint */
.lph-row1 {
    padding: 18px 24px !important;
    border-bottom: 1px solid #f0f0f0;
}

/* Logo bigger, more presence */
.lph-logo img {
    height: 48px !important;
}

/* Search — filled orange button */
.lph-search {
    max-width: 460px !important;
}

.lph-search-input {
    height: 48px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 14.5px !important;
    background: #fafafa !important;
    padding-left: 20px !important;
    padding-right: 52px !important;
}

.lph-search-input:focus {
    border-color: var(--lph-orange) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(232,122,21,0.1) !important;
}

.lph-search-icon {
    display: none !important;
}

/* Add a proper search button */
.lph-search::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: var(--lph-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/18px no-repeat;
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}

/* Phone — bolder, with pill shape */
.lph-phone-link {
    background: #f0f0f0 !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #222 !important;
    gap: 10px !important;
}

.lph-phone-link:hover {
    background: #e8e8e8 !important;
}

.lph-phone-link svg {
    width: 20px !important;
    height: 20px !important;
}

/* Vino la depozit — pill, orange outline */
.lph-depozit-link {
    background: transparent !important;
    border: 2px solid var(--lph-orange) !important;
    border-radius: 25px !important;
    padding: 9px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--lph-orange) !important;
    gap: 8px !important;
}

.lph-depozit-link:hover {
    background: var(--lph-orange) !important;
    color: #fff !important;
}

.lph-depozit-link:hover svg {
    stroke: #fff !important;
}

/* Cart — bigger, with subtle pulse animation on count */
.lph-cart-circle {
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 4px 14px rgba(232,122,21,0.35) !important;
}

.lph-cart-circle svg {
    width: 24px !important;
    height: 24px !important;
}

.lph-cart-count {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    background: #e74c3c !important;
    top: -5px !important;
    right: -5px !important;
    border: 2.5px solid #fff !important;
    animation: lphPulseCount 2s ease-in-out infinite;
}

@keyframes lphPulseCount {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === ROW 2 — Premium categories === */
.lph-row2 {
    background: linear-gradient(180deg, #363636 0%, #2d2d2d 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.lph-cat-link {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    padding: 16px 22px !important;
    color: rgba(255,255,255,0.82) !important;
    position: relative;
}

.lph-cat-link:hover {
    color: #fff !important;
    background: rgba(232,122,21,0.12) !important;
}

.lph-cat-link::after {
    left: 22px !important;
    right: 22px !important;
}

/* Active/first category accent - subtle */
.lph-cat-link:first-child {
    color: rgba(255,255,255,0.95) !important;
}

/* === CART POPUP — Compact & Premium Redesign === */
.lph-cart-popup {
    width: 320px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04) !important;
    border: none !important;
    top: calc(100% + 14px) !important;
    overflow: hidden !important;
}

/* Arrow pointer */
.lph-cart-popup::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
    z-index: 1;
}

/* Header compact */
.lph-cart-popup-header {
    padding: 14px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #888 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
    position: relative;
    z-index: 2;
}

/* Items area */
.lph-cart-items {
    max-height: 240px !important;
    padding: 6px 0 !important;
}

/* Each item — horizontal, compact */
.lph-cart-item {
    padding: 10px 16px !important;
    gap: 12px !important;
    border-bottom: 1px solid #f5f5f5;
}

.lph-cart-item:last-child {
    border-bottom: none;
}

/* Thumbnail — small and round */
.lph-cart-item-thumb {
    width: 52px !important;
    height: 52px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 1px solid #eee;
    background: #f8f8f8 !important;
}

/* Item name */
.lph-cart-item-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
}

/* Item qty/meta */
.lph-cart-item-meta {
    font-size: 12px !important;
    color: #999 !important;
}

/* Item price — right aligned */
.lph-cart-item-price {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--lph-orange) !important;
    white-space: nowrap !important;
}

/* Footer */
.lph-cart-popup-footer {
    padding: 14px 16px !important;
    border-top: 2px solid #f0f0f0 !important;
    background: #fafafa !important;
}

/* Subtotal line */
.lph-cart-subtotal {
    margin-bottom: 12px !important;
    font-size: 14px !important;
}

.lph-cart-subtotal span:first-child {
    color: #666;
    font-weight: 500;
}

.lph-cart-subtotal span:last-child {
    font-weight: 800;
    color: #222;
    font-size: 16px;
}

/* Action buttons */
.lph-cart-actions {
    gap: 8px !important;
}

.lph-cart-btn {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.lph-cart-btn-outline {
    border: 1.5px solid #ddd !important;
    color: #555 !important;
}

.lph-cart-btn-outline:hover {
    border-color: #333 !important;
    color: #333 !important;
    background: #fff !important;
}

.lph-cart-btn-primary {
    background: var(--lph-orange) !important;
    border: 1.5px solid var(--lph-orange) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(232,122,21,0.3);
}

.lph-cart-btn-primary:hover {
    background: var(--lph-orange-hover) !important;
    border-color: var(--lph-orange-hover) !important;
    box-shadow: 0 3px 12px rgba(232,122,21,0.4);
}

/* Empty state */
.lph-cart-empty {
    padding: 28px 16px !important;
    font-size: 13px !important;
    color: #aaa !important;
}

/* Loading */
.lph-cart-loading {
    padding: 20px !important;
    font-size: 12px !important;
}

/* === CART POPUP — Fix for ACTUAL template classes === */

/* Items container */
.lph-cart-popup-items {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
}

/* Each cart item — horizontal row */
.lph-cart-popup-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.15s ease;
}

.lph-cart-popup-item:last-child {
    border-bottom: none;
}

.lph-cart-popup-item:hover {
    background: #fafafa;
}

/* Product image — small square */
.lph-cart-popup-item-img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    border: 1px solid #eee;
    background: #f8f8f8;
}

/* Item info */
.lph-cart-popup-item-info {
    flex: 1 !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Product name */
.lph-cart-popup-item-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis;
}

/* Qty line */
.lph-cart-popup-item-qty {
    font-size: 12.5px !important;
    color: #888 !important;
    font-weight: 500;
}

.lph-cart-popup-item-qty .woocommerce-Price-amount {
    color: var(--lph-orange) !important;
    font-weight: 700 !important;
}

/* Footer */
.lph-cart-popup-footer {
    padding: 14px 16px !important;
    border-top: 2px solid #f0f0f0 !important;
    background: #fafafa !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Subtotal */
.lph-cart-popup-subtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.lph-cart-popup-total {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #222 !important;
}

/* Action links → styled as buttons */
.lph-cart-popup-checkout,
.lph-cart-popup-viewcart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.lph-cart-popup-checkout {
    background: var(--lph-orange) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(232,122,21,0.3);
    flex: 1.2;
}

.lph-cart-popup-checkout:hover {
    background: var(--lph-orange-hover) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(232,122,21,0.4);
    transform: translateY(-1px);
}

.lph-cart-popup-viewcart {
    background: #fff !important;
    color: #555 !important;
    border: 1.5px solid #ddd !important;
    flex: 1;
}

.lph-cart-popup-viewcart:hover {
    border-color: #333 !important;
    color: #333 !important;
}

/* Buttons row */
.lph-cart-popup-footer a {
    /* Make them sit side by side if in same container */
}

/* If the two links are direct children, make row */
.lph-cart-popup-checkout + .lph-cart-popup-viewcart,
.lph-cart-popup-viewcart + .lph-cart-popup-checkout {
    margin-top: 0;
}

/* === Cart popup final tune === */
.lph-cart-popup-item-img {
    max-width: 52px !important;
    max-height: 52px !important;
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;
}

/* Footer buttons side by side */
.lph-cart-popup-footer {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.lph-cart-popup-subtotal {
    width: 100% !important;
    margin-bottom: 4px !important;
}

.lph-cart-popup-checkout {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.lph-cart-popup-viewcart {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Arrow on popup */
.lph-cart-popup::before {
    content: '' !important;
    position: absolute !important;
    top: -7px !important;
    right: 18px !important;
    width: 14px !important;
    height: 14px !important;
    background: #fafafa !important;
    transform: rotate(45deg) !important;
    box-shadow: -2px -2px 4px rgba(0,0,0,0.04) !important;
    z-index: 1 !important;
}

/* === Fix image in cart popup — override WooCommerce/theme === */
.lph-cart-popup .lph-cart-popup-item .lph-cart-popup-item-img,
.lph-wrapper .lph-cart-popup-item-img,
img.lph-cart-popup-item-img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    min-width: 52px !important;
    flex: 0 0 52px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid #eee !important;
}

/* Also hide name text under image if visible separately */
.lph-cart-popup-item-info .lph-cart-popup-item-name {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 2px !important;
}

.lph-cart-popup-item-info .lph-cart-popup-item-qty {
    font-size: 12.5px !important;
    color: #777 !important;
}

/* === Remove grey backgrounds from cart popup === */
.lph-cart-popup-header {
    background: #fff !important;
}

.lph-cart-popup-footer {
    background: #fff !important;
}

.lph-cart-popup::before {
    background: #fff !important;
}

.lph-cart-popup .lph-cart-popup-item:hover {
    background: transparent !important;
}