/* =====================================================================
   Real-World Bakery UX Upgrades
   Inspired by modern bakery ecommerce patterns (hero-first layout,
   trust messaging, sticky conversion points, and polished cards).
   ===================================================================== */

/* Layout rhythm */
.site-content,
.ast-container,
.entry-content {
  max-width: 1200px;
}

.entry-content > * {
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

/* Sticky header for easier shopping navigation */
.site-header,
.ast-primary-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

/* Better focus accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(212, 167, 106, 0.45);
  outline-offset: 2px;
}

/* Hero block shortcode */
.esc-hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 198, 208, 0.35), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(212, 167, 106, 0.22), transparent 30%),
    var(--esc-white);
  border: 1px solid rgba(45, 90, 61, 0.08);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 56px);
  box-shadow: var(--esc-shadow-hover);
}

.esc-hero__inner {
  max-width: 780px;
}

.esc-hero__logo {
  width: min(280px, 50%);
  margin-bottom: 1rem;
}

.esc-kicker {
  color: var(--esc-green-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.esc-hero__description {
  max-width: 65ch;
  color: var(--esc-brown-light);
  font-size: 1.05rem;
}

.esc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.25rem 0 1rem;
}

.esc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 90, 61, 0.2);
  border-radius: var(--esc-radius);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--esc-green) !important;
  background: var(--esc-white);
}

.esc-btn-secondary:hover {
  border-color: var(--esc-green);
  background: var(--esc-pink-light);
  color: var(--esc-green-dark) !important;
}

.esc-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.esc-trust-list li {
  background: var(--esc-pink-light);
  border: 1px solid rgba(245, 198, 208, 0.8);
  color: var(--esc-green);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Utility store notice bar */
.esc-store-notice {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: var(--esc-green);
  color: var(--esc-cream);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.88rem;
}

.esc-store-notice span {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.esc-social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.esc-btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--esc-radius);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #ffffff;
  border: 1px solid rgba(45, 90, 61, 0.2);
  color: var(--esc-green) !important;
}

.esc-btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff !important;
}

.esc-btn-whatsapp:hover {
  filter: brightness(0.95);
  color: #ffffff !important;
}

.esc-btn-phone {
  background: var(--esc-pink-light);
}

/* Higher-converting product cards */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product .button {
  margin-top: auto !important;
}

.woocommerce ul.products li.product .price {
  padding: 0 16px 10px;
}

.woocommerce ul.products li.product .star-rating {
  margin: 0 16px 10px;
}

/* Sections and rows created in block editor */
.wp-block-group.is-style-default,
.wp-block-columns {
  background: transparent;
}

.wp-block-cover,
.wp-block-group.has-background,
.wp-block-media-text {
  border-radius: var(--esc-radius-lg);
  overflow: hidden;
}

/* Testimonials and quote blocks */
.wp-block-quote,
.wp-block-pullquote {
  border-left: 4px solid var(--esc-pink);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(253, 232, 237, 0.8), rgba(255, 255, 255, 0.95));
  padding: 20px;
}

/* Footer newsletter/forms */
.site-footer input[type="email"],
.site-footer input[type="text"],
.site-footer textarea {
  border-color: rgba(255, 248, 240, 0.35) !important;
  background: rgba(255, 255, 255, 0.96);
}

/* Mobile menu polish */
@media (max-width: 921px) {
  .ast-mobile-menu-buttons {
    padding-right: 8px;
  }

  .main-header-menu {
    background: var(--esc-white);
    border-radius: 12px;
    box-shadow: var(--esc-shadow-hover);
    margin-top: 10px;
    padding: 12px;
  }

  .esc-store-notice {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
