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

body {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    background-image: url('pagebg.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    /* Centering added in previous step */
    display: flex;
    justify-content: center;
}

/* Main Container */
.main-container {
    /* Full width and centering added in previous step */
    width: 100%;
    margin: 0 auto; 
    /* CHANGED: Top padding set to 5px to position header 5px from top edge */
    padding: 5px 5px 5px 5px;
    background-color: rgb(0, 0, 0, 0);
    min-height: 70vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Header */
header {
    text-align: center;
    /* CHANGED: Set bottom margin to 5px for FB button spacing. Removed padding/border */
    margin-bottom: 5px;
}

header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* --- ADDED: Facebook Button Spacing --- */
.fb-share-button {
    /* Set bottom margin to 5px for Select Wrapper spacing */
    margin-bottom: 5px;
}

/* --- UPDATED SELECT SECTION --- */

.sectionSelect-wrapper {
    /* CHANGED: Margin top 0, margin bottom 5px for Title spacing */
    margin: 0 0 5px 0;
    /* Align select and label to the right */
    text-align: right;
}

.sectionSelect-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    /* --- MODIFICATION: Set color to white with lift effect --- */
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Lift effect */
}

#sectionSelect {
    width: 100%;
    height: 45px;
    
    /* Requested Main Background Color with Bevel Effect */
    background-color: #108AB1;
    
    /* Bevel Effect: Replaces standard solid border with outset style */
    border: 3px outset #108AB1;
    
    border-radius: 6px;
    padding: 0 35px 0 10px; /* Padding right accommodates the arrow */
    font-size: 18px;
    cursor: pointer;
    color: #ffffff; 

    /* Remove default system arrow to ensure background color shows */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='black'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

/* Dropdown Options (The "Modal") */
#sectionSelect option {
    background-color: #CFE1B9; /* Requested Option BG */
    color: #ffffff;              /* Requested Option Text */
}

/* --- END SELECT SECTION --- */

/* Featured Section */
.content-section {
    margin-bottom: 40px;
    /* By default sections are visible, we toggle via JS/classes */
}

/* Hidden Class for non-active sections */
.hidden {
    display: none;
}

h2 {
    /* Align section titles to the right */
    text-align: right;
    /* CHANGED: Top margin 0. Bottom margin keeps space before grid. */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.2rem;
    /* --- MODIFICATION: Set color to white with lift effect --- */
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Lift effect */
    text-transform: uppercase;
    letter-spacing: 1px;
    /* CHANGED: Line height calculation to ensure exactly 5px gap between text lines */
    line-height: calc(100% + 5px);
}

/* 5x5 Product Grid (Replaces old quadrant-grid) */
.product-grid-5x5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.product-card {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Responsive Grid Adjustments to prevent overflow on smaller screens */
/* Tablet Layout: 4 columns */
@media (max-width: 1024px) {
    .product-grid-5x5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape Mobile Layout: 3 columns */
@media (max-width: 768px) {
    .product-grid-5x5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Portrait Mobile Layout: 2 columns */
@media (max-width: 480px) {
    .product-grid-5x5 {
        grid-template-columns: repeat(2, 1fr);
    }
}
