.category-header {
    background-color: var(--primary-grey);
    color: white;
    position: relative;
    overflow: hidden;
}

.category-header__dragon {
    position: absolute;
    top: 50%;
    left: -35%;
    width: 120%;
    height: 120%;
    object-fit: contain;
    transform: translateY(-50%);
    opacity: 0.2;
    pointer-events: none;
}

.category-header__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 500px;
}

.category-header__text-content {
    flex: 0 0 50%;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: calc((100% - 1320px) / 2);
}

.category-header__description {
    max-width: 600px;
}

.category-header__image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.category-header__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.category-header__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1400px) {
    .category-header__text-content {
        margin-left: 1rem;
        max-width: calc(50% - 2rem);
    }

    .category-header__content {
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    .category-header__dragon {
        display: none;
    }

    .category-header__content {
        flex-direction: column;
    }

    .category-header__text-content {
        flex: 1;
        padding: 4rem 2rem;
        text-align: center;
        background: rgba(0, 0, 0, 0.5);
        max-width: none;
        margin: 0;
        width: 100%;
    }

    .category-header__description {
        margin: 0 auto;
    }

    .category-header__image-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .category-header__image-wrapper {
        clip-path: none;
    }
}

@media (max-width: 576px) {
    .category-header__text-content {
        padding: 3rem 1.5rem;
    }
}

/* Parent Categories Grid Styles */
.parent-categories-wrapper {
    padding: 1rem 0;
}

.parent-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.parent-category-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: white;
    background: #000;
    aspect-ratio: 1;
}

.parent-category-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.parent-category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parent-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.parent-category-content {
    width: 100%;
}

.parent-category-title {
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    color: white;
}

.parent-category-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.parent-category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-red);
    text-transform: uppercase;
    transition: gap 0.3s ease;
}

.parent-category-arrow {
    display: inline-flex;
    align-items: center;
}

.parent-category-arrow svg {
    width: 25px;
    height: auto;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.parent-category-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.parent-category-card:hover .parent-category-link {
    gap: 1.1rem;
}

.parent-category-card:hover .parent-category-arrow svg {
    transform: translateX(5px);
}

/* Responsive adjustments for parent categories */
@media (max-width: 767px) {
    .parent-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .parent-category-title {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .parent-categories-grid {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .parent-category-title {
        font-size: 0.9rem;
    }
    
    .parent-category-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 450px) {
    .parent-categories-grid {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .parent-category-title {
        font-size: 1rem;
    }
    
    .parent-category-link {
        display: none;
    }
}

/* Product Card Hover Effect */
.product-title {
    transition: text-decoration 0.2s ease-in-out !important;
}

@media (hover: hover) and (pointer: fine) {
    .product-card-link:hover .product-title {
        text-decoration: underline !important;
    }
}

@media (max-width: 400px) {
    .product-list-content {
        font-size: 0.9rem !important;
    }
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin: 0;
    font-size: 0.9rem !important;
}

.breadcrumb-item a {
    color: var(--text-black);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--bs-gray-600);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-black);
}

.selling-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-red);
    color: white;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: 300;
    z-index: 10;
    text-transform: uppercase;
    max-width: 35%;
    white-space: normal;
    line-height: 1.2;
    word-wrap: break-word;
    text-align: center;
}

@media (max-width: 575px) {
    .selling-badge {
        display: none !important;
    }
}

/* Product Meta Styles */
.product-meta {
    margin-top: 0.3rem;
    display: flex;
    flex-direction: column;
}

.product-meta__item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--bs-gray-600);
    letter-spacing: 0.01em;
}

.product-meta__icon {
    margin-right: 0.4rem;
    opacity: 0.7;
    color: var(--bs-gray-600);
}

.product-meta__text {
    font-weight: 300;
}

@media (max-width: 575px) {
    .product-meta {
        align-items: center;
        margin-top: 0.5rem;
    }
    
    .product-meta__item {
        justify-content: center;
        text-align: center;
    }
}

/* Product Image Transition Styles */
.product-list-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-list-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Only apply transition effects when there are multiple images */
.has-multiple-images .product-list-image {
    transition: transform 0.3s ease-in-out;
}

.product-list-image--primary {
    z-index: 1;
}

.product-list-image--secondary {
    z-index: 2;
    transform: translateX(100%);
}

/* Only apply hover effects when there are multiple images */
@media (hover: hover) and (pointer: fine) {
    .has-multiple-images:hover .product-list-image--secondary {
        transform: translateX(0);
    }

    .has-multiple-images:hover .product-list-image--primary {
        transform: translateX(-100%);
    }
}