/* Pottery Affair - Gallery Minimalist (Jono Smart Inspired) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Roboto+Mono:wght@300;400&display=swap');

:root {
    /* Palette: Stark & Organic */
    --color-bg: #fcfcfc;
    /* Pure clean white/off-white */
    --color-text: #000000;
    /* Pure Black for maximum contrast */
    --color-subtext: #404040;
    /* Darker grey for better readability */
    --color-accent: #000000;
    /* Black accent */
    --color-border: #dcdcdc;
    /* Slightly clearer grey */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-mono: 'Roboto Mono', monospace;
    /* For prices, specs, nav */
    --font-body: 'Cormorant Garamond', serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 19px;
    /* Slightly larger base size */
    font-weight: 400;
    /* Regular weight instead of light */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-subtext);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.01em;
}

/* Elegant large H1 */
h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.container {
    width: 92%;
    max-width: 1600px;
    /* Wider canvas */
    margin: 0 auto;
    padding: 0;
}

/* Layout: Navbar - Minimal & Centered or Split */
nav {
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    background-color: var(--color-bg);
    /* Opaque for sticky */
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    /* Removed border and padding for cleaner look */
    text-decoration: none;
}

@media(max-width: 600px) {
    .nav-logo {
        font-size: 0.9rem;
    }
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: var(--spacing-md);
}

.desktop-menu a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Hamburger Menu Icon */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.hamburger-menu span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 150;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
}

/* Mobile Styles */
@media(max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }
}

/* Hero Section - Airy */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

.hero-sub {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-subtext);
    margin-bottom: var(--spacing-md);

    max-width: 400px;
}

.hero-landing {
    background-image: url('../images/landing.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.btn-primary.inverse {
    color: white;
    border-color: white;
}

.btn-primary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.hero .btn-primary:hover {
    background-color: white;
    color: black;
}

/* Hero Carousel */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-bg.active {
    opacity: 1;
}

.hero-bg-1 {
    background-image: url('../images/landing.png');
}

.hero-bg-2 {
    background-image: url('../images/landing2.png');
}

.hero-overlay {
    z-index: 1;
    /* Ensure overlay is above images but below text */
}

/* Product Grid - Clean blocks */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns on desktop */
    gap: 4rem 2rem;
    /* Vertical gap, Horizontal gap */
    margin: var(--spacing-lg) 0;
}

/* Tablet */
@media(max-width: 900px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media(max-width: 600px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.product-image {
    width: 100%;
    aspect-ratio: 4/5;
    /* Portrait orientation common in pottery */
    background-color: #f4f4f4;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image {
    opacity: 0.9;
}

.product-info {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
}

.product-price {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-subtext);
}

/* Product Detail - Split Screen */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Image wider than text */
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
    align-items: start;
}

@media(max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

.product-gallery {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.thumb-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 1px solid transparent;
}

.thumb-image:hover,
.thumb-image.active {
    opacity: 1;
    border-color: var(--color-subtext);
}

.gallery-main {
    position: relative;
    flex-grow: 1;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--color-text);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-main:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

@media(max-width: 600px) {
    .product-gallery {
        flex-direction: column-reverse;
    }

    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .thumb-image {
        width: 60px;
    }
}

.detail-info {
    position: sticky;
    top: 100px;
    padding-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    /* Use tighter gap for vertical rhythm */
    height: fit-content;
}

.detail-info h1 {
    margin: 0;
}

.detail-info .product-price {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
    /* Add breathing room below price specifically */
}

.detail-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-subtext);
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.detail-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    max-width: 450px;
    color: #333;
    white-space: pre-line;
}

.detail-desc p {
    margin: 0;
}

/* Footer - Simple */
footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-xl);
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #999;
}