.product-flags-big .product-flag {
    line-height: 2.5;
}

/* Alert box */
.alert-box {
    background-color: #ececec;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    /* font-family: Arial, sans-serif;*/
    font-size: 16px;
    color: #333;
    width: 97%;
    margin: 20px auto;
    text-align: left;
}


/* CSS for table with ID "product_desc" */
#product_desc {
    border-collapse: collapse;
    width: 100%;
}

.image-cell {
    text-align: center;
}

#product_desc td p,
#product_desc td h2 {
    max-width: 400px;
}

/* Add spacing between rows with margin-top and margin-bottom */
#product_desc tr img {
    margin-bottom: 20px;
    /* Adjust the gap between rows */
}

@media (max-width: 768px) {
    #product_desc {
        display: block;
    }

    #product_desc tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 20px;
        /* Add margin for mobile view */
    }

    #product_desc td {
        flex: 1 1 auto;
        padding: 10px;
    }

    #product_desc td:nth-child(odd) {
        order: 2;
    }
}

#header .vertical-center {
    justify-content: flex-end;
}

/* Clear the float after every 3rd card on â‰Ą 768 px (Bootstrap-3 â€śsmâ€ť) */
@media (min-width: 768px) {
    .customer-gallery .col-sm-4:nth-child(3n+1) {
        clear: both;
    }
}

/* ------------------ FAQ SEKCIA ------------------------------------- */

/* Kontajner pre celĂ© FAQ */
.custom-faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- 1. ĂšROVEĹ‡: HLAVNĂ‰ SEKCIE --- */
.faq-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fff;
    overflow: hidden;
    /* Pre zaoblenĂ© rohy */
}

.faq-section-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.faq-section-header:hover {
    background-color: #f0f0f0;
}

.faq-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #001d35;
    /* Tvoja tmavomodrĂˇ farba */
}

.faq-section-icon {
    font-size: 24px;
    font-weight: bold;
    color: #001d35;
    transition: transform 0.3s ease;
}

/* Obsah sekcie (zoznam otĂˇzok) - TERAZ ROZBALENĂť DEFAULTNE */
.faq-section-content {
    max-height: 5000px;
    /* NavĂ˝ĹˇenĂ© pre istotu */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 1;
}

/* KeÄŹ je sekcia aktĂ­vna (v tomto prĂ­pade klikneme pre ZATVORENIE) */
.faq-section.collapsed .faq-section-header {
    background-color: #f9f9f9;
}

.faq-section.collapsed .faq-section-icon {
    transform: rotate(0deg);
}

.faq-section.collapsed .faq-section-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
}

/* --- 2. ĂšROVEĹ‡: OTĂZKY A ODPOVEDE --- */
.faq-item {
    border-top: 1px solid #eee;
    margin: 0;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.faq-icon {
    font-size: 20px;
    font-weight: bold;
    color: #999;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    background-color: #fff;
    padding: 0 20px;
    /* Padding len po bokoch, vĂ˝Ĺˇka sa rieĹˇi cez max-height */
}

.faq-answer p {
    padding-bottom: 15px;
    padding-top: 5px;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* KeÄŹ je otĂˇzka aktĂ­vna */
.faq-item.active .faq-question {
    background-color: #fff;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #001d35;
}

.faq-item.active .faq-answer {
    max-height: 3000px;
    /* NAVĂťĹ ENĂ‰: Aby sa nezasekĂˇvali dlhĂ© odpovede */
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
}


/* ------------------ FAQ SEKCIA END ------------------------------------- */

/* ------------------ CUSTOMER GALLERY ------------------------------------- */

/* Customer Gallery Styles - FIXED VERSION */
/* Aplikuje sa LEN na CMS strĂˇnke ID 7 (info/7-*) */

/* ZĂˇkladnĂ˝ grid len pre CMS 7 */
body.cms-id-7 .custom-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 0;
}

body.cms-id-7 .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #fff;
    height: auto !important;
    aspect-ratio: auto !important;
}

/* Specific styling for the small gallery inside Category 3 description */
.category-id-3 .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #fff;
    aspect-ratio: 4 / 3;
}


body.cms-id-7 .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.cms-id-7 .gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;

}

body.category-id-6 .product-miniature .thumbnail-container-image,
body.category-id-7 .product-miniature .thumbnail-container-image,
body.category-id-8 .product-miniature .thumbnail-container-image,
body.category-id-9 .product-miniature .thumbnail-container-image {
    position: relative;
}

body.category-id-6 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
body.category-id-7 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
body.category-id-8 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
body.category-id-9 .snailer-roof-racks-variant-ui.snailer-card-variant-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    max-width: calc(100% - 28px);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(4, 24, 43, 0.94);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 10px 24px rgba(4, 24, 43, 0.18);
}

body.category-id-6 .snailer-roof-racks-variant-ui.snailer-card-variants,
body.category-id-7 .snailer-roof-racks-variant-ui.snailer-card-variants,
body.category-id-8 .snailer-roof-racks-variant-ui.snailer-card-variants,
body.category-id-9 .snailer-roof-racks-variant-ui.snailer-card-variants {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    min-height: 24px;
}

body.category-id-6 .snailer-card-swatches,
body.category-id-7 .snailer-card-swatches,
body.category-id-8 .snailer-card-swatches,
body.category-id-9 .snailer-card-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

