/* Product Page Specific Styles */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #004a7c 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* Make in India Image Background */
.page-hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-image: url('assets/images/makeinindia.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-hero-content p {
    font-size: 1.2rem;
    opacity: 0.3;
    max-width: 600px;
    margin: 0 auto;
}

.product-detail {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px 0;
}

/* Product Cards Container */
.product-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Product Card */
.product-card {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
}

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

/* Card Image Section (Left Side) */
.card-image {
    flex: 0 0 40%;
    min-width: 350px;
    max-width: 400px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0;
    object-fit: contain;
    max-height: 350px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 350px;
    display: block;
}

/* Card Content Section (Right Side) */
.product-card h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 15px;
}

.product-card p b {
    color: var(--primary);
    font-weight: 600;
}

.product-benefits {
    list-style: none;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 15px;
    padding-left: 0;
}

.product-benefits li {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
    transition: transform 0.3s ease;
}

.product-benefits li:hover {
    transform: translateX(5px);
}

.product-benefits li i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 1em;
    margin-top: 2px;
}

/* Flex Content Wrapper */
.product-card > :not(.card-image):not(.video-container) {
    flex: 1;
    padding: 0;
}

/* Apply padding to card content */
.product-card h2,
.product-card p,
.product-benefits,
.product-buttons {
    padding: 0 30px;
}

.product-card h2:first-of-type {
    padding-top: 30px;
    padding-bottom: 15px;
}

.product-card p {
    padding-top: 0;
}

.product-benefits {
    padding-top: 0;
    padding-bottom: 0;
}

/* Product Buttons */
.product-buttons {
    padding-bottom: 30px;
    padding-top: 20px;
    text-align: left;
    margin-top: auto;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #004a7c;
    transform: translateY(-2px);
}

/* Video Container Styles */
.video-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex: 1;
    align-items: center;
    padding: 20px 30px;
    flex-wrap: wrap;
}

.video-card {
    width: 200px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: scale(1.05);
}

.video-card video {
    width: 100%;
    height: auto;
    display: block;
}

/* Dropdown Styles */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu .dropdown-toggle i {
    font-size: 0.8em;
}

.nav-menu .dropdown-toggle.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    z-index: 1000;
}

