/* PIM Catalogue Styles */

/* ========================================
   Breadcrumb Navigation
   ======================================== */
#breadcrumbs {
    background-color: #eeeeee;
    padding: 0;
    margin: 0;
}

#breadcrumbs .container {
    background-color: white;
    padding: 15px 20px;
}

#breadcrumbs .breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
    font-size: 14px;
    list-style: none;
}

#breadcrumbs .breadcrumb::after {
    content: "";
    display: table;
    clear: both;
}

#breadcrumbs .breadcrumb-item {
    float: left;
    color: #333;
    list-style: none;
}

#breadcrumbs .breadcrumb-item a {
    color: rgb(1, 108, 184);
    text-decoration: none;
    font-weight: 400;
}

#breadcrumbs .breadcrumb-item a:hover {
    color: #004999;
    text-decoration: underline;
}

#breadcrumbs .breadcrumb-item.active {
    color: #333;
}

#breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgb(129, 138, 145);
    padding: 0 7px;
}

/* ========================================
   Category Layout - Flexbox based
   ======================================== */
.category-layout {
    width: 100%;
    padding: 20px 0;
}

.category-content-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-sidebar-wrapper {
    flex: 0 0 250px;
    min-width: 250px;
}

.category-main-content {
    flex: 1;
    min-width: 0;
}

/* ========================================
   Category Hero Section
   ======================================== */