body.category-id-6 .snailer-card-swatch,
body.category-id-7 .snailer-card-swatch,
body.category-id-8 .snailer-card-swatch,
body.category-id-9 .snailer-card-swatch {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #0b2239;
    box-shadow: inset 0 0 0 2px #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.category-id-6 .snailer-card-swatch.is-light,
body.category-id-7 .snailer-card-swatch.is-light,
body.category-id-8 .snailer-card-swatch.is-light,
body.category-id-9 .snailer-card-swatch.is-light {
    border-color: #7f8d9b;
}

body.category-id-6 .snailer-card-swatch:hover,
body.category-id-6 .snailer-card-swatch:focus,
body.category-id-7 .snailer-card-swatch:hover,
body.category-id-7 .snailer-card-swatch:focus,
body.category-id-8 .snailer-card-swatch:hover,
body.category-id-8 .snailer-card-swatch:focus,
body.category-id-9 .snailer-card-swatch:hover,
body.category-id-9 .snailer-card-swatch:focus {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(4, 24, 43, 0.14);
}

body.category-id-6 .snailer-card-swatch-more,
body.category-id-7 .snailer-card-swatch-more,
body.category-id-8 .snailer-card-swatch-more,
body.category-id-9 .snailer-card-swatch-more {
    color: #6a7682;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

body.category-id-6 .snailer-card-variant-text,
body.category-id-7 .snailer-card-variant-text,
body.category-id-8 .snailer-card-variant-text,
body.category-id-9 .snailer-card-variant-text {
    color: #6f7782;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    body.category-id-6 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
    body.category-id-7 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
    body.category-id-8 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
    body.category-id-9 .snailer-roof-racks-variant-ui.snailer-card-variant-badge {
        top: 10px;
        right: 10px;
        font-size: 9px;
        padding: 6px 10px;
    }

    body.category-id-6 .snailer-roof-racks-variant-ui.snailer-card-variants,
    body.category-id-7 .snailer-roof-racks-variant-ui.snailer-card-variants,
    body.category-id-8 .snailer-roof-racks-variant-ui.snailer-card-variants,
    body.category-id-9 .snailer-roof-racks-variant-ui.snailer-card-variants {
        gap: 8px;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    body.category-id-6 .snailer-card-variant-text,
    body.category-id-7 .snailer-card-variant-text,
    body.category-id-8 .snailer-card-variant-text,
    body.category-id-9 .snailer-card-variant-text {
        font-size: 10px;
    }
}

@media (max-width: 575px) {
    body.category-id-6 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
    body.category-id-7 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
    body.category-id-8 .snailer-roof-racks-variant-ui.snailer-card-variant-badge,
    body.category-id-9 .snailer-roof-racks-variant-ui.snailer-card-variant-badge {
        max-width: calc(100% - 20px);
    }

    body.category-id-6 .snailer-card-swatch,
    body.category-id-7 .snailer-card-swatch,
    body.category-id-8 .snailer-card-swatch,
    body.category-id-9 .snailer-card-swatch {
        width: 16px;
        height: 16px;
    }
}

/* KRITICKĂ‰: Ĺ pecifickĂ˝ selektor LEN pre gallery obrĂˇzky v CMS 7 */
body.cms-id-7 .custom-gallery-grid .gallery-item .gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Flag icon exception */
body.cms-id-7 .gallery-image-wrapper .flag-icon {
    position: static !important;
    width: 24px !important;
    height: 18px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

body.cms-id-7 .country-badge {
    position: absolute;
    bottom: 25px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.cms-id-7 .gallery-caption {
    padding: 15px;
    text-align: center;
    background: #fff;
}

body.cms-id-7 .gallery-caption strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

/* Lightbox Styles - globĂˇlne (lebo sa otvĂˇra cez celĂş strĂˇnku) */
#customLightbox {
    display: none;
    position: fixed;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightboxImg {
    width: 90vw !important;
    height: 80vh !important;
    min-width: 300px;
    min-height: 300px;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    margin-bottom: 15px;
}

#lightboxCaption {
    color: #fff;
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
    max-width: 90vw;
    padding: 10px;
}

#closeLightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

#closeLightbox:hover {
    background: rgba(0, 0, 0, 0.8);
}

#prevBtn,
#nextBtn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 3px;
    z-index: 100000;
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

#prevBtn:hover,
#nextBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Mobile - len pre CMS 7 */
@media (max-width: 768px) {
    body.cms-id-7 .custom-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #lightboxImg {
        width: 95vw !important;
        height: 70vh !important;
    }

    #prevBtn,
    #nextBtn {
        padding: 10px;
        font-size: 20px;
    }

    #closeLightbox {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* ------------------ CUSTOMER GALLERY END ------------------------------------- */

/* ==================== CATEGORY DESCRIPTION ==================== */
/* ==================== CATEGORY DESCRIPTION ==================== */

/* Remove PrestaShop default backgrounds */
#category #left-column,
#category .block-category {
    background: transparent !important;
    background-color: transparent !important;
}

/* PrestaShop Category Description Wrapper */
#category .block-category,
.category-description,
#category-description {
    max-width: 1240px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Hide PrestaShop's default H1 - BUT NOT the one in .category-hero */
#category .block-category>h1,
#category-description>h1 {
    display: none !important;
}

/* Make sure our hero H1 is visible */
.category-hero h1 {
    display: block !important;
}

.category-description-container {
    max-width: 1240px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

/* Toggle Button (Mobile Only) */
.category-toggle-btn {
    display: none;
    /* Hidden on desktop */
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1e5a6d 0%, #2c7a8f 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
    text-align: left;
    position: relative;
    box-shadow: 0 2px 8px rgba(30, 90, 109, 0.25);
}

.category-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 90, 109, 0.35);
}

.category-toggle-btn .toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    font-size: 18px;
}

.category-toggle-btn.collapsed .toggle-icon {
    transform: translateY(-50%) rotate(-90deg);
}

.category-toggle-btn .toggle-text-collapsed {
    display: none;
}

.category-toggle-btn.collapsed .toggle-text-expanded {
    display: none;
}

.category-toggle-btn.collapsed .toggle-text-collapsed {
    display: inline;
}

/* Category Content */
.category-content {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s;
}

.category-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin-bottom: 0;
}

/* Hero Section */
.category-hero {
    text-align: center;
    padding: 50px 20px;
    background: #fafafa;
    border-radius: 12px;
    margin: 0 0 50px 0 !important;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    width: 100% !important;
    max-width: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

.category-hero h1 {
    font-size: 36px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -1px;
}

.category-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    max-width: 900px;
    margin: 0 auto 40px;
    font-weight: 400;
    text-align: center;
}

.category-intro strong {
    color: #1e5a6d;
    font-weight: 500;
    background: linear-gradient(135deg, #1e5a6d 0%, #2c7a8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Comparison Table */
.category-comparison {
    margin-bottom: 50px;
}

.category-comparison h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 35px;
    text-align: center;
    letter-spacing: -0.5px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;

    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.comparison-table-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.tent-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    min-width: 700px;
}

.tent-comparison-table thead {
    background: linear-gradient(135deg, #1e5a6d 0%, #2c7a8f 100%);
    color: #ffffff;
}

.tent-comparison-table th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
}

.tent-comparison-table th a.tent-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s;
}

.tent-comparison-table th a.tent-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none;
}

.tent-comparison-table tbody tr {
    border-bottom: 1px solid #eee;
}

.tent-comparison-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.tent-comparison-table tbody tr:hover {
    background-color: #ebf5f7;
    transform: scale(1.002);
    transition: all 0.2s;
}

.tent-comparison-table td {
    padding: 14px 15px;
    text-align: center;
    color: #374151;
    font-size: 14px;
    font-weight: 400;
}

.tent-comparison-table td:first-child {
    font-weight: 500;
    text-align: left;
    color: #1e5a6d;
}

.btn-view-details {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e5a6d 0%, #2c7a8f 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(30, 90, 109, 0.25);
}

.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 90, 109, 0.4);
    text-decoration: none;
}

/* Why Choose Section */
.category-why-choose {
    margin-bottom: 50px;
}

.category-why-choose h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.feature-item .feature-icon {
    font-size: 52px;
    margin-bottom: 18px;
    transition: transform 0.3s;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-item:nth-child(1) .feature-icon {
    color: #dc2626;
}

.feature-item:nth-child(2) .feature-icon {
    color: #0891b2;
}

.feature-item:nth-child(3) .feature-icon {
    color: #2563eb;
}

.feature-item:nth-child(4) .feature-icon {
    color: #7c3aed;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* How to Choose Guide Section */
.category-guide {
    margin-bottom: 50px;
}

.category-guide h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.5px;
}

.guide-intro {
    font-size: 16px;
    color: #4b5563;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.guide-subheading {
    font-size: 22px;
    font-weight: 500;
    color: #1f2937;
    margin: 40px 0 25px;
    text-align: center;
}

.capacity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.capacity-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.capacity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #1e5a6d;
}

.capacity-badge {
    display: inline-block;
    background: #111;
    color: #eebc24;
    border: 1px solid #eebc24;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.capacity-item h4 {
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 12px;
}

.capacity-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.capacity-item a,
.guide-intro a,
.benefits-intro a,
.snailer-intro a,
.category-intro a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.capacity-item a:hover,
.guide-intro a:hover,
.benefits-intro a:hover,
.snailer-intro a:hover,
.category-intro a:hover {
    color: #6b7280;
    text-decoration: underline;
}

.guide-note {
    background: #f5f7fa;
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #1e5a6d;
    margin-top: 30px;
}

