/* --- Core & Typography --- *//* --- Homepage Sections --- */

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block; /* Makes the whole card clickable */
    transition: transform 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-card img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card:hover img {
    transform: scale(1.1);
}
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
}
.category-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Feature/Promise Section */
.feature-icon {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f9fa;
    border-radius: 12px;
}


/* --- About Page Specific Styles --- */

/* About Hero Section */
.about-hero {
    position: relative;
    background: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem; /* Spacing from header */
}
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}
.about-hero .container {
    position: relative; /* To be on top of the overlay */
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #eaeaea;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #222;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.right::after {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: #f8f9fa;
    position: relative;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

/* Team Section */
.team-card {
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.team-card img {
    height: 280px;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background-color: #222;
    color: #fff;
    border-radius: 12px;
}
.cta-section .btn-light {
    font-weight: 600;
}

/* --- Product Grid & Animations (for products.php) --- */

.product-grid {
    display: grid;
    /* This is the magic: it creates as many columns as can fit, with a minimum width of 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; /* The space between product cards */
}

/* On-Scroll Fade-in Animation */
.product-card.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-card.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Enhanced Hover Effect */
.product-card .product-card-img-container {
    position: relative; /* Needed for the overlay */
    overflow: hidden; /* Keeps the overlay contained */
}

.product-card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out;
}

.product-card:hover .product-card-img-overlay {
    opacity: 1; /* Show on hover */
}

.view-product-btn {
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.product-card:hover .view-product-btn {
    transform: translateY(0);
    opacity: 1;
}



    /*footer*/
    /* --- Redesigned Footer --- */
.main-footer {
    background-color: #222;
    color: #adb5bd; /* A soft grey for text */
    padding: 4rem 0 2rem 0;
}

.main-footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.main-footer ul {
    list-style: none;
    padding-left: 0;
}

.main-footer ul li {
    margin-bottom: 0.75rem;
}

.main-footer ul a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}

.main-footer ul a:hover {
    color: #fff;
    padding-left: 5px; /* Adds a nice hover effect */
}

.main-footer .footer-about-text {
    font-size: 0.9rem;
}

.main-footer .social-icons a {
    color: #adb5bd;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.2s ease-in-out;
}

.main-footer .social-icons a:hover {
    color: #fff;
}

.footer-bottom {
    background-color: #111;
    color: #6c757d;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}
    
    
    /*end foooter*/



body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #222222;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.site-logo-footer {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* --- Header & Navigation --- */
header {
    border-bottom: 1px solid #EAEAEA;
    background-color: #fff;
}

.nav-links .nav-link {
    color: #555;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav-links .nav-link:hover {
    color: #000;
}

.nav-links .nav-link.active {
    color: #000;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-width: 1px;
}

.btn-primary {
    background-color: #222;
    border-color: #222;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #000 !important;
    border-color: #000 !important;
}

.btn-outline-primary {
    color: #222;
    border-color: #EAEAEA;
}
.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary:focus {
    background-color: #222 !important;
    color: #fff !important;
    border-color: #222 !important;
}

/* --- Product Cards --- */
.product-card {
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    background-color: #fff;
}

.product-card:hover {
    border-color: #ccc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.product-card-img-container {
    background-color: #f9f9f9;
}

.product-card img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}
.product-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.product-card .card-text {
    color: #555;
    font-size: 1rem;
    font-weight: 600;
}

/* --- Section Titles --- */
.section-title {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- Product Detail Page --- */
.product-detail-img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border: 1px solid #EAEAEA;
}

.product-price-detail {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
}

/* --- Forms & Modals --- */
.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #EAEAEA;
}
.form-control:focus {
    border-color: #888;
    box-shadow: none;
}
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}


/* --- Homepage Redesign (Flipkart/Amazon Style) --- */

/* Hero Carousel */
.hero-carousel .carousel-item {
    height: 65vh; /* Sets a nice height for the carousel */
    min-height: 400px;
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-carousel .carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-carousel .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Deal of the Day Section */
.deal-section {
    background-color: #f8f9fa;
    border-radius: 12px;
}
.deal-timer {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.deal-timer-box {
    background-color: #222;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
}
.deal-timer-box span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}
.deal-timer-box small {
    font-size: 0.8rem;
    text-transform: uppercase;
}
.deal-image {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Mid-Page Banner */
.full-width-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.full-width-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.full-width-banner .container {
    position: relative;
    z-index: 2;
}