/**
 * Frontend Styles
 */

 .harke-product-search-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    overflow-x: clip;
}

.harke-product-search-wrapper *,
.harke-product-search-wrapper *::before,
.harke-product-search-wrapper *::after {
    box-sizing: border-box;
}

.harke-search-header {
    margin-bottom: 40px;
}

.harke-search-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a4480;
    margin-bottom: 20px;
}

.harke-search-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 100%;
}

.harke-search-bar-inner {
    flex: 1;
    display: flex;
    align-items: stretch;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.harke-search-input {
    flex: 1;
    padding: 12px 50px 12px 20px;
    border: 0;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.harke-search-bar-inner:focus-within {
    border-color: #1a4480;
    box-shadow: 0 0 0 1px #1a4480;
}

.harke-search-input::placeholder {
    color: #003463;
    font-style: italic;
}

.harke-search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: transparent !important;
    border: 0 !important;
    border-left: 1px solid #ddd !important;
    border-radius: 0 5px 5px 0 !important;
    padding: 0 14px !important;
    color: #000 !important;
    cursor: pointer;
}

.harke-search-button:hover {
    background: #e8eef4 !important;
    color: #1a4480 !important;
}

.harke-search-reset {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.harke-search-reset:hover {
    background: #eee;
    border-color: #999;
}

.harke-sector-tabs {
    margin-top: 20px;
}

.harke-browse-text {
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    color:var( --e-global-color-primary );
    font-size: 20px;
}

.harke-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
	    border-bottom: 2px solid #003463;
}

.harke-tab {
    padding: 16px 20px !important;
    background-color: #ffffff !important;
    border: 0px solid #ddd;
    border-radius: 5px 5px 0 0 !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    /* Solid fallback so Elementor/theme CSS vars cannot hide tabs (e.g. white-on-white active state). */
    color: #1a4480 !important;
    box-shadow: none !important;
    flex: 1;
    line-height: 1.2;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.harke-tab:hover {
    background: #e8e8e8;
}

.harke-tab.active {
    background-color: #1a4480 !important;
    color: #fff !important;
}

.harke-search-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
    min-width: 0;
}

.harke-mobile-filter-toggle {
    display: none;
}

.harke-mobile-filter-backdrop,
.harke-mobile-filter-header {
    display: none;
}

.harke-filters-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    height: fit-content;
    position: static;
}

.harke-filters-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var( --e-global-color-primary );
}

.harke-filter-group {
    margin-bottom: 30px;
}

.harke-filters-clear-wrap {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.harke-clear-all-filters {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
}

.harke-clear-all-filters:hover {
    background: #eee;
    border-color: #999;
}

.harke-filter-group-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a4480;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.harke-filter-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s;
}

.harke-filter-toggle:hover {
    color: #0d2d5a;
}

.harke-filter-title-text {
    flex: 1;
}

.harke-filter-chevron {
    font-size: 16px;
    color: #1a4480;
    transition: transform 0.2s;
}

.harke-filter-content {
    margin-top: 10px;
}

.harke-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.harke-filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: background 0.2s;
    background-color: transparent !important;
    margin-bottom: 0;
}

.harke-filter-checkbox:hover {
    background: #f0f0f0;
}

.harke-filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.harke-products-main {
    min-height: 500px;
    border-radius: 5px;
    min-width: 0;
}

.harke-products-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.harke-active-filters {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.harke-active-filters-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.harke-active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.harke-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e8eef4;
    color: #1a4480;
    border-radius: 5px;
    font-size: 13px;
}

.harke-filter-chip-label {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.harke-filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
}

.harke-filter-chip-remove:hover {
    color: #c00;
    background: rgba(0, 0, 0, 0.08);
}

.harke-alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;;
}

.harke-alphabet-link {
    padding: 2px 5px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.2s;
}

.harke-alphabet-link:hover {
    background: #f0f0f0;
    color: #1a4480;
}

.harke-alphabet-link.active {
    background: #1a4480;
    color: white;
}

.harke-product-functionality-2 {
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
}

.harke-products-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.harke-product-item {
    display: flex;
    justify-content: space-between;
    padding: 0;
    background: white;
    border: 0px solid #e0e0e0;
    border-radius: 0;
    transition: all 0.3s;
}

.harke-product-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #1a4480;
}