.guide-note p {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* Benefits Section */
.category-benefits {
    margin-bottom: 50px;
    background: #fafafa;
    padding: 50px 30px;
    border-radius: 12px;
}

.category-benefits h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.5px;
}

.benefits-intro {
    font-size: 16px;
    color: #4b5563;
    text-align: center;
    margin-bottom: 35px;
}

.benefits-list {
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.benefit-check {
    font-size: 20px;
    color: #1e5a6d;
    font-weight: bold;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.benefit-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose SNAILER Section */
.category-why-snailer {
    margin-bottom: 50px;
}

.category-why-snailer h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.5px;
}

.snailer-intro {
    font-size: 16px;
    color: #4b5563;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.snailer-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.snailer-feature {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.snailer-feature:hover {
    border-color: #1e5a6d;
    box-shadow: 0 4px 12px rgba(30, 90, 109, 0.1);
}

.snailer-feature .feature-check {
    font-size: 18px;
    color: #1e5a6d;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.feature-text p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Installation Guide Section */
.category-installation {
    margin-bottom: 50px;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.category-installation h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.category-installation p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 15px;
}

.installation-note {
    font-size: 13px !important;
    color: #9ca3af !important;
    font-style: italic;
}

/* Rooftop Tents for Every Adventure */
.category-adventure {
    margin-bottom: 50px;
}

.category-adventure h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.5px;
}

.adventure-item {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    border-left: 4px solid #545454;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.adventure-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.adventure-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #545454;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.adventure-model {
    font-size: 22px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.adventure-item p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 15px;
}

.adventure-specs {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 500;
    margin-bottom: 20px !important;
}

.adventure-model a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.adventure-model a:hover {
    color: #6b7280;
    text-decoration: underline;
}

.adventure-item p a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.adventure-item p a:hover {
    color: #6b7280;
    text-decoration: underline;
}

.adventure-link {
    display: inline-block;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.adventure-link:hover {
    color: #6b7280;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Customer Gallery Section */
.category-gallery {
    margin-bottom: 50px;
    text-align: center;
}

.category-gallery h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.5px;
}

.gallery-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 30px;
    font-weight: 300;
}

.customer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.gallery-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #f5f7fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-cta {
    text-align: center;
    margin-top: 30px;
}

.btn-gallery {
    display: inline-block;
    padding: 14px 40px;
    background-color: #1f2937;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.2);
}

.btn-gallery:hover {
    background-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
    text-decoration: none;
}

/* FAQ Section in Category */
.category-faq {
    margin-bottom: 50px;
}

.category-faq h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 35px;
    text-align: center;
    letter-spacing: -0.5px;
}

.category-faq .category-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    background-color: #ffffff;
    overflow: hidden;
    transition: all 0.3s;
}

.category-faq .category-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-faq .category-faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.category-faq .category-faq-question:hover {
    background-color: #f9fafb;
}

.category-faq .category-faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

.category-faq .category-faq-icon {
    font-size: 20px;
    font-weight: bold;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.category-faq .category-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out;
    opacity: 0;
    background-color: #fff;
    padding: 0 24px;
}

.category-faq .category-faq-answer p {
    padding-bottom: 0;
    padding-top: 0;
    margin: 0 0 16px 0;
    color: #6b7280;
    line-height: 1.7;
    font-size: 15px;
}

.category-faq .category-faq-answer p:first-child {
    margin-top: 20px;
}

.category-faq .category-faq-answer p:last-child {
    margin-bottom: 0;
}

.category-faq .category-faq-answer ul {
    margin: 16px 0;
    padding-left: 24px;
}

.category-faq .category-faq-answer li {
    margin-bottom: 12px;
    color: #6b7280;
    line-height: 1.7;
}

.category-faq .category-faq-answer strong {
    color: #1f2937;
    font-weight: 500;
}

.category-faq .category-faq-answer img {
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-faq .category-faq-answer em {
    display: block;
    margin-top: 8px;
}

.category-faq .category-faq-answer a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.category-faq .category-faq-answer a:hover {
    color: #6b7280;
    text-decoration: underline;
}

.category-faq .category-faq-item.active .category-faq-icon {
    transform: rotate(45deg);
    color: #1e5a6d;
}

.category-faq .category-faq-item.active {
    border-color: #1e5a6d;
    box-shadow: 0 4px 16px rgba(30, 90, 109, 0.15);
}

.category-faq .category-faq-item.active .category-faq-answer {
    /* max-height set dynamically via JavaScript */
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
    padding: 0 24px 24px 24px;
}

/* FAQ CTA Button */
.faq-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px 0;
    position: relative;
    z-index: 10;
    background: #fff;
}

.btn-faq-all {
    display: inline-block;
    padding: 14px 40px;
    background-color: #1f2937;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.2);
}

.btn-faq-all:hover {
    background-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
    text-decoration: none;
}

/* CTA Section */
.category-cta {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e5a6d 0%, #164e61 100%);
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(30, 90, 109, 0.3);
}

.category-cta h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.category-cta p {
    font-size: 17px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
}

.btn-cta-primary {
    display: inline-block;
    padding: 16px 48px;
    background-color: #ffffff;
    color: #1e5a6d !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background-color: #f0f9fc;
    text-decoration: none;
}

/* Mobile Styles */
@media (max-width: 768px) {

    /* Hide toggle button - content should be expanded by default */
    .category-toggle-btn {
        display: none !important;
    }

    /* Start expanded on mobile */
    .category-content {
        max-height: none;
        opacity: 1;
        padding: 20px 0;
    }

    .category-content.expanded {
        max-height: 50000px;
        opacity: 1;
        padding: 20px 0;
    }

    .category-hero h1 {
        font-size: 24px;
    }

    .category-intro {
        font-size: 14px;
    }

    .category-comparison h2,
    .category-why-choose h2,
    .category-faq h2,
    .category-cta h2 {
        font-size: 22px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .customer-gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .capacity-list {
        gap: 15px;
    }

    .snailer-features-grid {
        grid-template-columns: 1fr;
    }

    .tent-comparison-table {
        font-size: 12px;
    }

    .tent-comparison-table th,
    .tent-comparison-table td {
        padding: 8px;
    }

    /* Mobile table scroll hint */
    .comparison-table-wrapper::after {
        content: 'â† Swipe to compare â†’';
        display: none;
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #6b7280;
        font-style: italic;
        white-space: nowrap;
    }

    @media (max-width: 768px) {
        .category-comparison {
            position: relative;
            padding-bottom: 35px;
        }

        .comparison-table-wrapper::after {
            display: block;
        }
    }

}

/* ==================== CATEGORY DESCRIPTION END ==================== */

/* --- SNAILER: Specific spacing for Category 3 (StreĹˇnĂ© stany) --- */

/* OdstrĂˇnenie hornĂ©ho odsadenia pod menu */
.category-id-3 #wrapper {
    padding-top: 0 !important;
}

.category-id-3 .breadcrumb,
body.cms-id-7 .breadcrumb {
    display: none !important;
}

/* OdstrĂˇnenie medzier v hlavnĂ˝ch kontajneroch */
.category-id-3 #content-wrapper {
    margin-top: 0 !important;
}

.category-id-3 .block-category {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Pritiahnutie textu a nadpisu */
.category-id-3 #category-description {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Roztiahnutie ĂşvodnĂ©ho textu na celĂş ĹˇĂ­rku */
.category-id-3 .category-intro {
    max-width: 100% !important;
}

.category-id-3 #category-description h1.h1 {
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

/* OdstrĂˇnenie medzery po poslednom odseku a skrytie prĂˇzdnych */
.category-id-3 #category-description p:last-of-type {
    margin-bottom: 0 !important;
}

