/* --- Base Styles & Typography --- */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Very light grey-blue background */
    color: #343a40; /* Darker grey for main text for better readability */
    -webkit-font-smoothing: antialiased; /* Smoother fonts */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard syntax */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif; /* Serif for headings */
    color: #1a2d40; /* Very dark blue-grey for main headings */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.8em;
    text-align: center;
    color: #ffffff; /* White for hero sections */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #fd7e14; /* Accent Orange for highlights */
    border-radius: 2px;
}

h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #34495e; /* Slightly lighter dark blue for sub-headings */
}

p {
    margin-bottom: 15px;
}

a {
    color: #0a58ca; /* Primary Blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fd7e14; /* Darker Primary Blue on hover */
    text-decoration: none;
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added horizontal padding for smaller screens */
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0; /* Consistent vertical padding */
}

.section-light-bg {
    background-color: #ffefdf; /* Pure white background for light sections */
}

.section-description {
    font-size: 1.1em;
    color: #6c757d; /* Lighter grey for descriptions */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.8;
}

/* --- Buttons --- */
.brochure-button {
    display: inline-block;
    background-color: #0a58ca; /* Primary Blue for buttons */
    color: #ffffff; /* White text on button */
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.button-sm {
    display: inline-block; /* Essential for padding and width */
    background-color: #0a58ca; /* Primary Blue */
    color: #ffffff !important; /* White text, use !important to override nav-link */
    padding: 8px 15px; /* Smaller padding for a compact button */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em; /* Slightly smaller font size */
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    margin-left: 30px; /* Align with other nav items' left margin */

    /* Override nav-link's pseudo-element for this button */
    position: relative;
}

.brochure-button:hover {
    background-color: #fd7e14; /* Darker Primary Blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
    color: #ffffff;
}

/* --- Header Styles (Only custom additions, Bootstrap will handle core nav styles) --- */
.main-header {
    background-color: rgba(255, 255, 255, 1); /* Dark Blue-Grey for header background */
    color: #0a58ca; /* White text in header */
    /* Padding is now primarily handled by Bootstrap's navbar-expand-lg for different sizes,
       but this maintains a base color. */
    position: sticky; /* Sticky header */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Bootstrap's .navbar-brand and .nav-link will take precedence.
   You can override them in a custom.css if specific styling is needed. */
   
   /* Custom styling for Bootstrap's .navbar-brand and your .logo */
.navbar-brand.logo {
    font-family: 'Georgia', serif; /* Use your heading font for the logo */
    font-size: 1.8em; /* Make the logo larger and more prominent */
    font-weight: bold;
    color: #ffffff !important; /* Ensure white color, !important to override Bootstrap if needed */
    text-decoration: none;
    transition: color 0.3s ease;
}


.navbar-toggler .navbar-toggler-icon {
    background-color: #0a58ca; 
}


.logo {
    max-width: 125px;
    height: auto;
}

.navbar-brand.logo:hover {
    color: #fd7e14 !important; /* Accent Orange on logo hover */
}

/* Adjustments for smaller screens to ensure the logo scales down gracefully */
@media (max-width: 992px) { /* Adjust for Bootstrap's large breakpoint */
    .navbar-brand.logo {
        font-size: 1.4em; /* Slightly smaller on tablets */
    }
}

@media (max-width: 480px) { /* Adjust for Bootstrap's small breakpoint */
    .navbar-brand.logo {
        font-size: 1.2em; /* Even smaller on mobile */
    }
}
   
.navbar-brand {
    font-size: 1.8em; /* Override Bootstrap's default font size for brand */
    font-weight: bold;
    color: #ffffff !important; /* !important to override Bootstrap if necessary */
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #fd7e14 !important; /* Accent Orange on logo hover */
}


/* Custom styling for Bootstrap nav-link to match previous design */
.navbar-nav .nav-link {
    color: #0a58ca; /* Dark blue for nav links */
    font-weight: bold;
    padding: 5px 0; /* Adjust padding if needed */
    position: relative;
    transition: color 0.3s ease;
    margin-left: 30px; /* Spacing between nav items */
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    color: #fd7e14;
    background-color: #fd7e14; /* Accent Orange for underline */
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    color: #fd7e14 !important;
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fd7e14 !important; /* Accent Orange on hover/active */
}


/* Modal */

/* --- Modal Styles (Custom Re-introduced) --- */
/* --- Modal Styles (Original Custom) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    padding-top: 60px; /* Location of the box */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 700px; /* Max width for larger screens */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative; /* For the close button positioning */
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right; /* Position to the right */
    font-size: 32px;
    font-weight: bold;
    position: absolute; /* Absolute position relative to modal-content */
    top: 10px;
    right: 20px;
    cursor: pointer;
    line-height: 1; /* Align 'x' properly */
    z-index: 2001;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2, .modal-content h3 {
    text-align: left; /* Override default h2 text-align: center for modals */
}

.modal-content h2::after {
    left: 0;
    transform: translateX(0); /* Align h2 underline to left */
}

/* Ensure any elements inside modal-content still use your custom typography */
.custom-modal-content h2, .custom-modal-content h3 {
    text-align: left; /* Override default h2 text-align: center for modals */
}

.custom-modal-content h2::after {
    left: 0;
    transform: translateX(0); /* Align h2 underline to left */
}


.product-image-display, .modal-product-image {
    width: 100%; /* Size of image inside modal */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 100%;
    object-fit: cover;
}

.product-image-detail {
    width: 100%; /* Size of image inside modal */
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Hero Section Styles --- */
.hero-section, .hero-sub {
    position: relative;
    padding: 120px 20px;
    color: #ffffff;
    text-align: center;
    background-size: cover;
    background-position: center center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before, .hero-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); /* Slightly darker overlay for better text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-section .hero-content h1 {
    font-size: 4em;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-section .hero-content p {
    font-size: 1.5em;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* Hero Section (Sub-pages) */
.hero-sub {
    min-height: 350px;
    padding: 100px 20px;
}

.hero-sub::before {
    background-color: rgba(0, 0, 0, 0.6); /* Slightly lighter overlay for sub-pages */
}

.hero-sub .hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-sub .hero-content p {
    font-size: 1.2em;
    opacity: 0.9;
}


/* --- Features & Values Grids --- */
.features-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.feature-item, .value-item {
    background-color: #ffffff; /* White background for items */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover, .value-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
}

.feature-item h3, .value-item h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #0a58ca; /* Primary Blue for feature/value titles */
}

.feature-item p, .value-item p {
    font-size: 0.95em;
    color: #6c757d; /* Lighter grey for descriptions */
}

/* --- Product Categories & Product Grids --- */
.products-category-grid .category-cards-container,
.products-grid .oil-types-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 0;
    justify-content: center;
}

.category-card, .oil-card {
    background-color: #ffffff; /* White background for cards */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #343a40; /* Dark text for card content */
    cursor: pointer;
}

.category-card:hover, .oil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.category-card img, .oil-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    width: 100%;
}