.nav-menu .dropdown-menu li {
    list-style: none;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.nav-menu .dropdown-menu a:hover,
.nav-menu .dropdown-menu a.active {
    background: var(--light);
    color: var(--primary);
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

/* Text Center Utility */
.text-center {
    text-align: center;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 2.2;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-hero::after {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--light);
        border-radius: 0;
    }

    .nav-menu .dropdown-menu a {
        padding: 10px 30px;
    }

    .video-container {
        flex-direction: column;
        gap: 15px;
    }

    .video-card {
        width: 100%;
    }

    /* Stack cards vertically on tablets */
    .product-card {
        flex-direction: column;
        min-height: auto;
    }

    .card-image {
        flex: 0 0 auto;
        min-width: 100%;
        max-width: 100%;
        min-height: 300px;
    }

    .product-card h2,
    .product-card p,
    .product-benefits,
    .product-buttons {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-card h2:first-of-type {
        padding-top: 20px;
    }

    .product-buttons {
        padding-bottom: 20px;
    }

    .video-container {
        padding: 15px 20px;
    }

    .page-hero::after {
        width: 200px;
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 60px;
    }

    .page-hero-content h1 {
        font-size: 2.2rem;
    }

    .page-hero-content p {
        font-size: 1rem;
    }

    .product-card h2 {
        font-size: 1.5rem;
    }

    .product-card p {
        font-size: 0.9rem;
    }

    .card-image {
        min-height: 250px;
    }

    .page-hero::after {
        width: 180px;
        opacity: 0.18;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 60px 0 40px;
    }

    .page-hero-content h1 {
        font-size: 1.8rem;
    }

    .page-hero-content p {
        font-size: 0.9rem;
    }

    .product-card h2 {
        font-size: 1.3rem;
    }

    .product-card p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
        width: 100%;
    }

    .video-container {
        flex-direction: column;
        gap: 10px;
    }

    .video-card {
        width: 100%;
    }

    .product-card h2,
    .product-card p,
    .product-benefits,
    .product-buttons {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card-image {
        min-height: 200px;
    }

    .page-hero::after {
        width: 150px;
        opacity: 0.12;
    }

    .product-cards {
        gap: 20px;
    }

    .product-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 50px 0 30px;
    }

    .page-hero-content h1 {
        font-size: 1.5rem;
    }

    .page-hero-content p {
        font-size: 0.85rem;
    }

    .product-card h2 {
        font-size: 1.1rem;
    }

    .product-card p {
        font-size: 0.8rem;
    }

    .product-benefits li {
        padding: 3px 0;
        font-size: 0.85rem;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .page-hero::after {
        width: 120px;
        opacity: 0.10;
    }
}

/* ========================================
   XPlate Page Specific Styles
   (These classes only affect XPlate page)
   ======================================== */

/* Full Width Product Card */
.product-card-full {
    flex-direction: column;
    min-height: auto;
    overflow: visible;
}

.product-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* XPlate Card Content Wrapper */
.xplate-card-content {
    width: 100%;
    padding: 30px;
}

.xplate-card-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 25px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.xplate-card-content h2 i {
    font-size: 1.6rem;
}

/* ========== IMAGE GALLERY STYLES ========== */

.xplate-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

.xplate-gallery-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.xplate-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.xplate-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
    transition: transform 0.3s ease;
}

.xplate-gallery-item:hover img {
    transform: scale(1.08);
}

/* ========== VIDEO GALLERY STYLES ========== */

.xplate-video-gallery {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.xplate-video-item {
    flex: 0 1 45%;
    min-width: 300px;
}

.video-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 16 / 9;
}

.video-wrapper:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-label {
    font-size: 0.95rem;
    color: var(--dark);
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1200px) {
    .xplate-image-gallery {
        gap: 20px;
    }

    .xplate-gallery-item img {
        height: 250px;
    }

    .xplate-video-item {
        flex: 0 1 48%;
    }
}

@media (max-width: 992px) {
    .xplate-card-content {
        padding: 25px;
    }

    .xplate-card-content h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    /* Images: 2 columns on tablets */
    .xplate-image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .xplate-gallery-item img {
        height: 220px;
    }

    /* Videos: Stack on tablets */
    .xplate-video-gallery {
        flex-direction: column;
        gap: 20px;
    }

    .xplate-video-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .video-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .xplate-card-content {
        padding: 20px;
    }

    .xplate-card-content h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    /* Images: Single column on mobile */
    .xplate-image-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .xplate-gallery-item img {
        height: 240px;
    }

    /* Videos: Full width */
    .xplate-video-gallery {
        gap: 15px;
    }

    .xplate-video-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .video-label {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .xplate-card-content {
        padding: 15px;
    }

    .xplate-card-content h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        gap: 8px;
    }

    .xplate-card-content h2 i {
        font-size: 1.3rem;
    }

    .xplate-image-gallery {
        gap: 10px;
    }

    .xplate-gallery-item img {
        height: 200px;
    }

    .xplate-gallery-item:hover img {
        transform: scale(1.05);
    }

    .xplate-video-gallery {
        gap: 12px;
    }

    .video-wrapper {
        border-radius: 8px;
    }

    .video-label {
        font-size: 0.85rem;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .xplate-card-content {
        padding: 12px;
    }

    .xplate-card-content h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .xplate-image-gallery {
        gap: 8px;
    }

    .xplate-gallery-item img {
        height: 180px;
    }

    .xplate-gallery-item:hover {
        transform: translateY(-4px);
    }

    .xplate-video-item {
        flex: 1 1 100%;
    }

    .video-wrapper {
        aspect-ratio: 16 / 9;
        border-radius: 6px;
    }

    .video-label {
        font-size: 0.8rem;
        margin-top: 6px;
    }
}