.category-id-3 #category-description p:empty {
    display: none !important;
}

@media (max-width: 768px) {

    /* EĹˇte tesnejĹˇie na mobile */
    .category-id-3 .breadcrumb {
        padding-top: 2px !important;
    }

    .category-id-3 .block-category {
        margin-bottom: 5px !important;
    }
}

/* OdstrĂˇnenie hornĂ©ho panela filtrov a zoradenia (skrytĂ© pomocou display: none) */
.category-id-3 #js-product-list-top {
    display: none !important;
}

/* ==================== CATEGORY DESCRIPTION END ==================== */

/* ==================== Product Manual Box Styling START ==================== */
.product-manual-section {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    border-left: 5px solid #1e5a6d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.manual-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.manual-icon-pdf {
    font-size: 35px;
    color: #cc0000;
}

.manual-text h4 {
    margin: 0;
    color: #1e5a6d;
    font-weight: 600;
}

.btn-manual-download {
    background: #1e5a6d;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    transition: 0.3s;
}

.btn-manual-download:hover {
    background: #164352;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .product-manual-section {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== Product Manual Box Styling END ==================== */

/* RE-FIX: Ensure first text block (category description) is fully visible on mobile */
.block-category #category-description p.category-intro {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    text-overflow: clip !important;
}

/* --- SCOPED Mobile Product Slider  --- */
/* UpravenĂ© tak, aby fungovalo LEN na Domovskej strĂˇnke (body.index) a StreĹˇnĂ˝ch stanoch (body.category-id-3) */

/* === 1. Defaultný stav pre ostatné stránky (GRID - Slider vypnutý) === */
.mobile-slider-dots {
    display: none !important;
}

