/* ==========================================
   COLOR PALETTE
   ========================================== */
:root {
    --bg-dark-green: #0a1c12;
    --accent-green: #2e6f40;
    --bright-green: #52b788;
    --text-white: #ffffff;
}

/* ==========================================
   GLOBAL & LAYOUT STYLING
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    -webkit-user-select: none; /* Safari, Chrome, and Opera */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10 and IE 11 */
    user-select: none;         /* Standard syntax */
}

body {
    background-color: var(--bg-dark-green);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    font-size: 16px; /* Sets a solid base mobile font size */
}

/* ==========================================
   FIXED HEADER (Optimized for Mobile Touch)
   ========================================== */
header {
    background-color: var(--bg-dark-green);
    border-bottom: 2px solid var(--accent-green);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    padding: 1rem; /* Reduced padding so header doesn't swallow mobile screen */
    gap: 1.25rem;
}

nav li {
    font-size: 1.2rem; /* Made text larger for mobile thumbs */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

nav li:hover {
    color: var(--bright-green);
}

/* ==========================================
   SCROLLABLE MAIN BODY & GRID
   ========================================== */
#body {
    margin-top: 70px; /* Adjusted to fit the slimmer mobile header */
    overflow-y: auto;
    flex: 1;
    padding: 1.25rem; /* Less padding on mobile to give content more room */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main inner container holding the shop page elements */
.store-container {
    max-width: 1200px;
    width: 100%;
}

.store-title {
    font-size: 2.2rem; /* Bold, readable title on mobile */
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* The responsive flex row */
#Store {
    display: flex;
    flex-direction: column; /* Stack cards vertically on mobile for maximum width */
    gap: 1.5rem;
    width: 100%;
}

/* ==========================================
   RESPONSIVE PRODUCT CARDS
   ========================================== */
.product {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
    width: 100%;
    max-width: 100%; /* Allows card to fill mobile screen width */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product:hover {
    border-color: var(--bright-green);
    transform: translateY(-2px);
}

.productName {
    font-size: 1.4rem; /* Larger, readable product names */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product img {
    max-width: 100%;
    height: 280px; /* Increased from 200px so images look large and clear on mobile */
    width: 100%;
    object-fit: cover;
    margin: auto 0 1rem 0;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
}

.price {
    font-size: 1.6rem; /* Enhanced pricing visibility */
    color: var(--bright-green);
    font-weight: bold;
    margin-top: auto;
}

.remove {
    color: #800;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================================
   MINIMALIST FOOTER
   ========================================== */
footer {
    background-color: var(--bg-dark-green);
    width: 100%;
    padding: 1.5rem 0; /* Add room for mobile links to be easily tapped */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row {
    display: flex;
    flex-direction: column; /* Stack footer elements on mobile */
    gap: 1rem;
    text-align: center;
}

.row > div {
    min-width: fit-content;
}

footer a {
    font-size: 1.1rem;
    display: inline-block;
    padding: 0.5rem 0;
}

footer a:hover {
    color: var(--bright-green);
}

.o_footer_copyright {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

input, button {
    font-size: 1rem; /* Prevents iOS from zooming in automatically on form inputs */
    padding: 0.5rem; /* Larger touch targets */
}

.numberInput {
    min-width: 20px;
    max-width: 100px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    width: 100%;
}

.form-group label {
    font-weight: 600;
    font-size: 16px; /* Larger label text */
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px; /* Thicker input fields for easier typing */
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 100%;
    font-size: 16px;
}

#priceBeforeSale {
    color: grey;
    text-decoration: line-through;
    font-size: 1.1rem;
}

.warning {
    color: red;
    font-size: 1.1rem;
}

/* ==========================================
   DESKTOP ONLY RULES (768px and up)
   ========================================== */
@media (min-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
    }

    #body {
        margin-top: 80px;
        margin-bottom: 120px;
        min-width: 60vw;
        padding: 2rem;
    }

    nav {
        padding: 1.5rem 1rem;
    }

    nav li {
        font-size: 1.1rem; /* Scaled down slightly for refined desktop view */
    }

    #Store {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
        width: 100%;
    }

    .product {
        flex: 1 1 300px;
        min-width: 400px;
    }

    /*.product img {*/
    /*    height: 200px; !* Restores compact desktop layout size *!*/
    /*}*/

    footer {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        padding: 0.25rem 0;
    }

    .row {
        flex-direction: row; /* Horizontal alignment for desktop footer */
        justify-content: space-between;
        align-items: center;
    }
}

.sharethis-share-buttons {
    font-size: 10px;
    margin-right: 15px;
    text-align: left !important;
}

input[type="checkbox"] {
    accent-color: var(--bright-green); /* Changes the check color to your brand color */
    transform: scale(1.5);  /* Makes the box slightly larger and easier to click */
    margin: 0.8rem;
    cursor: pointer;
}

input, textarea {
    color: var(--bg-dark-green) !important;
}