/*
Theme Name: Cometh Morning Studio
Theme URI: https://comethmorningstudio.com/
Author: Cometh Morning Studio
Description: A custom WooCommerce-ready WordPress theme adapted from the Cometh Morning Studio React/Vite design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cometh-morning-studio
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --background: #f9f6e4;
  --foreground: #70763F;
  --border: #c37e47;
  --ring: #E29E17;
  --card: #f9f6e4;
  --primary: #70763F;
  --primary-foreground: #f9f6e4;
  --secondary: #c37e47;
  --secondary-foreground: #f9f6e4;
  --muted: rgba(194,126,71,.16);
  --muted-foreground: #c37e47;
  --accent: #E29E17;
  --app-font-sans: 'Quicksand', sans-serif;
  --app-font-serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--app-font-sans); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--foreground); }
.serif { font-family: var(--app-font-serif); }
.eyebrow { color: var(--border); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding-block: clamp(4.5rem, 9vw, 8rem); }
.reveal { animation: rise .7s both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.07); } }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(249,246,228,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(112,118,63,.18); }
.announcement { background: var(--accent); color: var(--foreground); text-align: center; padding: 8px 16px; font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.nav-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 128px; height: 70px; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nav-links a { position: relative; padding-block: 8px; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after, .nav-links .current-menu-item > a::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .menu-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(112,118,63,.28); background: transparent; color: var(--foreground); cursor: pointer; transition: transform .2s, background .2s; }
.icon-button:hover, .menu-button:hover { transform: translateY(-2px); background: var(--muted); }
.cart-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: -5px; margin-top: -20px; border-radius: 50%; background: var(--border); color: var(--background); font-size: 9px; font-weight: 700; }
.menu-button { display: none; }
.mobile-nav { display: none; }

.hero { position: relative; min-height: min(720px, calc(100dvh - 116px)); display: flex; align-items: flex-end; overflow: hidden; color: var(--background); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(112,118,63,.92), rgba(112,118,63,.46) 52%, rgba(112,118,63,.08)), url('assets/artwork/lotus-lake.png') center/cover; animation: drift 10s ease-out both; }
.hero-content { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding-block: clamp(70px, 12vw, 132px) 86px; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.8rem, 9vw, 8.8rem); line-height: .85; font-weight: 400; letter-spacing: -.06em; }
.hero h1 em, .page-hero h1 em, .small-hero h1 em { color: var(--accent); }
.hero-copy { max-width: 430px; margin: 30px 0 26px; font-size: 15px; line-height: 1.55; color: var(--background); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 21px; border: 1px solid var(--foreground); border-radius: 0; background: transparent; color: var(--foreground); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { transform: translateY(-2px); background: var(--foreground); color: var(--background); }
.button.solid, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--accent); border-color: var(--accent); color: var(--foreground); }
.button.solid:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--border); border-color: var(--border); color: var(--background); }
.button.light { border-color: var(--background); color: var(--background); }
.button.light:hover { background: var(--background); color: var(--foreground); }

.featured, .shop-section { background: var(--background); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { max-width: 660px; margin: 10px 0 0; font-size: clamp(2.6rem, 6vw, 5.8rem); line-height: .93; font-weight: 400; letter-spacing: -.05em; }
.section-head h2 em, .newsletter h2 em { color: var(--border); }
.carousel-wrap { position: relative; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(265px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 12px; }
.carousel::-webkit-scrollbar { display: none; }
.art-card, .featured-card { min-width: 0; scroll-snap-align: start; }
.art-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--muted); position: relative; }
.art-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s; }
.art-card:nth-child(2) .art-image { background: var(--border); padding: 18px; }
.art-card:nth-child(2) img { object-position: 65% center; }
.art-card:hover img { transform: scale(1.05); }
.art-detail { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 14px; }
.art-detail h3, .featured-card h3 { margin: 0; font-family: var(--app-font-serif); font-size: 20px; font-weight: 400; }
.art-detail p, .featured-card p { margin: 4px 0 0; color: var(--border); font-size: 11px; }
.price { white-space: nowrap; font-size: 12px; font-weight: 700; }
.mini-add { border: 0; padding: 0; margin-top: 10px; background: none; color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; font-size: 11px; font-weight: 700; cursor: pointer; }
.carousel-controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.carousel-controls button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--foreground); background: transparent; color: var(--foreground); cursor: pointer; }
.featured-card { flex: 0 0 clamp(220px, 29vw, 340px); }
.featured-card .art-image { aspect-ratio: 1 / 1.15; }
.featured-card h3 { margin-top: 14px; }
.featured-actions { display: flex; justify-content: center; gap: 12px; margin-top: 50px; }
.paintings-section, .form-section { background: rgba(194,126,71,.08); }
.story-band { background: var(--foreground); color: var(--background); }
.story-image { position: relative; border: 1px solid rgba(249,246,228,.4); padding: 22px; }
.story-copy > .story-image { max-width: 620px; margin: 0 auto 42px; }
.story-image::before { content: ''; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(249,246,228,.25); pointer-events: none; }
.story-image img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.story-copy h2 { margin: 12px 0 24px; font-size: clamp(2.7rem, 5.5vw, 5.4rem); line-height: .92; font-weight: 400; letter-spacing: -.05em; }
.story-copy p { max-width: 700px; font-size: 14px; line-height: 1.8; color: rgba(249,246,228,.8); }
.story-quote { margin: 28px 0; padding-left: 18px; border-left: 1px solid var(--accent); font-family: var(--app-font-serif); font-size: 20px; font-style: italic; color: var(--accent); }
.newsletter { background: var(--accent); color: var(--foreground); }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
.newsletter h2 { max-width: 580px; margin: 12px 0 0; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .9; font-weight: 400; letter-spacing: -.06em; }
.newsletter-copy { font-size: 13px; margin-bottom: 26px; }
.newsletter-form { display: flex; border-bottom: 1px solid var(--foreground); }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--foreground); padding: 13px 0; font-size: 14px; }
.newsletter-form input::placeholder { color: rgba(112,118,63,.68); }
.newsletter-form button { border: 1px solid var(--foreground); background: transparent; color: var(--foreground); padding: 0 17px; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form-status { margin-top: 12px; font-size: 12px; font-weight: 700; }
.site-footer { background: var(--border); color: var(--background); padding: 64px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 60px; }
.footer-brand img { width: 145px; height: 78px; object-fit: contain; opacity: .95; }
.footer-col h3 { margin: 0 0 17px; color: var(--accent); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin-bottom: 10px; font-size: 12px; color: var(--background); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(249,246,228,.3); padding-top: 18px; color: rgba(249,246,228,.7); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

.page-hero { background: var(--foreground); color: var(--background); padding: clamp(62px, 10vw, 120px) 0 75px; }
.page-hero h1 { max-width: 850px; margin: 12px 0 0; font-size: clamp(3.3rem, 8vw, 8rem); line-height: .84; font-weight: 400; letter-spacing: -.06em; }
.page-hero p { max-width: 460px; margin: 28px 0 0; color: rgba(249,246,228,.8); font-size: 14px; line-height: 1.6; }
.shop-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 42px; }
.collection-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 10px 15px; border: 1px solid rgba(112,118,63,.3); background: transparent; color: var(--foreground); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tab.active, .tab:hover { background: var(--foreground); color: var(--background); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 18px; }
.woocommerce ul.products { margin: 0; padding: 0; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; }
.woocommerce .woocommerce-result-count { margin: 0; color: var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.woocommerce .woocommerce-ordering select { border: 1px solid rgba(112,118,63,.3); border-radius: 0; background: transparent; color: var(--foreground); padding: 9px 12px; font-size: 11px; }
.placeholder-note { display: inline-block; margin-top: 8px; color: var(--border); font-size: 10px; }

.form-grid, .about-grid, .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(42px, 8vw, 120px); }
.form-intro h2 { margin: 12px 0 22px; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .9; font-weight: 400; letter-spacing: -.06em; }
.form-intro p, .about-copy p { max-width: 590px; font-size: 14px; line-height: 1.8; }
.paper-form { background: var(--background); padding: clamp(24px, 5vw, 54px); border: 1px solid rgba(112,118,63,.17); }
.paper-form h3 { margin: 8px 0 30px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: .95; font-weight: 400; }
.field { display: grid; gap: 8px; margin-top: 20px; }
.field label { color: var(--border); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid rgba(112,118,63,.32); outline: 0; background: transparent; color: var(--foreground); padding: 10px 0; font-size: 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.file-input { border: 1px dashed rgba(112,118,63,.45); padding: 18px; color: var(--border); font-size: 12px; cursor: pointer; }
.error-text { color: var(--border); font-size: 11px; }
.success-box { margin-top: 18px; border: 1px solid var(--foreground); padding: 14px; color: var(--foreground); font-size: 12px; line-height: 1.5; }
.about-grid { align-items: center; }
.about-portrait { background: var(--foreground); padding: 22px; }
.about-portrait img { width: 100%; aspect-ratio: 3/4; display: block; object-fit: cover; }
.about-copy h1 { margin: 12px 0 30px; font-size: clamp(3rem, 8vw, 7rem); line-height: .83; font-weight: 400; letter-spacing: -.06em; }
.about-copy h1 em { color: var(--accent); }
.about-copy .quote { margin-top: 30px; padding: 22px 0 22px 20px; border-left: 1px solid var(--accent); font-family: var(--app-font-serif); font-size: 20px; font-style: italic; }
.small-hero { padding: 62px 0 56px; background: var(--foreground); color: var(--background); }
.small-hero h1 { margin: 10px 0 0; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .85; font-weight: 400; letter-spacing: -.06em; }

.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 9vw, 130px); align-items: center; }
.product-detail-image { background: var(--muted); }
.product-detail-image .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.product-detail-image .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; }
.product-detail-copy .product_title { margin: 12px 0 20px; font-family: var(--app-font-serif); font-size: clamp(3rem, 7vw, 6.5rem); line-height: .88; font-weight: 400; letter-spacing: -.06em; }
.product-detail-copy .price { display: block; color: var(--border); font-weight: 700; margin-bottom: 14px; }
.product-detail-copy .quantity { margin: 24px 10px 0 0; display: inline-flex; }
.product-detail-copy .single_add_to_cart_button { margin-top: 24px; }
.woocommerce div.product form.cart { margin-bottom: 0; }
.woocommerce div.product .product_meta { margin-top: 22px; color: var(--border); font-size: 11px; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: start; }
.cart-list { display: grid; gap: 15px; }
.cart-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid rgba(112,118,63,.22); }
.cart-row img { width: 110px; aspect-ratio: 1; object-fit: cover; }
.cart-row h3 { margin: 0; font-family: var(--app-font-serif); font-weight: 400; font-size: 21px; }
.cart-row p { margin: 5px 0 0; font-size: 11px; color: var(--border); }
.quantity { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.quantity .qty { width: 48px; border: 1px solid rgba(112,118,63,.4); border-radius: 0; padding: 5px; text-align: center; color: var(--foreground); background: transparent; }
.summary, .woocommerce .cart_totals, .woocommerce-checkout-review-order { border: 1px solid rgba(112,118,63,.28); padding: 26px; position: sticky; top: 120px; }
.summary h2, .woocommerce .cart_totals h2 { margin: 0 0 22px; font-family: var(--app-font-serif); font-size: 28px; font-weight: 400; }
.summary-line, .woocommerce .cart_totals table tr { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid rgba(112,118,63,.18); font-size: 13px; }
.summary-total, .woocommerce .order-total { font-weight: 700; font-size: 16px; }
.summary .button, .cart_totals .checkout-button { width: 100%; margin-top: 20px; }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed rgba(112,118,63,.3); }
.empty-state h2 { margin: 12px 0 8px; font-family: var(--app-font-serif); font-size: 32px; font-weight: 400; }
.checkout-layout .woocommerce-billing-fields h3, .checkout-layout .woocommerce-additional-fields h3 { font-family: var(--app-font-serif); font-weight: 400; font-size: 28px; }
.checkout-layout .form-row { display: grid; gap: 8px; margin-top: 20px; }
.checkout-layout .form-row label { color: var(--border); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.checkout-layout .form-row input, .checkout-layout .form-row textarea, .checkout-layout .form-row select { width: 100%; border: 0; border-bottom: 1px solid rgba(112,118,63,.32); border-radius: 0; background: transparent; padding: 10px 0; color: var(--foreground); }
.checkout-layout #order_review_heading { display: none; }
.woocommerce form .form-row .required { color: var(--border); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent); background: rgba(194,126,71,.1); color: var(--foreground); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); }
.woocommerce-error::before { color: var(--border); }
.woocommerce .checkout_coupon, .woocommerce form.login, .woocommerce form.register { border: 1px solid rgba(112,118,63,.26); border-radius: 0; padding: 26px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid rgba(112,118,63,.22); padding: 12px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.woocommerce-account .woocommerce-MyAccount-content { border: 1px solid rgba(112,118,63,.26); padding: 30px; }

.wp-block-button__link { border-radius: 0; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; }

@media (max-width: 800px) {
  .shell, .hero-content { width: min(100% - 36px, 600px); }
  .nav-links { display: none; }
  .menu-button { display: grid; }
  .mobile-nav { display: grid; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .mobile-nav.open { max-height: 430px; border-top: 1px solid rgba(112,118,63,.2); padding: 12px 0 20px; }
  .mobile-nav a { padding: 11px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .hero { min-height: 650px; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 6.5rem); }
  .newsletter-grid, .form-grid, .about-grid, .contact-grid, .cart-layout, .checkout-layout, .product-detail-grid { grid-template-columns: 1fr; display: grid; }
  .newsletter-copy { margin-bottom: 15px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .shop-toolbar { align-items: start; flex-direction: column; }
  .cart-layout, .checkout-layout { gap: 28px; }
  .summary, .woocommerce .cart_totals, .woocommerce-checkout-review-order { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .announcement { font-size: 8px; letter-spacing: .1em; }
  .nav-row { min-height: 68px; }
  .brand img { width: 105px; height: 58px; }
  .nav-actions { gap: 7px; }
  .hero { min-height: 620px; }
  .hero-content { padding-bottom: 64px; }
  .hero-copy { font-size: 13px; }
  .shop-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 76px 1fr; }
  .cart-row > .price { grid-column: 2; }
  .cart-row img { width: 76px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}