/* Brand Page Styles */
.brand-page {
    width: 100%;
}

/* Section 1: Header */
.brand-header {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 2rem;
    margin-bottom: 4rem;
}

.brand-header__content {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(1.3rem);
    display: flex;
    flex-direction: column;
}
.brand-header__content.flex-row {
    flex-direction: column-reverse;
    margin: 0 20px;
}
@media screen and (min-width: 768px) {
    .brand-header__content.flex-row {
        flex-direction: row;
        margin: 0 auto;
    }    
}

.brand-header__content .head-text-area {
    display: flex;
    flex-direction: column;
}


.brand-header__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    margin: 0 0 1rem;
    color: #333;
}
.brand-header__content-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}   
@media (min-width: 768px) {
    .brand-header__content-wrap {
        flex-direction: row;
    }
    .brand-header__content .head-image-area {
        display: flex;
        flex-direction: column;
        flex: 0 0 25%;
    }
}
.brand-header__content-wrap img {
    max-width: 242px;
    height: auto;
    
}
.brand-header__title .brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-header__title .site-icon {
    width: 40px;
    height: auto;
}

.brand-header__tagline {
    color: #ffac00;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin: 0 0 1.5rem;
}

.brand-header__description-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.brand-header__description {
    position: relative;
    overflow: hidden;
    color: #666;
    line-height: 1.6;
    transition: max-height 0.3s ease;
}

.description-content {
    margin: 0;
    padding: 0;
}

.description-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 0;
    padding: 8px 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
}

.read-more-btn:hover {
    color: #FFF;
}

.chevron-down {
    width: 30px;
    height: 30px;
    color: #666;
}

/* Desktop styles */
@media (min-width: 768px) {
    .brand-header__description:not(.expanded) {
        max-height: 150px;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    .brand-header__description:not(.expanded) {
        max-height: 0;
    }
}

/* Section 2: Categories */
.brand-categories {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.brand-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-item__image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.category-item__title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: #333;
}

.category-item__shop-now {
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: underline;
}

/* Section 3: Brand Info */
.brand-info {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.brand-info__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #333;
    margin: 2rem 0 1rem;
}
.brand-info__title::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    background: url('../../images/thumbs/logo-compact-orange-transparent.png') no-repeat center/contain;
}
.brand-info__title .brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}


.brand-info__introduction {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.brand-info__content {
    color: #666;
    line-height: 1.6;
}

.brand-info__content h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.brand-info__content h3::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    background: url('../../images/thumbs/logo-compact-orange-transparent.png') no-repeat center/contain;
}

.brand-info__image {
    margin: 2rem 0;
}

.brand-info__image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}



/* Section 4: Blog Posts */
.brand-posts {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.brand-posts__title {
    
    font-size: 1.8rem;
    margin: 0 0 2rem;
    color: #333;
}

.brand-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    overflow: hidden;
}

.post-card__link {
    text-decoration: none;
    color: inherit;
}

.post-card__image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__content {
    
}

.post-card__title {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: #333;
}


/* Section 5: Products */
.brand-products {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.brand-products__title {
    font-size: 1.8rem;
    margin: 0 0 2rem;
    color: #333;
}

.brand-products__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

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

.product-item__image {
    aspect-ratio: 1;
    margin-bottom: 0.5rem;
}

.product-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-item__title {
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .brand-products__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .brand-header__title .brand-logo,
    .brand-header__title .site-icon {
        width: 30px;
        height: 30px;
    }

    .brand-info__title .brand-logo,
    .brand-info__title .site-icon {
        width: 24px;
        height: 24px;
    }

    .brand-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-categories__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-header__title {
        font-size: 1.8rem;
    }

    .brand-posts__grid {
        grid-template-columns: 1fr;
    }
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #000;
}

.load-more-btn .loading-icon {
    width: 20px;
    height: 20px;
    display: none;
    animation: spin 1s linear infinite;
}

.load-more-btn.loading .loading-icon {
    display: block;
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



.brand-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin: 40px auto;
    max-width: 1168px;
}

.product-card {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fff;
}

.product-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-card__image img {
    max-width: 100%;
    height: auto;
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 5px;
}

.product-card__price {
    color: #f60;
    font-weight: bold;
}

.pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
}

.pagination .current {
    background-color: #f60;
    color: #fff;
    border-color: #f60;
}