/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   BENEFITS BAR STYLES
   ========================================================================== */

/* Benefits Bar Wrapper - pełna szerokość z białym tłem */
.benefits-bar-wrapper {
    width: 100%;
    background: #ffffff;
    margin: 0;
    padding: 25px 0;
}

/* Benefits Bar Container - 1270px + paddingi z cieniem */
.benefits-bar-container {
    max-width: 1270px;
    margin: 0 auto;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Benefits Bar - grid layout */
.benefits-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    text-align: center;
}

/* Pojedynczy element korzyści */
.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

/* Ikony SVG - stonowane kolory */
.benefit-item svg {
    opacity: 0.8;
    max-height: 70px;
    width: 100%;
}

/* Tytuł korzyści */
.benefit-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin: 0;
}

/* Podtytuł korzyści */
.benefit-subtitle {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

/* Responsywność */
@media (max-width: 768px) {
    .benefits-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .benefit-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .benefits-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   ADVICE POST TYPE STYLES - UNIFIED
   ========================================================================== */

/* Container Styles */
.archive-advice-container,
.single-advice-container {
    padding: 40px 0;
    background-color: #fff;
    min-height: 60vh;
}

.single-advice-container {
    padding: 20px 0 60px;
}

/* Hero Section */
.advice-hero {
    background: #1b2128; /* Changed from #f64e23 to #1b2128 */
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 3px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Search Functionality */
.advice-search {
    max-width: 500px;
    margin: 0 auto;
}

/* Make original .search-button specific to .advice-search */
.advice-search .search-wrapper {
    border: 1px solid rgba(255,255,255,0.3); 
}

.advice-search .search-button {
    background: #1b2128; 
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.advice-search .search-button:hover {
    background: rgba(27, 33, 40, 0.8); 
}

/* General search styles that can be shared */
.search-wrapper {
    position: relative;
    display: flex;
    border-radius: 3px;
    overflow: hidden;
    /* border attribute will be specific to context (advice-search vs realization-search) */
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-button {
    background: #1b2128;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: rgba(27, 33, 40, 0.8);
}

/* Filters Section */
.advice-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 3px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.filter-title {
    margin-bottom: 15px;
    color: #1b2128;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #fff;
    color: #1b2128;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.filter-btn:hover,
.filter-btn.active {
    background: #f64e23; /* Original advice filter active/hover color */
    color: white;
    border-color: #f64e23;
}

/* General filter styles that can be shared */
.filter-title {
    margin-bottom: 15px;
    color: #1b2128;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #fff;
    color: #1b2128;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.filter-btn:hover,
.filter-btn.active {
    background: #f64e23; /* Original advice filter active/hover color */
    color: white;
    border-color: #f64e23;
}

.count {
    background: rgba(0,0,0,0.1);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.filter-btn.active .count { 
    background: rgba(255,255,255,0.2);
}

/* Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Card Styles */
.advice-card,
.related-card {
    background: white;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.advice-card:hover,
.related-card:hover {
    border-color: #f64e23;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.related-card .card-image {
    height: 140px;
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content { /* Generic */
    padding: 20px;
}

.related-card .card-content { /* Specific for related card */
    padding: 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.category-badge {
    background: #f64e23;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.category-badge a {
    color: inherit;
    text-decoration: none;
}

.post-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.card-title { /* Generic */
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-card .card-title { /* Specific for related card */
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card-title a {
    color: #1b2128;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #f64e23;
}

.card-excerpt {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-card .card-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f64e23;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.related-card .read-more {
    font-size: 0.9rem;
    gap: 5px;
}

.read-more:hover {
    color: #1b2128;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.no-posts-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-posts-content i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-posts-content h2 {
    margin-bottom: 15px;
    color: #1b2128;
}

.no-posts-content p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: #f64e23;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background: #1b2128;
    color: white;
}

/* ==========================================================================
   REALIZATION POST TYPE STYLES
   ========================================================================== */

/* Container Styles */
.archive-realization-container {
    padding: 40px 0;
    background-color: #fff;
    min-height: 60vh;
}

/* Hero Section */
.realization-hero {
    background: #1b2128; 
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 3px;
    text-align: center;
}
/* .hero-content, .archive-title, .archive-description are shared using existing generic styles */

/* Search Functionality */
.realization-search {
    max-width: 500px;
    margin: 0 auto;
}
.realization-search .search-wrapper {
     border: 1px solid rgba(255,255,255,0.3); 
}
/* .search-input is shared using existing generic style */
.realization-search .search-button {
    background: #f64e23; 
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.realization-search .search-button:hover {
    background: #d63006; 
}

/* Filters Section */
.realization-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 3px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.realization-filters .filter-btn:hover,
.realization-filters .filter-btn.active {
    background: #1b2128; 
    color: white;
    border-color: #1b2128;
}

/* Grid Layout */
.realization-grid .posts-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Card Styles */
.realization-card {
    background: white;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex; 
    flex-direction: column; 
}

.realization-card:hover {
    border-color: #1b2128; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.realization-card .card-image { 
    position: relative;
    overflow: hidden;
    height: 220px; 
    background-color: #f0f0f0; 
}

.realization-card:hover .card-thumbnail {
    transform: scale(1.05);
}

.realization-card .card-content { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.realization-card .card-title { 
    margin-bottom: 10px; 
    font-size: 1.3rem; 
}

.realization-card .card-categories {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.realization-card .category-tag {
    background: #f0f0f0;
    color: #555;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.realization-card .category-tag:hover {
    background: #1b2128;
    color: white;
}

.realization-card .card-excerpt { 
    flex-grow: 1; 
}

.realization-card .card-footer { 
    margin-top: auto; 
}

/* Pagination */
.realization-pagination {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design for Realization */
@media (max-width: 768px) {
    .realization-hero { 
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .archive-realization-container { 
        padding: 20px 0;
    }
    .realization-hero { 
        margin-bottom: 20px;
        border-radius: 0; 
    }
    .realization-filters { 
        margin-bottom: 20px;
        padding: 20px;
    }
}

/* ==========================================================================
   SINGLE ADVICE SPECIFIC STYLES
   ========================================================================== */

/* Article Header */
.advice-header {
    background: white;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.header-content {
    padding: 30px;
}

.advice-header .category-badge {
    padding: 6px 14px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.advice-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1b2128;
    margin-bottom: 20px;
    line-height: 1.3;
}

.advice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #f64e23;
    width: 16px;
}

.meta-item a {
    color: inherit;
    text-decoration: none;
}

.meta-item a:hover {
    color: #f64e23;
}

.featured-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.advice-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Layout */
.advice-content {
    background: white;
    border-radius: 3px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    padding: 30px;
}

.main-content {
    line-height: 1.7;
    color: #1b2128;
}

.main-content h2,
.main-content h3,
.main-content h4 {
    color: #1b2128;
    margin-top: 2em;
    margin-bottom: 1em;
}

.main-content h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #f64e23;
    padding-bottom: 8px;
}

.main-content h3 {
    font-size: 1.3rem;
    color: #f64e23;
}

.main-content p {
    margin-bottom: 1.5em;
}

.main-content ul,
.main-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.main-content li {
    margin-bottom: 0.5em;
}

.main-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #f64e23;
    padding: 20px;
    margin: 2em 0;
    font-style: italic;
    border-radius: 0 3px 3px 0;
}

.main-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.main-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 3px;
    overflow-x: auto;
    margin: 2em 0;
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 3px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.sidebar-widget h3 {
    margin-bottom: 12px;
    color: #1b2128;
    font-size: 1.1rem;
}

.sidebar-widget p {
    color: #6c757d;
    margin-bottom: 18px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f64e23;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.contact-btn:hover {
    background: #1b2128;
    color: white;
}

/* Related Articles */
.related-advice {
    background: white;
    padding: 30px;
    border-radius: 3px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.8rem;
    color: #1b2128;
    margin-bottom: 25px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: #f8f9fa;
}

.back-to-archive {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #f64e23;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.back-to-archive:hover {
    background: #1b2128;
    color: white;
}

/* Page Links */
.page-links {
    margin: 2em 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 3px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.page-links a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: white;
    color: #f64e23;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.page-links a:hover {
    background: #f64e23;
    color: white;
    border-color: #f64e23;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.elementor-cta:hover .elementor-cta__bg-overlay,
.elementor-cta .elementor-cta__bg-overlay {
    background-color: rgba(0, 0, 0, .5);
}

.commercekit-inventory {
    clear: both;
    display: block;
    width: 100%;
}

.stock.in-stock,
.stock.out-of-stock,
.woocommerce-product-details__short-description + .stock,
.product .stock,
p.stock {
    display: none !important;
}

.header-4 .search-trigger span {
    border-right: none;
    margin-right: 0;
}

.shoptimizer-myaccount {
    padding-right: 0 !important;
}

.site-header-wishlist {
    display: flex;
    align-items: center;
    margin-right: 15px;
    position: relative;
}

.site-header-wishlist svg {
    color: #fff;
}

.site-header-wishlist .wishlist-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.site-header-wishlist svg {
    width: 20px;
    height: 20px;
}

.term-description {
    width: 100%;
}

/* ==========================================================================
   COMMERCEKIT TIMER STYLES
   ========================================================================== */

#commercekit-timer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1E1E1E;
    color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#commercekit-timer.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

#commercekit-timer.product .commercekit-timer-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #f64e23;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: center;
}

#commercekit-timer.product .commercekit-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

#commercekit-timer.product .commercekit-countdown-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

#commercekit-timer.product .commercekit-countdown-amount {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

#commercekit-timer.product .commercekit-countdown-period {
    font-size: 10px;
    text-transform: uppercase;
    color: #999999;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.ckit-badge {
    font-weight: bold;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .site-header-wishlist {
        margin-left: 10px;
    }
    .site-header-wishlist .wishlist-link {
        width: 35px;
        height: 35px;
    }
    .site-header-wishlist svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .archive-title,
    .advice-title {
        font-size: 1.8rem;
    }
    
    .advice-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .advice-hero {
        padding: 30px 0;
    }
    
    .search-wrapper {
        flex-direction: column;
        border-radius: 3px;
    }
    
    .search-button {
        border-radius: 0 0 3px 3px;
    }
    
    .advice-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-content,
    .content-wrapper {
        padding: 30px 20px;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .nav-next .nav-link {
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-advice {
        padding: 30px 20px;
    }
    .realization-grid .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .archive-advice-container {
        padding: 20px 0;
    }
    
    .single-advice-container {
        padding: 10px 0 40px;
    }
    
    .advice-hero {
        margin-bottom: 20px;
        border-radius: 0;
    }
    
    .advice-filters {
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 3px;
    }
    
    .posts-grid {
        gap: 12px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .advice-header,
    .advice-content {
        margin-bottom: 20px;
        border-radius: 0;
    }
    
    .header-content,
    .content-wrapper {
        padding: 20px;
    }
    
    .contact-buttons {
        flex-direction: row;
    }
    
    .contact-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

/* Ensure .sr-only is at the end of utility or a general section if not already */

ul.products li.product img {
    height: 200px;
    object-fit: contain;
}