/*!
 * Start Bootstrap - Busines Frontpage (https://startbootstrap.com/template-overviews/business-frontpage)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-business-frontpage/blob/master/LICENSE)
 */
body {
    padding-top: 56px;
}

/* Make layout a column flex container so the footer can stick to the bottom when
   content is short. The wrapper is added in the layout template. */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* The main content area should grow; provide a little inner bottom padding so
   content doesn't visually butt up against the footer on short pages. */
.site-content {
    flex: 1 0 auto;
    padding-bottom: 1.5rem; /* ~24px */
}

/* Ensure footer stays at the bottom of the flex container */

/* (site-footer is defined later where it needs the full rule-set) */

.row-striped {
    padding: 3px 0;
}

.row-striped:nth-of-type(odd) {
    background-color: #efefef;
    border-left: 4px #000 solid;
}

.row-striped:nth-of-type(even) {
    background-color: #fff;
    border-left: 4px #efefef solid;
}

/* visited link */
a:visited {
    color: #212529;
    text-decoration: none;
}

/* mouse over link */
a:hover {
    color: #212529;
    text-decoration: none;
}

/* selected link */
a:active {
    color: #212529;
    text-decoration: none;
}

/* Event name links in admin events list */
.event-link {
    color: #212529;
    text-decoration: none;
}
.event-link:hover,
.event-link:focus {
    color: #212529;
    text-decoration: underline;
}

/* Events sidebar links on the main site */
.sidebar-event-link {
    color: #212529 !important;
    text-decoration: none;
}
.sidebar-event-link:hover,
.sidebar-event-link:focus {
    color: #212529 !important;
    text-decoration: underline;
}

.admin-nav {
    margin-top: -1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.gallery-row div span {
    position: absolute;
    bottom: 0;
}

.shopping-cart {
    background: white;
    width: 260px;
    top: 30px;
    border-radius: 3px;
}

.shopping-cart-items {
    padding-top: 10px;
}

.shopping-cart-items img {
    float: left;
    margin-right: 12px;
    max-width: 100px;
    max-height: 100px;
    padding-bottom: 5px;
}

.shopping-cart-items li {
    list-style-type: none;
}

.shopping-cart-items .item-name {
    display: block;
    font-size: 16px;
}

.shopping-cart-items .item-detail {
    display: block;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.shopping-cart-items .item-price {
    color: #899da0;
    margin-right: 8px;
    text-align: right;
}

.shopping-cart-items .item-remove {
    display: block;
}

.shopping-cart-total {
    float: right;
    color: #343a40;
    padding-right: 8px;
    text-align: right;
    font-size: large;
    font-weight: bold;
}

.btn-eriena {
    color: #000;
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* Ensure footer background spans the full viewport width even when inside a centered container */
.site-footer {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    box-sizing: border-box;
    margin-top: auto; /* Keep footer at bottom via flex layout */
}

/* Slightly reduce footer vertical spacing on small screens */
@media (width <= 576px) {
    .site-footer {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* Testimonials: make testimonial cards equal height */
.testimonials-row .col-md-6.d-flex {
    display: flex !important; /* ensure column is a flex container */
}

.testimonials-row .card.h-90 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* allow cards to grow to fill column */
    width: 100%;
}

.testimonials-row .card.h-90 .card-body {
    flex: 1 1 auto; /* body fills remaining space ensuring equal heights */
}

.testimonials-row .card.h-90 .row.justify-content-center {
    /* keep the image at the top */
    flex: 0 0 auto;
}

/* Gallery thumbnails: make all images in a gallery row uniform size while preserving aspect via object-fit */
.gallery-row .card-img {
    width: 100%;
    height: 220px; /* fixed thumbnail height to make rows align */
    object-fit: cover; /* crop to fill while preserving aspect ratio */
    display: block;
}

/* Slightly smaller thumbnails on small screens */
@media (max-width: 576px) {
    .gallery-row .card-img {
        height: 140px;
    }
}

/* Highlight active filter links in the sidebar */
.active-filter {
    display: inline-block;
    background-color: #e9f7ff; /* pale blue background */
    color: #0d6efd !important; /* bootstrap primary blue */
    border-left: 4px solid #0d6efd;
    padding: 2px 6px;
    border-radius: 2px;
}

.active-filter:hover {
    background-color: #d6eeff;
    text-decoration: none;
}

/* Scrollable pagination controls for mobile */
.pagination-block {
    margin-bottom: 0.75rem;
}

.pagination-label {
    font-weight: 600;
}

.pagination-scroll-container {
    overflow-x: hidden;
}

.pagination-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(2.5rem, 1fr);
    gap: 0.25rem;
    padding: 0.25rem 0;
    list-style: none;
    width: 100%;
}

.pagination-scroll .page-item {
    display: flex;
    min-width: 0;
}

.pagination-scroll .page-link {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.9rem;
    text-align: center;
}

.pagination-scroll .pagination-arrow .page-link {
    min-width: 3.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pagination-scroll .page-item.disabled .page-link {
    color: #adb5bd;
}

.pagination-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.pagination-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

@media (min-width: 768px) {
    .pagination-scroll-container {
        overflow-x: visible;
    }

    .pagination-scroll {
        display: flex;
        width: 100%;
        grid-auto-flow: initial;
        grid-auto-columns: initial;
        gap: 0.35rem;
    }

    .pagination-scroll .page-item {
        min-width: 0;
        flex: 1 1 0;
    }

    .pagination-scroll .page-link {
        width: 100%;
    }
}