.harke-product-content {
    flex: 1;
	padding:20px;
}

.harke-product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.harke-product-name a {
    color: #1a4480;
    text-decoration: none;
}

.harke-product-name a:hover {
    text-decoration: underline;
}

.harke-product-inci {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.harke-product-description {
    color: #777;
    line-height: 1.6;
    margin: 0;
}

.harke-product-arrow {
    margin-left: 0px;
}

.harke-product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 100%;
    background: #1a4480;
    color: white;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.3s;
}

.harke-product-link:hover {
    background: #153a6b;
}

.harke-no-products {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 18px;
}

.harke-loading {
    text-align: center;
    padding: 40px;
    color: #1a4480;
    font-size: 18px;
}

.harke-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.harke-pagination a,
.harke-pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #555;
}

.harke-pagination a:hover {
    background: #1a4480;
    color: white;
    border-color: #1a4480;
}

.harke-pagination .current {
    background: #1a4480;
    color: white;
    border-color: #1a4480;
}

/* Product Detail Page */
.harke-product-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.harke-product-detail-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.harke-back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #1a4480;
    text-decoration: none;
    font-weight: 500;
}

.harke-back-link:hover {
    text-decoration: underline;
}

.harke-product-detail-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a4480;
    margin-bottom: 30px;
}

.harke-product-detail-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.harke-product-detail-info p {
    margin: 10px 0;
    font-size: 16px;
}

