/* Homepage Component Styles - extracted for W3C validation */

/* ═══ Video Slider ═══ */
.vslider { position: relative; overflow: hidden; }
.vslider__track {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 4px 0 8px;
}
.vslider__track::-webkit-scrollbar { display: none; }
.vslider__item {
    flex: 0 0 calc(25% - 12px); min-width: 220px;
    scroll-snap-align: start; background: #fff;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, transform 0.3s;
}
.vslider__item:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.vslider[data-count="1"] .vslider__item { flex: 0 0 min(100%, 560px); margin: 0 auto; }
.vslider[data-count="2"] .vslider__item { flex: 0 0 calc(50% - 8px); }
.vslider[data-count="3"] .vslider__item { flex: 0 0 calc(33.333% - 11px); }
.vslider__player { position: relative; aspect-ratio: 16/9; background: #0f172a; cursor: pointer; }
.vslider__player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0f172a; }
.vslider__play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 56px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: #FF0000; border: none; border-radius: 10px;
    color: #fff; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1); z-index: 2;
}
.vslider__play:hover { transform: translate(-50%,-50%) scale(1.12); background: #e60000; box-shadow: 0 6px 24px rgba(255,0,0,0.4); }
.vslider__play svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.vslider__title {
    padding: 10px 14px; font-size: 13px; font-weight: 600;
    color: var(--navy, #1a1a2e); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.vslider__arrow {
    position: absolute; top: 50%; transform: translateY(-60%);
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50%; color: #64748b; cursor: pointer;
    opacity: 0.25; transition: all 0.3s; z-index: 5; backdrop-filter: blur(8px);
}
.vslider__arrow--left { left: 8px; }
.vslider__arrow--right { right: 8px; }
.vslider:hover .vslider__arrow { opacity: 0.85; }
.vslider__arrow:hover {
    opacity: 1 !important; background: rgba(255,255,255,0.95);
    color: var(--navy, #1a1a2e); box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-60%) scale(1.08);
}
.vslider__arrow.vslider__arrow--hidden { opacity: 0 !important; pointer-events: none; }
.vslider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.vslider__dot {
    width: 7px; height: 7px; border-radius: 50%; border: none;
    background: #d1d5db; cursor: pointer; transition: all 0.25s; padding: 0;
}
.vslider__dot--active { background: var(--gold, #c8a951); width: 20px; border-radius: 4px; }

/* ═══ Video Lightbox Modal ═══ */
.vmodal {
    position: fixed; inset: 0;
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16,1,0.3,1),
                visibility 0.3s cubic-bezier(0.16,1,0.3,1);
}
.vmodal.vmodal--active { opacity: 1; visibility: visible; }
.vmodal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.vmodal__container {
    position: relative;
    width: 90vw; max-width: 960px;
    max-height: 90dvh;
    display: flex; flex-direction: column;
    z-index: 1;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.vmodal.vmodal--active .vmodal__container { transform: scale(1) translateY(0); }
.vmodal__close {
    position: absolute; top: -48px; right: 0;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; color: #fff; cursor: pointer;
    transition: all 0.2s ease; z-index: 2;
}
.vmodal__close:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }
.vmodal__title {
    color: #fff; font-size: 15px; font-weight: 600;
    padding: 0 0 10px 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0.9;
}
.vmodal__title:empty { display: none; }
.vmodal__video-wrap {
    position: relative; border-radius: 12px;
    overflow: hidden; background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.vmodal__video {
    display: block; width: 100%;
    max-height: 80dvh; background: #000; outline: none;
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
    .vslider__item { flex: 0 0 calc(33.333% - 11px); min-width: 200px; }
    .vslider[data-count="1"] .vslider__item { flex: 0 0 min(100%, 480px); }
    .vslider[data-count="2"] .vslider__item { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 768px) {
    .vslider__item { flex: 0 0 calc(50% - 8px); min-width: 200px; }
    .vslider[data-count="1"] .vslider__item { flex: 0 0 100%; }
    .vslider__arrow { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
    .vslider__item { flex: 0 0 85%; min-width: 0; }
    .vslider[data-count="1"] .vslider__item { flex: 0 0 100%; }
}
@media (max-width: 640px) {
    .vmodal__container { width: 96vw; }
    .vmodal__close { top: -42px; right: 4px; width: 34px; height: 34px; }
    .vmodal__video-wrap { border-radius: 8px; }
    .vmodal__title { font-size: 13px; padding-bottom: 6px; }
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}
/* ═══ Sticky Topbar + Header ═══ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 101;
}
.site-header {
    top: 32px;
}
section.section, section.logo-strip, section.cta-section {
    scroll-snap-align: start;
    scroll-margin-top: 102px;
}
footer, .site-footer {
    scroll-snap-align: end;
}
.fp-slider {
    scroll-snap-align: start;
    scroll-margin-top: 0;
}
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    html { scroll-snap-type: none; }
    .topbar { position: static; }
    .site-header { top: 0; }
}

/* ══ Feed Circles ══ */
.feed-circles {
    display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
    padding:10px 0 16px; margin-bottom:4px;
}
.feed-circle {
    display:flex; flex-direction:column; align-items:center; gap:6px;
    padding:8px 12px; border:none; background:none; cursor:pointer;
    font-family:inherit; transition:all 0.3s cubic-bezier(0.16,1,0.3,1);
    border-radius:16px; min-width:80px;
}
.feed-circle:hover { background:rgba(200,169,81,0.06); transform:translateY(-2px); }
.feed-circle--active { background:rgba(200,169,81,0.1); }
.feed-circle__icon {
    width:56px; height:56px; border-radius:50%; display:flex;
    align-items:center; justify-content:center;
    background:#f8f6f0; border:2px solid #e8e0cc; color:#a88a3a;
    overflow:hidden; transition:all 0.3s cubic-bezier(0.16,1,0.3,1);
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
}
.feed-circle__icon img {
    width:32px; height:32px; object-fit:contain; border-radius:50%;
}
.feed-circle:hover .feed-circle__icon {
    border-color:#c8a951; box-shadow:0 4px 16px rgba(200,169,81,0.2);
    transform:scale(1.08);
}
.feed-circle--active .feed-circle__icon {
    border-color:#1a1a2e; background:#1a1a2e; color:#c8a951;
    box-shadow:0 4px 16px rgba(26,26,46,0.25);
}
.feed-circle--active .feed-circle__icon img { filter:brightness(1.2); }
.feed-circle--all .feed-circle__icon { background:#1a1a2e; color:#c8a951; border-color:#1a1a2e; }
.feed-circle--all:not(.feed-circle--active) .feed-circle__icon {
    background:#f4f5f7; color:#64748b; border-color:#e2e8f0;
}
.feed-circle__name {
    font-size:11px; font-weight:600; color:#64748b; text-align:center;
    max-width:120px; word-wrap:break-word; white-space:normal; line-height:1.3;
    transition:color 0.2s;
}
.feed-circle--active .feed-circle__name { color:#1a1a2e; font-weight:700; }
.feed-circle__count {
    font-size:10px; font-weight:700; color:#a0aec0; background:#f4f5f7;
    padding:1px 8px; border-radius:10px; transition:all 0.2s;
}
.feed-circle--active .feed-circle__count { color:#fff; background:#c8a951; }

/* ══ Feed Drawer ══ */
.feed-drawer {
    max-height:0; overflow:hidden;
    transition:max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
    padding:0; display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
}
.feed-drawer.open {
    max-height:280px; overflow-y:auto; padding:12px 0 16px;
    border-top:1px solid rgba(200,169,81,0.15);
    border-bottom:1px solid rgba(200,169,81,0.15);
}
.feed-drawer .cat-chip {
    animation:chipSlideIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
.feed-drawer .cat-chip:nth-child(1) { animation-delay:0s; }
.feed-drawer .cat-chip:nth-child(2) { animation-delay:0.03s; }
.feed-drawer .cat-chip:nth-child(3) { animation-delay:0.06s; }
.feed-drawer .cat-chip:nth-child(4) { animation-delay:0.09s; }
.feed-drawer .cat-chip:nth-child(5) { animation-delay:0.12s; }
.feed-drawer .cat-chip:nth-child(6) { animation-delay:0.15s; }
.feed-drawer .cat-chip:nth-child(7) { animation-delay:0.18s; }
.feed-drawer .cat-chip:nth-child(8) { animation-delay:0.21s; }
.feed-drawer .cat-chip:nth-child(9) { animation-delay:0.24s; }
.feed-drawer .cat-chip:nth-child(10) { animation-delay:0.27s; }
.feed-drawer .cat-chip:nth-child(n+11) { animation-delay:0.3s; }
.cat-chip--more {
    background:rgba(200,169,81,0.1) !important; color:#7c6a2f !important;
    border:1.5px dashed #c8a951 !important; font-weight:700 !important;
}
.cat-chip--more:hover { background:rgba(200,169,81,0.2) !important; }
@keyframes chipSlideIn {
    from { opacity:0; transform:translateY(-8px) scale(0.95); }
    to { opacity:1; transform:translateY(0) scale(1); }
}

.cat-chips-wrap {
    position: relative;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 10px 10px 20px 10px;
    margin-left: -10px;
    margin-right: -10px;
    margin-top: -10px;
}
.cat-chips-wrap:not(.expanded) {
    max-height: 72px;
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.cat-chips-wrap.expanded {
    max-height: 600px;
    mask-image: none;
    -webkit-mask-image: none;
}
.cat-chips-wrap.expanded .cat-chip {
    animation: chipFlipIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.cat-chips-wrap.expanded .cat-chip:nth-child(1)  { animation-delay: 0s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(2)  { animation-delay: 0.04s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(3)  { animation-delay: 0.08s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(4)  { animation-delay: 0.12s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(5)  { animation-delay: 0.16s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(6)  { animation-delay: 0.20s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(7)  { animation-delay: 0.24s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(8)  { animation-delay: 0.28s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(9)  { animation-delay: 0.32s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(10) { animation-delay: 0.36s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(11) { animation-delay: 0.40s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(12) { animation-delay: 0.44s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(13) { animation-delay: 0.48s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(14) { animation-delay: 0.52s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(15) { animation-delay: 0.56s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(16) { animation-delay: 0.60s; }
.cat-chips-wrap.expanded .cat-chip:nth-child(17) { animation-delay: 0.64s; }

@keyframes chipFlipIn {
    0%   { opacity: 0; transform: perspective(600px) rotateX(-70deg) translateY(20px) scale(0.85); filter: blur(2px); }
    50%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: perspective(600px) rotateX(0) translateY(0) scale(1); filter: blur(0); }
}
.cat-chips-wrap {
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-chips-wrap.no-overflow {
    max-height: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.chips-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 14px auto 0;
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-dark, #a88a30);
    background: linear-gradient(135deg, rgba(200,169,81,0.08), rgba(200,169,81,0.04));
    border: 1.5px solid rgba(200,169,81,0.25);
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}
.chips-toggle:hover {
    background: linear-gradient(135deg, rgba(200,169,81,0.15), rgba(200,169,81,0.08));
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200,169,81,0.15);
}
.chips-toggle__icon {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-chips-wrap.expanded + .chips-toggle .chips-toggle__icon,
.chips-toggle.active .chips-toggle__icon {
    transform: rotate(180deg);
}
.cat-chips-wrap.no-overflow + .chips-toggle { display: none; }

.cat-chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; perspective:1000px; }
.cat-chip {
    display:inline-flex; align-items:center; gap:6px;
    padding:10px 20px; border-radius:100px; font-size:13px; font-weight:600;
    color:#555; background:#fff; border:1.5px solid #e4e4e8;
    text-decoration:none; cursor:pointer; white-space:nowrap;
    font-family:inherit;
    transform-style:preserve-3d;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.45s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s ease,
                color 0.3s ease,
                background 0.4s ease;
    animation:chipSlideIn 1.2s cubic-bezier(0.16,1,0.3,1) both;
    position:relative;
    overflow:hidden;
    z-index:0;
    isolation:isolate;
}

/* ─── Shine sweep layer ─── */
.cat-chip::before {
    content:'';
    position:absolute;
    top:-50%; left:-75%;
    width:50%; height:200%;
    background:linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.5) 45%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0.5) 55%,
        transparent 60%
    );
    transform:translateX(-100%) skewX(-15deg);
    transition:none;
    pointer-events:none;
    z-index:1;
}
.cat-chip:hover::before {
    transform:translateX(350%) skewX(-15deg);
    transition:transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

/* ─── Glow ring (behind chip) ─── */
.cat-chip::after {
    content:'';
    position:absolute;
    inset:-3px;
    border-radius:100px;
    background:conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(200,169,81,0.3) 25%,
        transparent 50%,
        rgba(200,169,81,0.2) 75%,
        transparent 100%
    );
    opacity:0;
    z-index:-1;
    transition:opacity 0.4s ease;
    filter:blur(4px);
}
.cat-chip:hover::after { opacity:1; }

.cat-chip span {
    font-size:11px; font-weight:700; color:#aaa; background:#f3f3f5;
    border-radius:100px; padding:2px 8px;
    transition:all 0.3s cubic-bezier(0.16,1,0.3,1);
    position:relative; z-index:2;
}

/* ═══ 3D HOVER — tilt from JS + fallback CSS ═══ */
.cat-chip:hover {
    border-color:var(--gold);
    color:var(--navy);
    box-shadow:
        0 14px 28px -6px rgba(200,169,81,0.2),
        0 6px 12px -4px rgba(26,26,46,0.08),
        0 0 0 1px rgba(200,169,81,0.12);
    background:linear-gradient(160deg, #fff 30%, rgba(200,169,81,0.05) 100%);
}
/* CSS-only fallback tilt (JS overrides via inline style) */
.cat-chip:hover:not([style*="transform"]) {
    transform:translateY(-5px) translateZ(16px) rotateX(5deg) rotateY(-3deg) scale(1.05);
}
.cat-chip:hover span {
    background:var(--navy); color:var(--gold);
    box-shadow:0 2px 8px rgba(26,26,46,0.25);
    transform:translateZ(4px);
}

/* Press */
.cat-chip:active {
    transform:translateY(1px) scale(0.96) !important;
    box-shadow:0 2px 4px rgba(0,0,0,0.1) !important;
    transition-duration:0.08s;
}

/* ═══ ACTIVE STATE — flat solid ═══ */
.cat-chip--active {
    background:var(--navy) !important;
    color:var(--gold) !important;
    border-color:var(--navy) !important;
    transform:translateY(0) scale(1);
    box-shadow:0 2px 8px rgba(26,26,46,0.25) !important;
}
.cat-chip--active::before,
.cat-chip--active::after {
    display:none !important;
}
.cat-chip--active span {
    background:rgba(200,169,81,0.15) !important;
    color:var(--gold) !important;
}
.cat-chip--active:hover {
    transform:translateY(-2px) scale(1.03) !important;
    box-shadow:0 6px 16px rgba(26,26,46,0.35) !important;
}

/* ═══ Select — no animation, smooth CSS transition handles it ═══ */
.cat-chip--pop { z-index:10; }

/* Active shimmer sweep */
@keyframes activeShimmer {
    0%, 100% { transform:translateX(-100%) skewX(-15deg); }
    50%      { transform:translateX(350%) skewX(-15deg); }
}

/* Rotating glow ring */
@keyframes glowSpin {
    from { transform:rotate(0deg); }
    to   { transform:rotate(360deg); }
}

@keyframes chipSlideIn {
    from { opacity:0; transform:translateY(-30px) scale(0.95); filter:blur(4px); }
    60% { opacity:0.8; transform:translateY(4px) scale(1); filter:blur(0); }
    to { opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
}
.cat-chip:nth-child(1){animation-delay:0s}
.cat-chip:nth-child(2){animation-delay:.08s}
.cat-chip:nth-child(3){animation-delay:.16s}
.cat-chip:nth-child(4){animation-delay:.24s}
.cat-chip:nth-child(5){animation-delay:.32s}
.cat-chip:nth-child(6){animation-delay:.4s}
.cat-chip:nth-child(7){animation-delay:.48s}
.cat-chip:nth-child(8){animation-delay:.56s}
.cat-chip:nth-child(9){animation-delay:.64s}
.cat-chip:nth-child(10){animation-delay:.72s}
.cat-chip:nth-child(11){animation-delay:.8s}
.cat-chip:nth-child(12){animation-delay:.88s}
.cat-chip:nth-child(13){animation-delay:.96s}
.cat-chip:nth-child(14){animation-delay:1.04s}
.cat-chip:nth-child(15){animation-delay:1.12s}
.cat-chip:nth-child(16){animation-delay:1.2s}
.cat-chip:nth-child(17){animation-delay:1.28s}

.sub-chips {
    display:flex; flex-wrap:wrap; gap:6px; justify-content:center;
    margin-bottom:28px; min-height:0;
    overflow:hidden; transition:all 0.6s ease;
}
.sub-chips:not(:empty) {
    padding-top:14px; margin-top:4px;
    border-top:1.5px solid rgba(200,169,81,0.35);
}
.sub-chips:empty { margin-bottom:16px; }
.sub-chip {
    display:inline-flex; align-items:center; gap:5px;
    padding:6px 14px; border-radius:100px; font-size:12px; font-weight:600;
    color:#777; background:#f9f9fb; border:1.5px solid #ececef;
    cursor:pointer; transition:all 0.25s; font-family:inherit;
}
.sub-chip span { font-size:10px; color:#bbb; }
.sub-chip:hover { border-color:#c8a951; color:#1a1a2e; }
.sub-chip--active { background:#c8a951; color:#fff; border-color:#c8a951; }
.sub-chip--active span { color:rgba(255,255,255,0.7); }

#product-grid { transition:opacity 0.25s; }
#product-grid.loading { opacity:0.3; pointer-events:none; }

@media (width < 768px) {
    .feed-circles { gap:10px; }
    .feed-circle { min-width:64px; padding:6px 8px; }
    .feed-circle__icon { width:46px; height:46px; }
    .feed-circle__icon img { width:24px; height:24px; }
    .feed-circle__name { font-size:10px; max-width:70px; }
    .feed-circle__count { font-size:9px; padding:1px 6px; }
    .feed-drawer { gap:6px; }
    .cat-chips { gap:6px; }
    .cat-chip { padding:7px 14px; font-size:12px; }
    .sub-chip { padding:5px 11px; font-size:11px; }
}
