/*
Theme Name: Curated Stills
Theme URI: https://yourdomain.com/
Author: Your Name
Description: Modern, minimal, earthy photography shop theme for WooCommerce
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: curated-stills
Tags: photography, minimal, modern, earthy, woocommerce
*/

@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900|Lato:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Marcellus+SC&display=swap');

:root {
  --color-bg: #f5f3ed;
  --color-accent: #bdb8a3;
  --color-text: #2d2d2d;
  --color-muted: #7d7461;
  --color-link: #6b8e6e;
  --color-link-hover: #a47149;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .site-title {
  font-family: 'Playfair Display', serif;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 0;
}

.site-header {
  text-align: center;
  padding: 3rem 0 2rem 0;
  background: none;
}
.site-title {
  font-family: 'Marcellus SC', 'Playfair Display', serif;
  font-size: 3rem;
  letter-spacing: 0.12em;
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.3rem;
  font-weight: 400;
  text-transform: none;
}
.site-description {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}
.site-nav a {
  color: var(--color-link);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--color-link-hover);
}

main {
  max-width: 1600px !important;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 4rem;
}

ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style: none;
}
ul.products li.product {
  width: 320px !important;
  margin: 30px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-image-frame {
  position: relative;
  width: 320px;
  height: 320px;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  overflow: hidden;
  position: relative;
}
.product-main-image {
  max-width: 90% !important;
  max-height: 90% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 1;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.product-hover-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.product-image-frame img.product-hover-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}

/* Product grid/list hover effect (absolute positioning) */
ul.products .product-image-frame img.product-main-image,
ul.products .product-image-frame img.product-hover-image {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 1;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
ul.products .product-image-frame img.product-hover-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  top: 0; left: 0;
  transform: none;
  z-index: 2;
  opacity: 0;
}
ul.products li.product:hover .product-main-image {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.04);
}
ul.products li.product:hover .product-hover-image {
  opacity: 1;
}

/* Single product page: static positioning for gallery images */
.single-product .woocommerce-product-gallery img {
  position: static !important;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Lato', sans-serif;
    font-size: 1rem !important;
    color: var(--color-text);
    margin: 0rem 0 1.5rem 0 !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 300;
}

.site-footer {
  background: none;
  color: var(--color-muted);
  border-top: none;
  padding: 3rem 0 2rem 0;
  text-align: center;
  font-size: 1rem;
}
.site-footer a {
  color: var(--color-link);
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--color-link-hover);
} 

.single-product-page {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 2rem 1rem 0 1rem;
}
.single-product-page .product-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  text-align: center;
}
.product-content-row {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  justify-content: center;
}
.product-gallery-col {
  flex: 1 1 420px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-details-col {
  flex: 1 1 320px;
  max-width: 420px;
  background: none;
  padding: 2rem 0 0 0;
  color: var(--color-text);
}
.product-price {
  font-size: 1.5rem;
  color: var(--color-link);
  font-weight: 700;
  margin-bottom: 2rem;
}
.product-description {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .product-content-row {
    flex-direction: column;
    gap: 2rem;
  }
  .product-gallery-col, .product-details-col {
    max-width: 100%;
    padding: 0;
  }
} 

.custom-gallery-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
}
.gallery-main-image {
  width: 420px;
  height: 420px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}
.gallery-click-area {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 5;
  background: none;
  cursor: pointer;
}
.gallery-click-left {
  left: 0;
}
.gallery-click-right {
  right: 0;
}
.gallery-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  opacity: 1;
  transition: opacity 0.3s;
}
.gallery-main-image img[style*='display: none'] {
  opacity: 0;
  pointer-events: none;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  font-size: 2.2rem;
  color: var(--color-muted);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.gallery-arrow-left {
  left: 0.5rem;
}
.gallery-arrow-right {
  right: 0.5rem;
}
.gallery-main-image:hover .gallery-arrow,
.gallery-arrow:focus {
  opacity: 1;
  pointer-events: auto;
}
.custom-gallery-thumbnails {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  background: #fff;
}
.gallery-thumb.active, .gallery-thumb:hover {
  border: 2px solid var(--color-link);
  box-shadow: 0 2px 8px rgba(44,95,45,0.10);
}
@media (max-width: 900px) {
  .gallery-main-image {
    width: 90vw;
    height: 60vw;
    max-width: 420px;
    max-height: 420px;
  }
  .custom-gallery-thumbnails {
    gap: 0.4rem;
  }
  .gallery-thumb {
    width: 40px;
    height: 40px;
  }
} 