/*
Theme Name: Electric Otter
Theme URI: https://electricotter3dprints.com
Author: Electric Otter 3D Prints
Description: A playful block theme for Electric Otter 3D Prints with a shop (WooCommerce), print gallery, custom order request form, and about section.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: electric-otter
Tags: block-theme, full-site-editing, e-commerce, one-column, custom-colors
*/

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; } }
h1, h2, h3 { text-wrap: balance; }
:where(input, textarea, select, button, a):focus-visible { outline: 3px solid #16B4C6; outline-offset: 3px; }

/* Header */
.eo-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #E3DDD2; }
.eo-header-logo img { width: 48px; height: 48px; object-fit: contain; display: block; }
.eo-header .wp-block-navigation a { padding: 10px 2px; }
.eo-header .wp-block-navigation a:hover { color: #0A7E8C; }

/* Hero: a glowing print bed */
.eo-hero { background-color: #0F2730; background-image: linear-gradient(rgba(22, 180, 198, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 180, 198, .13) 1px, transparent 1px); background-size: 36px 36px; color: #EEF6F7; }
.eo-hero h1 { color: #FFFFFF; }
.eo-hero .eo-lede { color: #B9D3D8; font-size: 19px; }
.eo-hero .is-style-outline .wp-block-button__link { color: #FFFFFF; border: 2px solid #FFFFFF; background: transparent; }
.eo-hero-logo { position: relative; margin: 0 auto; max-width: 460px; }
.eo-hero-logo img { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35)); }
.eo-hero-logo::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 2%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(22, 180, 198, .45), transparent); z-index: -1; animation: eo-glow 3.2s ease-in-out infinite; }
@keyframes eo-glow { 50% { opacity: .45; } }
.eo-tags { gap: 8px !important; }
.eo-tags p { margin: 0; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(22, 180, 198, .16); color: #BFF3F8; }

.eo-lede { color: #4A5F66; max-width: 60ch; }
.eo-note { font-size: 13px; color: #4A5F66; }
.eo-alt { background: #FFFFFF; border-top: 1px solid #E3DDD2; border-bottom: 1px solid #E3DDD2; }

/* WooCommerce product grid (shortcode output) */
.eo-shop ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; }
.eo-shop ul.products::before, .eo-shop ul.products::after { display: none !important; }
.eo-shop ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; background: #FFFFFF; border: 1px solid #E3DDD2; border-radius: 18px; overflow: hidden; padding: 0 0 18px !important; display: flex; flex-direction: column; list-style: none; }
.eo-shop ul.products li.product img { aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 12px !important; width: 100%; }
.eo-shop ul.products li.product .woocommerce-loop-product__title { font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; font-size: 21px !important; padding: 0 16px !important; color: #102A33; }
.eo-shop ul.products li.product .price { padding: 0 16px; font-weight: 700; color: #102A33 !important; font-size: 18px; }
.eo-shop ul.products li.product .button { margin: auto 16px 0 !important; align-self: flex-start; background: #16B4C6 !important; color: #06262B !important; border-radius: 999px !important; font-weight: 600; padding: 10px 18px !important; }

/* Gallery: square crops */
.eo-gallery .wp-block-image img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }

/* Steps */
.eo-step { gap: 14px !important; }
.eo-num { flex: 0 0 52px; width: 52px; height: 52px; margin: 0; border-radius: 14px; background: #F29B26; color: #1B1206; display: grid; place-items: center; font-family: "Lilita One", sans-serif; font-size: 24px; line-height: 1; }
.eo-step p:not(.eo-num) { color: #4A5F66; margin: 4px 0 0; }

/* Request form */
.eo-form { background: #FFFFFF; border: 1px solid #E3DDD2; border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.eo-form h3 { margin: 0; }
.eo-form label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.eo-form input, .eo-form textarea, .eo-form select { font: 16px Fredoka, sans-serif; color: #102A33; background: #FBF8F3; border: 2px solid #E3DDD2; border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%; box-sizing: border-box; }
.eo-form textarea { min-height: 110px; resize: vertical; }
.eo-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.eo-form button { border: 0; cursor: pointer; min-height: 48px; }
.eo-form-msg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.eo-ok { background: #DDF6F9; color: #064A52; }
.eo-err { background: #FDE8E0; color: #7A2A0C; }
.eo-hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }

/* Markets */
.eo-market { background: #FFFFFF; border: 1px solid #E3DDD2; border-radius: 16px; padding: 16px 20px; }
.eo-market p { margin: 0; }
.eo-market-date { font-family: "Lilita One", sans-serif; font-size: 22px; color: #0A7E8C; min-width: 110px; }
.eo-market-name { font-weight: 600; flex: 1 1 200px; }
.eo-market-time { color: #4A5F66; font-size: 15px; white-space: nowrap; }

/* About */
.eo-about-logo img { max-width: 320px; width: 100%; }
.eo-mail { font-weight: 600; font-size: 18px; }

/* Footer */
.eo-footer { background: #0F2730; color: #B9D3D8; font-size: 15px; }
.eo-footer a { color: #7FE3EE; }

@media (max-width: 600px) {
	.eo-two { grid-template-columns: minmax(0, 1fr); }
	.eo-market-time { white-space: normal; }
	.eo-about-logo img { max-width: 220px; }
}

/* Sections sit flush against each other */
.wp-site-blocks > * { margin-block-start: 0; }
main.wp-block-group > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.eo-shop-soon { background: #FFFFFF; border: 2px dashed #16B4C6; border-radius: 16px; padding: 20px 24px; font-size: 18px; }
