/* Global styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: #b10c3b;
}
.established-badge {
    display: inline-block;
    font-size: 0.65em;
    font-weight: 400;
    color: #fff;
    background-color: #b10d3b;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-left: 0.75rem;
    vertical-align: middle;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
@media (max-width: 767px) {
    .established-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 0.7em;
        padding: 0.2rem 0.6rem;
    }
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Navigation bar */
nav.site-nav {
    background-color: #b10d3b;
    color: #fff;
    padding: 1rem 0;
}
nav.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}
nav.site-nav .brand-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
nav.site-nav .brand {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}
nav.site-nav .established-year {
    font-size: 0.75rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
nav.site-nav .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}
nav.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
nav.site-nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    display: block;
    white-space: nowrap;
}
nav.site-nav ul li a:hover,
nav.site-nav ul li a.active {
    color: #ffc107;
}
/* Mobile navigation */
@media (max-width: 767px) {
    nav.site-nav .mobile-menu-toggle {
        display: block;
    }
    nav.site-nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    nav.site-nav ul.mobile-open {
        display: flex;
    }
    nav.site-nav ul li {
        width: 100%;
    }
    nav.site-nav ul li a {
        padding: 0.75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    nav.site-nav ul li:last-child a {
        border-bottom: none;
    }
}
@media (min-width: 768px) {
    nav.site-nav .brand {
        font-size: 2.5rem;
    }
    nav.site-nav .established-year {
        font-size: 0.85rem;
    }
    nav.site-nav ul li a {
        font-size: 1.1em;
        padding: 0px 20px;
    }
}

/* Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.container.text-center {
    text-align: center;
}
@media (max-width: 767px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }
}
/* Hero section */
.hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}
.hero .hero-text {
    flex: 1;
}
.hero .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.hero .hero-text p {
    font-size: 1rem;
    max-width: 600px;
}
/*
 * By default a hero's image takes up one portion of the horizontal space.
 * We no longer force a fixed height or positioning on every page, since
 * only the home page uses a slider. Instead we keep the flex property
 * here and leave the height responsive. The positioning and height
 * specific to the slider are applied on the home page via the
 * `.home-hero` class below.
 */
.hero .hero-image {
    flex: 1;
}

/*
 * When the hero container also has the `home-hero` class (used on
 * index.html), treat the image area differently. Give it a fixed
 * height and relative positioning so the slider can absolutely
 * position its slides inside.
 */
.home-hero .hero-image {
    position: relative;
    height: 350px;
}
/* Remove image-specific styling from .hero-image img as we now use a slider */

/* Style the slider container within hero-image */
/*
 * The slider container is only styled on the home page. This rule
 * ensures that the rounded corners and shadow are applied to the
 * sliding image set without affecting other pages that do not have
 * a slider.
 */
.home-hero .hero-image .slider {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

/* Default hero image styling for pages without the slider */
/* Default hero image styling for pages without the slider */
.hero .hero-image > img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
@media (max-width: 767px) {
    .hero .hero-text h1 {
        font-size: 1.75rem;
    }
    .hero .hero-text p {
        font-size: 0.95rem;
    }
    .hero {
        align-items: stretch;
    }
    .hero .hero-image {
        width: 100%;
    }
    .home-hero {
        flex-direction: column-reverse;
    }
    .home-hero .hero-image {
        height: 250px;
    }
}
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        align-items: center;
    }
    .hero .hero-text h1 {
        font-size: 2.5rem;
        color: #b10c3b;
    }
    .hero .hero-text p {
        font-size: 1rem;
    }

    /* Allocate more space to the text and less to the image on larger screens.
       This mimics a col-8/col-4 layout where the content occupies roughly
       two‑thirds of the available width and the image one‑third. */
    .hero .hero-text {
        flex: 2;
    }
    .hero .hero-image {
        flex: 1;
    }
}

/* Section spacing */
section {
    padding: 3rem 0;
}
@media (max-width: 767px) {
    section {
        padding: 2rem 0;
    }
}

/* Category and product cards */
.cards-grid {
    display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    gap: 1.5rem;
}
@media (max-width: 767px) {
    .cards-grid {
           grid-template-columns: 1fr;

        gap: 1rem;
    }
    .card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}
}
.product-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
@media (max-width: 767px) {
    .product-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
@media (max-width: 767px) {
    .filter-chips {
        gap: 0.5rem;
        width: 100%;
    }
}
.filter-chip {
    border: 1px solid #b10c3b;
    background-color: #fff;
    color: #b10c3b;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-size: 0.9rem;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .filter-chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}
.filter-chip:hover {
    background-color: #b10c3b;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.filter-chip.active {
    background-color: #b10c3b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.filter-hint {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}
.product-sections .category-block {
    margin-bottom: 2.5rem;
}
.product-sections .category-block.hidden {
    display: none;
}
.category-header {
    margin-bottom: 1rem;
}
.category-header p {
    margin: 0.35rem 0 0 0;
    color: #555;
}
.loading-placeholder {
    color: #555;
}
.card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.card .card-body {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
}
.card .card-body h5 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}
.card .card-body p {
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background-color: #000;
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
    color: #fff;
}
.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline-light:hover {
    background-color: #fff;
    color: #007bff;
}
.btn-outline-primary {
    border: 2px solid #b10c3b;
    color: #b10c3b;
}
.btn-outline-primary:hover {
    background-color: #333;
    color: #fff;
}
@media (max-width: 767px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}
}

/* Call to action section */
.cta {
    background-color: #b10c3b;
    color: #fff;
    text-align: center;
    padding: 3rem 0;
}
.cta h2 {
    margin-bottom: 1rem;
    color: #fff;
}
@media (max-width: 767px) {
    .cta {
        padding: 2rem 0;
    }
    .cta h2 {
        font-size: 1.5rem;
    }
    .cta p {
        font-size: 0.95rem;
    }
}

/* Footer */
footer {
    background-color: #343a40;
    color: #ccc;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

/*
 * Remove the default width constraint on containers inside the footer so
 * that the address can span the full width of the footer without
 * leaving empty margins on either side. We still apply a small
 * horizontal padding to keep the text from touching the very edges.
 */
footer .container {
    width: 100%;
    max-width: none;
    padding: 0 5%;
    margin: 0 auto;
}

/* Form styles */
form input[type="text"], form input[type="email"], form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}
form input[type="text"]:focus, form input[type="email"]:focus, form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
form button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}
form button[type="submit"]:hover {
    background-color: #0056b3;
}
@media (min-width: 768px) {
    form button[type="submit"] {
        width: auto;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    .gallery-grid img {
        height: 120px;
    }
}

/* Footer address styles */
footer .address {
    color: #ccc;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
footer .address span {
    display: inline;
}
footer .address span::after {
    content: "|";
    margin: 0 0.5rem;
}
footer .address span:last-child::after {
    content: "";
}
@media (max-width: 767px) {
    footer .address {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    footer .address span::after {
        content: "";
        margin: 0;
    }
}

/* Page headers */
header {
    padding: 3rem 0;
}
@media (max-width: 767px) {
    header {
        padding: 2rem 0;
    }
    header h1 {
        font-size: 1.75rem;
    }
    header p {
        font-size: 0.95rem;
    }
}

/* Contact page specific */
@media (max-width: 767px) {
    .hero {
        gap: 1.5rem;
    }
    .hero .hero-text h2 {
        font-size: 1.5rem;
    }
    .hero .hero-text p {
        font-size: 0.95rem;
    }
}

/* Simple slider styles */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slider img.active {
    opacity: 1;
}
