﻿/*root {
    --teal: #007b7a !important;
    --orange: #f7941d;
    --gray: #d9d9d9;
    --text: #333;
}
*/
/** {
    text-transform: lowercase;
}

*::first-letter{
    text-transform:uppercase;
}
*/
.header {
    background: black;
    height: auto;
    min-height: 120px;
    object-fit: cover;
}
/*    background: #e05724;
*/


/*.nav-categories-wrapper {
    margin-top: 30px;
}
*/

.header-img {
    max-width: 100%;
    max-height: 90px;
}

.header-nav {
    align-items: center;
}

    .header-nav .mud-grid-item {
        justify-content: center;
        align-items: center;
        display: inline-flex;
        color: #fff;
    }

    .header-nav .menu-items {
        justify-content: flex-start;
        white-space: nowrap;
    }

        .header-nav .menu-items div {
            width: unset;
        }

.breadcrumb-caret {
    color: #000000;
    margin: auto 10px;
    width: auto;
    display: inline;
}

.breadcrumb-item {
    color: #b9302b;
    margin: auto 10px;
    display: inline;
    width: auto;
}

.breadcrumb-item-active {
    color: #b9302b;
    margin: auto 10px;
    font-weight: bold;
}


.DivGroup, .DivGroupItem {
    width: 100%;
    height: 250px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}

.DivGroup_NI, .DivGroupItem_NI {
    width: 100%;
    height: 90px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}

.DivGroupNoImage {
    width: 100%;
    height: 180px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}

.ListingImgWrapper {
    height: calc(100% - 120px);
    position: relative;
}

.ListingImg {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

.ListingDescription, .ListingDescriptionWL {
    align-self: center;
    align-content: center;
    color: #2E2E2E;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    background: #eee;
    width: 100%;
    text-align: center;
    padding: 10px;
    height: 90px;
    overflow: hidden;
    /*mask-image: linear-gradient(to bottom, black 60%, transparent);*/ /* Create the fade effect */
    /*-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);*/ /* Add -webkit- prefix */
}

    .ListingDescriptionWL{
    height:120px;
    }

    .listing-item {
        border: 1px solid #ccc;
        border-radius: 3px;
    }

    .listing-item:hover {
        box-shadow: 0 0 5px #999;
    }


.about-wrapper {
    padding: 25px;
}

    .about-wrapper .mud-grid-item {
        align-content: center;
        text-align: center;
    }

        .about-wrapper .mud-grid-item li {
            text-align: left;
        }

    .about-wrapper img {
        max-width: 100%;
    }

.panel-beater-logo-wrapper img {
    max-width: 100%;
}

.panel-beating-wrapper .mud-paper {
    margin-bottom: 15px;
}

.panel-beating-wrapper .mud-typography-h5 {
    height: 65px;
    text-align: center;
    align-content: center;
}

.panel-beating-wrapper .mud-typography-body2 {
    height: 80px;
    text-align: justify;
}

h2 {
    text-align: center;
}

.stock-widget-available,
.stock-widget-not-available {
    color: #8fc652;
    background-color: #e8f3dc;
    height: 36px;
    border-radius: 18px;
    width: 150px;
    position: relative;
    line-height: 36px;
    padding-left: 36px;
    font-weight: 800;
}

.stock-widget-not-available {
    color: #d34545;
    background-color: #ffdec0;
}

.thumb-container {
    display: flex;
    margin-top: 10px;
    justify-content: center;
    overflow-x: auto;
}

.thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: 0.2s;
}

    .thumb:hover {
        opacity: 1;
    }

    .thumb.active {
        opacity: 1;
        border-color: #3f51b5; /* MudBlazor primary color */
    }


.footer {
    min-height: 150px;
    align-content: center;
    text-align: center;
    background: #000;
    color: #fff;
    margin-top: 50px;
}

.search-result {
    position: absolute;
    top: 65px;
    background: #eee;
    color: #333;
    z-index: 999999;
    min-width: 553px;
    max-width: 100%;
    overflow-x: hidden;
    box-shadow: 0 0 15px #666;
}

.search-item {
    border-bottom: 1px solid #ddd;
    padding: 5px;
    cursor: pointer;
}

    .search-item:hover {
        background: #fff;
        color: #E02B20;
    }

