/*
Theme Name: Hub Child
Theme URI: https://hub.liquid-themes.com/x
Author: Liquid Themes
Author URI: https://themeforest.net/user/liquidthemes
Description: HUb Child Theme
Version: 5.0.8
License: GNU General Public License
License URI: license.txt
Text Domain: hub
Tags: responsive, retina, rtl-language-support, blog, portfolio, custom-colors, live-editor
Template: hub
Version: 1.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

/*
 * STYLES FOR: Single Product Premium Template
 * Design: Modern, Clean & Professional
 */

/* --- 1. General Page Setup --- */
.single-product-premium {
    padding: 40px 0;
    color: #374151; /* Default text color */
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Main 2-Column Layout --- */
.product-layout {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 40px;
    margin-bottom: 60px;
}

.product-image-column {
    flex: 1 1 40%;
    position: -webkit-sticky;
    position: sticky;
    top: 40px; /* Offset from viewport top */
    align-self: flex-start; /* Important for sticky to work */
    min-width: 300px;
}

.product-details-column {
    flex: 1 1 55%;
    min-width: 320px;
}

/* --- 3. Product Image Column --- */
.product-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb; /* Subtle border */
}

.product-img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image-wrapper:hover .product-img {
    transform: scale(1.05);
}

/* The "Ribbon Glow" - A subtle gradient sheen */
.ribbon-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 40%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.product-image-wrapper:hover .ribbon-glow {
    opacity: 1;
}

/* Meta Icons Overlay */
.product-meta-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.meta-icon-item {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px; /* Pill shape */
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.meta-icon-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}

.meta-icon-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon-item svg {
    stroke: #374151;
    width: 18px;
    height: 18px;
}

/* --- 4. Product Details Column --- */
.product-header .product-title {
    font-size: 2.8rem; /* Large, premium title */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #111827; /* Darker for high contrast */
}

.product-header .product-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4b5563; /* Softer text color */
    margin-bottom: 30px;
    /* Unique accent line */
    border-left: 3px solid #06b6d4; /* A modern cyan/teal accent */
    padding-left: 15px;
}

/* Product Info Grid */
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.2s ease-out;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-color: #d1d5db;
}

.info-icon {
    font-size: 1.6rem;
    line-height: 1;
    /* Styled icon background */
    background-color: #e6f7f9; /* Light accent color */
    color: #06b6d4; /* Main accent color */
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    flex-grow: 1;
    min-width: 0; /* Prevents overflow */
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280; /* Gray label */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.5;
    overflow-wrap: break-word;  /* Standard property */
    word-break: break-word;     /* Fallback */
    hyphens: auto;              /* Your requested hyphenation */
}

/* Terminology Tags */
.term-tag {
    background-color: #f3f4f6;
    color: #374151;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.term-tag:hover {
    background-color: #ffffff;
    color: #06b6d4; /* Main accent color */
    border-color: #06b6d4;
}

/* --- 5. Download Files Section --- */
.product-files-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e5e7eb;
}

.product-files-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 20px;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.file-download-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.file-download-card:hover {
    background-color: #ffffff;
    border-color: #06b6d4; /* Accent color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.file-icon {
    background-color: #06b6d4; /* Accent color */
    color: #ffffff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 20px;
    height: 20px;
}

.file-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.2s ease;
}

.file-download-card:hover .file-label {
    color: #06b6d4; /* Accent color */
}


/* --- 6. Full-Width Content Sections --- */
.product-description-section,
.product-comments-section {
    margin-top: 60px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 40px;
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.description-content {
    font-size: 18px;
    line-height: 1.9;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Basic content styling */
.description-content p { margin-bottom: 1.5em; }
.description-content h3 { font-size: 1.4rem; font-weight: 600; margin-top: 2em; margin-bottom: 1em; }
.description-content ul,
.description-content ol { padding-left: 20px; margin-bottom: 1.5em; }
.description-content li { margin-bottom: 0.5em; }


/* --- 7. Responsive Design --- */
@media (max-width: 992px) {
    .product-layout {
        flex-direction: column; /* Stack columns */
    }
    
    .product-image-column {
        position: static; /* Un-stick the image */
        width: 100%;
        max-height: none;
    }
    
    .product-details-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-info-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
    }
    
    .product-header .product-title {
        font-size: 2.2rem;
    }

    .product-description-section,
    .product-comments-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .product-container {
        padding: 0 15px;
    }
    
    .product-info-grid,
    .files-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
    }

    .product-header .product-title {
        font-size: 1.9rem;
    }
    
    .product-header .product-subtitle {
        font-size: 1rem;
    }
    
    .product-description-section,
    .product-comments-section {
        padding: 20px;
    }
}

