/* ============================================================
   NANOTREND - Home Page Styles
   ============================================================ */

/* ---------- Hero ---------- */
.hero { position: relative; height: min(92vh, 900px); min-height: 560px; overflow: hidden; background: #0a0a0c; }
.hero-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #0a0a0c; }
.hero-video {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.1s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-bg { position: absolute; inset: -8%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.35) 45%, var(--bg-dark) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    max-width: 900px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}
.hero-title {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.05;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
    max-width: 12ch;
}
.hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 46ch;
    margin: 1.3rem 0 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; z-index: 5; }
.hero-dot {
    width: 26px; height: 3px; border: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background var(--transition), width var(--transition);
}
.hero-dot.active { background: var(--gold); width: 42px; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(13, 13, 15, 0.4);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.hero-arrow:hover { background: var(--gold-gradient); color: #141414; border-color: var(--gold); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }

.hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Marquee ---------- */
.lux-marquee {
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: linear-gradient(90deg, var(--bg-dark-2), rgba(212, 175, 55, 0.05), var(--bg-dark-2));
    overflow: hidden;
    padding: 0.95rem 0;
    display: flex;
}
.marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    flex: 0 0 auto;
    padding-right: 0.2rem;
}
.marquee-track span {
    font-size: 0.8rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 1.5rem;
}
.marquee-track i {
    color: var(--gold);
    font-size: 0.72rem;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
}

/* ---------- Section variants ---------- */
.bg-elevated { background: var(--bg-dark-2); }

/* ---------- Featured Collection - Enhanced ---------- */
.featured-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.featured-intro .section-head { margin-bottom: 0; text-align: left; }
.featured-intro .section-sub { max-width: 36ch; margin-bottom: 0; }

/* ---------- Split category cards ---------- */
.split-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    height: 420px;
    isolation: isolate;
}
.split-card .parallax-wrap { position: absolute; inset: -8%; }
.split-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.split-card:hover img { transform: scale(1.06); }
.split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(10deg, rgba(10, 10, 12, 0.88) 0%, rgba(10, 10, 12, 0.25) 55%, transparent 100%);
    z-index: 1;
    transition: background 0.5s ease;
}
.split-card:hover .split-overlay {
    background: linear-gradient(10deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.35) 55%, transparent 100%);
}
.split-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-card:hover .split-content { transform: translateY(-6px); }
.split-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
}
.split-content h3 { color: #fff; font-size: 1.8rem; font-weight: 600; margin: 0.5rem 0 1.2rem; }
.split-content .btn { width: fit-content; }

/* ---------- Promo banner ---------- */
.promo-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    isolation: isolate;
}
.promo-card .parallax-wrap { position: absolute; inset: -10%; }
.promo-card img { width: 100%; height: 100%; object-fit: cover; }
.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.55) 50%, rgba(10, 10, 12, 0.15) 100%);
    z-index: 1;
}
.promo-content { position: relative; z-index: 2; padding: 3rem; max-width: 560px; }
.promo-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; color: #fff; margin: 0.6rem 0 0.9rem; }
.promo-content p { color: var(--text-secondary); font-weight: 300; margin-bottom: 1.6rem; }

/* ---------- Why section - Enhanced ---------- */
.why-card {
    text-align: center;
    padding: 2.5rem 1.6rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--bg-card);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.why-card:hover { transform: translateY(-8px); border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.15); }
.why-card:hover::before { opacity: 1; }
.why-card i {
    font-size: 2.2rem;
    color: var(--gold);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
    width: 80px; height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-card:hover i { transform: scale(1.1); }
.why-card h5 { font-weight: 600; margin-bottom: 0.6rem; font-size: 1.05rem; position: relative; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; margin: 0; position: relative; line-height: 1.65; }

/* ---------- Reviews - Enhanced with quote ---------- */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.review-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.4rem;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: rgba(212, 175, 55, 0.15);
    pointer-events: none;
}
.review-card:hover { border-color: rgba(212, 175, 55, 0.35); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2); }
.rating-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }
.rating-stars .empty { opacity: 0.25; }
.review-text { color: var(--text-secondary); font-weight: 300; font-size: 0.95rem; line-height: 1.75; margin: 0.9rem 0 1.2rem; flex-grow: 1; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 0.8rem; border-top: 1px solid var(--border-soft); padding-top: 1rem; }
.review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #141414;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-author strong { font-size: 0.88rem; }
.verified-badge { color: var(--success); font-size: 0.72rem; font-weight: 500; }

