/* GENERAL RESET AND BODY STYLES */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--main-text-color);
}

/* * Colors Used: 
* - #333: Dark Text
* - #F8F8F8: Background
* - #5F5B3C: Muted Olive Green (Accent/Primary Link Color)
* - #1D1D1D: Dark Header/Footer Background
*/

/* HEADER (TOPBAR) STYLES */

.topbar {
    background-color: #fff;
    /* White header background */
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    /* Space out logo and menu */
    align-items: center;
    border-bottom: 1px solid #eee;
    /* Subtle separator */
    position: relative;
    /* Keeps the header visible when scrolling */
    top: 0;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    color: #333;
}

.logo h1 {
    font-family: "Quicksand", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
}

.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}


/* NAVIGATION MENU STYLES */

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    /* Spacing between menu items */
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    /* Default link color */
    font-size: 12px;
    font-weight: bolder;
    text-transform: uppercase;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #5F5B3C;
    /* Muted Olive Green hover color */
}

/* MAIN CONTENT AND IFRAME */

.page-content-wrapper {
    flex: 1 0 auto;
    /* ¡Esto es la clave! */
    width: 100%;
}

/* Si usas iframe en home, asegúrate también de que crezca */
.page-content-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.content {
    display: block;
    min-height: 100vh;
    background-color: #F8F8F8;
}

.main {
    flex-grow: 1;
    /* Allows the main content to take up the available space */
    display: flex;
    flex-direction: column;
}

iframe {
    flex: 1;
    border: none;
    min-height: 100vh;
    width: 100%;
}

#gamma-floating-cta {
    /* Fixes the button relative to the viewport */
    position: fixed;
    /* Adjust these values to place it where you want (e.g., bottom right) */
    top: 50px;
    right: 30px;
    /* Ensures it stays on top of all other content */
    z-index: 1050;
}

/* --- 2. Button Styling (Gamma Aesthetic) --- */
.gamma-primary-btn {
    background-color: rgba(255, 255, 255, 0.653);
    color: #5B5BDD;
    border: none;
    padding: 12px 20px;
    font-size: 2rem;
    font-weight: 600;
    /* Moderate rounding */
    border-radius: 8px;
    /* Subtle lift/shadow effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    /* Ensures smooth transition on hover */
    transition: all 0.2s ease-in-out;
    /* Optional: Slightly increase letter spacing */
    letter-spacing: 0.5px;
}

/* Hover Effect for interaction feedback */
.gamma-primary-btn:hover {
    color: white;
    background-color: #4C4CDD;
    /* Slightly darker on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    /* More pronounced lift */
    transform: translateY(-2px);
    /* Slight vertical shift */
}

/* Focus/Active state (important for accessibility) */
.gamma-primary-btn:focus,
.gamma-primary-btn:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 91, 221, 0.5);
    /* Focus ring matching button color */
}

/* Footer styles ---------------------------------------*/

.footer {
    position: relative;
    bottom: 0;
    width: 100vw;
    background: #1D1D1D;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 12px;
}

.footer-links,
.footer-social {
    margin-bottom: 15px;
}

.footer-links a,
.footer-social a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #5F5B3C;
    /* Muted Olive Green hover color */
}

/* Form's styles ---------------------------------------*/
.form-group {
    padding: 10px 5px;
    max-height: 250px;
    overflow-y: scroll;
}

.form-outline {
    background-color: none;
    margin: 10px 0;
    text-align: left;
}

input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #333;
    width: 100%;
    color: #333;
    text-align: left;
    font-weight: 400;
}

.form-button {
    background-color: transparent;
    font-family: "Quicksand", sans-serif;
    font-size: 1.5em;
    font-weight: bolder;
    color: #333;
    border: solid 2px #333;
    border-radius: 15px;
    width: 100%;
    display: inline-block;
    align-items: center;
    margin: 25px 0;
    padding: 15px;
}

.form-button:hover {
    color: #f2f1f1;
    font-weight: bolder;
    border: solid 2px #52629be6;
    background-color: #d09a10;
}

.close {
    background-color: transparent;
    border: none;
    color: #333;
}

.close:hover {
    background-color: #f2f1f1;
    border: solid 2px #80808099;
    color: #333;
}


/* Store App ------------------------------------*/

/* inventory_mgm.html */

#invmgm_1,
#invmgm_2 {
    max-height: 80vh;
    overflow-y: scroll;
}


.ticket {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-container .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.tab-container .nav-item {
    display: inline-block;
    float: none;
}

.request-list {
    display: none;
    padding: 0;
}

.request-list.active {
    display: block;
}

/* selector temporal para ajustar el tamano de la descripcion*/
.description-section {
    max-height: 10em;
    overflow-y: scroll;

}

.order-item .selected   {
    background-color: #57579e;
    color: #F8F8F8;
}

/* --- NEW/ADJUSTED CAROUSEL STYLES --- */

.category-section {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 1em 0;
    margin: 0 -15px;
    min-height: 50vh;
    width: calc(100% + 30px);
}

/* Fix Bootstrap row to vertically center columns */
.category-section .row {
    align-items: center;
    width: 100%;
}

/* Product Carousel (Flex container) */
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    min-width: 100%;
    /* Enables the horizontal scroll effect */
    padding: 10px 0;
    place-items: end;
}

/* Individual Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 220px;
    text-align: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
    min-height: 416px;
}

.product-image {
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 3px;
}

/* Category Header (Adjust alignment for the new column layout) */
.section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: left;
    margin-bottom: 0;
    /* Adjust spacing since it's now next to the carousel */
    padding: 0;
}

/* Ensure the title is legible */
.section-title {
    /* font-size: 1.8em; (Keep existing style) */
    text-transform: uppercase;
}

/* Small divider only visible when columns stack on mobile/tablet */
.section-divider-small {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px auto;
    width: 50%;
}


/* product_detail.html*/

.product-details-container {
    text-align: right;
    padding: 10px 20px;
    margin-top: 3rem;
}

#order-details {
    border: 1px solid #1D1D1D;
    border-radius: 5px;
    padding: 1rem;
}

/* shopping_cart.html*/

#cart-container {
    display: flex;
    flex-direction: row;
}


#cart-items :hover {
    background-color: goldenrod;
    color: #f2f1f1;
    font-weight: bolder;
}




/* Users App -------------------------------------*/

#modalError {
    display: none;
    max-height: 100px;
    width: 100%;
    color: #fff;
    padding: 5px;
    border: 2px solid #5F5B3C;
    border-radius: 5px;
}

#modalError li {
    list-style: none;
}

/* RESPONSIVENESS (Mobile Adjustments) */

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }

    .logo {
        margin-bottom: 15px;
    }

    .mobile-menu-btn {
        display: block; /* Show on mobile */
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .nav-container {
        display: none; /* Hide menu by default */
        width: 100%;
    }

    .nav-container.active {
        display: block; /* Show when active */
    }

    .nav-menu ul {
        display: flex;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
        gap: 15px;
    }

    .nav-menu a {
        padding: 5px;
    }

    .dropdown-menu {
        padding: 5px;
    }

    .footer-links a,
    .footer-social a {
        display: block;
        margin: 5px 0;
    }

    #cart-container {
        display: flex;
        flex-direction: column;
    }
}

/* RESPONSIVENESS ADJUSTMENT */
@media (max-width: 991.98px) {

    /* For devices smaller than large (i.e., tablet/mobile), columns stack */
    .section-header {
        text-align: center !important;
        /* Re-center the header when it's full width */
        margin-bottom: 20px;
    }
}