.harke-product-detail-content {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.harke-product-applications {
    margin-bottom: 40px;
}

.harke-product-applications h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.harke-applications-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.harke-applications-list li {
    padding: 8px 16px;
    background: #1a4480;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.harke-product-certifications {
    margin-bottom: 40px;
}

.harke-product-certifications h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.harke-certifications-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.harke-certifications-list li {
    padding: 8px 16px;
    background: #1a4480;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.harke-product-enquiry-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.harke-product-enquiry-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.harke-form-row {
    margin-bottom: 20px;
}

.harke-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.harke-form-row input[type="text"],
.harke-form-row input[type="email"],
.harke-form-row input[type="tel"],
.harke-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.harke-form-row input:focus,
.harke-form-row textarea:focus {
    outline: none;
    border-color: #1a4480;
}

.harke-form-row textarea {
    resize: vertical;
}

.harke-form-row input[type="checkbox"] {
    margin-right: 8px;
}

.harke-submit-button {
    padding: 14px 40px;
    background: #1a4480;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.harke-submit-button:hover {
    background: #153a6b;
}

.harke-product-key-attributes,
.harke-product-keywords,
.harke-product-brochure {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.harke-product-key-attributes h3,
.harke-product-keywords h3,
.harke-product-brochure h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.harke-product-key-attributes p,
.harke-product-keywords p,
.harke-product-brochure p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.harke-product-feature,
.harke-product-feature p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .harke-product-search-wrapper {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .harke-search-title {
        font-size: 30px;
    }

    .harke-search-content {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .harke-filters-sidebar {
        padding: 16px;
    }

    .harke-tabs {
        gap: 8px;
    }

    .harke-tab {
        padding: 12px 14px !important;
        font-size: 14px;
    }

    .harke-products-title {
        font-size: 22px;
    }

    .harke-products-main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .harke-search-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .harke-search-bar {
        flex-direction: column;
        gap: 8px;
    }

    .harke-search-reset {
        width: 100%;
    }

    .harke-search-content {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 14px;
        width: 100%;
    }

    .harke-products-main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .harke-mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border: 0;
        background: #eef2f6;
        color: #1a4480;
        font-size: 20px;
        font-weight: 600;
        padding: 12px 16px;
        border-radius: 0;
        line-height: 1.2;
        margin: 0 0 2px;
    }

    .harke-mobile-filter-toggle-icon {
        font-size: 22px;
        transition: transform 0.2s ease;
    }

    .harke-mobile-filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 25, 50, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 9998;
    }

    .harke-mobile-filter-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .harke-filters-sidebar {
        display: none;
        background: #eef2f6;
        border-radius: 0;
        position: fixed;
        top: 14px;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 9999;
        padding: 16px;
        overflow-y: auto;
        transform: translateY(12px);
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .harke-filters-sidebar.is-mobile-open {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .harke-mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .harke-mobile-filter-title {
        margin: 0;
        color: #1a4480;
        font-size: 22px;
        font-weight: 600;
    }

    .harke-mobile-filter-close {
        border: 0;
        background: transparent;
        color: #1a4480;
        padding: 0;
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .harke-mobile-filter-close .dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filters-title {
        display: none;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-content {
        display: none;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-chevron {
        display: inline-flex;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-group {
        margin-bottom: 14px;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-group-title {
        margin-bottom: 0;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-group-title {
        font-size: 18px;
        font-weight: 600;
        padding-bottom: 12px;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-content {
        margin-top: 10px;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-checkboxes {
        gap: 8px;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-checkbox span {
        font-size: 16px;
        color: #1a4480;
        line-height: 1.2;
    }

    .harke-filters-sidebar.is-mobile-open .harke-filter-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .harke-mobile-filter-toggle.is-open .harke-mobile-filter-toggle-icon {
        transform: rotate(90deg);
    }
    
    .harke-product-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .harke-product-arrow {
        margin-left: 0;
        margin-top: 0;
        align-self: flex-end;
        width: 100%;
    }
	.harke-product-link {
		width: 100%;
		height: 45px;
	}
	.harke-tab {
		flex: 1 1 calc(50% - 8px);
        min-width: 0;
        font-size: 18px;
        font-weight: 600;
	}
	.harke-alphabet-nav{
        margin-bottom:20px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding: 0 0 12px;
        gap: 8px;
        touch-action: pan-x;
    }
    .harke-alphabet-nav::-webkit-scrollbar {
        height: 4px;
    }
    .harke-alphabet-nav::-webkit-scrollbar-thumb {
        background: rgba(26, 68, 128, 0.35);
        border-radius: 999px;
    }
    .harke-alphabet-link {
        flex: 0 0 auto;
        min-width: 28px;
        text-align: center;
        scroll-snap-align: start;
        padding: 4px 8px;
    }
    .harke-product-content {
        padding: 16px;
        background: #fff;
        min-width: 0;
    }
    .harke-product-name {
        font-size: 24px;
        margin-bottom: 10px;
        padding-bottom: 10px;
        color: #1a4480;
    }
    .harke-product-inci,
    .harke-product-functionality-2,
    .harke-product-description {
        font-size: 16px;
        line-height: 1.35;
    }
    .harke-product-description {
        color: #555;
    }
    .harke-product-item {
        background: #fff;
        border: 1px solid #dbe3ec;
        box-shadow: none;
    }
    .harke-product-item:hover {
        box-shadow: none;
        border-color: #dbe3ec;
    }
    .harke-product-link {
        height: 52px;
        background: #003463;
    }
    .harke-products-title {
        background: #eef2f6;
        color: #1a4480;
        padding: 12px 16px;
        font-size: 24px;
        margin: 0 0 12px;
    }
    .harke-active-filters {
        background: #eef2f6;
        padding: 10px 12px;
        border-bottom: 0;
        margin-bottom: 10px;
    }
}

body.harke-mobile-filter-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .harke-product-search-wrapper {
        padding: 12px;
    }
    .harke-search-title {
        font-size: 22px;
    }
    .harke-browse-text {
        font-size: 16px;
        margin-bottom: 12px;
    }
    .harke-filters-title {
        font-size: 18px;
    }
}

/* Hide page title and breadcrumb on search results page */
/* These styles are applied via JavaScript when .harke-product-search-wrapper is present */
.harke-hide-title-breadcrumb .entry-title,
.harke-hide-title-breadcrumb .page-title,
.harke-hide-title-breadcrumb h1.entry-title,
.harke-hide-title-breadcrumb h1.page-title,
.harke-hide-title-breadcrumb .page-header h1,
.harke-hide-title-breadcrumb .entry-header h1,
.harke-hide-title-breadcrumb .post-title,
.harke-hide-title-breadcrumb .single-title,
.harke-hide-title-breadcrumb .archive-title,
.harke-hide-title-breadcrumb .breadcrumb,
.harke-hide-title-breadcrumb .breadcrumbs,
.harke-hide-title-breadcrumb nav.breadcrumb,
.harke-hide-title-breadcrumb .woocommerce-breadcrumb,
.harke-hide-title-breadcrumb .breadcrumb-trail,
.harke-hide-title-breadcrumb .yoast-breadcrumb {
	display: none !important;
}