.category-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.category-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.category-hero-overlay {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #0066cc;
    padding: 30px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-hero-title {
    color: #0066cc;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.category-hero-description {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   Subcategory Cards
   ======================================== */
.subcategory-image-wrapper {
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.subcategory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.subcategory-image-placeholder {
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Card Hover Effect
   ======================================== */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ========================================
   Category Description
   ======================================== */
.category-description {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 800px;
}

/* ========================================
   Sidebar Navigation
   ======================================== */
.category-sidebar {
    background-color: #fff;
    padding: 0;
}

.sidebar-category-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    color: rgb(1, 108, 184);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.sidebar-nav a:hover {
    color: #004080;
    text-decoration: underline;
}

.sidebar-nav a.active {
    font-weight: bold;
    color: #333;
}

.sidebar-more {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.sidebar-more .btn-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-more .btn-link:hover {
    color: rgb(1, 108, 184);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .category-content-wrapper {
        flex-direction: column;
    }

    .category-sidebar-wrapper {
        flex: 1 1 auto;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .category-hero-overlay {
        position: static;
        transform: none;
        margin-top: -50px;
        margin-left: 20px;
        margin-right: 20px;
        max-width: none;
    }

    .category-hero-title {
        font-size: 1.8rem;
    }
}

/* ========================================
   CMS Plugin: Category Grid
   ======================================== */
.pim-category-grid {
    padding: 40px 0;
}

.pim-category-grid .category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.pim-category-grid .category-card:hover {
    transform: translateY(-5px);
}

.pim-category-grid .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.pim-category-grid .card:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15) !important;
    border-color: #0066cc;
}

.pim-category-grid .card-title {
    color: #0066cc;
    font-weight: 600;
    font-size: 1.1rem;
}

.pim-category-grid .card-text {
    color: #666;
    font-size: 0.9rem;
}

.pim-category-grid .btn-outline-primary {
    border-color: #0066cc;
    color: #0066cc;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pim-category-grid .btn-outline-primary:hover {
    background-color: #0066cc;
    color: white;
}

.pim-category-grid .card-img-top {
    width: 100%;
    display: block;
    background-color: #f8f9fa;
}

.pim-category-grid .category-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pim-category-grid .placeholder-content {
    text-align: center;
}

.pim-category-grid .placeholder-icon {
    width: 80px;
    height: 80px;
    color: #dee2e6;
}

/* 5 columns layout support */
.pim-category-grid[data-columns="5"] .col-lg-2 {
    flex: 0 0 auto;
    width: 20%;
}

/* Responsive adjustments for category grid */
@media (max-width: 576px) {
    .pim-category-grid {
        padding: 20px 0;
    }

    .pim-category-grid .card-title {
        font-size: 1rem;
    }

    .pim-category-grid .card-img-top,
    .pim-category-grid .category-placeholder {
        height: 200px;
    }
}

/* ========================================
   Product Detail Page
   ======================================== */
#product-view {
    padding: 20px 0;
}

/* Product Header Section */
.product-header {
    margin-bottom: 20px;
}

.product-header .sku {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.product-header .product-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Product Image Carousel */
.image-carousel .carousel-item {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
}

.image-carousel .carousel-item img {
    margin: 0 auto;
}

.thumbnail-carousel {
    margin-top: 15px;
}

.thumbnail-carousel .image {
    transition: border-color 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail-carousel .image:hover {
    border-color: #0056b3 !important;
}

/* Product Icons - Inline Badge Style */
.product-icons-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 25px 0;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.product-badge:hover {
    background: #e9ecef;
    border-color: #0066cc;
}

.product-badge .badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-badge .badge-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.product-badge .badge-text {
    font-size: 0.85rem;
    color: #333;
}

/* Small variant for related products */
.icons-small .product-badge {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.icons-small .product-badge .badge-icon {
    width: 24px;
    height: 24px;
}

.icons-small .product-badge .badge-icon img {
    width: 14px;
    height: 14px;
}

/* Trust Signs/Badges Section */
.trust-signs {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
}

.trust-signs p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.trust-signs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-signs li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.trust-signs li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trust-signs .trust-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.trust-signs .trust-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.trust-signs .trust-content {
    flex: 1;
}

.trust-signs .trust-content strong {
    display: block;
    color: #0066cc;
    font-size: 1rem;
    margin-bottom: 5px;
}

.trust-signs .trust-content br + text,
.trust-signs .trust-content strong + br {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Product Tabs Section */
.product-tabs {
    margin-top: 30px;
}

.product-tabs .nav-tabs {
    border-bottom: 2px solid #e0e0e0;
}

.product-tabs .nav-tabs .nav-item {
    margin-bottom: -2px;
}

.product-tabs .nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: #666;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.product-tabs .nav-tabs .nav-link:hover {
    color: #0066cc;
    background: #f8f9fa;
}

.product-tabs .nav-tabs .nav-link.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    font-weight: 600;
}

.product-tabs .tab-content {
    padding: 30px 0;
}

.product-tabs .section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.product-tabs .product-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

/* Product Attributes Table */
.product-attributes {
    margin: 0;
}

.product-attributes td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.product-attributes td:first-child {
    width: 200px;
    font-weight: 600;
}

.product-attributes tr:last-child td {
    border-bottom: none;
}

/* Accessories/Related Products in Tabs */
.accessories-list {
    margin: 0;
}

.accessory-item {
    padding: 0;
}

.accessory-item:last-child {
    border-bottom: none !important;
}

.accessory-image {
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px;
    transition: border-color 0.2s ease;
}

.accessory-image:hover {
    border-color: #0066cc;
}

.accessory-info {
    margin-bottom: 10px;
}

.accessory-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.accessory-title a {
    color: #0066cc;
    text-decoration: none;
}

.accessory-title a:hover {
    color: #004999;
    text-decoration: underline;
}

.accessory-sku {
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive Design for Product Detail */
@media (max-width: 1200px) {
    .product-header .product-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .product-header .product-title {
        font-size: 1.2rem;
    }

    .product-icons-inline {
        gap: 8px;
    }

    .product-badge {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .product-badge .badge-icon {
        width: 24px;
        height: 24px;
    }

    .product-badge .badge-icon img {
        width: 14px;
        height: 14px;
    }

    .trust-signs {
        padding: 15px;
        margin-top: 20px;
    }

    .trust-signs .trust-icon {
        width: 40px;
        height: 40px;
    }

    .trust-signs .trust-icon img {
        width: 24px;
        height: 24px;
    }

    .product-tabs .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .product-tabs .tab-content {
        padding: 20px 0;
    }

    .product-tabs .section-title {
        font-size: 1.1rem;
    }
}
