/* ==========================================
   Global Settings & Design Tokens
   ========================================== */
:root {
    --bg-white: #ffffff;
    --bg-light: #f5f5f5; /* For New Arrivals / Social */
    --bg-dark: #111111; /* For Footer */
    --bg-darker: #1a1a1a; /* For Categories */
    
    --text-dark: #111111;
    --text-light: #ffffff;
    --text-gray: #666666;
    
    --font-heading: 'Anton', 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }

.section-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ==========================================
   00_Header
   ========================================== */
#site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 60px; color: #ffffff; transition: all 0.3s ease;
}
.logo a { font-family: var(--font-body); font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.gnb ul { display: flex; gap: 40px; }
.gnb a { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px;}

/* ==========================================
   01_Hero
   ========================================== */
#hero {
    height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #ffffff; overflow: hidden;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; filter: brightness(0.7); }
.hero-bg .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }

.hero-content { display: flex; flex-direction: column; align-items: center; z-index: 2;}
.hero-content h1 {
    font-family: var(--font-heading); font-size: clamp(80px, 12vw, 160px);
    line-height: 0.9; letter-spacing: -2px; margin-bottom: 30px;
}
.hero-content p { font-size: 18px; font-weight: 400; margin-bottom: 40px; line-height: 1.5; }

.btn-hero {
    background: transparent; color: #ffffff;
    border: 2px solid #ffffff; padding: 16px 36px; border-radius: 6px;
    font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-hero:hover { background: #ffffff; color: #000; }

.hero-scroll-icon { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.8; z-index: 5; }
.hero-scroll-icon .line { width: 1px; height: 30px; background-color: #fff; }
.hero-ratio { position: absolute; bottom: 40px; right: 60px; font-size: 14px; opacity: 0.8; z-index: 5; }

/* ==========================================
   02_New Arrivals (3D Carousel)
   ========================================== */
#new-arrivals { 
    background-color: #f2f2f2; 
    background-image: radial-gradient(circle at 50% 55%, #ffffff 0%, #f2f2f2 60%);
    padding: 80px 0; 
    overflow: hidden; 
    position: relative;
}
#new-arrivals::before {
    content: "STASH";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 30vw;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0,0,0,0.04);
    letter-spacing: -2vw;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}
.section-header-clean { text-align: center; margin-bottom: 50px; position: relative; z-index: 10; }
.section-header-clean h2 { font-family: var(--font-body); font-weight: 800; font-size: 48px; letter-spacing: -1px; margin-bottom: 10px; }
.section-header-clean p { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; }
.header-line { width: 250px; height: 4px; background-color: #111; margin: 0 auto; }

.product-carousel-scene {
    width: 100%;
    height: 480px;
    margin: 0 auto;
    perspective: 1200px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}
.product-carousel {
    width: 320px;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}
.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}
.carousel-item.active {
    transform: translateX(0) translateZ(0) rotateY(0deg);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}
.carousel-item.prev {
    transform: translateX(-110%) translateZ(-150px) rotateY(25deg);
    opacity: 0.5;
    z-index: 2;
}
.carousel-item.next {
    transform: translateX(110%) translateZ(-150px) rotateY(-25deg);
    opacity: 0.5;
    z-index: 2;
}
.carousel-item.back {
    transform: translateX(0) translateZ(-300px) rotateY(0deg);
    opacity: 0;
    z-index: 1;
}

.product-card { 
    background: #ffffff; border-radius: 12px; padding: 16px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
    width: 100%; height: 100%; display: flex; flex-direction: column;
}
.product-card .img-box { position: relative; background: #f0f0f0; border-radius: 8px; overflow: hidden; flex: 1; margin-bottom: 16px; }
.product-card .img-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.product-card .img-box .img-hover { opacity: 0; }
.product-card:hover .img-box .img-main { opacity: 0; }
.product-card:hover .img-box .img-hover { opacity: 1; }

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    position: relative;
    z-index: 20;
}
.carousel-controls button {
    background: #fff; color: #111; border: 1px solid #ddd;
    width: 48px; height: 48px; border-radius: 50%;
    font-size: 16px; cursor: pointer; transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.carousel-controls button:hover {
    background: #111; color: #fff; border-color: #111;
}

.product-info { }
.product-info h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.product-info .color-text { font-size: 13px; color: var(--text-gray); margin-bottom: 12px; }

.sizes { display: flex; gap: 12px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.sizes span { cursor: pointer; padding-bottom: 2px; }
.sizes span.active { border-bottom: 2px solid #111; }

.price { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

.action-buttons { display: flex; gap: 10px; }
.add-to-bag { flex: 1; background: #111; color: #fff; border: none; border-radius: 6px; font-weight: 600; font-size: 13px; cursor: pointer; transition: 0.2s; }
.add-to-bag:hover { background: #333; }
.wishlist { width: 44px; height: 44px; background: #fff; border: 1px solid #ddd; border-radius: 6px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s; }
.wishlist i { font-size: 18px; color: #111; }
.wishlist:hover { border-color: #111; }

/* ==========================================
   02.5_Lookbook Split
   ========================================== */
#lookbook-split { padding: 0; background-color: var(--bg-white); }
.split-wrapper { display: flex; align-items: stretch; min-height: 90vh; }
.split-image { flex: 1; width: 50%; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-content { flex: 1; width: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 40px; }
.split-content h4 { font-family: var(--font-body); font-weight: 800; font-size: 36px; letter-spacing: -1px; margin-bottom: 10px; color: var(--text-dark); }
.split-content h2 { font-family: var(--font-body); font-weight: 800; font-size: 64px; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; color: var(--text-dark); }
.split-content p { font-size: 15px; color: var(--text-dark); line-height: 1.6; max-width: 480px; margin-bottom: 40px; font-weight: 500; }
.btn-pill { display: inline-block; background-color: #000; color: #fff; padding: 16px 48px; border-radius: 50px; font-weight: 600; font-size: 13px; letter-spacing: 1px; transition: background-color 0.3s; }
.btn-pill:hover { background-color: #333; }

/* ==========================================
   02.7_Video Banner
   ========================================== */
#video-banner { width: 100%; background-color: var(--bg-darker); }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 4; overflow: hidden; background-color: #000; }
.parallax-inner { position: absolute; top: -50%; left: 0; width: 100%; height: 200%; }
.parallax-inner iframe { 
    position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; 
    transform: translate(-50%, -50%); pointer-events: none; border: none; 
    filter: brightness(0.8) grayscale(0.2) contrast(1.1);
    opacity: 0;
    animation: fadeInVideo 2s ease 1s forwards;
}
@keyframes fadeInVideo {
    to { opacity: 1; }
}

/* ==========================================
   03_Categories
   ========================================== */
#categories { background-color: var(--bg-darker); padding: 80px 0; color: #fff; }
.category-title { font-family: var(--font-heading); text-align: center; font-size: 64px; letter-spacing: 1px; margin-bottom: 40px; }

.category-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { background-color: #222222; border: 1px solid #333; display: flex; flex-direction: column; }
.cat-img { height: 400px; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; filter: brightness(0.85); transition: 0.4s; }
.cat-card:hover .cat-img img { filter: brightness(1); transform: scale(1.02); }

.cat-text { text-align: center; padding: 40px 20px; flex: 1; }
.cat-text h3 { font-family: var(--font-heading); font-size: 56px; letter-spacing: 1px; line-height: 1; margin-bottom: 10px; }
.cat-text p { font-size: 15px; font-weight: 600; color: #ddd; letter-spacing: 0.5px; }

.cat-btn { display: block; border-top: 1px solid #333; padding: 24px; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: 1px; transition: 0.3s; }
.cat-btn:hover { background-color: #333; }
.cat-btn i { margin-left: 8px; }

/* ==========================================
   04_Social Proof
   ========================================== */
#social { background-color: #f2f2f2; padding: 80px 0; }
.social-header-clean { text-align: center; margin-bottom: 40px; }
.social-header-clean h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.social-header-clean p { font-size: 15px; color: var(--text-gray); }

.social-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.masonry-col { display: flex; flex-direction: column; gap: 24px; }

.social-card { background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.social-img-wrap { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.social-img-wrap img { width: 100%; display: block; }
.shop-pill { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.9); padding: 8px 16px; border-radius: 30px; font-size: 12px; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; transition: 0.3s; }
.social-img-wrap:hover .shop-pill { background: #111; color: #fff; }

.social-caption { font-size: 13px; color: #444; line-height: 1.5; }

.social-footer-btn { text-align: center; margin-top: 20px; }
.social-footer-btn a { display: inline-block; border-bottom: 1px solid #111; padding-bottom: 4px; font-size: 14px; font-weight: 600; }

/* ==========================================
   05_Footer
   ========================================== */
#footer { background-color: var(--bg-dark); color: #fff; padding: 80px 0 40px; }

.footer-top { display: flex; justify-content: space-between; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 40px; }
.footer-brand h2 { font-family: var(--font-body); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -1px; margin-bottom: 15px; }
.footer-brand p { font-size: 13px; color: #aaa; letter-spacing: 1px; line-height: 1.6; }

.footer-subscribe h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: 1px; }
.footer-subscribe p { font-size: 14px; color: #aaa; margin-bottom: 20px; line-height: 1.5; }
.subscribe-form { display: flex; gap: 10px; }
.subscribe-form input { flex: 1; min-width: 250px; background: transparent; border: 1px solid #444; border-radius: 4px; padding: 14px 20px; color: #fff; font-family: var(--font-body); outline: none; }
.subscribe-form button { background: #fff; color: #000; border: none; border-radius: 4px; padding: 0 24px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.subscribe-form button:hover { background: #ddd; }

.footer-middle { display: flex; gap: 120px; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 14px; color: #888; font-weight: 500; margin-bottom: 24px; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 16px; }
.footer-col a { font-size: 15px; font-weight: 400; color: #fff; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 0.7; }

.footer-bottom { text-align: center; }
.bottom-logo { font-family: var(--font-body); font-weight: 800; font-size: 24px; margin-bottom: 15px; }
.bottom-desc { font-size: 12px; color: #666; line-height: 1.6; max-width: 600px; margin: 0 auto 30px; }

.social-icons { display: flex; justify-content: center; gap: 24px; font-size: 20px; color: #888; margin-bottom: 40px; }
.social-icons a:hover { color: #fff; }

.copyright { font-size: 11px; color: #666; display: flex; flex-direction: column; gap: 8px; }
.copyright a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
    .product-carousel-scene { height: 440px; }
    .product-carousel { width: 280px; }
    .carousel-item.prev { transform: translateX(-90%) translateZ(-150px) rotateY(20deg); }
    .carousel-item.next { transform: translateX(90%) translateZ(-150px) rotateY(-20deg); }
    .category-cards { grid-template-columns: repeat(1, 1fr); }
    .split-wrapper { flex-direction: column; min-height: auto; }
    .split-image { width: 100%; height: 60vh; }
    .split-content { width: 100%; padding: 80px 20px; }
    .video-wrapper { aspect-ratio: 16 / 6; }
    .social-masonry { grid-template-columns: repeat(2, 1fr); }
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-middle { gap: 60px; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    #site-header { padding: 20px; }
    .gnb { display: none; }
    .hero-content h1 { font-size: 60px; }
    .split-content h2 { font-size: 48px; }
    .product-carousel-scene { height: 380px; }
    .product-carousel { width: 240px; }
    .carousel-item.prev { transform: translateX(-60%) translateZ(-200px) rotateY(15deg); }
    .carousel-item.next { transform: translateX(60%) translateZ(-200px) rotateY(-15deg); }
    .social-masonry { grid-template-columns: repeat(1, 1fr); }
    .footer-middle { flex-direction: column; gap: 40px; }
    .subscribe-form { flex-direction: column; }
    .subscribe-form button { padding: 14px; }
}

/* ==========================================
   Custom Cursor
   ========================================== */
@media (pointer: fine) {
    body, a, button, input { cursor: none !important; }
    #cursor {
        position: fixed; top: 0; left: 0; width: 20px; height: 20px;
        background-color: var(--text-dark); mix-blend-mode: difference; border-radius: 50%;
        pointer-events: none; z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
        will-change: width, height, transform;
    }
    #cursor.hovered { width: 60px; height: 60px; background-color: #ffffff; mix-blend-mode: difference; }
}
