:root {
    --color-primary: #004890; /* Lowe's Blue */
    --color-primary-dark: #003366;
    --color-primary-soft: #005bb5; /* Lighter, more vibrant blue */
    --color-secondary: #ffffff;
    --color-accent: #ffe100; /* Retail Yellow */
    --color-accent-hover: #e6cb00;
    --color-text-dark: #1e293b; /* Slate 800 - softer than pure black */
    --color-text-light: #64748b; /* Slate 500 */
    --color-bg-light: #f8f9fa; /* Very light grey */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --spacing-container: 1200px; /* Standard cleaner width */
    --radius-card: 8px; /* Softer corners */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utils */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border: 2px solid var(--color-primary);
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 72, 144, 0.2);
}

.btn:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 72, 144, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    width: 100%;
    z-index: 1000;
    background-color: var(--color-secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}

.header-top {
    background-color: var(--color-secondary); /* White background for top */
    color: var(--color-text-dark);
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo span {
    color: var(--color-accent); /* Keep the accent */
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.95rem;
    background-color: var(--color-bg-light);
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 72, 144, 0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-action-item {
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.header-action-item svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    margin-bottom: 4px;
}

.header-action-item:hover {
    color: var(--color-primary);
}

.quote-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation */
.header-bottom {
    background-color: var(--color-primary);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    position: relative;
}

.nav-links a:hover {
    color: #fff;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px;
}

/* Hero */
.hero {
    background-color: #000;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-container {
    position: static;
    width: 100%;
}

.hero-content {
    padding: 60px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--color-text-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adjust buttons for hero */
.hero-content .btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.hero-content .btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Desktop / Large Screen Styles */
@media (min-width: 992px) {
    .hero {
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: #fff;
    border: 1px solid #f1f5f9; /* Subtle border for contrast */
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #f1f5f9;
    padding: 0; /* Remove padding for full bleed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.product-info p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-link {
    text-align: center;
    background-color: transparent;
    border: 2px solid #e2e8f0;
    color: var(--color-text-dark);
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-top: auto;
    transition: all 0.2s ease;
}

.product-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Section Title */
.section-title {
    font-size: 2.25rem;
    margin-bottom: 60px;
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
    color: var(--color-text-dark); /* Ensure explicit color */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* Brands */
.brands {
    background-color: #fff;
    padding: 60px 0;
    border-top: 1px solid #f1f5f9;
}

.brand-slider {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0.7;
}

/* Contact CTA */
.contact-cta {
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-secondary);
    text-align: center;
    padding: 100px 0;
}
.contact-cta h2 {
    color: white;
    font-size: 2.5rem;
}

/* Contact Page */
.contact-page {
    padding: 60px 0 100px;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.contact-details-box {
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--radius-card);
}

.contact-info-item h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    background-color: #f8f9fa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #fff;
    border-color: var(--color-primary);
    outline: none;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    color: var(--color-text-dark);
    padding: 80px 0 30px;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    text-align: left; /* Aligned left for cleaner look */
}

.footer-col h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px; /* Subtle slide effect */
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

/* Feature Grid (How it works & About) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-card);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 72, 144, 0.1); /* Soft blue bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.feature-item h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: block;
        order: 1;
        margin-right: 0;
    }

    .header-top {
        padding: 10px 0;
    }

    .header-top .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 15px;
        position: relative;
    }

    .logo {
        text-align: center;
        order: 2;
        flex: 1;
        font-size: 1.4rem;
        margin: 0;
    }

    .search-bar {
        margin: 0;
        max-width: none;
        order: 3;
        flex: 0 0 auto;
        background: transparent;
        width: auto;
    }

    .search-bar input {
        display: none;
    }

    .search-bar button {
        position: static;
        transform: none;
        background: transparent;
        color: var(--color-text-dark);
        width: 36px;
        height: 36px;
        padding: 0;
    }

    .search-bar button svg {
        width: 22px;
        height: 22px;
    }

    /* Active Search State */
    .search-bar.active {
        position: static;
    }

    .search-bar.active input {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        padding-right: 50px;
        z-index: 10;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .search-bar.active button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 11;
    }

    .header-actions {
        order: 4;
        justify-content: flex-end;
        gap: 15px;
        flex: 0 0 auto;
    }

    .header-action-item span:not(.quote-count-badge) {
        display: none;
    }

    .quote-count-badge {
        right: -8px;
        top: -5px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--color-primary);
        padding: 20px;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 2000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        gap: 20px;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Modal and other Utils */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.modal-content { background-color: #fff; margin: 5% auto; padding: 0; width: 90%; max-width: 600px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { background-color: #fff; padding: 20px 30px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; border-radius: 8px 8px 0 0; }
.modal-header h2 { font-size: 1.5rem; margin: 0; color: var(--color-text-dark); }
.modal-body { padding: 30px; }
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    z-index: 10;
    background: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.close-modal:hover {
    background: #f1f1f1;
    color: #000;
    transform: scale(1.1);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; color: var(--color-text-dark); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-family: inherit; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .half {
    flex: 1;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* --- New Retail Card Styles --- */
.retail-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.retail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f4f4f4;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-image-wrapper .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent);
    color: var(--color-text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}
.card-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    flex-grow: 1;
}
.card-meta {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 500;
}
.card-actions {
    margin-top: auto;
}

/* --- New Modal Styles --- */
.retail-modal {
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
}
.pd-grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .pd-grid {
        grid-template-columns: 40% 60%;
        min-height: 500px;
    }
}
.pd-image-col {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pd-main-image {
    width: 100%;
    aspect-ratio: 4/3; /* 4:3 ratio to align with product grid */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}
.pd-selected-label {
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}
.pd-info-col {
    padding: 30px;
    overflow-y: auto;
    max-height: 80vh;
}
.pd-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.pd-desc {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}
.pd-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}
.pd-section-title {
    font-size: 1rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
.pd-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.color-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 4px;
    transition: all 0.2s;
    text-align: center;
}
.color-option:hover {
    border-color: #ddd;
}
.color-option.selected {
    border-color: var(--color-primary);
    background: rgba(0, 72, 144, 0.05);
}
.color-option img {
    width: 100%;
    aspect-ratio: 4/3; /* 4:3 aspect ratio as requested for color selector */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}
.color-name {
    font-size: 0.75rem;
    display: block;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form Styles */
.pd-form .form-group {
    margin-bottom: 15px;
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}
.form-group-checkbox input {
    width: auto;
}
.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}
.btn-add-quote {
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quote List Styles */
.quote-list {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
}
.quote-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.quote-item:last-child {
    border-bottom: none;
}
.quote-item-details strong {
    font-size: 1.05rem;
    display: block;
    color: var(--color-primary);
}
.quote-item-color {
    color: #555;
    font-weight: 500;
}
.quote-item-meta {
    font-size: 0.9rem;
    color: #888;
    margin-top: 4px;
}
.btn-remove-item {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
}
.btn-remove-item:hover {
    color: #cc0000;
}
.empty-cart-msg {
    padding: 20px;
    text-align: center;
    color: #888;
}
.form-section-title {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    margin-bottom: 20px;
}
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.btn-outline-danger {
    background: transparent;
    border: 2px solid #ffcccc;
    color: #cc0000;
    font-weight: 500;
}
.btn-outline-danger:hover {
    background: #fff5f5;
    border-color: #cc0000;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #fff;
    color: #333;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-left: 4px solid #004990;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.error {
    border-left-color: #d9534f;
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        justify-content: center;
    }
}

/* Header Action Content - Standardized Alignment */
.header-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    position: relative;
    line-height: 1.2;
}

.header-action-content:hover {
    color: var(--color-primary);
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.link-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 220px;
    box-shadow: 0px 10px 15px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Center align on desktop */
}

.dropdown-menu a {
    color: #333 !important; /* Override white text from nav links */
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
    white-space: nowrap;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--color-primary) !important;
}

.dropdown-menu a::after {
    display: none; /* Remove underline effect from main nav */
}

/* Dropdown Toggle Arrow */
.dropdown-toggle {
    display: none; /* Hidden on desktop by default unless we want it */
    cursor: pointer;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    transition: transform 0.3s ease;
    padding: 5px;
}

/* Desktop Hover */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateX(-50%) translateY(10px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
}

/* Mobile Nav Adjustments */
@media (max-width: 768px) {
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }

    .nav-links li {
        width: 100%;
        display: block; /* Reset flex */
    }

    .link-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
        width: 100%;
        margin: 0 auto;
        gap: 15px;
    }

    /* Ensure the link takes available space but allows clicking the arrow separately */
    .link-wrapper > a {
        flex-grow: 0;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(0,0,0,0.2); /* Darken slightly */
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        transform: none;
        border-radius: 0;
    }

    .dropdown-menu a {
        color: rgba(255,255,255,0.9) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: transparent;
        text-align: center;
        padding: 15px;
    }

    .dropdown-menu a:hover {
        background-color: rgba(255,255,255,0.1);
        color: #fff !important;
    }

    .dropdown-menu.active {
        display: block !important;
    }

    .dropdown-toggle.active {
        transform: rotate(180deg);
        background: rgba(255,255,255,0.2);
    }
}
