
/* Ensure full height layout */
html, body {
    height: 100%;
    margin: 0;
}

main {
    flex-grow: 1;
}

footer {
    flex-shrink: 0;
}

/* Custom Styles for WorkGlovesShop */

/* General & Layout */
body {
    background-color: #f7f9fc; /* Light background */
    color: #343a40; /* Dark grey text */
}

.navbar-dark .navbar-brand, .navbar-dark .nav-link {
    color: #e0e0e0;
}

    .navbar-dark .nav-link:hover {
        color: #ffffff;
    }

.logo-img {
    height: 150px;
    object-fit: contain;
}


.container {
    max-width: 1200px;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: .5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 1.5rem;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0,0,0,.12);
    }

    .product-card img {
        height: 200px; /* Fixed height for consistent card sizes */
        object-fit: contain; /* Ensure image fits without cropping */
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .product-card .card-body {
        padding: 1.25rem;
    }

    .product-card .card-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: .75rem;
        color: #007bff; /* Primary blue for titles */
    }

    .product-card .card-text.price {
        font-size: 1.5rem;
        font-weight: 700;
        color: #28a745; /* Success green for prices */
        margin-bottom: 1rem;
    }

/* Product Details Page */
.product-detail-img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
}

.product-details .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
}

.product-details .stock-status {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Forms & Buttons */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 .25rem rgba(0, 123, 255, .25);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #004085;
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

    .btn-info:hover {
        background-color: #138496;
        border-color: #117a8b;
    }

/* Shopping Cart */
.table th, .table td {
    vertical-align: middle;
}

.table img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Checkout Page */
.checkout-summary {
    background-color: #f8f9fa;
    border-radius: .5rem;
    padding: 1.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.05);
}

    .checkout-summary h4 {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: .75rem;
        margin-bottom: 1.5rem;
    }

/* Alert Messages */
.alert {
    margin-top: 1rem;
}

/* Live Chat Button */
.live-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Ensure it's above other content */
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    line-height: 1; /* Center icon */
}

    .live-chat-button i { /* For Bootstrap Icons */
        margin: 0;
    }


:root {
    --bs-primary: #007bff; /* Standard Bootstrap Primary */
    --bs-secondary: #6c757d; /* Standard Bootstrap Secondary */
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-dark: #343a40;
    --bs-gray-800: #343a40; /* Darker gray for some backgrounds */
    --bs-gray-900: #212529; /* Even darker for footer */
    --header-top-bg: #2d3e50; /* Custom dark blue for top header */
    --main-nav-bg: #ffffff;
    --footer-bg: #2d3e50;
    --hero-overlay-color: rgba(0, 0, 0, 0.4); /* Dark overlay for carousel text readability */
}

body {
    font-family: 'Open Sans', sans-serif; /* A common clean font, ensure it's available or use system default */
    color: var(--bs-dark);
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background for the body */
}

/* --- General Layout --- */
.section-gap {
    padding: 60px 0; /* Consistent vertical spacing for sections */
}

.heading-underline {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: 700;
}

    .heading-underline::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background-color: var(--bs-primary);
        border-radius: 2px;
    }

/* --- Header --- */
.top-header-bar {
    background-color: var(--header-top-bg);
    font-size: 0.875rem;
}

    .top-header-bar .contact-info a {
        transition: color 0.2s ease-in-out;
    }

        .top-header-bar .contact-info a:hover {
            color: var(--bs-primary) !important;
        }

.request-quote-btn {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

    .request-quote-btn:hover {
        background-color: var(--bs-primary) !important;
        border-color: var(--bs-primary) !important;
        color: var(--bs-white) !important;
    }

.navbar {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
}

.main-navbar {
    border-bottom: 2px solid var(--bs-primary); /* A line underneath primary nav */
    border-radius: 0 0 5px 5px; /* Slightly rounded bottom corners */
}

.navbar-brand img {
    max-height: 80px; /* Adjust logo size */
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.main-navbar .nav-link {
    font-weight: 600;
    color: var(--bs-dark);
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: color 0.3s ease;
}

    .main-navbar .nav-link:hover {
        color: var(--bs-primary);
    }

    .main-navbar .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 80%;
        height: 3px;
        background-color: var(--bs-primary);
        transition: transform 0.3s ease;
    }

    .main-navbar .nav-link.active::after {
        transform: translateX(-50%) scaleX(1);
    }

    .main-navbar .nav-link:hover::after {
        transform: translateX(-50%) scaleX(1);
    }

.main-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    border-radius: .25rem;
    margin-top: 5px; /* Offset from nav link */
}

