/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.flash {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

body {
    font-family: 'Libre Baskerville', serif;
    text-align: left;
    color: #121113;
    background: #f7f7f2;
}

.primary-btn {
    background-color: #899878;
    border-color: #899878;
    color: #121113;
}

.site-header .navbar {
    padding: 0.5rem 1rem;
    background-color: #e4e6c3;
}
.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}
.navbar-toggler {
    border: none;
}

.navbar-brand img {
    background: transparent;
}

.cta {
    background: #e4e6c3;
    padding: 2rem 0;
}
.cta .input-group {
    max-width: 400px;
}
.cta .social-icons a {
    color: #6c757d;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.cta .social-icons a:hover {
    color: #121113;
}

.cta .social-icons i {
    vertical-align: middle;
}
.footer {
    background: #f7f7f2;
    font-size: 0.8rem;
    padding: 1rem 0;
    text-align: center;
}
form {
    max-width: 600px;
    margin: 0 auto;
}

header {
    font-family: 'Libre Baskerville', serif;
    text-align: left;
}
.featured-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Space between rows */
    margin: 2rem 0;
}

.category-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 75%;
}

/* Ensure text links have consistent styling */
.category-row a {
    color: inherit;
    text-decoration: none;
}

/* Padding for text content */
.category-row .category-description {
    padding: 1rem;
}

/* Ensure images fit properly */
.category-row .category-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Alternating styles for desktop */
.category-row.image-left .category-description {
    order: 1;
}
.category-row.image-left .category-image {
    order: 2;
}
.category-row.image-right .category-description {
    order: 2;
}
.category-row.image-right .category-image {
    order: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-row {
        display: flex;
        flex-direction: column;
        text-align: center;
        max-width: 100%; /* Full width on mobile */
    }

    /* Reset order for mobile */
    .category-row .category-description {
        order: 2;
    }
    .category-row .category-image {
        order: 1;
    }
}

/*Category show page*/

.category-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* Grid Layout */
.product-card {
    position: relative;
    text-align: center;
}

/* Image Styling */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.product-img {
    width: 100%;
    height: 350px; /* Adjust based on preference */
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Hover effect for desktop */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: #222725;
    color: #f7f7f2;
    text-align: left;
    border-radius: 0 0 10px 10px;
}

.product-name {
    font-size: 16px;
}

/* Mobile: Name appears below image */
@media (max-width: 768px) {
    .overlay {
        display: none !important;
    }
}

/*product page*/

.carousel-item img {
    object-fit: contain;
    height: 600px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
     height: 100px;
     width: 100px;
     outline: black;
     background-color: #222725;
     background-size: 100%, 100%;
     border-radius: 50%;
     border: 1px solid black;
     background-image: none;
 }