.oil-card img {
    height: 180px; /* Slightly different height for oil cards */
}

.category-card h3, .oil-card h3 {
    color: #1a2d40; /* Dark Blue-Grey for card titles */
    margin-top: 0;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 0.95em;
    color: #6c757d;
    flex-grow: 1;
}

/* --- Contact Page Specific Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
    padding-top: 20px;
}

.contact-info, .contact-form-container {
    background-color: #ffffff; /* White background for contact sections */
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info h2, .contact-form-container h2 {
    text-align: left;
    margin-bottom: 25px;
}
.contact-info h2::after, .contact-form-container h2::after {
    left: 0;
    transform: translateX(0);
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #343a40;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.contact-details strong {
    color: #1a2d40; /* Dark Blue-Grey for emphasis */
}

.contact-details a {
    word-break: break-all;
}

.contact-info h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-links img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}

/* Form specific styles */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ced4da; /* Light grey border */
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #0a58ca; /* Primary Blue on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(10, 88, 202, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: auto;
    padding: 12px 30px;
    margin-top: 10px;
    /* Inherits from .brochure-button */
}

.contact-form .form-note {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 20px;
    text-align: center;
}

/* Map Section */
.map-section {
    margin-top: 60px;
}

.map-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #e9ecef; /* Lighter background for map area */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.map-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.map-directions {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 20px;
}

