/* layout for warehouse inventory */
.inventory-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

@media(max-width: 900px) {
    .inventory-layout {
        flex-direction: column;
    }
}

.inventory-sidebar {
    flex: 0 0 280px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.inventory-main {
    flex: 1;
    min-width: 0;
}

/* Quick Nav */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.quick-nav-pill {
    background-color: var(--teal);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px; /* Pill shape */
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.quick-nav-pill:hover {
    background-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0,0,0,0.15);
}

.quick-nav-pill.outline-pill {
    background-color: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    box-shadow: none;
}
.quick-nav-pill.outline-pill:hover {
    background-color: var(--navy);
    color: white;
}


/* Section Headers */
.inventory-section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}
@media(max-width: 768px) {
    .inventory-section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.inventory-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.inventory-logos img {
    height: 48px;
}
.inventory-logos img[alt="FHP Logo"] {
    height: 56px;
}
.inventory-logos img[alt="Bosch Logo"] {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.placeholder-header {
    border-bottom: none;
    padding-bottom: 1rem;
}

.placeholder-box {
    background-color: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.placeholder-box h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.placeholder-box p {
    color: var(--gray-600);
    max-width: 500px;
    margin-bottom: 1.5rem;
}

/* Filters */
.filters-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.filters-header h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--navy);
}

.filter-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
}

/* Grid Top Bar */
.inventory-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.inventory-top-bar h3 {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin: 0;
}

.contact-banner {
    background: var(--navy);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 169, 157, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 169, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 169, 157, 0); }
}

/* Grid & Cards */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    position: relative;
    background: #f8fafc;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
}

.stock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.stock-badge-misc {
    background: var(--navy);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-series {
    color: var(--teal);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-model {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.product-specs-brief {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.product-specs-brief li {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--gray-200);
}
.product-specs-brief li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pricing-callout {
    font-size: 0.75rem;
    text-align: center;
    margin: 0.75rem 0 0 0;
    color: var(--gray-500);
    font-weight: 600;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 25, 45, 0.85); /* Navy transparent */
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--navy);
    transform: scale(1.05);
}

.modal-content {
    padding: 3rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

@media(max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 1.5rem; }
}

.modal-callout-box {
    background: var(--navy);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.modal-callout-box h4 {
    margin-bottom: 0.5rem;
    color: var(--teal);
}
.modal-callout-box p {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 0;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

.spec-item .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.spec-item .value {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.modal-features, .modal-warranty {
    margin-bottom: 2rem;
}

.modal-features h3, .modal-warranty h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--navy);
    border-bottom: 2px solid var(--teal);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.modal-features ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--gray-700);
}

.modal-features li {
    margin-bottom: 0.5rem;
}

.modal-warranty p {
    color: var(--gray-700);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    color: var(--gray-500);
}


/* Brand Flavoring */
.brand-header-fhp { background-color: #ecfdf5 !important; border-left: 4px solid #10b981; padding: 2rem !important; border-radius: 8px; margin-bottom: 2rem; }
.brand-header-oxbox { background-color: #fff7ed !important; border-left: 4px solid #f97316; padding: 2rem !important; border-radius: 8px; margin-bottom: 2rem; }
.brand-header-hitachi { background-color: #fef2f2 !important; border-left: 4px solid #ef4444; padding: 2rem !important; border-radius: 8px; margin-bottom: 2rem; }
.brand-header-misc { background-color: #f1f5f9 !important; border-left: 4px solid #64748b; padding: 2rem !important; border-radius: 8px; margin-bottom: 2rem; }

/* Quick Nav Pills Brand Styling */
.brand-pill-fhp { background-color: #d1fae5; color: var(--navy); border: 2px solid transparent; }
.brand-pill-fhp:hover { background-color: #10b981; color: white; }

.brand-pill-oxbox { background-color: #ffedd5; color: var(--navy); border: 2px solid transparent; }
.brand-pill-oxbox:hover { background-color: #f97316; color: white; }

.brand-pill-hitachi { background-color: #fee2e2; color: var(--navy); border: 2px solid transparent; }
.brand-pill-hitachi:hover { background-color: #ef4444; color: white; }

.brand-pill-misc { background-color: #f1f5f9; color: var(--navy); border: 2px solid transparent; }
.brand-pill-misc:hover { background-color: #64748b; color: white; }
