/* --- About Us Page Styles --- */
.about-page-header {
    position: relative;
    color: var(--white);
    padding: 7rem 0 4rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.about-page-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('../assets/images/about/about_story_1.JPG') center / cover no-repeat;
    filter: blur(6px) saturate(1.2);
    transform: scale(1.05);
    z-index: 0;
}

.about-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(11, 18, 60, 0.88) 0%,
            rgba(22, 32, 85, 0.80) 50%,
            rgba(30, 58, 110, 0.72) 100%);
    z-index: 1;
}

.about-page-header .container {
    position: relative;
    z-index: 2;
}

.about-page-header .section-title {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.about-page-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
}

/* --- Products Page Header --- */
.products-page-header {
    position: relative;
    color: var(--white);
    padding: 10rem 0 5rem;
    margin-bottom: 0;
    overflow: hidden;
}

.products-page-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('../assets/images/common/kibble_pile_1772639088537.png') center / cover no-repeat;
    filter: blur(6px) saturate(1.2);
    transform: scale(1.05);
    z-index: 0;
}

.products-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(11, 18, 60, 0.90) 0%,
            rgba(22, 32, 85, 0.82) 50%,
            rgba(30, 58, 110, 0.74) 100%);
    z-index: 1;
}

.products-page-header .container {
    position: relative;
    z-index: 2;
}

.products-page-header h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.products-page-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
}

.about-section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.interactive-images-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-hover-block {
    flex: 1 1 0;
    min-width: 0;
    height: 400px;
    background: var(--primary-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.image-hover-block:hover {
    box-shadow: var(--shadow-md);
}

.block-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 3;
    opacity: 0;
    background: rgba(11, 18, 60, 0.85);
    transition: opacity 0.3s ease;
}

.hover-reveal-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 2;
    transition: transform 0.4s ease;
}

.image-hover-block:hover .block-text {
    opacity: 1;
}

.image-hover-block:hover .hover-reveal-img {
    transform: scale(1.05);
}

.about-text-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* About page CTA button */
.about-text-content .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(11, 18, 60, 0.3);
}

.about-text-content .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 18, 60, 0.4);
}


/* --- Products Page Styles --- */
.products-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.products-sidebar {
    width: 300px;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.filter-header {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-list {
    list-style: none;
}

.filter-main-group {
    margin-bottom: 1rem;
}

.filter-btn {
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.main-cat {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 8px 0;
}

.main-cat:hover,
.main-cat.active {
    color: var(--primary-color);
}

.filter-sub-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.sub-cat {
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 4px 0;
    position: relative;
}

.sub-cat::before {
    content: '•';
    position: absolute;
    left: -12px;
    color: var(--border-color);
    transition: var(--transition);
}

.sub-cat:hover::before,
.sub-cat.active::before {
    color: var(--accent-color);
}

.sub-cat:hover,
.sub-cat.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Products Grid Area */
.products-main {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-detail-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(11, 18, 60, 0.06);
    border: 1px solid rgba(11, 18, 60, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
}

.product-detail-card:hover {
    box-shadow: 0 8px 30px rgba(11, 18, 60, 0.12);
    transform: translateY(-6px);
    border-color: rgba(11, 18, 60, 0.1);
}

.product-detail-visual {
    height: 220px;
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(11, 18, 60, 0.06);
}

.product-detail-visual .tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.bg-light-blue {
    background-color: #f0f4f8;
}

.bg-light-gray {
    background-color: #f4f4f5;
}

.bg-light-orange {
    background-color: #fff7ed;
}

.bg-green-tint {
    background-color: #f0fdf4;
}

.bg-purple-tint {
    background-color: #faf5ff;
}

.product-detail-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-detail-card:hover .product-detail-visual img {
    transform: scale(1.08);
}

.product-detail-info {
    padding: 1.5rem 1.5rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-detail-info h4 {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.info-row {
    margin-bottom: 0;
    font-size: 0.88rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(11, 18, 60, 0.08);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row label {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 3px;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

.info-row p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .products-layout {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        position: static;
    }

    .interactive-images-row {
        flex-direction: column;
    }

    .image-hover-block {
        height: 250px;
    }
}

/* --- Contact Page Styles --- */
.contact-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #eef2f5;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.contact-hero-text-box {
    padding: 3rem 4rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    max-width: 650px;
    backdrop-filter: blur(4px);
    background: rgba(140, 150, 160, 0.4);
}

.contact-hero-text-box h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    line-height: 1.2;
}

.contact-info-section {
    padding: 7rem 0;
    text-align: center;
}

.contact-header {
    margin-bottom: 5rem;
}

.contact-header h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
}

.heading-line {
    width: 40px;
    height: 3px;
    background: var(--text-dark);
    margin: 1rem auto 0;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.05rem;
}

.contact-divider {
    width: 1px;
    background: #e2e8f0;
    margin: 0 1rem;
}

.contact-map {
    width: 100%;
    line-height: 0;
    background: #eef2f5;
}

@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-divider {
        display: none;
    }

    .contact-hero-text-box {
        margin: 0 2rem;
    }
}