/* ==========================================================================
   1. Reset/Normalize
   ========================================================================== */
* {
    box-sizing: border-box;
}

/* ==========================================================================
   2. Base Styles / HTML Element Defaults
   ========================================================================== */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
     margin-top: 0.5rem; 
     margin-bottom: 0.5rem; 
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.navbar, .nav-link {
    color: #c7ccd1;
}

.navbar-brand h2 {
    font-size: 2.0rem;
    margin: 0; 
    display: inline-block;
    color: #cce5ff;
}

/* ==========================================================================
   3. Main Content & Footer Area
   ========================================================================== */
main.general-content-area {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto;
    background-color: #ffffffdc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #777;
    background-color: #e9e9e9;
    width: 100%;
}

/* ==========================================================================
   4. Layout Styles - Specific Page Layouts
   ========================================================================== */
.main-layout-container {
    display: flex;
    flex-grow: 1;
}

.main-content-wrapper {
    flex-grow: 1;
    flex-basis: 0;
}

.right-flank-wrapper {
    flex-shrink: 0;
    flex-basis: 25%;
}

.right-flank-wrapper:empty,
.right-flank-wrapper.is-empty {
    display: none;
}

@media (max-width: 991.98px) {
    .main-layout-container {
        flex-direction: column;
    }
    .main-content-wrapper,
    .right-flank-wrapper {
        flex-basis: auto;
        width: 100%;
        max-width: none;
    }
    .right-flank-wrapper.has-content {
        margin-top: 1.5rem;
    }
}

/* ==========================================================================
   5. Component Styles (Forms & Messages)
   ========================================================================== */
.form-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
}

.form-group input[type="submit"],
button.form-submit-button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}

.message {
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* ==========================================================================
   6. Homepage Hero & Banner Styles
   ========================================================================== */
body.homepage .hero-section {
    padding: 80px 15px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.promotional-banner-section {
    background-color: #232f3e; /* Amazon Dark Navy */
}

/* ==========================================================================
   7. E-commerce Product Shelf & Card Styles (Amazon Inspired)
   ========================================================================== */

/* The Shelf Container */
.product-shelf-container {
    padding: 2rem 0;
}

/* The Individual Card */
.product-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #eee;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #ddd;
}

/* Product Image - Keeps consistent shelf height */
.product-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Prevents stretching */
}

/* THE CLUTTER REMOVER: Force one line of text for name */
.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0F1111; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds the '...' */
    margin-bottom: 4px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #B12704; /* Amazon-style Price Red */
}

/* verified seller badge */
.verified-badge {
    font-size: 0.65rem;
    background-color: #f8f9fa;
    color: #565959;
    border: 1px solid #d5d9d9;
    padding: 2px 6px;
    border-radius: 4px;
}

/*  Utility Classes */
.text-center { text-align: center; }
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.transition { transition: all 0.3s ease; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Social Media Button Hover Effects */
.social-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-width: 1px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Newsletter Input placeholder color */
.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
    background-color: #495057 !important; /* Slightly lighter gray */
    box-shadow: none;
    color: white;
}

.hover-white:hover {
    color: #ffffff !important;
}

    .cookie-consent-banner {
        position: fixed;
        bottom: 20px; /* Floating style is more modern */
        left: 20px;
        right: 20px;
        background-color: #1b0158; /* Dark blue from your globe grid */
        color: #ffffff;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 9999;
        display: flex;
        flex-direction: column; /* Better for mobile */
        gap: 15px;
        border-radius: 8px;
        border-left: 5px solid #007bff; /* Highlight with your AW Blue */
    }

    @media (min-width: 768px) {
        .cookie-consent-banner {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
        }
    }

    .cookie-consent-banner .actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .cookie-consent-banner button {
        border: none;
        padding: 10px 18px;
        cursor: pointer;
        border-radius: 5px;
        font-weight: 600;
        transition: opacity 0.2s;
    }

    #cookieAcceptAll { background-color: #007bff; color: white; }
    #cookieRejectAll { background-color: #6c757d; color: white; }
    #cookieCustomize { background-color: transparent; color: white; border: 1px solid white; }
    
    .cookie-consent-banner button:hover { opacity: 0.8; }