/*
 * Products Archive - Modern Design
 * VERSION: 1.2 (Final Conflict Fix)
 */

/* --- 1. Container & Layout --- */
.products-archive-modern {
    min-height: 100vh;
    padding: 40px 0;
}

.archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* --- 2. Filter Sidebar --- */
.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title svg {
    stroke: #06b6d4;
}

.clear-filters-btn {
    background: none;
    border: none;
    color: #06b6d4;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background-color: #e6f7f9;
    color: #0891b2;
}

/* --- 3. Filter Groups --- */
.filter-group {
    margin-bottom: 25px;
    /* This makes sure our filter group wrapper is visible */
    display: block !important;
    visibility: visible !important;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label svg {
    stroke: #6b7280;
    flex-shrink: 0;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
    /* This forces our native <select> element to be visible */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Ensure dropdown works in all browsers */
.filter-select::-ms-expand {
    display: none;
}

.filter-select option {
    padding: 10px;
    background-color: #ffffff;
    color: #1f2937;
    display: block;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.filter-input:hover,
.filter-select:hover {
    border-color: #06b6d4;
}

.search-input::placeholder {
    color: #9ca3af;
}

/* --- 4. Products Main Section --- */
.products-main {
    flex: 1;
    min-width: 0;
}

/* ... [Rest of your CSS from .products-main down to .product-card-meta] ... */
/* (Pasting the rest of the file for completeness) */

/* --- 5. Results Header --- */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-info {
    flex: 1;
}

.results-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
}

.results-count {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* --- 6. Active Filters --- */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.active-filters-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background-color: #e6f7f9;
    color: #0891b2;
    border: 1px solid #06b6d4;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: #06b6d4;
    color: #ffffff;
}

.filter-tag svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* --- 7. Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* --- 8. Product Card --- */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #06b6d4;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Product Image */
.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #f9fafb;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-thumbnail {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    background-color: #ffffff;
    color: #111827;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.product-card:hover .view-details {
    transform: translateY(0);
}

/* Product Content */
.product-card-content {
    padding: 24px;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.product-card:hover .product-card-title {
    color: #06b6d4;
}

.product-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 16px 0;
}

/* Product Meta */
.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #f9fafb;
    color: #374151;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.meta-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.meta-badge svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.category-badge {
    background-color: #e6f7f9;
    color: #0891b2;
    border-color: #a5f3fc;
}

.category-badge:hover {
    background-color: #06b6d4;
    color: #ffffff;
    border-color: #06b6d4;
}

.ingredient-badge {
    background-color: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

.ingredient-badge:hover {
    background-color: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

/* --- 9. Loading & Messages --- */
.loading-indicator,
.end-of-results,
.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

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

.loading-indicator p,
.end-of-results p,
.no-products p {
    font-size: 1rem;
    color: #6b7280;
    margin: 12px 0 0 0;
}

.no-products {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    min-height: 300px;
}

.no-products svg {
    stroke: #d1d5db;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px 0;
}

.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.end-of-results svg {
    stroke: #06b6d4;
    margin-bottom: 16px;
}

/* --- 10. Responsive Design --- */
@media (max-width: 1200px) {
    .archive-container {
        gap: 30px;
    }
    
    .filter-sidebar {
        width: 260px;
    }
}

@media (max-width: 992px) {
    .archive-container {
        flex-direction: column;
    }
    
    .filter-sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-archive-modern {
        padding: 30px 0;
    }
    
    .archive-container {
        padding: 0 15px;
        gap: 25px;
    }
    
    .filter-sidebar {
        padding: 25px;
    }
    
    .results-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .results-title {
        font-size: 1.5rem;
    }
    
    .filter-sidebar {
        padding: 20px;
    }
    
    .product-card-title {
        font-size: 1.1rem;
    }
}

/* --- 11. Accessibility --- */
.product-card:focus-within {
    outline: 3px solid #06b6d4;
    outline-offset: 2px;
}

.filter-input:focus,
.filter-select:focus,
.clear-filters-btn:focus,
.filter-tag:focus {
    outline: 3px solid #06b6d4;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- 12. Print Styles --- */
@media print {
    .filter-sidebar,
    .loading-indicator,
    .end-of-results {
        display: none !important;
    }
    
    .products-grid {
        display: block;
    }
    
    .product-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/*
 * --- ADD THIS NEW SECTION AT THE END ---
 * This hides the "pretty select" JS-injected elements.
 * It targets any <div> or <span> that is an
 * immediate sibling (+) of our styled select.
*/
.products-archive-modern .filter-select + div,
.products-archive-modern .filter-select + span {
    display: none !important;
    visibility: hidden !important;
}