.loading-icon {
    width: 24px;
    height: 24px;
    position: relative;
    float: right;
    color: #E02B20;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}


/*****MENU******/
/* This container becomes the anchor for absolute positioning */
.menu-wrapper {
    position: relative; /* IMPORTANT */
    display: inline-block; /* Keeps menu aligned with button */
    z-index: 2000;
}

/* The button stays exactly where it is */
.root-button {
    padding: 10px 16px;
    background: #b9302b;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

/* Vertical menu now pops out directly under the button */
.vertical-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 200px;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute; /* floats above page */
    top: 100%; /* exactly below the button */
    left: 0; /* aligned with left side of button */

    z-index: 3000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.menu-group {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

    .menu-group:hover {
        color: #fff;
        background-color: #b97575;
    }


/* Horizontal submenu */
.horizontal-menu {
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: none;
    gap: 8px;
    grid-template-columns: repeat(4, 1fr); /* 3 columns */
    height: 250px; /* fixed height */
    left: 198px;
    list-style: none;
    margin: 0;
    min-width: 450px; /* enough for 3 columns at ~150px each */
    min-width: 200px;
    max-width: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    padding: 5px 0;
    position: absolute;
    top: -1px;
    z-index: 4000;
}

    .horizontal-menu a {
        color: #222;
        white-space: nowrap;
    }

        .horizontal-menu a:hover {
            color: #b9302b;
            white-space: nowrap;
        }


.sub-group-title {
    font-weight: 500;
}

.sub-group-item-title {
    font-weight: 400;
}

.sentence-case {
    font-size: .875rem;
    line-height: 1.25rem;
    text-transform: lowercase;
}

    .sentence-case::first-letter {
        text-transform: uppercase;
    }

.sub-group-wrapper {
    margin: 15px;
    color: #222;
}


/* show flyout on hover */
.menu-group:hover + .horizontal-menu, .menu-group:hover > .horizontal-menu,
.menu-group:focus-within:not(:hover) + .horizontal-menu, .menu-group:focus-within:not(:hover) > .horizontal-menu {
    display: grid;
}


.vertical-menu .horizontal-menu:hover {
    display: grid;
}

.menu-caret {
    margin-left: 10px;
    transform: rotate(45deg)
}

.menu-caret-active {
    margin-left: 10px;
    transform: rotate(225deg)
}
/*****MENU END******/


.main-filter-wrapper hr {
    color: #aaa;
}

.main-filter-wrapper, .main-filter-wrapper div {
    font-size: 14px;
    padding: 0px !important;
}

.btnFilterMoreLess {
    color: #b9302b;
    font-weight: 500;
    margin-left: 10px;
    font-size: 0.75rem;
}

.mud-expand-panel .mud-expand-panel-header {
    min-height: 24px;
}

.main-filter-wrapper .mud-icon-button {
    padding: 5px;
}













.orange {
    background: #E02B20;
    color: #000;
}

.orange-text {
    color: #E02B20;
}

.charcoal {
    background: #222;
    color: #fff;
}

.timeline-container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.timeline-title {
    font-size: 28px;
    font-weight: 700;
}

.timeline-subtitle {
    color: #777;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
}

    /* Center line */
    .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 6px;
        background: repeating-linear-gradient( to bottom, #ccc, #ccc 6px, transparent 6px, transparent 12px );
        transform: translateX(-50%);
    }

/* Item */
.timeline-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
}

    .timeline-item.right {
        flex-direction: row-reverse;
    }

.content {
    width: 45%;
    align-items: center;
    gap: 20px;
}

    .content.right {
        justify-content: flex-end;
        text-align: right;
    }

.year {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

    .year.charcoal {
        background: #222;
        border: 2px solid #222;
    }

    .year.orange {
        background: #E02B20;
        border: 2px solid #E02B20;
    }

.text {
    padding: 15px;
    margin: 5px;
}

    .text h4 {
        margin: 0;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .text.charcoal h4 {
        color: #222;
    }

    /*.text.orange h4 {
    color: #fff;
}
*/
    .text p {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.4;
    }

/* Connector & dot */
.connector {
    position: absolute;
    left: 50%;
    width: 40px;
    height: 2px;
    transform: translateX(-50%);
    top: 50%;
}

    .connector.left {
        margin-left: -20px;
    }

    .connector.right {
        margin-left: 20px;
    }


.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

    .dot.charcoal {
        border-color: #222;
    }

    .dot.orange {
        border-color: #E02B20;
    }

/* Footer */
.footer-note {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* =========================
   📱 MOBILE RESPONSIVE
   ========================= */
@media (max-width: 768px) {

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.right {
        flex-direction: column;
        margin-left: 40px;
    }

    .content,
    .content.right {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .year {
        width: 70px;
        height: 70px;
        font-size: 18px;
    }

    .connector {
        display: none;
    }

    .dot {
        left: 20px;
    }
}
/* =========================
   📱 MOBILE RESPONSIVE END
   ========================= */


/*YOUTUBE EMBED*/
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 15px;
}

    .embed-container iframe, .embed-container object, .embed-container embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
/*YOUTUBE EMBED END*/

img,
iframe {
    max-width: 100%;
}

.header {
    height: auto;
    min-height: 120px;
}

.header-nav {
    align-items: center;
}

.search-field {
    width: 100%;
    max-width: 583px;
    min-height: 56px;
    padding: 16px;
    background: #F5F5F5;
    border-radius: 8px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: flex;
    position: relative;
}

    .search-field .mud-input-control {
        width: 100%;
    }

.search-result {
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    min-width: 0;
    width: 100%;
}

.cart-table-container {
    overflow-x: auto;
}

.cart-table {
    min-width: 420px;
}

.contact-wrapper iframe {
    width: 100%;
    max-width: 400px;
}

.contact-info-block {
    display: inline-block;
    margin: auto;
    text-align: left;
}

.map-embed-wrapper {
    width: 100%;
}

    .map-embed-wrapper iframe {
        width: 100%;
        height: 300px;
        max-width: 100%;
    }

.batchitem-row {
    padding: 10px;
}

@media (max-width: 1200px) {
    .header-nav .menu-items {
        white-space: normal;
        gap: 8px;
    }
}

@media (max-width: 960px) {
    .header {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-nav .mud-grid-item {
        display: flex;
        justify-content: center;
    }

    .header-nav .menu-items {
        justify-content: center;
    }

    .root-button {
        font-size: 13px;
    }

    .horizontal-menu {
        left: 0;
        top: 100%;
        min-width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .DivGroup, .DivGroupItem {
        height: 200px;
    }

    .DivGroup_NI, .DivGroupItem_NI {
        height: 90px;
    }
}

@media (max-width: 768px) {
    .header-img {
        max-height: 70px;
    }

    .search-field {
        padding: 12px;
    }

    .menu-wrapper,
    .vertical-menu,
    .root-button {
        width: 100%;
    }

    .vertical-menu {
        position: static;
    }

    .menu-group {
        border-bottom: 0;
        padding: 10px 12px 6px 12px;
    }

    .horizontal-menu {
        position: static;
        display: grid;
        height: auto !important;
        max-height: none;
        border: 0;
        border-top: 1px solid #eee;
        box-shadow: none;
        padding: 8px 0;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sub-group-wrapper {
        margin: 8px 12px;
    }

    .batchitem-row div {
        font-size: 13px;
    }

    .contact-wrapper div[style*="width:max-content"] {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .header-nav .menu-items {
        display: flex;
        flex-wrap: wrap;
        justify-content: center !important;
    }

        .header-nav .menu-items .mud-nav-link {
            padding: 4px 8px;
            font-size: 12px;
        }

    .DivGroup, .DivGroupItem {
        height: 185px;
    }

    .DivGroup_NI, .DivGroupItem_NI {
        height: 90px;
    }

    .ListingDescription {
        font-size: 13px;
        padding: 8px;
    }
}

/* =========================
   Utility display helpers
   ========================= */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.align-center {
    align-items: center !important;
}

@media (min-width: 960px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-flex {
        display: flex !important;
    }
}

@media (max-width: 959px) {
    .d-none.d-md-flex {
        display: none !important;
    }
}

/* Product carousel responsive height */
.product-carousel {
    height: 400px;
}

@media (max-width: 960px) {
    .product-page .mud-carousel,
    .product-carousel {
        height: 320px !important;
    }

    .product-summary {
        margin-top: 12px;
    }

    .product-info-block {
        padding-left: 0;
        padding-right: 0;
    }

    .product-tabs .mud-tabs-panels {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .product-page {
        margin-top: 16px !important;
    }

        .product-page .mud-carousel,
        .product-carousel {
            height: 260px !important;
        }

    .product-batch-section {
        overflow-x: auto;
    }

    /*    .batchitem-row {
        min-width: 650px;
    }
*/
    .product-tabs .mud-tab {
        min-height: 36px;
        font-size: 12px;
        padding: 6px 8px;
    }
}

/* Filter sidebar — collapsible on mobile */
@media (max-width: 959px) {
    .filter-sidebar {
        order: 2;
    }
}

/* Zoom Gallery Dialog — must be global because MudDialog renders in a body portal */
.zoom-images-action-class {
    background-color: #000 !important;
    color: #fff !important;
}

.zoom-gallery-wrapper,
.zoom-images-action-class {
    background-color: rgba(33,33,33,0.8);
}

    .zoom-images-action-class mud-button-root mud-icon-button mud-inherit-text hover:mud-inherit-hover mud-ripple mud-ripple-icon align-self-center {
        color: #fff !important;
        width: 56px !important;
        height: 56px !important;
    }

    .zoom-gallery-wrapper mud-button-root mud-icon-button mud-inherit-text hover:mud-inherit-hover mud-ripple mud-ripple-icon align-self-center {
        color: #fff !important;
        width: 56px !important;
        height: 56px !important;
        font-size: 2.5rem !important;
    }

.product-main-image {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}


.main-wrapper, .nav-categories-wrapper {
    min-height: 650px;
    padding: 25px;
}




/* Overlay */
.loading-overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 99999999;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    color: white;
    font-size: 18px;
    font-family: Arial, sans-serif;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}





.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f1f1;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-chip:hover {
    background: #dddddd;
}

.chip-close {
    font-size: 12px;
}