/* ================================================================
   IMPEL STORE – Luxury Redesign
   – Deep, rich colors • Elegant typography • Smooth animations
   ================================================================ */

/* ---------- Google Font (Inter) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f7f4;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 14px 0;
}

.navbar-brand {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a !important;
    background: none !important;
    -webkit-text-fill-color: #1a1a1a !important;
    transition: opacity 0.2s;
}
.navbar-brand:hover {
    opacity: 0.7;
}

/* ---------- Hero (Luxury Dark Gradient) ---------- */
.hero {
    background: linear-gradient(145deg, #0b0e1a 0%, #1a1f2f 100%);
    padding: 110px 0 130px;
    position: relative;
    overflow: hidden;
}

/* Subtle animated glow */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-40px, 30px) scale(1.2); opacity: 1; }
}

.hero h1 {
    font-size: 62px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.hero .lead {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2px;
    position: relative;
    z-index: 2;
}

.hero .stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero .stats span {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    padding: 6px 22px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.search-box {
    max-width: 620px;
    margin: 40px auto 0;
    position: relative;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 20px 28px;
    border: none;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.search-results {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    padding: 6px 0;
}

.search-item {
    padding: 14px 28px;
    border-bottom: 1px solid #f0efe8;
    cursor: pointer;
    transition: background 0.15s;
    color: #1a1a1a;
    font-size: 15px;
}

.search-item:hover {
    background: #f5f3ef;
}
.search-item a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Stats Boxes ---------- */
.stats-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.stats-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.04);
}

.stats-box h2 {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2px;
    letter-spacing: -0.03em;
}

.stats-box h2 + * {
    font-size: 17px;
    color: #86868b;
    font-weight: 400;
}

/* ---------- Section Titles ---------- */
.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 36px;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, #c9a84c, #d4af37);
    border-radius: 2px;
}

/* ---------- Category & Brand Cards ---------- */
.category-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 16px;
    text-align: center;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 175, 55, 0.25);
}

.category-card i {
    font-size: 32px;
    background: linear-gradient(135deg, #c9a84c, #b8942a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
    display: block;
}

.category-card h6 {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.category-card .text-muted {
    font-size: 14px;
    color: #86868b;
}

.category-card strong {
    font-size: 19px;
    font-weight: 600;
}

/* ---------- Product Cards ---------- */
.product-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 175, 55, 0.2);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    padding: 28px;
    background: #faf9f6;
    transition: transform 0.6s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-card .badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, #c9a84c, #b8942a);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 40px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    min-height: 50px;
    line-height: 1.5;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .brand {
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.product-card .category {
    font-size: 12px;
    color: #86868b;
}

.price {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.price .old-price {
    font-size: 17px;
    font-weight: 400;
    color: #86868b;
    text-decoration: line-through;
    margin-left: 12px;
}

/* ---------- Sidebar (Filters) ---------- */
.sidebar {
    background: #ffffff;
    padding: 28px;
    border-radius: 28px;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sidebar h5 {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.3px;
}

.sidebar .filter-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.sidebar hr {
    margin: 20px 0;
    border-color: rgba(0, 0, 0, 0.04);
}

.sidebar .form-control,
.sidebar .form-select {
    border-radius: 14px;
    border: 1px solid #e8e6e0;
    padding: 14px 18px;
    font-size: 15px;
    background: #faf9f6;
    transition: border 0.2s;
}

.sidebar .form-control:focus,
.sidebar .form-select:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.sidebar .form-check {
    margin-bottom: 8px;
}

.sidebar .form-check-label {
    font-size: 15px;
    color: #1a1a1a;
}

.sidebar .form-check-input:checked {
    background-color: #c9a84c;
    border-color: #c9a84c;
}

/* ---------- Product Detail Page ---------- */
.gallery-image {
    width: 100%;
    height: 520px;
    object-fit: contain;
    background: #faf9f6;
    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.thumb {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e8e6e0;
    border-radius: 16px;
    padding: 8px;
    cursor: pointer;
    transition: border 0.2s, transform 0.2s;
}

.thumb:hover {
    border-color: #c9a84c;
    transform: scale(1.04);
}

.product-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-detail {
    font-size: 44px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.price-detail .old-price {
    font-size: 24px;
    font-weight: 400;
    color: #86868b;
    text-decoration: line-through;
    margin-left: 16px;
}

.badge-stock {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.card-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card-box h3 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.spec-table td {
    padding: 16px 8px;
    border-bottom: 1px solid #f0efe8;
    font-size: 16px;
}

.spec-table td:first-child {
    font-weight: 600;
    color: #1a1a1a;
}

.spec-table td:last-child {
    color: #515154;
}

/* ---------- Related Products ---------- */
.related-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

.related-card img {
    height: 190px;
    width: 100%;
    object-fit: contain;
    padding: 16px;
    background: #faf9f6;
}

.related-card .p-2 {
    padding: 14px 16px 18px;
}

.related-card .fw-bold {
    font-weight: 700;
    font-size: 19px;
    color: #1a1a1a;
}

.related-card .text-primary {
    color: #c9a84c !important;
}

/* ---------- Footer ---------- */
footer {
    background: #0b0e1a;
    color: rgba(255, 255, 255, 0.55);
    padding: 70px 0 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

footer p {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

footer a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

footer a:hover {
    color: #c9a84c;
}

footer .social-icons a {
    font-size: 24px;
    margin: 0 12px;
    display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 48px;
    }
    .hero .lead {
        font-size: 20px;
    }
    .gallery-image {
        height: 400px;
    }
    .product-title {
        font-size: 30px;
    }
    .price-detail {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 90px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero .lead {
        font-size: 18px;
    }
    .hero .stats span {
        font-size: 14px;
        padding: 4px 16px;
    }
    .search-box input {
        font-size: 16px;
        padding: 16px 22px;
    }
    .stats-box h2 {
        font-size: 36px;
    }
    .section-title {
        font-size: 28px;
    }
    .gallery-image {
        height: 320px;
    }
    .product-title {
        font-size: 26px;
    }
    .price-detail {
        font-size: 30px;
    }
    .sidebar {
        position: relative;
        top: 0;
        margin-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    .hero .lead {
        font-size: 16px;
    }
    .stats-box h2 {
        font-size: 30px;
    }
    .product-card img {
        height: 200px;
    }
    .price {
        font-size: 22px;
    }
}
/* ---------- AOS Overrides (smoother) ---------- */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ---------- Hero Glow Pulse (GSAP will drive this, but fallback) ---------- */
@keyframes heroGlowPulse {
    0% { opacity: 0.6; transform: scale(1) translate(0, 0); }
    100% { opacity: 1; transform: scale(1.2) translate(-30px, 20px); }
}
.hero-glow {
    animation: heroGlowPulse 6s ease-in-out infinite alternate;
}

/* ---------- Floating elements (for categories) ---------- */
.float-animation {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ---------- Product Card 3D Tilt (via Tilt.js) ---------- */
.tilt-effect {
    transform-style: preserve-3d;
    transition: transform 0.2s;
}

/* ---------- Stats Count-up (GSAP) ---------- */
.count-up {
    display: inline-block;
}

/* ---------- Search Results Animation ---------- */
.search-results {
    animation: fadeInDown 0.3s ease forwards;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Smooth Page Transition ---------- */
.page-transition {
    opacity: 0;
    animation: pageFadeIn 0.8s ease forwards;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}