.main-navbar .dropdown-item {
    font-weight: 500;
    color: var(--bs-dark);
}

    .main-navbar .dropdown-item:hover {
        background-color: var(--bs-primary);
        color: var(--bs-white);
    }

/* --- Hero Carousel --- */
#heroCarousel {
    height: 300px; /* Adjust as needed for desired height */
    overflow: hidden;
}

    #heroCarousel .carousel-inner {
        height: 100%;
    }

    #heroCarousel .carousel-item {
        height: 100%;
    }

.hero-img-cover {
    object-fit: cover;
    object-position: center;
    height: 100%;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay-color); /* Overlay for text readability */
    display: flex !important; /* Override Bootstrap default */
    align-items: center;
    justify-content: center;
    padding-bottom: 0 !important; /* Reset padding to use flex alignment */
}

    .carousel-caption h2 {
        font-size: 3.5rem;
        line-height: 1.2;
    }

    .carousel-caption p {
        font-size: 1.25rem;
    }

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Adds depth to text */
}

.carousel-caption .btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.carousel-caption .btn-outline-light {
    border-color: var(--bs-white);
    color: var(--bs-white);
}

    .carousel-caption .btn-outline-light:hover {
        background-color: var(--bs-light);
        color: var(--bs-primary);
    }

/* --- Content Sections --- */
.category-card, .highlight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,.05);
    display: block; /* Ensure the whole card is clickable */
    color: inherit; /* Inherit text color for links */
}

    .category-card:hover, .highlight-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.15);
    }

    .category-card img {
        height: 120px;
        object-fit: contain;
        margin-bottom: 1rem;
    }

/* Featured Products (reusing existing product-card styles) */
/* The earlier .product-card and its children styles can remain, they are good. */
/* Just ensure they are included from your previous site.css */
/* Example: */
.product-card {
    border: none;
    border-radius: .5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    background-color: #fff;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0,0,0,.12);
    }

    .product-card img {
        height: 200px; /* Fixed height for consistent card sizes */
        object-fit: contain; /* Ensure image fits without cropping */
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .product-card .card-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--bs-dark);
    }

    .product-card .card-text.price {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--bs-success);
    }

.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

    .btn-outline-primary:hover {
        background-color: var(--bs-primary);
        color: var(--bs-white);
    }

.call-to-action-section {
    background-image: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%); /* Gradient background */
    text-align: center;
}

    .call-to-action-section h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .call-to-action-section p {
        font-size: 1.1rem;
        max-width: 800px;
        margin: 0 auto 2rem auto;
    }


/* --- Footer --- */
.footer {
    background-color: var(--footer-bg);
}

    .footer h5 {
        font-size: 1.1rem;
    }

    .footer .text-muted {
        font-size: 0.9rem;
    }

    .footer .list-unstyled li a {
        color: var(--bs-gray-500) !important;
        transition: color 0.2s ease-in-out;
    }

        .footer .list-unstyled li a:hover {
            color: var(--bs-primary) !important;
        }

    .footer .social-links a {
        transition: color 0.2s ease-in-out;
    }

        .footer .social-links a:hover {
            color: var(--bs-primary) !important;
        }

