@charset "UTF-8";

body {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400; 
    color: #212529;
}

/* Global fix for mobile horizontal movement */
    html, body {
      max-width: 100%;
      overflow-x: hidden;
    }
    /* Forces all card elements to have no background color */
    .card, .card-img-top {
      background-color: transparent !important;
    }

/* --- Navigation Structure --- */
.navbar .container-fluid {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    padding-bottom: 13px !important;
    position: relative;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.card-img-top {
    max-width: 100%;
    height: auto; /* This helps maintain aspect ratio on mobile */
}

/* --- Desktop Layout (The Final Fix) --- */
@media (min-width: 768px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        /* This pushes the items apart to fill the whole width */
        justify-content: space-between !important; 
        /* This forces the 'Standing on the Floor' look */
        align-items: flex-end !important; 
        margin: 0 !important;
        padding-bottom: 2px !important; 
    }

    /* Ensure the list items don't have weird heights */
    .nav-item {
        display: flex !important;
        align-items: flex-end !important;
    }

    /* Nudge the text links specifically to hit the CLOTH baseline */
    .navbar-nav .nav-link {
        padding-bottom: 5px !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Nudge the logo image so it doesn't float too high */
    .navbar-nav .navbar-brand img {
        display: block;
        margin-bottom: -5px !important; 
    }

    .navbar-toggler {
        display: none !important;
    }
}
/* --- Mobile Layout (Right-Aligned Overlay) --- */
@media (max-width: 767.98px) {
    .navbar-brand.d-md-none {
        flex: 0 0 auto !important;
    }
    
    .navbar-toggler {
        border: none !important;
        padding-right: 0 !important;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0; 
        width: 180px; 
        background-color: rgba(255, 255, 255, 0.75); 
        z-index: 1000;
        padding: 10px 0;
        border-bottom-left-radius: 4px;
    }

    .navbar-nav {
        flex-direction: column !important;
        text-align: right !important; 
        padding-right: 20px !important;
    }

    .nav-link {
        padding: 10px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Shared Link Styling --- */
.navbar-nav .nav-link {
    color: #353a2d !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
}

.navbar-nav .nav-link:hover {
    color: #8b8b8b !important;
}

/* --- Nav Section Colours --- */
.nav-item:nth-child(2) .nav-link { color: #687b55 !important; } /* Sketch */
.nav-item:nth-child(3) .nav-link { color: #cd8131 !important; } /* Paint */
.nav-item:nth-child(4) .nav-link { color: #616d66 !important; } /* Binary */
.nav-item:nth-child(5) .nav-link { color: #cb9e46 !important; } /* Type */

/* --- Nav Section Underline Blocks --- */
.nav-item .nav-link.active::after {
    content: '';
    display: block;
    height: 3px;
    margin-top: 4px;
    width: 100%;
}

.nav-item:nth-child(2) .nav-link.active::after { background-color: #687b55; } /* Sketch */
.nav-item:nth-child(3) .nav-link.active::after { background-color: #cd8131; } /* Paint */
.nav-item:nth-child(4) .nav-link.active::after { background-color: #616d66; } /* Binary */
.nav-item:nth-child(5) .nav-link.active::after { background-color: #cb9e46; } /* Type */
.nav-item:nth-child(6) .nav-link.active::after { background-color: #212529; } /* Basket */


/* --- Carousel Arrows Tint --- */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    /* This filter converts the default white to roughly #505638 */
    filter: invert(32%) sepia(9%) saturate(1210%) hue-rotate(34deg) brightness(96%) contrast(85%);
}

/* --- Carousel Tabs (Indicators) --- */
/* The inactive tabs */
.carousel-indicators [button] {
    background-color: #505638 !important;
    opacity: 0.3; /* Keeping them subtle when not active */
    height: 2px !important; /* Art Director touch: thin and minimal */
    border-top: 10px solid transparent; /* Expands the clickable area without making the line thicker */
    border-bottom: 10px solid transparent;
}

/* The active tab */
.carousel-indicators .active {
    background-color: #955717 !important;
    opacity: 1 !important;
}
.color {
}

/* --- Product Carousel Thumbnails --- */
.product-carousel .carousel-indicators [data-bs-target].active {
    background-color: #FFFFFF !important;
}

