@font-face {
    font-family: boogaloo;
    src: url('../font/Boogaloo-Regular.ttf');
}

.header {
    /*background-color: #f2f2f2;*/
    background-color: rgba(209, 159, 114, 1);
    /*border: 1px solid black;*/
    padding: 8px;
    text-align: center;
}

.cell {
    background-color: #FFFFFF;
    /*border: 1px solid black;*/
    padding: 8px;
    text-align: center;
}

.header-dark-left {
    border: 2px solid black;
    border-right: none
}

.header-dark-center {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    /*border-right: 1px solid lightgray;*/
}

.header-dark-right {
    border: 2px solid black;
    border-left: none;
}

.cell-dark-left {
    border: 1px solid black;
    border-left: 1px solid lightgray;
}

.cell-dark-center {
    border: 1px solid black;
}

.cell-dark-right {
    border: 1px solid black;
    border-right: 1px solid lightgray;
}

.cell-dark-left-top {
    border: 1px solid black;
    border-left: 1px solid lightgray;
    border-top: none;
}

.cell-dark-center-top {
    border: 1px solid black;
    border-top: none;
}

.cell-dark-right-top {
    border: 1px solid black;
    border-right: 1px solid lightgray;
    border-top: none;
}

.cell-dark-left-bottom {
    border: 1px solid black;
    border-left: 1px solid lightgray;
    border-bottom: none;
}

.cell-dark-center-bottom {
    border: 1px solid black;
    border-bottom: none;
}

.cell-dark-right-bottom {
    border: 1px solid black;
    border-right: 1px solid lightgray;
    border-bottom: none;
}

.cell-dark-noside {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    /*border-right: 1px solid lightgray;*/
}

.cell-light {
    border-bottom: none;
    border-left: none;
    border-right: none;
    background-color: transparent;
}

/* ===== Moved from Home.html <style> ===== */
/* Lightweight page-specific utilities (kept minimal) */
body {
    margin: 0;
    font-family: boogaloo, system-ui, -apple-system;
    line-height: 1.5;
    color: #222;
    background-color: rgba(37, 37, 34, 1);
}

a {
    color: #0b5cab;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/*.container {*/
/*    max-width: 1100px;*/
/*    margin: 0 auto;*/
/*    padding: 16px;*/
/*}*/

.hero {
    min-height: 150px;
    background-image: linear-gradient(rgba(177, 98, 16, 0.2), rgba(177, 98, 16, 0.2)), url('../../Home/simple-header-blended.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    color: white;
    font-size: xx-large;
}

.hero h1 {
    margin: 0;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .hero {
        min-height: 220px;
    }
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid rgba(209, 159, 114, 1);
    color: rgba(209, 159, 114, 1);
}

.btn.primary {
    background: rgba(209, 159, 114, 1);
    color: #111;
    border-color: rgba(209, 159, 114, 1);
}

/*!* Bridge to existing grid classes in styles.css *!*/
.rdf_table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: max-content;
    margin: 0 auto;
    border: 1px solid black;
}

/* ===== Products table overrides ===== */
/* Make all borders of the products table solid black */
#rdf-products.table,
#rdf-products.table-bordered,
#rdf-products thead th,
#rdf-products thead td,
#rdf-products tbody th,
#rdf-products tbody td {
    border-color: #000 !important;
}

/* Ensure visible 1px black borders on all cells and the table frame */
#rdf-products.table-bordered,
#rdf-products.table-bordered th,
#rdf-products.table-bordered td {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #000 !important;
}

.card {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 16px;
    text-align: left;
}

.lead {
    font-size: 30px;
    min-font-size: 24px;
    margin: 16px 0 24px;
    color: white;
}

/* Simple responsive gallery, matching New_Home approach */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.gallery figure {
    margin: 0;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.gallery img {
    width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: none;
    box-shadow: none;
}

/* Ensure the two smaller images are never wider than the top image */
.gallery .group figure:not(:first-child) img {
    width: 70%;
}

.gallery figcaption {
    display: none;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font-size: 0;
}

.home-link {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
}

.home-link img {
    height: 24px;
    width: auto;
    border-radius: 4px;
}

.gallery {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    -webkit-column-width: 33%;
    -moz-column-width: 33%;
    column-width: 33%;
}

.gallery .pics {
    -webkit-transition: all 350ms ease;
    transition: all 350ms ease;
}

.gallery .animation {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

@media (max-width: 450px) {
    .gallery {
        -webkit-column-count: 1;
        -moz-column-count: 1;
        column-count: 1;
        -webkit-column-width: 100%;
        -moz-column-width: 100%;
        column-width: 100%;
    }
}

@media (max-width: 400px) {
    .btn.filter {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
}

.rdf-footer {
    background-color: rgba(209, 159, 114, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ensure visual separation from #rdf-main content above */
    margin-top: 25px; /* general spacing when page is tall */
    padding-top: 16px; /* guaranteed gap so it never "touches" #rdf-main */
    border-top: 5px solid rgba(37, 37, 34, 1); /* prevent margin-collapsing and add subtle divider */

}

.footer-link {
    color: black;
    text-decoration-line: underline;
    font-size: large;
}

.rdf-font {
    font-size: x-large;
    min-font-size: 18px;
}

.rdf-carousel-item img {
    height: 300px; /* Adjust this value to your preferred height */
    object-fit: contain; /* This crops the image to fill the space without distortion */
}