:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --repair-primary: #28a745; /* Green for repair section */
    --repair-secondary: #218838;
    --light-bg: #f8f9fa;
    --white-bg: #ffffff;
    --dark-text: #343a40;
    --light-text: #6c757d;
    --section-padding: 40px 0; /* Reduced section padding */
}

body {
    font-family: 'Poppins', sans-serif !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 100%;
    overflow-x: hidden; /* Ensure container doesn't overflow */
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    overflow: hidden; /* Prevent overflow */
}

.hero-slider .carousel-inner, .hero-slider .carousel-item {
    height: 70vh;
    width: 100%;
    overflow: hidden; /* Prevent content from spilling out */
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Section */
.services-section {
    padding: var(--section-padding);
}

.section-title {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 40px;
    text-align: center;
}

.service-card {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background: var(--light-bg);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-card svg {
    width: 45px;
    height: 45px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Categories Section */
.categories-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.categories-section .row {
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden; /* Prevent grid overflow */
}

.category-card-new {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
    height: 100%;
    width: 100%; /* Ensure it stays within parent */
}

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

.category-card-new img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.category-card-new .category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-weight: 600;
    text-align: center;
}

/* CTA Sections */
.cta-sections {
    padding: var(--section-padding);
    background: var(--light-bg); /* Light background to highlight cards */
}

.cta-card {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-radius: 1.5rem; /* Pronounced rounded corners */
    padding: 1.5rem; /* Reduced padding */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Strong shadow */
    color: white;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Fit within column */
    box-sizing: border-box;
    display: flex; /* Use flexbox for consistent height */
    flex-direction: column; /* Stack content vertically */
    height: 100%; /* Stretch to match tallest card */
}

.cta-card:hover {
    transform: scale(1.03); /* Subtle scale on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.cta-card .display-5 {
    font-weight: 700;
    margin-bottom: 0.75rem; /* Reduced margin */
    font-size: 1.8rem; /* Slightly smaller heading */
    min-height: 2.4rem; /* Ensure consistent heading height */
}

.cta-card p {
    margin-bottom: 1rem; /* Reduced margin */
    font-size: 1rem; /* Smaller text */
    flex: 1; /* Allow paragraph to expand and balance height */
}

.cta-btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem; /* Smaller button */
    border-radius: 50px;
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    min-height: 2.5rem; /* Consistent button height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn:hover {
    transform: scale(1.05); /* Slight scale on button hover */
    background-color: #f1f1f1;
    color: var(--primary-color);
}

/* Customization CTA Card */
.custom-card {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Blue gradient */
}

/* Repair & Maintenance CTA Card */
.repair-card {
    background: linear-gradient(45deg, #28a745, #218838); /* Green gradient */
}

.repair-card .cta-btn {
    color: var(--repair-primary); /* Match button text to repair theme */
}

.repair-card .cta-btn:hover {
    color: var(--repair-primary);
}

/* Top Picks Section */
.top-picks-section {
    padding: var(--section-padding);
}

.picks-outer-container {
    background: linear-gradient(145deg, #a0c4ff, #8e94f2);
    border-radius: 2.5rem;
    padding: 3rem 1rem; /* Reduced padding */
    text-align: center;
    overflow-x: hidden; /* Prevent overflow */
}

.picks-outer-container .section-title {
    color: #fff;
    font-weight: 700;
}

.picks-inner-container {
    background: #fffbe9;
    border-radius: 1.5rem;
    padding: 1.5rem; /* Reduced padding */
    margin-top: 1.5rem;
    overflow-x: hidden; /* Prevent overflow */
}

.top-picks-section .row {
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden; /* Prevent grid overflow */
}

.pick-card {
    background: var(--white-bg);
    border: 1px solid #f0eada;
    border-radius: 1rem;
    padding: 0.75rem; /* Reduced padding to make cards more compact */
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding/border included in width */
    width: 100%; /* Ensure card fits within column */
}

.pick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pick-card-img {
    width: 100%;
    max-width: 140px; /* Reduced max-width for better fit */
    height: 140px;
    object-fit: contain;
    margin: 0 auto 0.75rem; /* Reduced margin */
}

.pick-card .price-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
}

.pick-card .price-container .original-price {
    font-size: 0.8rem; /* Smaller font size */
    color: #e74c3c;
    text-decoration: line-through;
}

.pick-card .price-container .discounted-price {
    font-size: 1rem; /* Smaller font size */
    color: #27ae60;
    font-weight: 600;
}

.pick-card .product-name {
    font-weight: 600;
    color: var(--dark-text);
    margin: 0.5rem 0;
    font-size: 0.9rem; /* Smaller font size */
    line-height: 1.2; /* Improve text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.pick-card .actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.pick-card .actions .wishlist-btn {
    background-color: #e74c3c;
    color: white;
    border-radius: 50px;
    padding: 0.4rem 0.8rem; /* Reduced padding */
    border: none;
    font-weight: 500;
    font-size: 0.8rem; /* Smaller font size */
    flex-grow: 1;
}

.pick-card .actions .wishlist-btn:hover {
    background-color: #c0392b;
}

.pick-card .actions .wishlist-btn.active {
    background-color: #c0392b;
}

.pick-card .actions .quick-view-btn {
    border: 2px solid #bdc3c7;
    color: #34495e;
    border-radius: 50%;
    width: 36px; /* Slightly smaller button */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pick-card .actions .quick-view-btn:hover {
    background-color: #ecf0f1;
}

.view-more-btn {
    background-color: var(--white-bg);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-bg);
}

/* Location Section */
.location-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.location-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* WhatsApp CTA */
.whatsapp-cta {
    background-color: #25D366;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .hero-slider .carousel-inner, .hero-slider .carousel-item {
        height: 18vh; /* Reduced for small screens */
    }
    .categories-section .row {
        --bs-gutter-x: 0.5rem; /* Tighter gutters for small screens */
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    .top-picks-section .row {
        --bs-gutter-x: 0.5rem; /* Tighter gutters for small screens */
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    .category-card-new:hover, .pick-card:hover {
        transform: none; /* Disable scaling on mobile */
    }
    .category-card-new img {
        height: 140px; /* Smaller images for mobile */
    }
    .picks-outer-container {
        padding: 1.5rem 0.5rem; /* Reduced padding */
    }
    .picks-inner-container {
        padding: 0.75rem; /* Reduced padding */
    }
    .pick-card {
        padding: 0.5rem; /* Tighter padding */
    }
    .pick-card-img {
        max-width: 100px; /* Smaller image for small screens */
        height: 100px;
    }
    .pick-card .product-name {
        font-size: 0.8rem; /* Smaller text */
    }
    .pick-card .price-container .original-price {
        font-size: 0.7rem;
    }
    .pick-card .price-container .discounted-price {
        font-size: 0.9rem;
    }
    .pick-card .actions .wishlist-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    .pick-card .actions .quick-view-btn {
        width: 32px;
        height: 32px;
    }
    .location-section iframe {
        height: 300px; /* Adjust map height for mobile */
    }
    .cta-sections {
        padding: 20px 0; /* Further reduced section padding */
    }
    .cta-card {
        padding: 1rem; /* Smaller padding for mobile */
        border-radius: 1rem; /* Slightly smaller corners */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    }
    .cta-card .display-5 {
        font-size: 1.4rem; /* Smaller heading */
        min-height: 1.8rem; /* Adjusted for smaller screens */
    }
    .cta-card p {
        font-size: 0.85rem; /* Smaller text */
        flex: 1;
    }
    .cta-btn {
        padding: 0.5rem 1.25rem; /* Smaller button */
        font-size: 0.85rem;
        min-height: 2.2rem; /* Adjusted button height */
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-slider .carousel-inner, .hero-slider .carousel-item {
        height: 30vh; /* Adjusted for medium screens */
    }
    .categories-section .row {
        --bs-gutter-x: 0.75rem; /* Moderate gutters for medium screens */
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    .top-picks-section .row {
        --bs-gutter-x: 0.75rem; /* Moderate gutters for medium screens */
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    .pick-card {
        padding: 0.75rem; /* Moderate padding */
    }
    .pick-card-img {
        max-width: 120px; /* Moderate image size */
        height: 120px;
    }
    .pick-card .product-name {
        font-size: 0.85rem;
    }
    .pick-card .price-container .original-price {
        font-size: 0.75rem;
    }
    .pick-card .price-container .discounted-price {
        font-size: 0.95rem;
    }
    .cta-sections {
        padding: 30px 0; /* Moderate section padding */
    }
    .cta-card {
        padding: 1.25rem; /* Moderate padding */
        border-radius: 1.25rem;
    }
    .cta-card .display-5 {
        font-size: 1.6rem; /* Moderate heading */
        min-height: 2rem; /* Adjusted for medium screens */
    }
    .cta-card p {
        font-size: 0.9rem;
        flex: 1;
    }
    .cta-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
        min-height: 2.3rem;
    }
}

@media (min-width: 769px) {
    .categories-section .row {
        --bs-gutter-x: 1rem; /* Standard gutters for large screens */
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    .top-picks-section .row {
        --bs-gutter-x: 1rem; /* Standard gutters for large screens */
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    .pick-card-img {
        max-width: 140px; /* Standard image size */
        height: 140px;
    }
    .cta-sections .row {
        --bs-gutter-x: 1.5rem; /* Slightly larger gutter for cards */
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
        align-items: stretch; /* Ensure columns stretch to match tallest card */
    }
    .cta-card {
        padding: 1.5rem; /* Standard padding */
        border-radius: 1.5rem;
        height: 100%; /* Reinforce equal height */
    }
    .cta-card .display-5 {
        font-size: 1.8rem;
        min-height: 2.4rem;
    }
    .cta-card p {
        font-size: 1rem;
        flex: 1;
    }
    .cta-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        min-height: 2.5rem;
    }
}

.services-section .service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}
.services-section .service-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.services-section .service-card:hover {
    transform: translateY(-5px);
}
.services-section .btn-primary {
    width: 100%;
    margin-top: 10px;
}
.pick-card .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
}