/*
Theme Name: Aeva Theme
Description: Custom theme for Aeva Ceramics shop
Version: 1.0.0
Author: Stefanie Niemzok
*/

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Fix large logo in header/footer on product detail pages */
.single-aevary_product .site-header .custom-logo,
.single-aevary_product .site-footer .custom-logo {
    max-height: 80px;
    width: auto;
}

.single-aevary_product .site-header .site-logo,
.single-aevary_product .site-footer .site-logo {
    max-width: 200px;
}

/* Archive Grid */
.aevary-shop {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
}

.shop-title {
    font-size: 2rem;
    margin: 0 0 48px 0;
    font-weight: 400;
}

.aevary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.aevary-tile {
    position: relative;
}

.aevary-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.aevary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.aevary-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity .3s ease;
}

.aevary-overlay h2 {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.aevary-overlay span {
    font-weight: bold;
}

.aevary-overlay em {
    margin-top: .5rem;
    font-style: normal;
    font-size: .85rem;
}

.aevary-thumb:hover img {
    transform: scale(1.05);
}

.aevary-thumb:hover .aevary-overlay {
    opacity: 1;
}

/* Single Product */
.aevary-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

.aevary-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

@media (max-width: 768px) {
    .aevary-product-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.aevary-product-image-section {
    display: flex;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.aevary-gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100px;
}

.aevary-gallery-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    overflow: hidden;
}

.aevary-gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.aevary-gallery-thumb:hover {
    opacity: 0.8;
}

.aevary-gallery-thumb.active {
    border-color: #333;
}

.aevary-product-image {
    flex: 1;
}

.aevary-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.aevary-product-info {
    padding: 24px 0;
}

.aevary-product-title {
    font-size: 2rem;
    margin: 0 0 24px 0;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.aevary-product-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
}

.aevary-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aevary-price-amount {
    font-size: 1.5rem;
    font-weight: 600;
}

.aevary-label {
    color: #666;
    font-size: 0.95rem;
}

.aevary-in-stock {
    color: #2d6a4f;
    font-weight: 500;
}

.aevary-sold-out {
    color: #999;
    font-weight: 500;
}

.aevary-product-description {
    line-height: 1.7;
    color: #333;
    margin-bottom: 32px;
}

.aevary-product-description p {
    margin-bottom: 1em;
}

.aevary-product-back {
    margin-top: 48px;
}

.aevary-back-link {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.aevary-back-link:hover {
    opacity: 0.6;
}