/* --- Live Chat Button (Existing, keep it) --- */
.live-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050; /* Ensure it's above other content */
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    background-color: var(--bs-info);
    border-color: var(--bs-info);
    /* Removed box-shadow, added to layout already */
}

    .live-chat-button:hover {
        background-color: #117a8b;
        border-color: #117a8b;
    }

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) { /* Adjustments for medium/small screens */
    .hero-img-cover {
        object-position: 75% center; /* Adjust for mobile if faces are cut off */
    }

    .carousel-caption h2 {
        font-size: 2.5rem; /* Smaller heading on mobile */
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .call-to-action-section h2 {
        font-size: 2rem;
    }

    .call-to-action-section p {
        font-size: 0.9rem;
    }

    .main-navbar .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .main-navbar .d-flex { /* Search form on mobile */
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) { /* Adjustments for small screens */
    #heroCarousel {
        height: 400px; /* Even shorter hero on very small screens */
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .footer .col-lg-3, .footer .col-md-6 {
        margin-bottom: 2rem;
    }

    .footer {
        text-align: center;
    }

        .footer .list-unstyled li {
            display: inline-block; /* For horizontal list */
            margin: 0 10px;
        }

        .footer .social-links {
            margin-top: 1rem;
        }
}


/* Add to your existing wwwroot/css/site.css */

.manufacturer-grid {
    flex-wrap: wrap; /* Ensure items wrap */
    justify-content: center; /* Center grid items if they don't fill a row */
}

.manufacturer-card {
    display: block; /* Make the whole card clickable area */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: .5rem;
    overflow: hidden;
    color: inherit; /* Ensure link color doesn't override */
}

    .manufacturer-card .card {
        border: 1px solid rgba(0,0,0,.08);
    }

    .manufacturer-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 1rem 2rem rgba(0,0,0,.15);
    }

.manufacturer-logo {
    max-height: 120px; /* Adjust as needed */
    object-fit: contain; /* Ensure logo fits without cropping */
    padding: 1.5rem; /* Padding inside the card for the image */
    margin: 0 auto; /* Center the image */
    display: block; /* Ensure block display for margin auto */
}

.max-width-p {
    max-width: 800px; /* Constrain width for lead paragraph */
    margin: 0 auto 3rem auto; /* Center it */
}

/* Ensure these are present from earlier steps */
.section-gap {
    padding: 60px 0;
}

.heading-underline {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

    .heading-underline::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background-color: var(--bs-primary);
        border-radius: 2px;
    }



/* --- About Page Specific Styles --- */

.about-intro-section {
    padding: 30px 0;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.05);
    background-color: #fff;
    border-radius: .5rem;
    padding: 2rem;
}

    .about-intro-section img {
        /*max-height: 1000px;*/
        object-fit: cover;
        object-position: center;
    }

.about-feature {
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .about-feature:hover {
        transform: translateY(-5px);
    }

    .about-feature i {
        font-size: 4rem; /* Larger icons */
    }

.choose-us-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

    .choose-us-item:hover {
        transform: translateY(-5px);
    }

    .choose-us-item i {
        font-size: 3.5rem; /* Slightly smaller icons than features */
    }



/* --- Contact Page Specific Styles --- */

.contact-form-card {
    background-color: #fff;
    border: none;
}

.contact-details-card {
    background-color: #f8f9fa; /* Lighter background for contact details */
    border: 1px solid #e9ecef;
    border-radius: .5rem;
}

    .contact-details-card hr {
        border-top: 1px dashed #dee2e6; /* Dashed line for subtle separation */
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-details-card .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

.contact-help-card {
    background-color: #e6f7ff; /* A lighter blue tint for the help card */
    border: 1px solid #cceeff;
    border-radius: .5rem;
}

.max-width-p { /* Added this earlier, ensuring it's defined */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Inherited styles like heading-underline and section-gap are already defined */

/* Adjusting Bootstrap defaults for cleaner look */
.form-control::placeholder {
    color: #b0b0b0;
    font-style: italic;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25); /* Tighter focus ring */
}

.equal-height-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

    .equal-height-row > div {
        display: flex;
    }




.promo-carousel .carousel-track {
    transition: transform .5s ease;
}

.content-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.image-container img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-content .tag {
    font-size: .75rem;
    text-transform: uppercase;
    margin-bottom: .5rem;
    color: #888;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2;
}

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

.carousel-dots .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    margin: .25rem;
    cursor: pointer;
}

    .carousel-dots .dot.active {
        background: #007bff;
    }

.news-card img.news-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.news-card {
    background: #fff;
    padding: .75rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

    .news-card:hover {
        background: #f9f9f9;
    }

.heading-underline {
    display: block;
    position: relative;
    margin-bottom: 1.5rem; /* space below the underline */
    font-weight: 600;
    text-align: center;
    margin: 0 auto;
}

    .heading-underline::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -6px;
        width: 120px; /* adjust width of the underline here */
        height: 3px;
        background: linear-gradient(135deg, #0d47a1, #42a5f5);
        border-radius: 2px;
    }

.heading-underline-left {
    position: relative;
    display: block; /* not inline-block */
    padding-bottom: 0.5rem;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}


    .heading-underline-left::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 80px;
        height: 3px;
        background: linear-gradient(135deg, #0d47a1, #42a5f5);
        border-radius: 2px;
    }
