/* =============================================
   ENVANTER (INVENTORY) PAGE STYLES
   Ottoman-themed product showcase
   ============================================= */

/* ---------- HERO SECTION ---------- */
.inv-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c2418 0%, #3d3222 40%, #1a150e 100%);
    overflow: hidden;
    margin-top: var(--nav-height);
}

.inv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.inv-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--ivory), transparent);
    pointer-events: none;
}

.inv-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.inv-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
}

.inv-hero-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 16px;
}

.inv-hero-title {
    font-family: var(--font-hero);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--inv-hero-title);
    margin: 0 0 16px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.inv-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--inv-hero-subtitle);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- CONTAINER ---------- */
.inv-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- FILTER BAR ---------- */
.inv-filter-bar {
    background: var(--ivory);
    padding: 28px 0 20px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.inv-filter-bar .inv-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.inv-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inv-filter-btn {
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-mid);
    background: transparent;
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inv-filter-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.05);
}

.inv-filter-btn.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--text-dark);
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(201, 168, 76, 0.3);
}

.inv-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-mid);
}

.inv-stat-sep {
    opacity: 0.4;
}

.inv-stat-interest {
    color: var(--gold-dark);
    font-weight: 600;
}

/* ---------- PRODUCT GRID ---------- */
.inv-grid-section {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, var(--ivory) 0%, #f8f3e6 100%);
}

.inv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---------- PRODUCT CARD ---------- */
.inv-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(201, 168, 76, 0.15);
    box-shadow: 0 4px 24px rgba(44, 36, 24, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.inv-card.hidden {
    display: none;
}

.inv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(44, 36, 24, 0.12), 0 0 0 1px rgba(201, 168, 76, 0.2);
    border-color: rgba(201, 168, 76, 0.35);
}

.inv-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a150e;
}

.inv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.inv-card:hover .inv-card-image img {
    transform: scale(1.06);
}

.inv-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.9), rgba(226, 204, 122, 0.9));
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.inv-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.inv-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inv-card-desc {
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
}

.inv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(201, 168, 76, 0.12);
}

/* ---------- INTEREST BUTTON ---------- */
.inv-interest-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.08);
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inv-interest-btn:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold-primary);
    transform: scale(1.02);
}

.inv-interest-btn.liked {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--text-dark);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}

.inv-interest-btn.liked .inv-heart {
    animation: heartPop 0.4s ease;
}

.inv-heart {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.inv-interest-count {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-dark);
    padding: 6px 12px;
    background: rgba(201, 168, 76, 0.06);
    border-radius: 16px;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* ---------- CTA SECTION ---------- */
.inv-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c2418 0%, #3d3222 50%, #1a150e 100%);
    position: relative;
    overflow: hidden;
}

.inv-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
}

.inv-cta-inner {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 40px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    background: rgba(201, 168, 76, 0.03);
}

.inv-cta-ornament {
    position: absolute;
    font-size: 1.5rem;
    color: var(--gold-primary);
    opacity: 0.4;
}

.inv-cta-ornament-left {
    top: 20px;
    left: 20px;
}

.inv-cta-ornament-right {
    bottom: 20px;
    right: 20px;
}

.inv-cta-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--inv-hero-title);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.inv-cta-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--inv-hero-subtitle);
    line-height: 1.7;
    margin: 0 0 28px;
}

.inv-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.inv-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.45);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .inv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .inv-hero {
        min-height: 280px;
    }

    .inv-hero-content {
        padding: 48px 20px;
    }

    .inv-filter-bar .inv-container {
        flex-direction: column;
        text-align: center;
    }

    .inv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .inv-card-body {
        padding: 16px 16px 18px;
    }

    .inv-card-title {
        font-size: 0.95rem;
    }

    .inv-card-desc {
        font-size: 0.78rem;
    }

    .inv-cta-inner {
        padding: 36px 24px;
    }

    .inv-cta-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .inv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .inv-hero-title {
        font-size: 1.8rem;
    }

    .inv-filter-btn {
        padding: 6px 14px;
        font-size: 0.68rem;
    }
}