/* --- Footer Styles --- */
.main-footer {
    background-color: #1a2d40; /* Dark Blue-Grey for footer background */
    color: #e9ecef; /* Light grey text for footer */
    padding: 60px 0 20px;
    font-size: 1em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-wrapping {
    display: flex;
    justify-content: space-between; /* Puts logo on one end, text on the other */
    align-items: center; /* Vertically centers the items */
    width: 100%;
    flex-direction: row;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: left;
}

.footer-section h3 {
    color: #fd7e14; /* Accent Orange for footer headings */
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section p {
    margin-bottom: 10px;
    color: #adb5bd; /* Medium grey for footer body text */
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #e9ecef;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fd7e14; /* Accent Orange on hover */
    text-decoration: underline;
}

.footer-logo {
    /* No specific styling needed here unless you want to constrain its own width */
}

.footer-logo img {
    max-width: 120px; /* Try a slightly smaller max-width for debugging, you can adjust this */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures no extra space below the image */
}

.social-icons {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-icons:hover {
    transform: scale(1.2);
    color: #fd7e14;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #ced4da; /* Very light grey for copyright */
    font-size: 0.9em;
}

/* --- Fixed Position Buttons (WhatsApp & Brochure) --- */
.whatsapp-float, .brochure-download-float {
    position: fixed;
    right: 25px;
    background-color: #25d366; /* WhatsApp brand green */
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float {
    bottom: 90px;
}

.brochure-download-float {
    background-color: #0a58ca; /* Primary Blue for download button */
    bottom: 20px;
}

.whatsapp-float:hover {
    background-color: #1da851; /* Darker green on hover */
    transform: scale(1.05);
}

.brochure-download-float:hover {
    background-color: #fd7e14; /* Darker Primary Blue on hover */
    transform: scale(1.05);
    color: #ffffff;
}

.whatsapp-float img, .brochure-download-float img {
    width: 35px;
    height: 35px;
    vertical-align: middle;
}

/* --- Responsive Design (Adjustments for Bootstrap's default breakpoints) --- */
@media (max-width: 992px) { /* Corresponds to Bootstrap's lg breakpoint for example */
    .container {
        padding: 0 20px;
    }

    /* Hero section adjustments */
    .hero-section .hero-content h1 { font-size: 3.2em; }
    .hero-section .hero-content p { font-size: 1.3em; }
    .hero-sub .hero-content h1 { font-size: 2.8em; }
    .hero-sub .hero-content p { font-size: 1.1em; }
    .hero-section { min-height: 400px; padding: 100px 15px; }
    .hero-sub { min-height: 300px; padding: 80px 15px; }

    /* General adjustments */
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }
    .section-padding { padding: 60px 0; }
    .section-description { font-size: 1em; }

    /* Contact page grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info, .contact-form-container {
        padding: 30px;
    }
    .contact-info h2, .contact-form-container h2 {
        text-align: center;
    }
    .contact-info h2::after, .contact-form-container h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-info h3 {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }

    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        align-items: left;
        font-size: 1em;
        gap: 40px;
    }
    
    .footer-wrapping {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .footer-section {
        max-width: 90%;
        text-align: center;
    }
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .footer-section ul li {
        margin-bottom: 0;
    }

    /* Fixed buttons positioning */
    .whatsapp-float, .brochure-download-float {
        width: 55px;
        height: 55px;
        right: 18px;
    }
    .whatsapp-float img, .brochure-download-float img {
        width: 30px;
        height: 30px;
    }
    .whatsapp-float {
        bottom: 85px;
    }
    .brochure-download-float {
        bottom: 18px;
    }
    .button-sm {
        margin-top: 10px;
    }
}

@media (max-width: 768px) { /* Corresponds to Bootstrap's md breakpoint for example */
    /* Product/Category grids */
    .products-category-grid .category-cards-container,
    .products-grid .oil-types-container {
        grid-template-columns: 1fr;
    }
    .category-card img, .oil-card img {
        height: 150px;
    }
    
    .product-detail-container {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;
    }
    .product-main-info {
        flex-direction: column; /* Stack details vertically */
    }

    .modal-content, .modal-content-spec {
        width: 95%; /* Adjust modal width for small screens */
        margin: 10% auto; /* More margin from top on small screens */
        padding: 20px;
    }
    .close-modal-btn {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
    
    .button-sm {
        margin-top: 10px;
    }

    .product-image-display, .modal-product-image {
        width: 100%; /* Size of image inside modal */
        height: auto;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        max-width: 100%;
        height: 200px; /* Fixed height for consistency */
        object-fit: cover;
    }
    
    .product-image-detail {
        width: 100%; /* Size of image inside modal */
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        max-width: 100%;
        height: 250px;
        object-fit: cover;
    }
}

@media (max-width: 480px) { /* Corresponds to Bootstrap's sm breakpoint for example */
    .container {
        padding: 0 15px;
    }
    /* Hero section adjustments */
    .hero-section .hero-content h1 { font-size: 2.5em; }
    .hero-section .hero-content p { font-size: 1.1em; }
    .hero-sub .hero-content h1 { font-size: 2em; }
    .hero-sub .hero-content p { font-size: 0.95em; }
    .hero-section { min-height: 350px; padding: 60px 10px; }
    .hero-sub { min-height: 250px; padding: 50px 10px; }

    /* General adjustments */
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
    h3 { font-size: 1.4em; }
    .section-padding { padding: 40px 0; }
    .section-description { font-size: 0.95em; margin-bottom: 30px; }

    /* Fixed buttons positioning */
    .whatsapp-float, .brochure-download-float {
        width: 50px;
        height: 50px;
    }
    .whatsapp-float img, .brochure-download-float img {
        width: 28px;
        height: 28px;
    }
    
    .button-sm {
        margin-top: 10px;
    }
    
    .modal-content-spec h3 { font-size: 1.5em; }
    .modal-content-spec h4 { font-size: 1.2em; }
    .modal-body-spec ul { padding: 0 10px; }
}



/* --- Products Page Specifics --- */
.products-hero {
    color: #fff;
    text-align: center;
    padding: 100px 0 60px;
}

.products-hero h1 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 15px;
}
.products-hero .section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Category Cards */
.category-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
    justify-content: center;
}

.category-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px; /* Added padding to bottom */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Indicate it's clickable */
    display: flex; /* Flexbox for content alignment */
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.category-card img {
    width: 100%; /* Image fills card width */
    height: 180px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image covers area, might crop */
    border-bottom: 1px solid #eee;
    margin-bottom: 15px; /* Space between image and title */
}

.category-card h3 {
    font-size: 1.5em;
    color: var(--primary-blue);
    margin: 0; /* Remove default margin for h3 inside card */
    padding: 0 15px; /* Padding for text inside card */
}

/* Products Grid within a Category (Used by js/products-page-filter.js) */
.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid columns */
    gap: 30px; /* Space between product cards */
    padding-top: 40px; /* Adjust as needed */
    justify-content: center; /* Center cards if there aren't enough to fill a row */
}

.product-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline from anchor tag */
    color: inherit; /* Inherit text color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Pushes view details to bottom */
    cursor: pointer; /* Indicate it's clickable for modal */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for product images */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.4em;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.95em;
    color: var(--gray-text);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take up available space */
}

