/* Product Pages Specific Styles */

/* 1. 3D Hero Section */
.product-hero-3d {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 60px;
    background: radial-gradient(circle at 70% 50%, rgba(255, 140, 0, 0.08) 0%, var(--bg-color) 60%);
    overflow: hidden;
}

.product-hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.product-hero-content .category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-hero-content .hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.product-hero-content .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 3D Scene */
.hero-3d-scene {
    flex: 1;
    height: 600px;
    position: relative;
    perspective: 1200px;
    /* Essential for 3D */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Light mode specific adjustment for 3D hero */
body.light-mode .product-hero-3d {
    background: radial-gradient(circle at 70% 50%, rgba(255, 140, 0, 0.05) 0%, var(--bg-color) 60%);
}

/* Premium Single-Bottle 3D Animations */
.hero-3d-scene {
    position: relative;
    width: 450px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-bottle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1200px;
}

.floating-hero-item {
    height: 480px;
    width: auto;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.15));
    animation: premiumFloat 6s ease-in-out infinite;
    transform-origin: bottom center;
    will-change: transform, filter;
    z-index: 2;
}

.floor-shadow {
    width: 280px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    margin-top: 15px;
    animation: shadowScale 6s ease-in-out infinite;
    will-change: transform, opacity;
    z-index: 1;
}

body.dark-mode .floor-shadow {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
}

@keyframes premiumFloat {
    0% {
        transform: translateY(0) rotateY(-8deg) rotateX(3deg);
        filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.15));
    }

    50% {
        transform: translateY(-35px) rotateY(8deg) rotateX(-2deg);
        filter: drop-shadow(0 45px 35px rgba(0, 0, 0, 0.08));
    }

    100% {
        transform: translateY(0) rotateY(-8deg) rotateX(3deg);
        filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.15));
    }
}

@keyframes shadowScale {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(0.65);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* 2. Extensive Content Grid */
.extensive-content-section {
    background: var(--bg-color);
}

.textContent-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.textContent-center h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.textContent-center p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

/* 3. Premium Image Cards */
.premium-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #fff;
    /* Enforce a consistent height */
    min-height: 400px;
    height: 100%;
}

body.light-mode .premium-image-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.premium-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -15px rgba(255, 140, 0, 0.3);
}

.premium-image-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) saturate(1.15);
    /* Makes the raw photos pop */
    transition: transform 0.6s ease;
}

.premium-image-card:hover img {
    transform: scale(1.05);
}

.premium-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.premium-card-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.premium-card-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* 4. Text List Card */
.product-list-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-list-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.product-list-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-list-card li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.product-list-card li:last-child {
    border-bottom: none;
}

.product-list-card li::before {
    content: "✓";
    color: #FF8C00;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Grid Placements for Masonry-like look */
.product-showcase-grid .premium-image-card:nth-child(1) {
    grid-column: span 7;
    height: 500px;
}

.product-showcase-grid .premium-image-card:nth-child(2) {
    grid-column: span 5;
    height: 500px;
}

.product-showcase-grid .product-list-card {
    grid-column: span 12;
    margin: 2rem 0;
}

.product-showcase-grid .premium-image-card:nth-child(4) {
    grid-column: span 4;
    height: 400px;
}

.product-showcase-grid .premium-image-card:nth-child(5) {
    grid-column: span 4;
    height: 400px;
}

.product-showcase-grid .premium-image-card:nth-child(6) {
    grid-column: span 4;
    height: 400px;
}

/* Responsive */
@media (max-width: 991px) {
    .product-hero-3d {
        flex-direction: column;
        padding-top: 160px;
        /* Increased to push content down away from header */
        text-align: center;
    }

    .product-hero-content {
        margin-bottom: 3rem;
        max-width: 100%;
    }

    .hero-3d-scene {
        width: 100%;
        height: 400px;
    }

    .bottle-wrapper img {
        height: 250px;
    }

    .product-showcase-grid .premium-image-card:nth-child(n) {
        grid-column: span 12;
        height: 350px;
    }

    .product-showcase-grid .product-list-card {
        grid-column: span 12;
    }
}

/* =========================================================================
   Meat Page Structured Catalog (Premium Redesign)
   ========================================================================= */

/* 1. Featured Carousel (Swiper.js) */
.meat-catalog-swiper,
.category-catalog-swiper {
    width: 100%;
    padding: 3rem 0 5rem;
    overflow: hidden;
}

.meat-catalog-swiper .swiper-slide,
.category-catalog-swiper .swiper-slide {
    width: 400px;
    /* Base width for desktop slides */
    height: 500px;
    transition: filter 0.4s var(--easing), opacity 0.4s var(--easing);
    opacity: 0.5;
    filter: blur(2px);
}

.meat-catalog-swiper .swiper-slide-active,
.category-catalog-swiper .swiper-slide-active {
    opacity: 1;
    filter: blur(0);
}

.slide-image-wrapper {
    width: 100%;
    height: 80%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}

.swiper-slide-active:hover .slide-image-wrapper img {
    transform: scale(1.05);
    /* Only the active slide zooms */
}

.slide-details {
    padding-top: 1.5rem;
    text-align: center;
}

.slide-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FF8C00;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.slide-details .premium-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.slide-details .slide-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}

