/*
Theme Name: Everyday Circuit
Theme URI: https://everydaycircuit.com
Author: Everyday Circuit
Description: Branded block theme for the Everyday Circuit WooCommerce storefront.
Version: 1.1.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: "  →";
  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-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;
  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;
}

.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;
  }
}