.product-card .view-details-btn {
    display: inline-block;
    background-color: var(--secondary-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.product-card .view-details-btn:hover {
    background-color: #e66a00; /* Darker shade of orange on hover */
}


/* --- Product Detail Page Specifics --- */
.product-detail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* Space between image/text content */
}

.product-header {
    text-align: center;
}
.product-header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
}
.product-header p {
    font-size: 1.1em;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 0;
}

.product-main-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.product-image-display {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-text-content h3 {
    font-size: 1.8em;
    margin-top: 30px; /* Space above each section */
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 5px;
    display: inline-block; /* To make border-bottom only as wide as text */
}

.product-text-content p {
    font-size: 1.1em;
    color: var(--dark-text);
}

.product-info-list {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin-bottom: 30px;
}

.product-info-list li {
    background-color: var(--light-bg);
    padding: 10px 15px;
    border-left: 4px solid var(--secondary-orange);
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 1em;
    color: var(--dark-text);
}

.back-button-container {
    text-align: center;
    margin-top: 40px;
}


/* --- Common Modal Styling (For both Image and Product Spec Modals) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001; /* Ensure close button is above modal content */
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* --- Image Modal Specific Styles (Used by product-detail.html) --- */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
    border-radius: 8px;
}

#caption {
    margin: auto;
    display: blocl;
    width: 100%;
    max-width: 700px;
    text-align: center;
    color: #000;
    padding: 10px 0;
    margin: 15px;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}


/* --- NEW: Product Specification Modal Specific Styles (Used by products.html) --- */
.modal-content-spec {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered horizontally */
    padding: 30px;
    border: 1px solid #888;
    width: 90%; /* Adjust width as needed */
    max-width: 800px; /* Max width for larger screens */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative; /* For positioning close button */
    animation-name: animatetop;
    animation-duration: 0.4s;
    max-height: 90vh; /* Limit height to viewport height */
    overflow-y: auto; /* Enable scrolling if content exceeds height */
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.modal-body-spec {
    text-align: center;
}

.modal-body-spec .modal-product-image {
    width: 100%; /* Size of image inside modal */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 100%;
    height: 350px; /* Fixed height for consistency */
    object-fit: cover;
    
}

.modal-body-spec h3 {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.modal-body-spec p {
    font-size: 1.1em;
    color: var(--dark-text);
    margin-bottom: 25px;
}

.modal-body-spec h4 {
    font-size: 1.4em;
    color: var(--secondary-orange);
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--secondary-orange);
    padding-bottom: 5px;
    display: inline-block;
}

.modal-body-spec ul {
    list-style: disc inside; /* Default bullet points */
    padding: 0 20px; /* Indent for list items */
    margin-bottom: 20px;
    text-align: left; /* Align list items to left within their container */
}

.modal-body-spec ul li {
    font-size: 1em;
    color: var(--gray-text);
    margin-bottom: 5px;
}