/* Custom Swiper Controls */
.meat-catalog-swiper .swiper-pagination-bullet,
.category-catalog-swiper .swiper-pagination-bullet {
    background: var(--text-muted);
}

.meat-catalog-swiper .swiper-pagination-bullet-active,
.category-catalog-swiper .swiper-pagination-bullet-active {
    background: #FF8C00;
}

.meat-catalog-swiper .swiper-button-next,
.category-catalog-swiper .swiper-button-next,
.meat-catalog-swiper .swiper-button-prev,
.category-catalog-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 30 !important;
}

.meat-catalog-swiper .swiper-button-next:after,
.category-catalog-swiper .swiper-button-next:after,
.meat-catalog-swiper .swiper-button-prev:after,
.category-catalog-swiper .swiper-button-prev:after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2.5px solid #ffffff;
    border-right: 2.5px solid #ffffff;
    text-shadow: none;
    font-size: 0 !important;
    line-height: 0;
}

.meat-catalog-swiper .swiper-button-prev:after,
.category-catalog-swiper .swiper-button-prev:after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.meat-catalog-swiper .swiper-button-next:after,
.category-catalog-swiper .swiper-button-next:after {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Final arrow override: remove Swiper glyphs entirely and draw one arrow per button */
.meat-catalog-swiper .swiper-button-next::before,
.category-catalog-swiper .swiper-button-next::before,
.meat-catalog-swiper .swiper-button-prev::before,
.category-catalog-swiper .swiper-button-prev::before,
.meat-catalog-swiper .swiper-button-next::after,
.category-catalog-swiper .swiper-button-next::after,
.meat-catalog-swiper .swiper-button-prev::after,
.category-catalog-swiper .swiper-button-prev::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.meat-catalog-swiper .swiper-button-next,
.category-catalog-swiper .swiper-button-next,
.meat-catalog-swiper .swiper-button-prev,
.category-catalog-swiper .swiper-button-prev {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px, auto;
    color: transparent !important;
    font-size: 0 !important;
}

.meat-catalog-swiper .swiper-button-next,
.category-catalog-swiper .swiper-button-next {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 2.5L10.5 8L5 13.5' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.meat-catalog-swiper .swiper-button-prev,
.category-catalog-swiper .swiper-button-prev {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11 2.5L5.5 8L11 13.5' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}


/* 2. Structured Catalog Grid (The Full List) */
.structured-catalog-grid {
    display: grid;
    /* Clean 4-column layout on desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.catalog-card {
    display: flex;
    flex-direction: column;
}

.catalog-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: pointer;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--easing);
}

.catalog-card:hover .catalog-image img {
    transform: scale(1.08);
}

.catalog-info {
    display: flex;
    flex-direction: column;
    padding: 0 0.2rem;
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.catalog-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FF8C00;
    font-weight: 600;
}

.catalog-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.catalog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.2px;
}

/* Layout Responsiveness */
@media (max-width: 1200px) {
    .structured-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .meat-catalog-swiper .swiper-slide,
    .category-catalog-swiper .swiper-slide {
        width: 320px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .structured-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .meat-catalog-swiper .swiper-slide,
    .category-catalog-swiper .swiper-slide {
        width: 280px;
        height: 350px;
    }

    .meat-catalog-swiper .swiper-button-next,
    .category-catalog-swiper .swiper-button-next,
    .meat-catalog-swiper .swiper-button-prev,
    .category-catalog-swiper .swiper-button-prev {
        display: none;
    }

    /* Hide arrows on mobile */
}

@media (max-width: 480px) {
    .structured-catalog-grid {
        grid-template-columns: 1fr;
    }

    /* Stack 1x1 on very small phones to maintain image integrity */
}
