/* ===================================================================
   INVENTORY PAGE STYLES — Glass-Morphism Theme (2026 Refresh)
   Shared across brand-new.html and buy-used.html
   =================================================================== */

/* Hero banner */
.inventory-hero {
    text-align: center;
    padding: 70px 20px 60px;
    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, var(--dark, #0f172a) 0%, #1a2744 50%, var(--accent-dark, #0284c7) 100%);
}

.inventory-hero.preowned {
    background: linear-gradient(135deg, var(--dark, #0f172a) 0%, #162032 50%, var(--primary-dark, #00a87a) 100%);
}

.inventory-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(14,165,233,0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(0,200,150,0.12) 0%, transparent 50%);
    z-index: 1;
}

.inventory-hero::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
    z-index: 0;
}

.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;
    letter-spacing: -0.5px;
}

.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.92;
    color: rgba(255, 255, 255, 0.9);
}

/* Inventory sections */
.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.4rem;
    color: var(--dark, #0f172a);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: none;
    text-align: left;
    font-weight: 700;
    position: relative;
}

.inventory-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent, #0ea5e9), var(--primary, #00c896));
    border-radius: 3px;
    display: block;
}

.inventory-list {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

/* Clickable item row */
a.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    gap: 16px;
    text-decoration: none;
    color: inherit;
    font-weight: normal;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Product thumbnail */
.item-thumb {
    width: 0;
    height: 0 !important;
    min-width: 0;
    opacity: 0;
    overflow: hidden;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(241, 245, 249, 0.8);
    flex-shrink: 0;
    display: inline-block !important;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    padding: 0;
}

a.inventory-item:hover .item-thumb {
    width: 100px;
    height: 100px !important;
    min-width: 100px;
    opacity: 1;
    padding: 4px;
}

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

a.inventory-item:hover {
    background: rgba(14, 165, 233, 0.06);
    color: inherit;
}

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

.item-name {
    display: block;
    font-size: 0.95rem;
    color: var(--dark, #0f172a);
    font-weight: 600;
}

.item-details {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-500, #64748b);
    margin-top: 2px;
}

.item-note {
    font-size: 0.8rem;
    color: var(--gray-400, #94a3b8);
    font-style: italic;
}

.item-price {
    font-weight: 700;
    color: var(--accent, #0ea5e9);
    font-size: 1.05rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.item-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.item-price-compare {
    font-size: 0.8rem;
    color: var(--gray-500, #64748b);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    white-space: nowrap;
}

.item-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 200, 150, 0.12);
    color: var(--primary-dark, #00a87a);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.item-price.contact {
    color: var(--gray-500, #64748b);
    font-weight: 500;
    font-size: 0.85rem;
}

.item-whatsapp-hint {
    display: none;
    font-size: 0.75rem;
    color: var(--primary, #00c896);
    font-weight: 500;
    margin-top: 2px;
}

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

/* CTA at bottom */
.inventory-cta {
    max-width: 960px;
    margin: 30px auto 40px;
    text-align: center;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

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

.inventory-cta p {
    color: var(--gray-500, #64748b);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.inventory-cta .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent, #0ea5e9), var(--primary, #00c896));
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.inventory-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: #fff;
}

/* Seasonal promo 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-copy {
    max-width: 640px;
    margin: 0 auto;
}

.eid-banner-icon {
    display: block;
    width: 112px;
    height: auto;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 24px rgba(90, 56, 0, 0.2));
}

.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: linear-gradient(135deg, var(--accent, #0ea5e9), var(--primary, #00c896));
    color: #fff !important;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.eid-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: #fff !important;
}

/* Responsive — Tablet */
@media (max-width: 768px) {
    .eid-banner {
        padding: 28px 16px;
    }

    .eid-banner-icon {
        width: 92px;
        margin-bottom: 12px;
    }

    .item-thumb {
        width: 48px;
        height: 48px !important;
        min-width: 48px;
        opacity: 1;
        padding: 2px;
    }
}

/* Responsive — Phone */
@media (max-width: 480px) {
    .inventory-hero h1 { font-size: 1.8rem; }
    .inventory-hero p { font-size: 1rem; }
    a.inventory-item { padding: 14px 16px; }
    .item-thumb {
        width: 40px;
        height: 40px !important;
        min-width: 40px;
    }

    .item-price-group {
        gap: 3px;
    }

    .item-price-compare {
        font-size: 0.75rem;
    }

    .item-price-badge {
        font-size: 0.62rem;
        padding: 3px 7px;
    }
}

/* ── Trust badge strip (buy-used, buy-iphone, brand-new) ── */
.preowned-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px 20px;
    background: #f8fffe;
    border-top: 1px solid #e0f5ef;
    border-bottom: 1px solid #e0f5ef;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #c3ece0;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #00633f;
    white-space: nowrap;
}

.tbadge-icon {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .preowned-trust-strip {
        gap: 8px;
        padding: 14px 12px;
    }
}