@media (max-width: 991px) {

    /* 1. DEFAULTNÝ STAV - Násilne vypnutý slider (pre všetky bežné kategórie ako Náhradné diely) */
    /* Zabraňuje PrestaShop JavaScriptu a natvrdo vloženej šablóne vytvoriť horizontálny slider */
    .mobile-slider {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        scroll-snap-type: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* Násilný reset pre konkrétne produkty vo vnútri defaultnej mriežky, ak by sa do nich chcel predrať slider JS */
    body:not(#index):not(.index):not(.category-id-3) .mobile-slider .product-miniature {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        scroll-snap-align: none !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. Aktivácia SLIDERA len pre vybrané stránky */
    body#index .mobile-slider,
    body.index .mobile-slider,
    body.category-id-3 .mobile-slider {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        margin: 0 !important;
        padding: 0 15px 20px 15px !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        justify-content: flex-start !important;
    }

    /* SkryĹĄ scrollbar */
    body#index .mobile-slider::-webkit-scrollbar,
    body.index .mobile-slider::-webkit-scrollbar,
    body.category-id-3 .mobile-slider::-webkit-scrollbar {
        display: none;
    }

    /* Ĺ Ă­rka kariet v slideri */
    body#index .mobile-slider .product-miniature,
    body.index .mobile-slider .product-miniature,
    body.category-id-3 .mobile-slider .product-miniature {
        flex: 0 0 78% !important;
        max-width: 78% !important;
        scroll-snap-align: start;
        margin-right: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* Ĺ Ă­rka pre tablety */
    @media (min-width: 481px) {

        body#index .mobile-slider .product-miniature,
        body.index .mobile-slider .product-miniature,
        body.category-id-3 .mobile-slider .product-miniature {
            flex: 0 0 45% !important;
            max-width: 45% !important;
        }
    }

    /* Odsadenia */
    body#index .mobile-slider .product-miniature:first-child,
    body.index .mobile-slider .product-miniature:first-child,
    body.category-id-3 .mobile-slider .product-miniature:first-child {
        margin-left: 0 !important;
    }

    body#index .mobile-slider .product-miniature:last-child,
    body.index .mobile-slider .product-miniature:last-child,
    body.category-id-3 .mobile-slider .product-miniature:last-child {
        margin-right: 0 !important;
    }

    /* Karta produktu v slideri */
    body#index .mobile-slider .thumbnail-container,
    body.index .mobile-slider .thumbnail-container,
    body.category-id-3 .mobile-slider .thumbnail-container {
        width: 100% !important;
        margin: 0 !important;
        border: 1px solid #ededed !important;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    /* Vlastnosti produktu v slideri */
    body#index .mobile-slider .product-card-features,
    body.index .mobile-slider .product-card-features,
    body.category-id-3 .mobile-slider .product-card-features {
        padding: 15px 20px !important;
        min-height: 140px;
    }

    body#index .mobile-slider .product-card-features li,
    body.index .mobile-slider .product-card-features li,
    body.category-id-3 .mobile-slider .product-card-features li {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Bodky (pagination) - zobraziĹĄ len tam kde treba */
    body#index .mobile-slider-dots,
    body.index .mobile-slider-dots,
    body.category-id-3 .mobile-slider-dots {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 5px !important;
        padding-bottom: 25px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-slider-dots .dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background-color: #d1d5db !important;
        transition: all 0.3s ease !important;
        display: inline-block !important;
    }

    .mobile-slider-dots .dot.active {
        background-color: #000000 !important;
        transform: scale(1.3) !important;
    }
}

/* --- SCOPED Key Features (Product Cards) --- */
/* Applied only on Homepage and Category 3 */

body.index .featured-products .product-description,
body.category-id-3 .featured-products .product-description {
    display: flex !important;
    flex-direction: column !important;
    min-height: 360px !important;
    padding: 20px 0 0 0 !important;
}

body.index .product-description .product-list-reviews,
body.category-id-3 .product-description .product-list-reviews {
    min-height: 20px !important;
    margin-bottom: 5px !important;
}

body.index .product-title,
body.index .featured-products .product-title,
body.category-id-3 .product-title,
body.category-id-3 .featured-products .product-title {
    min-height: 44px !important;
    margin: 0 auto 8px auto !important;
    /* FIXED: Centered */
    display: flex;
    align-items: center;
    justify-content: center !important;
    /* FIXED: Center flex content */
    text-align: center !important;
    width: 100% !important;
}

body.index .product-price-and-shipping,
body.category-id-3 .product-price-and-shipping {
    flex-grow: 0 !important;
    min-height: 40px !important;
    margin: 0 auto 10px auto !important;
    /* FIXED: Centered */
}

body.index .product-card-features,
body.category-id-3 .product-card-features {
    margin-top: auto !important;
    padding: 12px 30px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fafafa;
}

body.index .product-card-features ul,
body.category-id-3 .product-card-features ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.index .product-card-features li,
body.category-id-3 .product-card-features li {
    font-size: 13px !important;
    color: #444 !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: flex-start !important;
    line-height: 1.3 !important;
}



body.index .product-card-features .feature-icon,
body.category-id-3 .product-card-features .feature-icon,
/* Added Check: Featured Products Wrapper */
.featured-products .product-card-features .feature-icon,
/* FIX 1: Target images directly if class is missing */
body.index .product-card-features li img,
body.category-id-3 .product-card-features li img,
.featured-products .product-card-features li img,
/* FIX 2: Broad Fallback for Homepage Description Text */
body.index .product-description p,
body.index .product-description .an_short_description,
.featured-products .product-description p,
.featured-products .product-description .an_short_description {
    font-size: 13px !important;
    color: #444 !important;
    line-height: 1.5 !important;
    /* Increased from 1.3/1.4 to 1.5 for readability */
}

/* FIX: Force Grayscale on Emojis (Spans) */
body.index .product-card-features .feature-icon,
body.category-id-3 .product-card-features .feature-icon,
.featured-products .product-card-features .feature-icon {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

/* FIX 3: Target any images inside description on homepage AND category */
body.index .product-description img,
body.index .product-description .an_short_description img,
body.category-id-3 .product-description img,
body.category-id-3 .product-description .an_short_description img {
    font-size: 16px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: auto !important;
    margin-right: 12px !important;
    display: inline-block !important;
    text-align: center !important;
    filter: grayscale(100%) !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    border-style: none !important;
}


/* FIX 4: Robust Homepage AND Category Card Alignment */
/* Ensure the description container behaves like a flex column */
body#index .product-description,
body.index .product-description,
body.category-id-3 .product-description,
.featured-products .product-description {
    display: flex !important;
    flex-direction: column !important;
    min-height: 290px !important;
    /* Reduced to 290px to minimize gaps while keeping alignment */
    padding-bottom: 0 !important;
    height: 100% !important;
    justify-content: flex-start !important;
}



/* ==================== LAYOUT FIX: FULL WIDTH & CENTERING ==================== */
/* Hide Left Column on Category Page to center products on screen */
body.category-id-3 #left-column {
    display: none !important;
}

body.category-id-3 #content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    /* Force min width */
    flex: 0 0 100% !important;
    /* CRITICAL: Override Bootstrap flex-basis for grid columns */
    padding-left: 15px !important;
    /* Safety padding from edge */
    padding-right: 15px !important;
    /* Safety padding from edge */
    float: none !important;
    margin: 0 auto !important;
}

/* Force specific elements to have natural height */
body#index .product-title,
body.index .product-title,
body.category-id-3 .product-title {
    flex: 0 0 auto !important;
    min-height: 50px !important;
    /* Increased to fit 2-3 lines comfortably */
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    /* Allow wrapping */
    overflow: visible !important;
    /* Show all text */
    text-overflow: clip !important;
    /* No ellipsis */
}

/* Ensure the link inside the title is also centered and wraps correctly (CRITICAL FIX) */
body#index .product-title a,
body.index .product-title a,
body.category-id-3 .product-title a {
    text-align: center !important;
    display: block !important;
    /* Block ensures it takes full width of flex parent */
    width: 100% !important;
    white-space: normal !important;
    margin: 0 auto !important;
    color: inherit !important;
}

/* Ensure Price block has spacing below it */
body#index .product-price-and-shipping,
body.index .product-price-and-shipping,
body.category-id-3 .product-price-and-shipping {
    margin-bottom: 12px !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
}

/* Push the features box to the bottom and style it cleanly */
body#index .product-card-features,
body.index .product-card-features,
body.category-id-3 .product-card-features,
.featured-products .product-card-features {
    margin-top: auto !important;
    width: 100% !important;
    padding: 10px 12px !important;
    /* Slightly tighter padding for polished look */
    background: #fafafa !important;
    border-top: 1px solid #eee !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
    /* SENIOR FIX: Breaks ANY long string */
    word-break: break-word !important;
    /* Fallback */
    hyphens: auto !important;
    /* Nice hyphenation */
    font-size: 13px !important;
    /* Slighly smaller for better fit */
    line-height: 1.4 !important;
    /* Better readability */
    color: #4a4a4a !important;
    /* Softer text color */
}

/* Ensure list items are readable, aligned, and have proper spacing */
body#index .product-card-features ul,
body.index .product-card-features ul,
body.category-id-3 .product-card-features ul {
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    /* Ensure ul takes full width */
}

body#index .product-card-features li,
body.index .product-card-features li,
body.category-id-3 .product-card-features li {
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    /* Ensure li takes full width */
    white-space: normal !important;
    /* Allow wrapping */
}

/* Ensure icons are consistently sized and spaced */
body#index .product-card-features .feature-icon,
body.category-id-3 .product-card-features .feature-icon,
.featured-products .product-card-features .feature-icon {
    min-width: 20px !important;
    margin-right: 8px !important;
    text-align: center !important;
    display: inline-block !important;
    /* Ensure it behaves as a block in flex */
}

/* ==================== GRID UNIFICATION (Force 4 Columns & Centering) ==================== */
/* Make Category Page look like Homepage (4 items per row instead of 3) */
@media (min-width: 992px) {

    /* Center the grid items if they don't fill the row */
    body.category-id-3 #products,
    body.category-id-3 .products {
        display: flex;
        flex-wrap: wrap;
        justify-content: center !important;
        /* Centers the 3 products in the middle */
        margin-left: -5px !important;
        /* Counteract bootstrap padding if needed */
        margin-right: -5px !important;
    }

    /* Target the product miniature wrapper on category page */
    body.category-id-3 #products .product-miniature,
    body.category-id-3 .products .product-miniature {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        padding: 0 5px !important;
        /* Ensure consistent spacing */
        margin-bottom: 20px !important;
        overflow: hidden !important;
        /* SENIOR FIX: Clip ANY overflow content */
    }

    /* Ensure the thumbnail container doesn't overflow either */
    body.category-id-3 .thumbnail-container {
        overflow: hidden !important;
        height: 100% !important;
        /* Fill height */
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ==================== SLIDER ARROWS STYLE ==================== */
/* Wrapper for positioning arrows relative to slider */
.slider-wrapper-relative {
    position: relative;
    width: 100%;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    /* Larger */
    height: 45px;
    /* Larger */
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 999;
    /* Ensure on top */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1f2937;
    transition: all 0.3s ease;
    opacity: 1 !important;
    /* ALWAYS VISIBLE per user request */
    pointer-events: auto !important;
}

/* Hover effect */
.slider-arrow:hover {
    background-color: #1f2937;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
    /* Slight pop */
}

.slider-prev {
    left: 10px;
    /* Inside the container for safety */
}

.slider-next {
    right: 10px;
    /* Inside the container for safety */
}

/* Hide arrows on purely mobile (touch is king there) */
@media (max-width: 767px) {
    .slider-arrow {
        display: none !important;
    }
}

/* Ensure Price block has spacing below it */
body#index .product-price-and-shipping,
body.index .product-price-and-shipping,
body.category-id-3 .product-price-and-shipping {
    margin-bottom: 12px !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
}

/* Push the features box to the bottom and style it cleanly */
body#index .product-card-features,
body.index .product-card-features,
body.category-id-3 .product-card-features,
.featured-products .product-card-features {
    margin-top: auto !important;
    width: 100% !important;
    padding: 12px 15px !important;
    background: #fafafa !important;
    border-top: 1px solid #eee !important;
    text-align: left !important;
    /* BEST PRACTICE: List items should be left-aligned for readability */
}

/* Ensure list items are readable, aligned, and have proper spacing */
body#index .product-card-features ul,
body.index .product-card-features ul,
body.category-id-3 .product-card-features ul {
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

body#index .product-card-features li,
body.index .product-card-features li,
body.category-id-3 .product-card-features li {
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: flex-start !important;
    /* Align icons with top of text */
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Ensure icons are consistently sized and spaced */
body#index .product-card-features .feature-icon,
body.category-id-3 .product-card-features .feature-icon,
.featured-products .product-card-features .feature-icon {
    min-width: 20px !important;
    margin-right: 8px !important;
    text-align: center !important;
}

/* Push the features box to the bottom */
body#index .product-card-features,
body.index .product-card-features,
body.category-id-3 .product-card-features,
.featured-products .product-card-features {
    margin-top: auto !important;
    width: 100% !important;
    padding: 15px !important;
    background: #fafafa !important;
    border-top: 1px solid #eee !important;
}

/* ==================== GRID UNIFICATION (Force 4 Columns) ==================== */
/* Make Category Page look like Homepage (4 items per row instead of 3) */
@media (min-width: 992px) {

    /* Center the grid items if they don't fill the row */
    body.category-id-3 #products,
    body.category-id-3 .products,
    body.index .featured-products .products {
        display: flex;
        flex-wrap: wrap;
        justify-content: center !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    /* Target the product miniature wrapper on category page AND homepage */
    body.category-id-3 #products .product-miniature,
    body.category-id-3 .products .product-miniature,
    body.index .featured-products .product-miniature {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        padding: 0 5px !important;
        margin-right: 0 !important;
        /* CRITICAL FIX: Kill 30px margin */
        margin-bottom: 20px !important;
        overflow: hidden !important;
    }

    /* Ensure the thumbnail container doesn't overflow either */
    body.category-id-3 .thumbnail-container,
    body.index .featured-products .thumbnail-container {
        overflow: hidden !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ==================== SLIDER ARROWS STYLE ==================== */
/* Wrapper for positioning arrows relative to slider */
.slider-wrapper-relative {
    position: relative;
    width: 100%;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1f2937;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden by default, shown on hover */
    pointer-events: none;
    /* Prevent blocking clicks when hidden */
}

/* Show arrows when hovering the wrapper (Desktop interaction) */
.slider-wrapper-relative:hover .slider-arrow {
    opacity: 1;
    pointer-events: auto;
}

.slider-arrow:hover {
    background-color: #1f2937;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.slider-prev {
    left: -20px;
    /* Slight overhang */
}

.slider-next {
    right: -20px;
    /* Slight overhang */
}

/* Ensure arrows are visible on Tablet (where hover is tricky but arrows are needed) */
@media (max-width: 991px) and (min-width: 768px) {
    .slider-arrow {
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 35px;
        height: 35px;
        background-color: rgba(255, 255, 255, 0.9);
    }

    .slider-prev {
        left: 0;
    }

    .slider-next {
        right: 0;
    }
}

/* Hide arrows on purely mobile (touch is king there) */
@media (max-width: 767px) {
    .slider-arrow {
        display: none !important;
    }
}

/* ==========================================================================
   PREMIUM DESIGN REFRESH (Added by AI Agent)
   - Typography, Product Cards, Layout
   ========================================================================== */

/* 1. Global Typography Refresh */
/* Make headings bolder and tighter for a modern feel */
h1,
.h1,
.category-hero h1,
.page-heading {
    font-weight: 800 !important;
    letter-spacing: -1px;
    color: #001d35;
}

h2,
.h2 {
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    color: #001d35;
}

h3,
.h3 {
    font-weight: 700 !important;
    color: #001d35;
}

/* 2. Premium Product Card Design */
/* Transform flat products into interactive cards */
.product-miniature {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    /* Subtle border */
    border-radius: 12px;
    /* Modern rounded corners */
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Soft initial shadow */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smooth spring-like transition */
    margin-bottom: 30px;
    /* Ensure vertical breathing room */
    height: 100%;
    /* Ensure uniform height in flex/grid */
    display: flex;
    flex-direction: column;
}

.product-miniature:hover {
    transform: translateY(-5px);
    /* Lift effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Deep shadow on lift */
    border-color: #e0e0e0;
    z-index: 2;
    /* Ensure it floats above neighbors if overlapping occurs */
}

/* Clean up internal borders that might conflict with the card style */
.product-miniature .thumbnail-container {
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 10px;
}

/* Product Title Styling */
.product-title a,
#products .product-title a,
.featured-products .product-title a,
.product-accessories .product-title a,
.product-miniature .product-title a {
    font-weight: 700 !important;
    /* FIXED: Force Bold */
    color: #374151;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover,
#products .product-title a:hover {
    color: #000000;
    /* Neutral Black Hover */
}

/* Price Styling */
.product-price-and-shipping .price {
    font-weight: 700;
    color: #222222 !important;
    /* FIXED: Neutral Dark Grey/Black */
    font-size: 1.2rem;
    display: block;
    margin-top: 10px;
}

/* ==================== BUTTON & HOVER REFINEMENTS (2026-02-05) ==================== */
/* Remove Green Hovers and replace with Neutral Black/Grey */

/* 1. Quick View and Action Buttons Hover */
.product-miniature .quick-view:hover,
.product-miniature .highlighted-informations .quick-view:hover,
.product-miniature .wishlist-button-add:hover,
.product-miniature .compare-button:hover {
    color: #ffffff !important;
    background-color: #333333 !important;
    /* Dark Grey instead of Green */
    border-color: #333333 !important;
}

/* 2. Primary Buttons Hover (Add to Cart, etc.) */
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #000000 !important;
    /* Pure Black on hover */
    border-color: #000000 !important;
}

/* 3. General Link Hovers in Product Cards */
.product-miniature a:hover:not(.product-thumbnail) {
    color: #000000 !important;
    /* Ensure links go black, not green */
}

/* 4. Category Labels */
.label-category:hover {
    background-color: #333333 !important;
}

/* 3. Layout & Readability Improvements */

/* Constrain the width of the main category description text */
#category-description {
    max-width: 900px !important;
    margin: 0 auto 60px !important;
    /* Center and add significant bottom space */
}

/* Improve readability of paragraph text */
#category-description p {
    line-height: 1.8;
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 20px;
}

/* Add vertical rhythm between sections */
.category-hero {
    margin-bottom: 60px !important;
}

section.products {
    margin-top: 40px;
}

/* FIX: Product Title Alignment & Visuals (Added by AI Agent) */
/* 1. Center the entire description block (like homepage) */
.product-description {
    text-align: center !important;
}

/* 2. Fix Title Margins & Alignment to match Homepage */
.product-title,
.product-title a {
    white-space: normal !important;
    /* Allow wrapping */
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    line-height: 1.4 !important;
    min-height: 45px;
    /* Consistent height for alignment */

    /* Layout Fixes - Remove the 30px margins that cause the "indent" */
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* ==================== BUTTON & HOVER REFINEMENTS (2026-02-05) ==================== */
/* Remove Green Hovers and replace with Neutral Black/Grey */

/* 1. Quick View and Action Buttons Hover */
.product-miniature .quick-view:hover,
.product-miniature .highlighted-informations .quick-view:hover,
.product-miniature .wishlist-button-add:hover,
.product-miniature .compare-button:hover {
    color: #ffffff !important;
    background-color: #333333 !important;
    /* Dark Grey instead of Green */
    border-color: #333333 !important;
}

/* 2. Primary Buttons Hover (Add to Cart, etc.) */
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #000000 !important;
    /* Pure Black on hover */
    border-color: #000000 !important;
}

/* 3. General Link Hovers in Product Cards */
.product-miniature a:hover:not(.product-thumbnail) {
    color: #000000 !important;
    /* Ensure links go black, not green */
}

/* 4. Category Labels */
.label-category:hover {
    background-color: #333333 !important;
}

/* 5. FIX: "View Full Gallery" Button (Specific Target) */
.btn-gallery:hover,
a.btn-gallery:hover,
button.btn-gallery:hover {
    background: #222222 !important;
    /* Override gradient/green */
    background-color: #222222 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}

/* 6. FIX: Other potential Green sources (Disabled, outlines) */
.btn-primary.disabled:hover,
.btn-primary:disabled:hover,
.btn-outline-primary:hover,
.products-sort-order .select-list:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

/* ==================== HOMEPAGE ALIGNMENT FIXES (ROOT CAUSE) ==================== */

/* 1. Fix the Container Shift (-30px margin issue) */
#index .products,
body.index .products {
    margin-right: 0 !important;
    /* Reset negative margin */
    margin-left: 0 !important;
    width: 100% !important;
}

/* 2. Fix Title & Price Centering (Force Block/Center) */
.product-miniature .product-title,
.product-description .product-title {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 5px auto !important;
}

/* 3. ROOT CAUSE FIX for Centering: Target the PARENT container */
.product-miniature .product-description {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* This forces all children (title, price) to center */
    text-align: center !important;
}

.product-price-and-shipping {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Force the child price block to be full width and centered */
.product-price-and-shipping .product-prices-block {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

/* 4. Ensure Stars (Comments) are also centered */
.comments_note {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 5px !important;
}

/* ==================== UNIFIED PREMIUM BUTTON STYLES ==================== */
/* Targeting BOTH buttons to ensure 100% match. 
   Using a neutral "Soft Black" (#1f2937) as base, removing all gradients. */

.btn-gallery,
.btn-faq-all {
    background-color: #1f2937 !important;
    /* Premium Dark Grey */
    background-image: none !important;
    /* Remove any gradients */
    color: #ffffff !important;
    padding: 14px 40px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    border: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    text-align: center !important;
    line-height: normal !important;
}

/* Standardize Hover State to Pure Black (No Green) */
.btn-faq-all:hover,
.btn-gallery:hover {
    background-color: #000000 !important;
    /* Pure Black on Hover */
    background-image: none !important;
    /* CRITICAL: Block green theme gradient */
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none !important;
}

/* ==================== AVANTHO BLOG PREMIUM REDESIGN ==================== */
/* Make Blog Listing Match Product Cards Grid */
#blogpage .blog-item-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    #blogpage .blog-item-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    #blogpage .blog-item-list {
        grid-template-columns: 1fr;
    }
}

/* Revert the col-sm-6 from the TPL so it doesn't break the CSS grid */
#blogpage .blog-item-list>div[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Premium Card Design for Blog Items */
.blog-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.blog-image-container .blog-image img {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-item .title {
    margin: 15px 0 10px 0;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px !important;
    text-transform: none !important;
}

.blog-item .title a {
    color: #001d35 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-item .title a:hover {
    color: #000000 !important;
}

.blog-item .title a:hover {
    color: #000000;
}

.blog-item .blog-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-item .blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-item .blog-meta i.material-icons {
    font-size: 16px;
    color: #1e5a6d;
    /* Snailer Teal */
}

.blog-item .blog-info {
    margin-top: auto;
    /* Push to bottom */
}

.blog-item .blog-shortinfo {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Blog Buttons mapping to btn-cta-primary style or similar */
.blog-item .btn-primary {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
}

.blog-item .btn-primary:hover {
    background-color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- SINGLE POST READING MODE --- */
/* Center the post content, remove sidebars, massive readability boost */

#blogpage .blog-detail {
    max-width: 800px;
    margin: -20px auto 40px auto;
    background: #ffffff;
    padding: 10px 40px 40px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

@media(max-width: 767px) {
    #blogpage .blog-detail {
        padding: 20px;
        margin: -40px auto 20px auto;
        border-radius: 12px;
    }
}

.blog-detail .blog-title {
    font-size: 2.2rem;
    font-weight: 800 !important;
    color: #001d35;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.blog-detail .blog-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-detail .blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-detail .blog-image img {
    border-radius: 12px;
    width: 100%;
    margin-bottom: 30px;
}

.blog-detail .blog-description {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

/* Typography Hierarchy Refinements */
.blog-detail .blog-description h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #001d35;
    letter-spacing: -0.5px;
}

.blog-detail .blog-description h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #1f2937;
}

.blog-detail .blog-description p {
    margin-bottom: 24px;
    font-size: 17px !important;
    color: #374151 !important;
    line-height: 1.8 !important;
}

.blog-detail .blog-description ul,
.blog-detail .blog-description ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.blog-detail .blog-description li {
    margin-bottom: 12px;
    font-size: 17px !important;
    color: #374151 !important;
    line-height: 1.8 !important;
}

/* Fix font size inside alert boxes (like Tips) */
.blog-detail .blog-description .alert {
    font-size: 17px !important;
    color: #374151 !important;
    line-height: 1.8 !important;
}

/* Beautiful Links inside the Article Content */
.blog-detail .blog-description a:not(.btn):not(.product-thumbnail a):not(.product-name a) {
    color: #1e5a6d;
    /* Snailer Teal */
    text-decoration: underline;
    text-decoration-color: rgba(30, 90, 109, 0.3);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.blog-detail .blog-description a:not(.btn):not(.product-thumbnail a):not(.product-name a):hover {
    color: #001d35;
    text-decoration-color: #001d35;
    background-color: rgba(30, 90, 109, 0.05);
}

/* Fix CTA Button Hover State inside dark boxes */
.blog-detail .blog-description .btn {
    transition: all 0.3s ease;
}

.blog-detail .blog-description .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Safely target a white button inside a black background wrapper */
.blog-detail .blog-description div[style*="background-color: #000"] .btn:hover,
.blog-detail .blog-description div[style*="background-color: rgb(0, 0, 0)"] .btn:hover {
    background-color: #e5e7eb !important;
    /* light gray hover */
    color: #000000 !important;
    /* keep text black */
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2) !important;
}

/* Fix text visibility inherited inside the black CTA block (overriding our !important rule) */
.blog-detail .blog-description div[style*="background-color: #000"] p,
.blog-detail .blog-description div[style*="background-color: rgb(0, 0, 0)"] p {
    color: #d1d5db !important;
    /* very light gray on black bg */
}

.blog-detail .blog-description div[style*="background-color: #000"] h2,
.blog-detail .blog-description div[style*="background-color: #000"] h3,
.blog-detail .blog-description div[style*="background-color: rgb(0, 0, 0)"] h2,
.blog-detail .blog-description div[style*="background-color: rgb(0, 0, 0)"] h3 {
    color: #ffffff !important;
    /* ensure headings are pure white */
}


/* Product grid inside blog (from shortcodes/products block) */
.blog-detail .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 40px 0;
    padding: 0;
}

@media(max-width: 767px) {
    .blog-detail .products-grid {
        grid-template-columns: 1fr;
    }
}

.blog-detail .products-grid .product-item {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.blog-detail .products-grid .product-item:hover {
    border-color: #1e5a6d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-detail .products-grid .product-name a {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    display: block;
    margin: 10px 0;
}

.blog-detail .products-grid .product-price {
    font-weight: 700;
    color: #222;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

/* Hide the old sidebar layout entirely if we are using the new reading mode centered UI */
body.is-single-post-page #left-column {
    display: none !important;
}

body.is-single-post-page #content-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Disable the "Show Sidebar" button */
#anblog_left_toggler {
    display: none !important;
}

/* --- PHASE 2 REFINEMENTS (User Requested) --- */
/* Hide Metadata inside the post */
.blog-detail .blog-meta {
    display: none !important;
}

/* Hide Social Share */
.blog-detail .social-share,
.blog-detail .social-wrap {
    display: none !important;
}

/* Center Images inside the article body */
.blog-detail .blog-description img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Related Articles Block (moved via JS) Styling */
#moved-related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#moved-related-articles h4.title_block {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 0;
}

#moved-related-articles h4.title_block a {
    color: #001d35;
    text-decoration: none;
}

/* Transform the old vertical list into a grid layout matching the homepage */
#moved-related-articles ul.lists {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 30px !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (min-width: 768px) {
    #moved-related-articles ul.lists {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Style the cards to match premium aesthetic */
#moved-related-articles .list-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
}

#moved-related-articles .list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

#moved-related-articles .blog-image {
    width: 100%;
}

#moved-related-articles .blog-image img {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

#moved-related-articles .blog-content {
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#moved-related-articles .post-name {
    font-size: 1.1rem;
    font-weight: 700 !important;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

#moved-related-articles .post-name a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

#moved-related-articles .post-name a:hover {
    color: #000000;
}

#moved-related-articles .blog-meta {
    /* Hide the metadata (date, comments, author) in the related articles cards completely */
    display: none !important;
}

#moved-related-articles .blog-cat {
    display: none !important;
}

/* ==================== AVANTHO BLOG PREMIUM REDESIGN END ==================== */
/* =========================================================================
   NEW: ZVACSENIE OBRAZKOV V OBSAHU CLANKU BLOGU
   ========================================================================= */
#content-wrapper .blog-detail .blog-description img {
    display: block !important;
    width: 100% !important;
    /* Rozprestrie na celu sirku */
    max-width: 100% !important;
    height: auto !important;
    /* Vypocita vysku proporcionalne k sirke */
    max-height: none !important;
    /* !!! KRITICKE: Zabije akekolvek hardcodene vyskove obmedzenia z CMS editora !!! */
    object-fit: contain !important;
    border-radius: 8px !important;
    margin: 30px auto !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* =========================================================================
   NEW: DVOJSTLPCOVY GRID PRE VYPIS CLANKOV NA BLOGU
   ========================================================================= */
@media (min-width: 769px) {
    .blog-item-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }

    .blog-item-list .blog-item {
        margin-bottom: 0 !important;
        /* Puzijeme grid gap namiesto marginu */
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .blog-item-list .blog-item .blog-content-wrap {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
}

/* =========================================================================
   NEW: REDUKCIA BIELEHO MIESTA MEDZI BREADCRUMBS A OBSAHOM
   ========================================================================= */
.blog-content-wrapper,
#module-anblog-list #content-wrapper {
    margin-top: -40px !important;
    /* Mierny posun celeho bloku vyssie na mobiloch */
}

h1.blog-pagetitle,
.blog-pagetitle {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #001d35 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    letter-spacing: -1px !important;
    text-transform: none !important;
    text-align: center !important;
}

@media (min-width: 768px) {

    .blog-content-wrapper,
    #module-anblog-list #content-wrapper {
        margin-top: -80px !important;
        /* Pevnejsi posun nahor na PC, kde je vacsia rezerva z wrapperu prestashopu */
    }
}

/* ==========================================================================
   SNAILER PREMIUM DESIGN & YMM SELECTOR (Ported from Test)
   ========================================================================== */

/* Category Content */
.category-content {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s;
}

.category-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin-bottom: 0;
}

