/**
 * The Butchers Kitchen - Main Stylesheet
 * Black and White Theme
 */

/* CSS Custom Properties for Theme Colors */
:root {
    --color-primary: #000000;
    --color-secondary: #FFFFFF;
    --color-accent: #333333;
    --color-highlight: #F5F5F5;
    --color-text: #000000;
    --color-text-light: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and Navigation */
.main-header {
    background-color: var(--color-secondary);
    color: var(--color-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo:hover {
    opacity: 1;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 1;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
}

.nav-menu a.admin-nav-link {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

.nav-menu a.admin-nav-link:hover {
    background-color: var(--color-accent);
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero/iStock-1367221570.jpg') center/cover;
    background-color: var(--color-accent);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    padding: 2rem 1rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    opacity: 1;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    opacity: 1;
}

.cta-section .btn-primary,
.cta-section .btn-outline {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.cta-section .btn-primary:hover,
.cta-section .btn-outline:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    opacity: 1;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.page-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 3rem 0;
    text-align: center;
}

.page-header .breadcrumb {
    margin-bottom: 1.5rem;
    text-align: left;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: var(--color-text-light);
    opacity: 0.8;
    text-decoration: none;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb .active {
    opacity: 1;
    font-weight: 500;
}

.page-header h1 {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Intro Section */
.intro-section {
    background-color: var(--color-secondary);
}

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

.intro-content h2 {
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background-color: var(--color-secondary);
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    background-color: var(--color-highlight);
    overflow: hidden;
}

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

.product-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-accent);
    font-size: 0.9rem;
}

.product-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.product-description {
    color: var(--color-accent);
    font-size: 0.9rem;
    line-height: 1.0;
}

.product-description br {
    line-height: 1.0;
    display: block;
    margin: 0.1em 0;
}

.product-price {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: normal;
    color: var(--color-primary);
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    opacity: 1;
}

/* Featured Products Section */
.featured-products-section {
    background-color: var(--color-highlight);
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Page */
.about-section,
.quality-section,
.sourcing-section {
    background-color: var(--color-secondary);
    padding: 4rem 0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    order: 1;
}

.about-image {
    order: 2;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.quality-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.quality-image {
    order: 1;
}

.quality-text {
    order: 2;
}

.quality-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.sourcing-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p,
.quality-content p,
.quality-text p,
.sourcing-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.values-section {
    background-color: var(--color-highlight);
    padding: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--color-accent);
    margin-bottom: 0;
}

/* Contact Page */
.contact-section {
    background-color: var(--color-secondary);
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-wrapper h2,
.contact-info h2 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.required {
    color: #d32f2f;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #4CAF50;
}

.alert-error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #F44336;
}

/* Contact Info */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    background-color: var(--color-highlight);
    padding: 2rem;
    border-radius: 4px;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.info-item p {
    color: var(--color-accent);
    margin-bottom: 0;
}

.info-item a {
    color: var(--color-primary);
}

.info-item a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-accent);
}

.no-products p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--color-secondary);
    color: var(--color-text);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.main-footer.footer-dark {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.main-footer.footer-dark .footer-column h3 {
    color: var(--color-text-light);
}

.main-footer.footer-dark .footer-column a {
    color: var(--color-text-light);
}

.main-footer.footer-dark .footer-column p {
    color: var(--color-text-light);
}

.main-footer.footer-dark .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer.footer-dark .footer-bottom p {
    color: var(--color-text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-column a {
    color: var(--color-text);
    opacity: 0.9;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: transparent;
    color: var(--color-text) !important;
    border-radius: 50%;
    opacity: 1 !important;
    transition: var(--transition);
    border: 2px solid var(--color-text);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link:hover {
    background-color: var(--color-text);
    color: var(--color-secondary) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
}

.main-footer.footer-dark .social-link {
    color: var(--color-text-light) !important;
    border-color: var(--color-text-light);
}

.main-footer.footer-dark .social-link:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Product Detail Page */
.product-detail-section {
    background-color: var(--color-secondary);
    padding: 4rem 0;
}

.product-detail-section .breadcrumb a {
    color: var(--color-text);
    opacity: 0.7;
}

.product-detail-section .breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.product-detail-section .breadcrumb .active {
    color: var(--color-text);
    opacity: 1;
}

.product-detail-section .breadcrumb li:not(:last-child)::after {
    color: rgba(0, 0, 0, 0.4);
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.product-detail-image {
    position: relative;
    width: 100%;
    background-color: var(--color-highlight);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Image Gallery */
.product-image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    z-index: 10;
}

.gallery-btn {
    background: transparent;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 4px;
}

.gallery-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-btn:active {
    transform: scale(0.95);
}

.gallery-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.gallery-indicator:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.gallery-indicator.active {
    background-color: var(--color-secondary);
    width: 12px;
    height: 12px;
}

.product-placeholder-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-accent);
    font-size: 1.1rem;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-category {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    width: fit-content;
}

.product-detail-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--color-primary);
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.0;
    color: var(--color-accent);
    white-space: pre-line;
    margin-bottom: 0;
}

.product-detail-description br {
    line-height: 1.0;
    display: block;
    margin: 0.1em 0;
}

.product-detail-actions {
    margin-top: 1rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Initial states for animated elements */
.hero-title,
.hero-subtitle,
.hero-cta {
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for product cards */
.product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay for product cards */
.products-grid .product-card:nth-child(1) { transition-delay: 0.1s; }
.products-grid .product-card:nth-child(2) { transition-delay: 0.2s; }
.products-grid .product-card:nth-child(3) { transition-delay: 0.3s; }
.products-grid .product-card:nth-child(4) { transition-delay: 0.4s; }
.products-grid .product-card:nth-child(5) { transition-delay: 0.5s; }
.products-grid .product-card:nth-child(6) { transition-delay: 0.6s; }
.products-grid .product-card:nth-child(7) { transition-delay: 0.7s; }
.products-grid .product-card:nth-child(8) { transition-delay: 0.8s; }

/* Section titles animation */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Intro section animation */
.intro-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.intro-content.animated {
    opacity: 1;
    transform: translateY(0);
}

/* CTA section animation */
.cta-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-content.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Page header animation */
.page-header h1,
.page-header p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.page-header h1 {
    animation-delay: 0.2s;
}

.page-header p {
    animation-delay: 0.4s;
}

/* About page animations */
.about-text,
.about-image,
.quality-text,
.quality-image,
.sourcing-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-text.animated,
.about-image.animated,
.quality-text.animated,
.quality-image.animated,
.sourcing-content.animated {
    opacity: 1;
    transform: translateY(0);
}

.about-image.animated {
    animation: slideInRight 0.8s ease-out forwards;
}

.quality-image.animated {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Value cards animation */
.value-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay for value cards */
.values-grid .value-card:nth-child(1) { transition-delay: 0.1s; }
.values-grid .value-card:nth-child(2) { transition-delay: 0.2s; }
.values-grid .value-card:nth-child(3) { transition-delay: 0.3s; }
.values-grid .value-card:nth-child(4) { transition-delay: 0.4s; }

/* Category filter animation */
.category-filter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.category-filter.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel description animation */
.featured-products-section > .container > p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.featured-products-section > .container > p.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .animate-on-scroll,
    .product-card,
    .value-card,
    .section-title,
    .intro-content,
    .cta-content {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .page-header .breadcrumb {
        text-align: center;
    }
    
    .breadcrumb ol {
        justify-content: center;
    }
}

