﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Typography & Text */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.text-maroon {
    color: maroon;
}

.font-bold {
    font-weight: bold;
}

.no-text-decoration a {
    text-decoration: none !important;
    color: inherit; /* Keeps link color same as text */
}


.form-section-title {
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.btn-check:checked + .btn-outline-secondary {
    border-color: #343a40 !important; /* Bootstrap dark */
    color: #343a40;
    font-weight: 600;
}

.btn-outline-secondary {
    border-color: #ced4da; /* Default light gray */
    color: #6c757d;
    font-weight: 400;
}


.col-3 label {
    font-weight: 600;
}

/* Layout & Spacing */
.p-3 {
    padding: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pl-1 {
    padding-left: 0.25rem !important;
}

.pl-3 {
    padding-left: 1rem !important;
}

.mb-3.col-6 {
    margin-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
}

.row.my-1 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.ml-0 {
    margin-left: 0 !important;
}

/* Width Utilities */
.btn-fixed-width {
    width: 150px;
}

.table-full-width {
    width: 100%;
}

.w-50-percent {
    width: 50%;
}

.w-35-percent {
    width: 35%;
}

.w-30-percent {
    width: 30%;
}

.w-25-percent {
    width: 25% !important;
}

.w-20-percent {
    width: 20% !important;
}

.w-15-percent {
    width: 15% !important;
}

.w-10-percent {
    width: 10% !important;
}

.card-footer .btn {
    width: 100%;
}

label {
    font-weight: bold; /* or use 'bold' */
}

.table-layout-auto {
    table-layout: auto !important;
}

.truncate-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Borders & Shadows */
.border-blue-rounded {
    border: 1px solid #008cba;
    border-radius: 5px;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

/* Buttons & Badges */
.btn-height {
    height: 50px;
}

.badge-height {
    height: 30px;
    line-height: 30px; /* vertically center text */
    font-size: 1rem;
    padding: 0 10px;
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Images */
.product-image {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #bbb9b9;
}

.cart-img-container {
    padding-top: 0.5rem;
    text-align: center;
}

.cart-img {
    width: 100%;
    border-radius: 0.25rem;
}

.logo-image {
    width: 150px;
}

.order-success-img {
    width: 65%;
}

.thumbnail-header-spacer {
    padding-bottom: 0.5rem;
    flex-shrink: 0;
    min-height: 76px;
}

.thumbnail-column-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.thumbnails-container img {
    flex: 0 0 calc(50% - 4px);
    width: 300px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 0.25rem;
}

.thumbnails-scroll {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 4px;
}

#mainImagePreview {
    max-height: 200px;
    display: none;
}

.product-list-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* List & Nav */
.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.me-7 {
    margin-right: 8.5rem;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* HTML & Body */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}



@media (max-width: 767.98px) {
    .thumbnail-column-container {
        display: block;
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
    }

    .thumbnails-scroll {
        flex-direction: row;
        display: flex;
        gap: 0.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        margin-top: 0.25rem;
    }


    .thumbnails-scroll img {
        width: auto;
        max-width: 150px;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }

    .thumbnail-header-spacer {
        padding: 0.5rem;
        border-radius: 0.25rem;
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }

    .thumbnail-header-spacer h5,
    .thumbnail-header-spacer h6 {
        margin-bottom: 0.25rem;
    }

    .hide-on-mobile {
        display: none !important;
    }
}


body {
    margin-bottom: 60px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* Card & Container */
.card-body > .container {
    padding: 1rem;
}