/* Hero Section */
.category-hero {
    text-align: center;
    padding: 50px 20px;
    background: #fafafa;
    border-radius: 12px;
    margin: 0 0 50px 0 !important;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    width: 100% !important;
    max-width: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

.category-hero h1 {
    font-size: 36px;
    font-weight: 400; color: #1f2937; margin-bottom: 16px; line-height: 1.3; letter-spacing: -1px;
}

.category-intro {
    font-size: 17px; line-height: 1.8; color: #4b5563; max-width: 850px; margin: 0 auto; font-weight: 300;
}

.category-intro strong {
    color: #1e5a6d; font-weight: 500; background: linear-gradient(135deg, #1e5a6d 0%, #2c7a8f 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Snailer YMM Styles */
.snailer-ymm-wrapper {
    background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px; margin-bottom: 20px; max-width: 100%;
}

.ymm-header {
    display: flex; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #dee2e6; padding-bottom: 10px;
}

.ymm-header i { margin-right: 10px; font-size: 24px; color: #333; }
.ymm-header span { font-weight: 600; font-size: 16px; color: #333; }

.ymm-group { margin-bottom: 15px; }
.ymm-group label { display: block; margin-bottom: 5px; color: #999; font-size: 13px; font-weight: 500; }

.form-control-select {
    width: 100%; padding: 8px 12px; border: 1px solid #ced4da; border-radius: 4px; background-color: #fff; height: 40px;
}

#snailer-ymm-message { padding: 12px; border-radius: 6px; margin-top: 15px; font-weight: 600; text-align: center; }
.page-product .snailer-pdp-configurator {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.page-product .snailer-pdp-configurator-step {
    background: #f8f9fa;
    border: 1px solid #e6eaef;
    border-radius: 14px;
    padding: 16px 18px;
}

.page-product .snailer-pdp-configurator-step-color .product-variants {
    margin-bottom: 0;
}

.page-product .snailer-pdp-configurator-step-color .product-variants-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.page-product .snailer-pdp-configurator-step-color .control-label {
    margin: 0;
    min-width: 110px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.page-product .snailer-pdp-configurator-step-color .snailer-variant-label {
    color: #1f2937;
}

.page-product .snailer-pdp-configurator-step-color .snailer-variant-value {
    color: #111111;
    font-weight: 700;
}

.page-product .snailer-pdp-configurator-step-color ul {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 3px;
}

.page-product .snailer-pdp-configurator-step-color .input-container {
    list-style: none;
    margin: 0 !important;
}

.page-product .snailer-pdp-configurator-step-color .input-container label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 3px;
    cursor: pointer;
    border-radius: 999px;
    transition: box-shadow 0.2s ease;
}

.page-product .snailer-pdp-configurator-step-color .input-color + span.color,
.page-product .snailer-pdp-configurator-step-color .input-color + span:not(.color) {
    width: 36px;
    height: 36px;
}

.page-product .snailer-pdp-configurator-step-color .input-container-checked {
    border-radius: 999px;
}

.page-product .snailer-pdp-configurator-step-color .input-container-checked label {
    box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.22);
}

.page-product .snailer-pdp-configurator-step-color .input-container-checked .color,
.page-product .snailer-pdp-configurator-step-color .input-container-checked .input-color + span:not(.color) {
    border-color: #2f855a !important;
}

.page-product .snailer-pdp-configurator-step-color .input-container:not(.input-container-checked) label:hover {
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.08);
}

.page-product .snailer-pdp-configurator-step-vehicle .snailer-ymm-wrapper {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

.page-product .snailer-pdp-configurator-step-vehicle .ymm-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
}

@media (max-width: 767px) {
    .page-product .snailer-pdp-configurator-step {
        padding: 14px;
    }

    .page-product .snailer-pdp-configurator-step-color .product-variants-item {
        align-items: flex-start;
        gap: 10px;
    }

    .page-product .snailer-pdp-configurator-step-color .control-label {
        min-width: 100%;
    }
}

.alert-success { background-color: #d4edda; border-color: #c3e6cb; color: #155724; }
.product-customization, section.product-customization { display: none !important; }
