:root {
    --color-bg: #fdfcf8;
    --color-text: #4a4a4a;
    --color-primary: #8c867a;
    /* Muted Beige/Gold */
    --color-accent: #2c2c2c;
    --color-light-gray: #f2f2f2;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--color-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s, padding 0.3s;
}

.header.scrolled {
    background: rgba(253, 252, 248, 0.95);
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 20px;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    animation: zoomSlow 20s infinite alternate;
}

.hero-content {
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 60px 40px;
}

.product-card {
    cursor: pointer;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-light-gray);
    margin-bottom: 20px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    text-align: center;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-price {
    font-family: var(--font-sans);
    color: var(--color-primary);
}

/* Journal Section */
.journal-section {
    padding: 100px 0;
    background: #f8f6f2;
}

.journal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.journal-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.journal-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Product Detail Page */
.product-detail {
    padding-top: 150px;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.pd-images {
    display: grid;
    gap: 20px;
}

.pd-main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-light-gray);
}

.pd-info {
    position: sticky;
    top: 120px;
    align-self: start;
}

.pd-price {
    font-size: 1.5rem;
    margin: 20px 0;
    font-family: var(--font-sans);
}

.pd-desc {
    margin-bottom: 40px;
    color: #666;
}

.pd-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.quantity-input {
    width: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Animations */
@keyframes zoomSlow {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

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

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header.scrolled {
        padding: 10px 20px;
    }

    .nav {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 20px;
    }

    /* Improved Hero for Mobile - Better Contrast */
    .hero {
        height: 85vh;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.4) 0%,
                rgba(0, 0, 0, 0.2) 40%,
                rgba(0, 0, 0, 0.5) 100%);
        z-index: 0;
    }

    .hero-content {
        position: relative;
        z-index: 1;
        background: rgba(0, 0, 0, 0.35);
        padding: 40px 30px;
        border-radius: 8px;
        backdrop-filter: blur(2px);
        margin: 0 20px;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5), 0 4px 30px rgba(0, 0, 0, 0.4);
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero .section-subtitle {
        color: #fff;
        font-size: 0.75rem;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
    }

    .product-img-wrapper {
        aspect-ratio: 3/4;
    }

    .product-name {
        font-size: 0.9rem;
    }

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

    .journal-img {
        height: 300px;
    }

    .journal-content {
        padding: 40px 20px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .pd-info {
        position: static;
    }

    .cart-drawer {
        width: 100%;
    }

    .ritual-section {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .ritual-section>div {
        padding: 40px 20px !important;
    }

    .ritual-section h2 {
        font-size: 1.8rem !important;
    }
}