/* Spring Gardens — brand helpers. Add these class names to any block
   (Block settings > Advanced > Additional CSS class):
   sg-reveal  fades the block up when it scrolls into view
   sg-float   gently floats an image up and down
   sg-lift    lifts a card on hover
   sg-zoom    zooms the image inside a card on hover
   sg-marquee turns a row of paragraphs into a scrolling ticker
   sg-pill    small rounded label
*/
:root {
	--sg-olive: #4B6A0C; --sg-forest: #34490A; --sg-ink: #1C2210; --sg-text: #3E4433;
	--sg-muted: #5B6150; --sg-sage: #C9D2AE; --sg-mint: #EEF1E4; --sg-cream: #F6F5EF; --sg-amber: #F2B33D;
}
body { font-family: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6, .sg-display { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif; line-height: 1.35; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { line-height: 1.2; }

/* reveal on scroll */
.sg-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.sg-reveal.is-in { opacity: 1; transform: none; }
.editor-styles-wrapper .sg-reveal, .block-editor-block-list__layout .sg-reveal { opacity: 1; transform: none; }

/* floating product */
@keyframes sgFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.sg-float img, img.sg-float { animation: sgFloat 6s ease-in-out infinite; filter: drop-shadow(0 30px 28px rgba(28,34,16,.22)); }

/* cards */
.sg-lift { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.sg-lift:hover { transform: translateY(-8px); box-shadow: 0 24px 48px -18px rgba(28,34,16,.28); }
.sg-zoom img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.sg-zoom:hover img { transform: scale(1.06) rotate(-2deg); }

/* ticker */
.sg-marquee { overflow: hidden; border-top: 1px solid #E3E3D8; border-bottom: 1px solid #E3E3D8; }
.sg-marquee .sg-track { display: flex; width: max-content; gap: 48px; animation: sgMq 36s linear infinite; padding: 16px 0; }
.sg-marquee:hover .sg-track { animation-play-state: paused; }
.sg-marquee .sg-track > * { margin: 0 !important; white-space: nowrap; color: var(--sg-forest); font-weight: 500; }
.sg-marquee .sg-track > *::before { content: "✦"; color: var(--sg-amber); margin-inline-end: 14px; }
@keyframes sgMq { to { transform: translateX(50%); } }
[dir="ltr"] .sg-marquee .sg-track { animation-name: sgMqL; }
@keyframes sgMqL { to { transform: translateX(-50%); } }

.sg-pill { display: inline-block; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; background: #fff; color: var(--sg-forest); }

/* WooCommerce */
.sg-por { font-family: 'Readex Pro', sans-serif; font-weight: 600; color: var(--sg-forest); }
.woocommerce ul.products li.product { border: 1px solid #E3E3D8; border-radius: 20px; padding: 0 0 18px; overflow: hidden; background: #fff; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-8px); box-shadow: 0 24px 48px -18px rgba(28,34,16,.28); }
.woocommerce ul.products li.product a img { background: var(--sg-cream); padding: 18px; margin: 0 0 12px; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button { margin-inline: 16px; }
.woocommerce div.product div.images img { background: var(--sg-cream); border-radius: 24px; }
.sg-thanks { background: var(--sg-mint); border-radius: 16px; padding: 20px; margin-bottom: 24px; }
.sg-btn { display: inline-block; background: #25D366; color: #fff !important; border-radius: 12px; padding: 12px 20px; font-weight: 700; text-decoration: none; }

/* floating WhatsApp */
.sg-wa-float { position: fixed; bottom: 22px; left: 20px; z-index: 999; width: 58px; height: 58px; border-radius: 999px; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(28,34,16,.25); transition: transform .3s ease; }
.sg-wa-float:hover { transform: translateY(-4px); color: #fff; }
[dir="ltr"] .sg-wa-float { left: auto; right: 20px; }

@media (prefers-reduced-motion: reduce) {
	.sg-reveal { opacity: 1; transform: none; }
	.sg-float img, img.sg-float, .sg-marquee .sg-track { animation: none; }
}
