/* sora.market — Artisan Marketplace */
/* Palette: #F8F6F2 Shell Cream | #EDE8E0 Sand Warm | #E8DFD3 Dune | #FFFFFF White | #2A2A2A Deep Ink | #6B6260 Driftwood | #7BA3B8 Ocean Blue | #D4A882 Shell Gold */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #F8F6F2;
    color: #6B6260;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Cursor Ripple ===== */
#cursor-ripple {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #D4A882;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#cursor-ripple.active {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== Typography ===== */
.section-heading {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: #2A2A2A;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.section-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #6B6260;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ===== Hero ===== */
.hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    min-height: 80vh;
}

.hero-left {
    flex: 2;
    min-width: 260px;
}

.hero-brand {
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    color: #2A2A2A;
    letter-spacing: 0.1em;
    line-height: 1.12;
    margin-bottom: 0.5rem;
}

.hero-title-underline {
    width: 60px;
    height: 2px;
    background: #D4A882;
    margin-top: 0.25rem;
    transition: width 0.6s ease;
}

.hero:hover .hero-title-underline {
    width: 120px;
}

.hero-tagline {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.15rem;
    color: #7BA3B8;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.hero-sub {
    font-size: 0.95rem;
    color: #6B6260;
    max-width: 380px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7BA3B8;
    color: #FFFFFF;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: #6993a8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 163, 184, 0.3);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-btn:hover .cta-arrow {
    transform: translateX(3px);
}

.hero-right {
    flex: 3;
    min-width: 300px;
}

.hero-product {
    background: #FFFFFF;
    border: 1px solid #D4A882;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212, 168, 130, 0.15);
}

.hero-product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #D4A882;
    color: #FFFFFF;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    z-index: 2;
}

.hero-product-image {
    width: 100%;
    background: #E8DFD3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-product-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-product-info {
    padding: 1.5rem 2rem;
}

.hp-name {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #2A2A2A;
    margin-bottom: 0.25rem;
}

.hp-artisan {
    font-size: 0.85rem;
    color: #6B6260;
    margin-bottom: 0.75rem;
}

.hp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hp-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #7BA3B8;
}

.hp-origin {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: #D4A882;
    letter-spacing: 0.05em;
}

/* ===== Collection ===== */
.collection {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.lookbook-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.lookbook-item {
    background: #FFFFFF;
    border: 1px solid #D4A882;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lookbook-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 130, 0.12);
}

.lookbook-featured {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.lookbook-img {
    width: 100%;
    background: #E8DFD3;
    overflow: hidden;
}

.lookbook-img svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.lookbook-item:hover .lookbook-img svg {
    transform: scale(1.03);
}

.lookbook-img-sm {
    max-height: 140px;
}

.lookbook-img-sm svg {
    height: 140px;
    object-fit: cover;
}

.lookbook-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lookbook-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.lookbook-card .product-name,
.lookbook-card .product-artisan,
.lookbook-card .product-meta {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.lookbook-card .product-name {
    padding-top: 1.25rem;
}

.lookbook-card .product-meta {
    padding-bottom: 1.25rem;
}

.product-name {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #2A2A2A;
    margin-bottom: 0.25rem;
}

.lookbook-featured .product-name {
    font-size: 1.5rem;
}

.product-artisan {
    font-size: 0.85rem;
    color: #6B6260;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.88rem;
    color: #6B6260;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #7BA3B8;
}

.view-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #7BA3B8;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.view-link:hover {
    color: #D4A882;
}

.view-link .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.view-link:hover .arrow {
    transform: translateX(3px);
}

/* ===== Artisans ===== */
.artisans {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.artisan-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.artisan-scroll::-webkit-scrollbar {
    display: none;
}

.artisan-card {
    background: #EDE8E0;
    border: 1px solid #D4A882;
    border-radius: 6px;
    min-width: 220px;
    max-width: 220px;
    padding: 1.75rem 1.5rem;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.artisan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 168, 130, 0.12);
}

.artisan-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid #D4A882;
}

.artisan-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.artisan-name {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #2A2A2A;
    margin-bottom: 0.25rem;
}

.artisan-craft {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #7BA3B8;
    display: block;
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
}

.artisan-location {
    font-size: 0.75rem;
    color: #D4A882;
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.artisan-bio {
    font-size: 0.8rem;
    color: #6B6260;
    line-height: 1.6;
}

/* Scroll Indicators */
.scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8DFD3;
    border: 1px solid #D4A882;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.scroll-dot.active {
    background: #D4A882;
    transform: scale(1.15);
}

.scroll-dot:hover {
    background: #D4A882;
}

/* ===== Categories ===== */
.categories {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.category-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6260;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-right: 1px solid #D4A882;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
}

.category-link.last {
    border-right: none;
}

.category-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #7BA3B8;
    transition: width 0.3s ease, left 0.3s ease;
}

.category-link:hover::after {
    width: 60%;
    left: 20%;
}

.category-link:hover {
    color: #7BA3B8;
}

/* ===== Story Quote ===== */
.story {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.story-inner {
    background: #EDE8E0;
    border: 1px solid #D4A882;
    border-radius: 6px;
    padding: 3.5rem 3rem;
    text-align: center;
    position: relative;
}

.story-quote {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.3rem;
    color: #2A2A2A;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.quote-mark {
    color: #D4A882;
    font-size: 2rem;
    vertical-align: middle;
    line-height: 0;
}

.story-attr {
    margin-top: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #7BA3B8;
    letter-spacing: 0.08em;
}

/* ===== Footer ===== */
.footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid #D4A882;
}

.footer-inner {
    text-align: center;
}

.footer-mark {
    display: block;
    font-size: 1.5rem;
    color: #D4A882;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    transition: transform 0.3s ease;
}

.footer-mark:hover {
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #7BA3B8;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #D4A882;
}

.footer-copy {
    font-size: 0.75rem;
    color: #6B6260;
}

/* ===== Fade-In Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Keyframe Animations ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-product-badge {
    animation: gentlePulse 3s ease-in-out infinite;
}

.hero.visible .hero-left {
    animation: fadeInUp 0.8s ease forwards;
}

.hero.visible .hero-right {
    animation: slideInFromRight 0.9s ease 0.2s forwards;
}

/* Staggered card entrance */
.lookbook-item:nth-child(1) { transition-delay: 0s; }
.lookbook-item:nth-child(2) { transition-delay: 0.1s; }
.lookbook-item:nth-child(3) { transition-delay: 0.2s; }

.artisan-card:nth-child(1) { transition-delay: 0s; }
.artisan-card:nth-child(2) { transition-delay: 0.08s; }
.artisan-card:nth-child(3) { transition-delay: 0.16s; }
.artisan-card:nth-child(4) { transition-delay: 0.24s; }
.artisan-card:nth-child(5) { transition-delay: 0.32s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 3rem 1.5rem 2rem;
        min-height: auto;
    }

    .hero-left {
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title-underline {
        margin-left: auto;
        margin-right: auto;
    }

    .lookbook-grid {
        grid-template-columns: 1fr;
    }

    .lookbook-featured {
        grid-row: auto;
    }

    .story-inner {
        padding: 2.5rem 1.5rem;
    }

    .story-quote {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .category-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .artisan-card {
        min-width: 180px;
        max-width: 180px;
        padding: 1.25rem 1rem;
    }
}
