/*
Theme Name: Everyday Circuit
Theme URI: https://everydaycircuit.com
Author: Everyday Circuit
Description: Branded block theme for the Everyday Circuit WooCommerce storefront.
Version: 1.4.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: everyday-circuit
*/

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7fafc;
  color: #131820;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ec-category-card {
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(19, 24, 32, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ec-category-card:hover {
  transform: translateY(-4px);
  border-color: #b9d5ff;
  box-shadow: 0 18px 40px rgba(41, 121, 255, 0.12);
}

.ec-category-card a {
  color: #131820;
  text-decoration: none;
}

.ec-category-card a::after {
  content: "  \2192";
  color: #2979ff;
}

.ec-eyebrow {
  color: #2979ff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-announcement {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ec-header-shell {
  border-bottom: 1px solid #e8eef5;
  box-shadow: 0 3px 18px rgba(19, 24, 32, 0.04);
  position: relative;
  z-index: 5;
}

.ec-hero {
  min-height: 620px;
  background:
    linear-gradient(90deg, #f7fafc 0%, #f7fafc 41%, rgba(247, 250, 252, 0.86) 53%, rgba(247, 250, 252, 0.08) 72%),
    url("assets/images/everyday-circuit-smart-home-hero.png") center right / cover no-repeat;
}

.ec-hero-copy {
  max-width: 620px;
  padding: 92px 0 86px;
}

.ec-hero h1 {
  max-width: 680px;
  font-size: clamp(3.25rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}

.ec-hero-lead {
  max-width: 590px;
  color: #405064;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.ec-trust-strip {
  border-top: 1px solid #dfe7f1;
  border-bottom: 1px solid #dfe7f1;
}

.ec-trust-item strong {
  display: block;
  color: #131820;
  font-size: 0.95rem;
}

.ec-trust-item span {
  color: #65758a;
  font-size: 0.85rem;
}

.ec-section-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.ec-section-heading p {
  color: #65758a;
}

.ec-content-hero h1,
.ec-not-found h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.ec-content-lead {
  max-width: 780px;
  color: #405064;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.ec-standard-card,
.ec-guide-card,
.ec-search-result {
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(19, 24, 32, 0.055);
}

.ec-guide-grid {
  gap: 20px;
}

.ec-guide-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0 18px;
  background: #2979ff;
  color: #fff;
  font-weight: 850;
}

.ec-faq-card {
  margin-top: 14px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  padding: 20px 24px;
  background: #fff;
}

.ec-faq-card summary {
  cursor: pointer;
  color: #131820;
  font-weight: 780;
}

.ec-search-results {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

:where(a, button, input, summary):focus-visible {
  outline: 3px solid #ffb547;
  outline-offset: 3px;
}

.ec-feature-panel {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #131820, #202b39);
  color: #f7fafc;
  box-shadow: 0 24px 60px rgba(19, 24, 32, 0.16);
}

.ec-feature-panel p {
  color: #c9d4e2;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  float: none;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 16px 20px;
  border: 1px solid #e2eaf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 24, 32, 0.055);
}

.woocommerce ul.products li.product img {
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f7fafc;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 3.6em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #131820;
  font-size: 1rem;
  line-height: 1.35;
}

.woocommerce ul.products li.product .price {
  color: #131820;
  font-size: 1.08rem;
  font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 8px;
  background: #2979ff;
  color: #fff;
  font-weight: 750;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #1762d8;
  color: #fff;
}

.woocommerce div.product {
  padding: 32px;
  border: 1px solid #e2eaf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(19, 24, 32, 0.07);
}

.woocommerce div.product div.images img {
  border-radius: 14px;
  background: #f7fafc;
}

.woocommerce div.product .product_title {
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #131820;
  font-size: 1.45rem;
  font-weight: 850;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
  clear: both;
  padding-top: 36px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 24px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty {
  border: 1px solid #b9c7d8;
  border-radius: 8px;
  padding: 0.7rem;
  background: #fff;
  color: #131820;
}

.woocommerce table.shop_table {
  overflow: hidden;
  border-color: #dfe7f1;
  border-radius: 14px;
  background: #fff;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 10px;
  background: #fff;
}

.ec-footer a {
  color: #c9d4e2;
  text-decoration: none;
}

.ec-footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .ec-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(247, 250, 252, 0.95) 0%, rgba(247, 250, 252, 0.9) 55%, rgba(247, 250, 252, 0.35) 100%),
      url("assets/images/everyday-circuit-smart-home-hero.png") 68% center / cover no-repeat;
  }

  .ec-hero-copy {
    padding: 72px 0 220px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ec-hero h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .ec-hero-copy {
    padding-top: 56px;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products li.product {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .woocommerce div.product {
    padding: 20px;
  }
}

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