/*
Theme Name: Pet Food Express
Theme URI: https://petfoodexpresslaserena.cl/
Description: Tema hijo de Storefront para la tienda de mascotas de La Serena.
Author: Pet Food Express
Template: storefront
Version: 1.1.3
Text Domain: storefront-petfood
*/

:root {
  --pfx-green: #8d1a1a;
  --pfx-green-deep: #5e1010;
  --pfx-sage: #f8efe2;
  --pfx-cream: #fbf6ee;
  --pfx-sand: #f6e2b0;
  --pfx-clay: #c8922a;
  --pfx-ink: #2a1a12;
  --pfx-radius: 22px;
}

body,
button,
input,
textarea,
select {
  font-family: "Nunito", "Source Sans Pro", sans-serif;
}

h1, h2, h3, h4, .site-title, .pfx-hero h1, .pfx-section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.pfx-announce {
  background: var(--pfx-green-deep);
  color: var(--pfx-sand);
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
}

.pfx-announce a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

body.pfx-front #content > .col-full,
body.pfx-front .site-content > .col-full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.pfx-front .storefront-breadcrumb,
body.pfx-front .woocommerce-breadcrumb {
  display: none;
}

.pfx-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.pfx-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  background: #5e1010 center 18%/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.pfx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(62, 8, 8, 0.84) 0%, rgba(62, 8, 8, 0.45) 52%, rgba(62, 8, 8, 0.12) 100%),
    linear-gradient(180deg, rgba(62, 8, 8, 0.05) 40%, rgba(62, 8, 8, 0.4) 100%);
}

.pfx-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto 4.5rem;
  max-width: 640px;
  margin-left: max(1.2rem, calc((100% - 1120px) / 2));
}

.pfx-kicker {
  display: inline-block;
  background: rgba(243, 230, 207, 0.18);
  border: 1px solid rgba(243, 230, 207, 0.35);
  color: var(--pfx-sand);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
}

.pfx-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 0.8rem;
}

.pfx-hero p {
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 36rem;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.92);
}

.pfx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pfx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.pfx-story a.pfx-btn-primary,
.pfx-btn-primary {
  background: var(--pfx-green);
  color: #fff;
}

.pfx-story a.pfx-btn-primary:hover,
.pfx-btn-primary:hover {
  background: #6e1212;
  color: #fff;
}

.pfx-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.pfx-btn-ghost:hover {
  background: #fff;
  color: var(--pfx-green);
}

.pfx-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.pfx-trust article {
  background: var(--pfx-cream);
  border-radius: var(--pfx-radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: inset 0 4px 0 var(--pfx-clay), 0 14px 36px rgba(42, 26, 18, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pfx-trust article:nth-child(2) {
  box-shadow: inset 0 4px 0 var(--pfx-green), 0 14px 36px rgba(42, 26, 18, 0.14);
}

.pfx-trust article:nth-child(3) {
  box-shadow: inset 0 4px 0 var(--pfx-green-deep), 0 14px 36px rgba(42, 26, 18, 0.14);
}

.pfx-trust article:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 4px 0 var(--pfx-green), 0 16px 32px rgba(42, 26, 18, 0.16);
}

.pfx-trust h3 {
  margin: 0.1rem 0 0.3rem;
  color: var(--pfx-green);
  font-size: 1.15rem;
}

.pfx-trust p {
  margin: 0;
  color: #4d5b53;
}

.pfx-section {
  padding: 4.2rem 0 0.5rem;
}

.pfx-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--pfx-green);
  margin: 0 0 0.4rem;
}

.pfx-lead {
  color: #4d5b53;
  max-width: 38rem;
  margin: 0 0 1.6rem;
}

.pfx-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}

.pfx-cat {
  grid-column: span 2;
  position: relative;
  display: block;
  min-height: 240px;
  border-radius: var(--pfx-radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #5e1010 center/cover no-repeat;
}

.pfx-cat:nth-child(4),
.pfx-cat:nth-child(5) {
  grid-column: span 3;
  min-height: 220px;
}

.pfx-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 8, 8, 0.05) 30%, rgba(62, 8, 8, 0.72) 100%);
}

.pfx-cat span {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 0.95rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem;
}

.pfx-cat:hover {
  color: #fff;
  transform: translateY(-2px);
}

.pfx-story {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--pfx-sage);
  border-radius: 28px;
  overflow: hidden;
}

.pfx-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  min-height: 320px;
  display: block;
}

.pfx-story a {
  color: var(--pfx-green);
  font-weight: 700;
}

.pfx-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.pfx-social-links a {
  display: inline-block;
  background: #fff;
  color: var(--pfx-green);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
}

.site-footer .site-info a {
  color: #fff;
  font-weight: 700;
}

.pfx-site-info {
  line-height: 1.55;
}

.pfx-site-info p {
  margin: 0.2rem 0;
}

.pfx-footer-where {
  color: #fff;
}

.pfx-visit {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--pfx-sage);
  border-radius: 28px;
  overflow: hidden;
}

.pfx-visit-copy {
  padding: 2.4rem 2.2rem;
  align-self: center;
}

.pfx-visit h2 {
  margin-top: 0;
}

.pfx-visit-copy p {
  color: #4d5b53;
}

.pfx-visit .pfx-address {
  color: var(--pfx-ink);
  font-weight: 700;
  margin: 0 0 1.1rem;
}

