﻿.collection-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-description img {
    width: 40vw;
    border-radius: 10px;
    height: auto;
    display: block;
    margin: 1em auto;
}

.collection-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-hero__title-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.3);
}

.collection-hero__title {
    color: white;
    font-size: 3rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    opacity: 0.7;
}

.product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    text-align: left;
}

.product-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}
    .product-item a {
        text-decoration: none;
        color: inherit;
    }

.product-image {
    position: relative;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

    .product-image .hover {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }

.product-item:hover .product-image .hover {
    opacity: 1;
}

.product-item:hover .product-image .primary {
    opacity: 0;
}

.product-labels {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

    .product-labels .lbl {
        display: inline-block;
        font-size: 12px;
        font-weight: 700;
        color: white;
        border-radius: 4px;
        margin-left: 5px;
        padding: 1px 10px;
    }


.product-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 5px;
}

.product-price .price {
    color: #e02c2c;
    font-weight: 600;
}


@media(max-width: 1000px){
    .sidebar_widget {
        display: none;
    }
}
.sidebar_widget {
    margin-bottom: 30px;
}


    .widget-title h2 {
        font-size: 1.2rem;
        font-weight: bold;
        opacity: 0.6;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

.widget-content > * {
    margin-bottom: 10px;
}

.sidebar_categories li {
    margin-bottom: 10px;
}

.sidebar_categories a {
    display: block;
    color: #333;
    text-decoration: none;
}

    .sidebar_categories a:hover {
        color: #e02c2c;
    }

.sublinks {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #ddd;
}


  
.btnview {
    background: transparent;
    border: 1px solid #ddd;
    padding: 5px 15px;
}

.btn-filter {
    width: 100%;
    margin-bottom: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
}

.search__button {
    border-radius: 0 4px 4px 0;
}

input[type="search"] {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 80%;
}

.btn-addto-cart {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

    .btn-addto-cart:hover {
        background: #e02c2c;
    }


/* Collection Banner Styles */
.collection-header {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.collection-hero {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
}

.collection-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.collection-hero__title-wrapper {
    position: absolute;
    background-color: #f58f9139;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    color: white;
    z-index: 1;
}

.collection-hero__title {
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.supplier-label {
    display: block;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}
input[name="supplierId"]:checked + .supplier-label {
    background-color: #f7a5a933;
    color: #6f6f6f;
    font-weight: bold;
}

.category-label {
    display: block;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

input[name="categoryId"]:checked + .category-label {
    background-color: #f7a5a933;
    color: #6f6f6f;
    font-weight: bold;
}


a {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

.product-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    border-bottom: 2px solid #ccc;
    cursor: pointer;
}

    .product-tabs li {
        margin-right: 20px;
    }

        .product-tabs li a.tablink {
            display: inline-block;
            padding: 10px 15px;
            text-decoration: none;
            color: #333;
            font-weight: normal;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .product-tabs li.active a.tablink {
            font-weight: bold;
            color: #000;
            border-bottom: 2px solid red;
        }
