/* Styles of resources/views/frontend/brand/singlebrand.blade.php (moved out of the template so browsers cache them). */
/* =============================================
   MODERN BRAND PAGE DESIGN
   ============================================= */

/* Hero Section with Banner */
.brand-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecef 100%);
    margin-bottom: 0;
    z-index: 1; /* Lower than header navigation */
}

.brand-hero__banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    z-index: 1;
}

.brand-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.brand-hero__content {
    position: relative;
    z-index: 3; /* Lower than header, but higher than overlay */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.brand-hero__logo-wrapper {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    max-width: 200px;
    z-index: 3; /* Stays within hero section context */
}

.brand-hero__logo {
    max-width: 150px;
    max-height: 100px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.brand-hero__tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px 0;
    max-width: 600px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.brand-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.brand-hero__cta:hover {
    background: var(--color-fill-strong);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.brand-hero__cta i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.brand-hero__cta:hover i {
    transform: translateX(5px);
}

/* About Section */
.brand-about {
    padding: 80px 0;
    background: white;
}

.brand-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-about__header {
    text-align: center;
    margin-bottom: 50px;
}

.brand-about__subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.brand-about__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.brand-about__content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    max-width: 900px;
    margin: 0 auto;
}

.brand-about__content p {
    margin-bottom: 20px;
}

.brand-about__content p:last-child {
    margin-bottom: 0;
}

/* Categories Section */
.brand-categories {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.brand-categories__header {
    text-align: center;
    margin-bottom: 50px;
}

.brand-categories__subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.brand-categories__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.brand-categories__description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.brand-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.category-card:hover .category-card__image {
    transform: translate(-50%, -50%) scale(1.02); /* Combine translate and scale */
}

.category-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--color-surface); /* Pure white background for better product display */
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card__image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%; /* Leave 15% for white space around image */
    max-height: 85%; /* Leave 15% for white space around image */
    width: auto;
    height: auto;
    object-fit: contain; /* Show full product */
    object-position: center;
    transition: transform 0.5s ease;
}

.category-card__content {
    padding: 25px;
}

.category-card__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.category-card:hover .category-card__name {
    color: var(--color-text);
}

.category-card__count {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.category-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.category-card:hover .category-card__link {
    gap: 12px;
}

.category-card__link i {
    font-size: 0.85rem;
}

/* Stats Section */
.brand-stats {
    padding: 60px 0;
    background: var(--color-fill-strong);
    color: white;
}

.brand-stats__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.brand-stat {
    padding: 20px;
}

.brand-stat__number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    display: block;
}

.brand-stat__label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.brand-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8ecef 100%);
    text-align: center;
}

.brand-cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.brand-cta__description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.brand-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    background: linear-gradient(135deg, #3d3934 0%, #3d3934 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(43, 39, 36, 0.3);
    transition: all 0.3s ease;
}

.brand-cta__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(6, 78, 59, 0.4);
    color: white;
    text-decoration: none;
}

.brand-cta__button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.brand-cta__button:hover i {
    transform: translateX(5px);
}

.brand-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state__icon {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
}

.empty-state__description {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-hero {
        height: 400px;
    }

    .brand-hero__title {
        font-size: 2.5rem;
    }

    .brand-hero__tagline {
        font-size: 1.1rem;
    }

    .brand-hero__logo-wrapper {
        max-width: 150px;
        padding: 20px;
    }

    .brand-hero__logo {
        max-width: 110px;
        max-height: 80px;
    }

    .brand-hero__cta {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .brand-about {
        padding: 50px 0;
    }

    .brand-about__title,
    .brand-categories__title,
    .brand-cta__title {
        font-size: 2rem;
    }

    .brand-about__content {
        font-size: 1rem;
    }

    .brand-categories {
        padding: 50px 0;
    }

    .brand-categories__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .brand-stat__number {
        font-size: 2.5rem;
    }

    .brand-cta {
        padding: 50px 0;
    }

    .brand-cta__title {
        font-size: 2rem;
    }

    .brand-cta__description {
        font-size: 1.1rem;
    }

    .brand-cta__button {
        padding: 18px 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .brand-hero {
        height: 350px;
    }

    .brand-hero__title {
        font-size: 2rem;
    }

    .brand-hero__tagline {
        font-size: 1rem;
    }

    .brand-hero__cta {
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .brand-about__title,
    .brand-categories__title,
    .brand-cta__title {
        font-size: 1.75rem;
    }

    .brand-stats__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card__content {
        padding: 20px;
    }

    .category-card__name {
        font-size: 1.2rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