.pfx-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

.pfx-pickup-note {
  margin: 0.85rem 0 0;
  color: #4d5b53;
}

.pfx-pickup-note a {
  color: var(--pfx-green);
  font-weight: 700;
}

.pfx-story div {
  padding: 2.4rem 2.2rem;
  align-self: center;
}

.pfx-story h2 {
  margin-top: 0;
}

.pfx-story .pfx-btn {
  margin: 0.15rem 0 0.2rem;
}

.pfx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 3.5rem;
}

.pfx-steps article {
  background: var(--pfx-cream);
  border-radius: var(--pfx-radius);
  padding: 1.35rem 1.25rem 1.45rem;
  box-shadow: inset 0 4px 0 var(--pfx-clay);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pfx-steps article:nth-child(2) {
  box-shadow: inset 0 4px 0 var(--pfx-green);
}

.pfx-steps article:nth-child(3) {
  box-shadow: inset 0 4px 0 var(--pfx-green-deep);
}

.pfx-steps article:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 4px 0 var(--pfx-green), 0 12px 28px rgba(94, 16, 16, 0.1);
}

.pfx-step-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--pfx-sand);
  color: var(--pfx-green);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pfx-step-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.pfx-steps article:hover .pfx-step-icon,
.pfx-trust article:hover .pfx-step-icon {
  background: var(--pfx-green);
  color: var(--pfx-sand);
  transform: translateY(-2px);
}

.pfx-steps h3 {
  margin: 0.15rem 0 0.35rem;
}

.pfx-steps strong {
  display: block;
  color: var(--pfx-clay);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

@keyframes pfx-step-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pfx-steps article {
  animation: pfx-step-in 0.5s ease both;
}

.pfx-steps article:nth-child(2) { animation-delay: 0.08s; }
.pfx-steps article:nth-child(3) { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .pfx-steps article {
    animation: none;
  }
  .pfx-steps article,
  .pfx-trust article,
  .pfx-step-icon {
    transition: none;
  }
}

.pfx-note {
  background: var(--pfx-green);
  color: #fff;
  border-radius: 28px;
  padding: 2rem 2.1rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.pfx-note h2,
.pfx-note p {
  color: #fff;
}

.pfx-note h2 {
  margin: 0 0 0.35rem;
}

.pfx-note p {
  margin: 0;
  max-width: 38rem;
}

.pfx-note .pfx-btn-primary {
  background: var(--pfx-sand);
  color: var(--pfx-green-deep);
}

.pfx-note .pfx-btn-primary:hover {
  background: #fff;
  color: var(--pfx-green-deep);
}

ul.products li.product .woocommerce-LoopProduct-link img,
.woocommerce ul.products li.product a img {
  border-radius: 16px;
}

.woocommerce-info,
.woocommerce-noreviews,
p.woocommerce-info {
  border-radius: 16px;
}

.woocommerce ul.products li.product .button,
.single_add_to_cart_button,
.checkout-button {
  border-radius: 999px !important;
}

.site-header {
  border-bottom: 0;
}

.widget-area .widget {
  background: var(--pfx-cream);
  border-radius: var(--pfx-radius);
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 1rem;
}

.widget-area .widget-title,
.widget-area .widget h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  color: var(--pfx-green);
  margin: 0 0 0.7rem;
}

.widget_product_categories ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget_product_categories li {
  margin: 0;
  border-top: 1px solid rgba(141, 26, 26, 0.12);
}

.widget_product_categories li:first-child {
  border-top: 0;
}

.widget_product_categories a {
  display: block;
  padding: 0.55rem 0;
  color: var(--pfx-ink);
  font-weight: 700;
  text-decoration: none;
}

.widget_product_categories a:hover {
  color: var(--pfx-green);
}

/* Storefront deja un margen grande bajo el header en la portada. */
body.home.page.pfx-front .site-header,
body.pfx-front.no-wc-breadcrumb .site-header {
  margin-bottom: 0;
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
  background: transparent;
}

.site-header .custom-logo-link img,
.custom-logo {
  max-height: 78px;
  width: auto;
  max-width: 340px;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.site-branding .site-title {
  font-size: 1.35rem;
  line-height: 1.15;
}

.site-branding .site-title a {
  font-family: "Fraunces", Georgia, serif;
}

.site-header .site-description {
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .pfx-hero {
    min-height: 88vh;
    align-items: end;
  }
  .pfx-hero::after {
    background: linear-gradient(180deg, rgba(62, 8, 8, 0.12) 20%, rgba(62, 8, 8, 0.78) 100%);
  }
  .pfx-hero-inner {
    margin-bottom: 2.2rem;
    margin-left: auto;
    margin-right: auto;
  }
  .pfx-trust,
  .pfx-steps,
  .pfx-story,
  .pfx-visit,
  .pfx-note {
    grid-template-columns: 1fr;
    display: grid;
  }
  .pfx-map iframe {
    min-height: 280px;
  }
  .pfx-trust {
    margin-top: 1rem;
  }
  .pfx-cats {
    grid-template-columns: 1fr 1fr;
  }
  .pfx-cat,
  .pfx-cat:nth-child(4),
  .pfx-cat:nth-child(5) {
    grid-column: span 1;
    min-height: 180px;
  }
  .pfx-note {
    display: block;
  }
  .pfx-note .pfx-btn {
    margin-top: 1rem;
  }
}
