/* Custom Styles */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f2f6; /* Flipkart-like background */
}

/* Notification Modal Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.modal-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* New Product Card Styling */
.product-card {
    position: relative; /* This is essential for the overlay effect */
    border-radius: 0.5rem;
    overflow: hidden; /* Hides parts of the image that go outside the rounded corners */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 20rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image cover the card without stretching */
    z-index: 1;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.product-card-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes content to the bottom */
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(13, 37, 63, 0.85), rgba(13, 37, 63, 0)); /* Dark blue gradient overlay */
    color: white;
}

.product-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-card-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: transparent; /* A nice green for the button */
    color: white;
    border-radius: 9999px; /* Makes it a pill shape */
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    align-self: flex-start; /* Aligns button to the left */
}

.product-card-button:hover {
    background-color: transparent; /* Darker green on hover */
}

/* Swiper Slider Customization */
.swiper-pagination-bullet-active {
    background-color: #ffffff !important;
}

/* Custom background color for the navigation bar */
.bg-custom-orange {
    background-color: #ff9f00; /* A nice yellowish-orange, similar to Flipkart */
}

.swiper-slide img {
    object-fit: contain; /* This is the fix */
    object-position: center; /* This ensures it's centered */
}

/* Brand Logo Card Styling */
.brand-logo-link {
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f5f9; /* A light, greyish-blue color */
    border: 1px solid #e2e8f0;   /* A subtle border to define the card */
    padding: 2rem; /* Creates space inside the card */
    border-radius: 0.75rem; /* Rounded corners for the card */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 240px; /* Gives each card a consistent width */
    text-align: center; /* Centers the logo horizontally */
}

.brand-logo-link:hover {
    transform: translateY(-10px); /* Lifts the card up on hover */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

/* Floating Dealer Notice Button Styling */
.notice-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px; /* Positioned above the WhatsApp button */
    right: 40px;
    background-color: #0d6efd; /* Site's primary blue color */
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.notice-float:hover {
    transform: scale(1.1);
}

/* --- Video Section Styling --- */

/* This styles the card holding each video */
.video-card {
    background-color: #ffffff;
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1rem; /* 16px */
    /* This makes the card only as wide as its content (the video) */
    display: inline-block; 
}

/* This styles the video player itself */
.video-card iframe {
    border-radius: 0.5rem; /* Rounded corners for the video player */
    display: block; /* Fixes any weird alignment issues */
}

/* This centers the title above the video */
.video-card h3 {
    text-align: center;
}