/* ---------- Instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.insta-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.insta-item:hover img { transform: scale(1.1); }
.insta-hover {
    position: absolute;
    inset: 0;
    background: rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition);
}
.insta-item:hover .insta-hover { opacity: 1; }

/* ---------- Stats - Enhanced ---------- */
.stats-bar {
    background: var(--bg-dark);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 40%, rgba(212, 175, 55, 0.04) 100%);
}
.stat-item { position: relative; }
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-divider {
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero { height: 80vh; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-arrow { display: none; }
    .split-card { height: 360px; }
    .featured-intro { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
@media (max-width: 575.98px) {
    .split-card { height: 300px; }
    .promo-card { min-height: 320px; }
    .promo-content { padding: 1.6rem; }
    .stats-bar { padding: 2.5rem 0; }
    .stat-num { font-size: 2.2rem; }
    .hero-scroll { display: none; }
    .insta-grid { gap: 0.5rem; }
    .why-card { padding: 2rem 1.2rem; }
    .review-card { padding: 1.5rem; }
}

/* ============================================================
   NANOTREND - Home section differentiation & 3D effects
   ============================================================ */

/* ---------- Featured cards (gold-framed luxury) ---------- */
.featured-card { background: linear-gradient(180deg, #17171c, #101014); border: 1px solid rgba(212, 175, 55, 0.25); transform-style: preserve-3d; }
.featured-card:hover { border-color: var(--gold); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.25); }
.featured-card .product-media { aspect-ratio: 1; }
.featured-card .product-title { font-size: 1.15rem; }
.featured-card .product-cat { color: var(--gold); letter-spacing: 0.26em; }
.tilt-glare {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}
.product-card:hover .tilt-glare { opacity: 1; }

/* ---------- Best sellers (ranked) ---------- */
.best-card { border-color: var(--border-soft); }
.best-rank {
    position: absolute;
    top: 34px;
    left: 12px;
    z-index: 3;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.9);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
    line-height: 1;
}

/* ---------- New arrivals slick rail ---------- */
.section-head-inline { margin-bottom: 2.2rem; }
.rail-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
    margin: 0 -0.5rem;
    padding: 0 0.5rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #3a3a42 transparent;
    -webkit-overflow-scrolling: touch;
}
.rail-scroll::-webkit-scrollbar { height: 6px; }
.rail-scroll::-webkit-scrollbar-thumb { background: #3a3a42; border-radius: 4px; }
.rail-scroll::-webkit-scrollbar-track { background: transparent; }
.rail-scroll > .col-6 {
    flex: 0 0 auto;
    width: 58%;
    scroll-snap-align: start;
}
.rail-scroll > .col-6 .product-card { width: 100%; }
@media (min-width: 576px) {
    .rail-scroll > .col-6 { width: 32%; }
}
@media (min-width: 992px) {
    .rail-scroll > .col-6 { width: 22%; }
}

/* ---------- Category strip ---------- */
.category-strip {
    padding: 1.4rem 0;
    background: linear-gradient(90deg, var(--bg-dark), var(--bg-dark-2), var(--bg-dark));
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.category-strip-track {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 0.4rem 0.1rem 0.9rem;
    scrollbar-width: none;
}
.category-strip-track::-webkit-scrollbar { display: none; }
.category-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: 40px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--bg-card);
    transition: all var(--transition);
}
.category-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.category-chip:hover {
    color: #141414;
    background: var(--gold-gradient);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
