/* Inventory Page Styles — shared across brand-new and buy-used pages */

/* Hero banner */
.inventory-hero {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.inventory-hero:hover {
    transform: none;
}

.inventory-hero.brand-new {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

.inventory-hero.preowned {
    background: linear-gradient(135deg, #00A76F, #008f5d);
}

.inventory-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.inventory-hero h1,
.inventory-hero p {
    position: relative;
    z-index: 2;
    color: #fff;
}

.inventory-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.inventory-hero h1::after {
    display: none;
}

.inventory-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.92);
}

/* Inventory sections — override global section styles */
.inventory-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 10px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.inventory-section:hover {
    transform: none;
}

.inventory-category-title {
    font-size: 1.5rem;
    color: #161C24;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #00A76F;
    text-align: left;
}

.inventory-category-title::after {
    display: none;
}

.inventory-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Clickable item row → links to WhatsApp */
a.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    font-weight: normal;
    transition: background 0.15s;
    cursor: pointer;
}

a.inventory-item:last-child {
    border-bottom: none;
}

a.inventory-item:hover {
    background: #e8f5e9;
    color: inherit;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    display: block;
    font-size: 0.95rem;
    color: #212B36;
    font-weight: 600;
}

.item-details {
    display: block;
    font-size: 0.82rem;
    color: #637381;
    margin-top: 2px;
}

.item-note {
    font-size: 0.8rem;
    color: #919EAB;
    font-style: italic;
}

.item-price {
    font-weight: 700;
    color: #00A76F;
    font-size: 1.05rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.item-price.contact {
    color: #637381;
    font-weight: 500;
    font-size: 0.85rem;
}

.item-whatsapp-hint {
    display: none;
    font-size: 0.75rem;
    color: #25D366;
    font-weight: 500;
    margin-top: 2px;
}

a.inventory-item:hover .item-whatsapp-hint {
    display: block;
}

/* CTA at bottom of inventory */
.inventory-cta {
    max-width: 960px;
    margin: 30px auto 40px;
    text-align: center;
    padding: 30px 20px;
    background: #f4f6f8;
    border-radius: 12px;
    box-shadow: none;
}

.inventory-cta:hover {
    transform: none;
}

.inventory-cta p {
    color: #637381;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.inventory-cta .cta-button {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.inventory-cta .cta-button:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
}

/* Eid Sale Banner */
.eid-banner {
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #b8860b 100%);
    color: #1a1200;
    text-align: center;
    padding: 32px 20px;
    box-shadow: none;
    border-radius: 0;
}

.eid-banner:hover {
    transform: none;
}

.eid-banner::after {
    display: none;
}

.eid-banner-inner {
    max-width: 760px;
    margin: 0 auto;
}

.eid-banner-label {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #5a3800;
    margin-bottom: 8px;
}

.eid-banner h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1200;
    margin-bottom: 8px;
}

.eid-banner h2::after {
    display: none;
}

.eid-banner p {
    font-size: 1rem;
    color: #3d2800;
    margin-bottom: 18px;
    line-height: 1.5;
}

.eid-cta {
    display: inline-block;
    background: #00A76F;
    color: #fff !important;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.eid-cta:hover {
    background: #007a52;
    color: #fff !important;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .eid-banner h2 {
        font-size: 1.4rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .inventory-hero h1 {
        font-size: 2rem;
    }

    a.inventory-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .inventory-hero {
        padding: 40px 16px;
    }

    .inventory-hero h1 {
        font-size: 1.5rem;
    }

    a.inventory-item {
        padding: 12px 16px;
    }
}
