/* ========================================
    Main Stylesheet for the Sari-Sari Store Application
    Version: 2.1
    Date: October 1, 2025
    ========================================
*/

/* --- General Admin Layout --- */

/* Sets the background color for the active link in the admin sidebar. */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #0d6efd;
}

/* Ensures the main content area fills the available space next to the sidebar. */
.main-content {
    width: 100%;
}

/* Defines the padding for the title bar on each admin page. */
.page-title-bar {
    padding: 1rem 1.5rem;
}

/* This media query applies styles only on smaller screens (tablets and phones). */
@media (max-width: 991.98px) {
    /* Adds padding to the top of the main content to prevent it from being hidden
       behind the fixed mobile navigation bar (the one with the hamburger button). */
    .main-content {
        padding-top: 4.5rem !important;
    }
}


/* --- Point of Sale (POS) System Styles --- */

/* Creates a responsive grid layout for the product items in the POS. */
.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Basic styling for each clickable product item in the POS grid. */
.pos-product-item {
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}

/* Adds a visual effect (scaling and shadow) when hovering over a product in the POS. */
.pos-product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}


/* --- Public Website Styles --- */

/* This class ensures all product images on the public site have a uniform size. */
.product-image {
    width: 100%;
    height: 180px; /* ** This fixed height creates the uniform look. ** */
    
    /* This scales the image to fit within the container while preserving its aspect ratio,
       preventing stretching or distortion. */
    object-fit: contain; 
    
    padding: 10px; /* Adds spacing around the image inside its container. */
}

/* Styling for the circular icons in the "Why Shop With Us?" section on the homepage. */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    color: #fff;
    border-radius: .75rem;
}

/* Styling for the "Call to Action" section ("Join Our Community!"). */
.cta-section {
    background-color: #f8f9fa;
    border-radius: .75rem;
}

/* Styling for the customer testimonial cards on the homepage. */
.testimonial-card {
    border: 0;
    background-color: #f8f9fa;
}

.testimonial-card .card-body {
    font-style: italic;
}

/* --- Public Product Image Sizing --- */
.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
}

/* --- [NEW] SaaS Platform Homepage Styles --- */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    color: #fff;
    border-radius: .75rem;
}

.cta-section {
    background-color: #f8f9fa;
    border-radius: .75rem;
}

.testimonial-card {
    border: 0;
    background-color: #f8f9fa;
}

.testimonial-card .card-body {
    font-style: italic;
}

.pricing-header {
    max-width: 700px;
}

