/*
Theme Name: DPY Base
Theme URI: https://dheploy.example/dpy-base
Author: dheploy
Description: Base FSE theme for dpy-01 wrdpss-sites multi-client sites.
Version: 0.6.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: dpy-base
*/

:root {
  /* Generic fallbacks. Distinctive navy/calzado tokens live in skins/{slug}/tokens.json. */
  --dpy-navy: var(--wp--preset--color--navy, #1f2937);
  --dpy-green: var(--wp--preset--color--green, #0d9488);
  --dpy-red: var(--wp--preset--color--red, #b91c1c);
  --dpy-surface: var(--wp--preset--color--surface, #f3f4f6);
  --dpy-border: var(--wp--preset--color--border, #e5e7eb);
  --dpy-muted: var(--wp--preset--color--muted, #6b7280);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--dpy-navy);
}

h1, h2, h3, .dpy-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.dpy-chrome-header,
.dpy-chrome-footer {
  background: var(--dpy-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
}

.dpy-chrome-header {
  background: #fff;
  color: var(--dpy-navy);
  padding: 0;
  border-bottom: 1px solid var(--dpy-border);
}

.dpy-chrome-header-row {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
}

.dpy-chrome-header-search {
  justify-self: center;
  width: 100%;
  max-width: 32rem;
}

.dpy-chrome-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  justify-self: end;
}

.dpy-chrome-brand-block {
  gap: 0.15rem;
}

.dpy-brand-claim {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.95;
}

.dpy-menu-toggle {
  border: 1px solid var(--dpy-border);
  background: transparent;
  color: var(--dpy-navy);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.dpy-header-search {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.dpy-header-search input[type="search"] {
  border: 1px solid var(--dpy-border);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding: 0.45rem 0.75rem;
  min-width: 12rem;
  width: 100%;
  font-family: "Open Sans", system-ui, sans-serif;
  background: #f3f3f7;
}

.dpy-header-search button {
  border: 0;
  background: var(--dpy-green);
  color: #fff;
  border-radius: 0 4px 4px 0;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.dpy-header-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--dpy-navy);
  text-decoration: none;
}

.dpy-header-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--dpy-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 0.2rem;
}

@media (max-width: 480px) {
  .dpy-header-search input[type="search"] {
    min-width: 7rem;
  }

  .dpy-chrome-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dpy-brand-claim {
    display: none;
  }

  .dpy-header-menu {
    gap: 0.55rem;
    font-size: 0.62rem;
  }
}

.dpy-chrome-header a,
.dpy-chrome-footer a {
  color: inherit;
  text-decoration: none;
}

.dpy-brand {
  color: var(--dpy-navy);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.dpy-brand-claim {
  color: var(--dpy-navy);
}

body:not(.dpy-home-shell) .dpy-header-nav {
  background: #000;
  width: 100%;
}

body:not(.dpy-home-shell) .dpy-header-nav .dpy-header-menu {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  justify-content: space-between;
}

body:not(.dpy-home-shell) .dpy-header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  line-height: 1.1;
}

body:not(.dpy-home-shell) .dpy-nav-icon {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  display: block;
}

body:not(.dpy-home-shell) .dpy-nav-icon[data-icon="woman"]::after { content: "♀"; display: block; text-align: center; font-size: 0.65rem; line-height: 1.1rem; }
body:not(.dpy-home-shell) .dpy-nav-icon[data-icon="man"]::after { content: "♂"; display: block; text-align: center; font-size: 0.65rem; line-height: 1.1rem; }
body:not(.dpy-home-shell) .dpy-nav-icon[data-icon="home"]::after { content: "⌂"; display: block; text-align: center; font-size: 0.65rem; line-height: 1.1rem; }
body:not(.dpy-home-shell) .dpy-nav-icon[data-icon="business"]::after { content: "▣"; display: block; text-align: center; font-size: 0.65rem; line-height: 1.1rem; }
body:not(.dpy-home-shell) .dpy-nav-icon[data-icon="store"]::after { content: "🛍"; display: block; text-align: center; font-size: 0.55rem; line-height: 1.1rem; }

.dpy-top-marquee .dpy-marquee--red,
.dpy-marquee--red {
  background: var(--dpy-red);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.45rem 1rem;
}

.dpy-marquee--green {
  background: var(--dpy-green);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.45rem 1rem;
}

.dpy-top-marquee {
  width: 100%;
}

.dpy-front-page,
.dpy-front-page.wp-block-group,
.dpy-home-sections {
  max-width: none !important;
  width: 100%;
  padding: 0;
  margin: 0;
}

.dpy-header-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dpy-marquee {
  overflow: hidden;
  margin: 0;
}

body:not(.dpy-home-shell) .dpy-hero-slider {
  background: linear-gradient(90deg, #141428 0%, #1b1b54 55%, #252560 100%);
  color: #fff;
  padding: 0;
  position: relative;
  width: 100%;
  min-height: 340px;
}

body:not(.dpy-home-shell) .dpy-hero-slider .dpy-hero-title,
body:not(.dpy-home-shell) .dpy-hero-slider .dpy-hero-subtitle,
body:not(.dpy-home-shell) .dpy-hero-slider h2,
body:not(.dpy-home-shell) .dpy-hero-slider p {
  color: #fff;
}

body:not(.dpy-home-shell) .dpy-hero-slider-inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 3.5rem 2rem;
  min-height: 340px;
}

body:not(.dpy-home-shell) .dpy-hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.dpy-hero-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  line-height: 1.08;
  margin: 0 0 0.65rem;
}

.dpy-hero-subtitle {
  max-width: 28rem;
  margin: 0 0 1rem;
  line-height: 1.45;
  opacity: 0.95;
}

.dpy-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.dpy-hero-slide-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dpy-hero-slide-placeholder {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

.dpy-hero-slide-placeholder small {
  opacity: 0.7;
}

.dpy-hero-slide-image {
  width: min(100%, 280px);
  height: auto;
  object-fit: cover;
}

.dpy-hero-prev,
.dpy-hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.dpy-hero-prev { left: 0.75rem; }
.dpy-hero-next { right: 0.75rem; }

.dpy-hero-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.dpy-hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.dpy-hero-dot.is-active {
  background: #fff;
}

.dpy-badge {
  display: inline-block;
  background: var(--dpy-green);
  color: #fff;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.dpy-cta {
  display: inline-block;
  background: var(--dpy-green);
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 700;
}

.dpy-cta-secondary {
  background: transparent;
  border: 1px solid #fff;
}

.dpy-quick-categories,
.dpy-product-rail,
.dpy-trust-badges,
.dpy-cta.dpy-section,
.dpy-section.dpy-cta {
  padding: 0;
}

/* Home: ritmo/densidad de bloques (look final vs 9:2 / 62:938) */
.dpy-front-page > * + * {
  margin-top: 0;
}

.dpy-front-page .dpy-quick-categories-inner,
.dpy-front-page .dpy-product-rail-inner,
.dpy-front-page .dpy-trust-badges-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding-block: 2.25rem;
  padding-inline: 1.25rem;
}

.dpy-quick-categories-title,
.dpy-product-rail-title,
.dpy-section-title {
  position: relative;
  padding-left: 0.85rem;
}

body:not(.dpy-home-shell) .dpy-quick-categories-title::before,
body:not(.dpy-home-shell) .dpy-product-rail-title::before,
body:not(.dpy-home-shell) .dpy-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: var(--dpy-red);
}

.dpy-product-rail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dpy-rail-subtitle {
  color: var(--dpy-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin: 0.35rem 0 0;
}

.dpy-rail-cta-link {
  color: var(--dpy-green);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.dpy-hero-track {
  position: relative;
}

.dpy-hero-slide {
  display: none;
}

.dpy-quick-cat-list a,
.dpy-quick-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 68px;
  min-width: 68px;
  border-radius: 999px;
  background: #eef0f6;
  color: var(--dpy-navy);
  font-size: 0.65rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 0.35rem;
}

.dpy-quick-cat--navy {
  background: var(--dpy-navy);
  color: #fff;
}

.dpy-quick-cat--red {
  background: var(--dpy-red);
  color: #fff;
}

.dpy-quick-cat-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.dpy-quick-cat--default .dpy-quick-cat-icon {
  background: rgba(27, 27, 84, 0.12);
}

.dpy-quick-cat-icon[data-icon="woman"]::after { content: "♀"; display: block; text-align: center; line-height: 1.25rem; font-size: 0.7rem; }
.dpy-quick-cat-icon[data-icon="man"]::after { content: "♂"; display: block; text-align: center; line-height: 1.25rem; font-size: 0.7rem; }
.dpy-quick-cat-icon[data-icon="home"]::after { content: "⌂"; display: block; text-align: center; line-height: 1.25rem; font-size: 0.7rem; }
.dpy-quick-cat-icon[data-icon="local_offer"]::after,
.dpy-quick-cat-icon[data-icon="sell"]::after { content: "🏷"; display: block; text-align: center; line-height: 1.25rem; font-size: 0.55rem; }
.dpy-quick-cat-icon[data-icon="reviews"]::after { content: "★"; display: block; text-align: center; line-height: 1.25rem; font-size: 0.65rem; }

.dpy-quick-cat-label {
  text-align: center;
  line-height: 1.2;
}

.dpy-front-page .dpy-section-title {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.dpy-home-sections .dpy-quick-categories h2 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  text-transform: uppercase;
}

.dpy-quick-cat-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .dpy-chrome-header-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "search search";
  }

  .dpy-chrome-brand-block { grid-area: brand; }
  .dpy-chrome-header-search { grid-area: search; max-width: none; }
  .dpy-chrome-header-actions { grid-area: actions; }

  .dpy-hero-slide.is-active {
    grid-template-columns: 1fr;
  }

  .dpy-hero-slide-media {
    order: -1;
  }
}

@media (max-width: 480px) {
  .dpy-front-page .dpy-quick-categories,
  .dpy-front-page .dpy-product-rail,
  .dpy-front-page .dpy-trust-badges,
  .dpy-front-page .dpy-section {
    padding-block: 1.5rem;
  }

  .dpy-front-page .dpy-section-title {
    font-size: 1.25rem;
  }

  .dpy-chrome-header-row {
    gap: 0.75rem;
  }

  .dpy-hero-slider-inner {
    padding: 2rem 2.5rem 1.75rem;
    min-height: 220px;
  }

  .dpy-quick-cat-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dpy-product-rail-list,
.dpy-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dpy-product-card-image {
  display: block;
  width: 280px;
  height: 200px;
  object-fit: cover;
  background: #e8e8ef;
}

.dpy-product-card {
  width: 280px;
}

.dpy-product-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dpy-product-card-title {
  font-weight: 700;
  font-family: "IBM Plex Serif", Georgia, serif;
  text-transform: uppercase;
}

.dpy-product-card-price {
  color: var(--dpy-navy);
}

.dpy-product-card-price del {
  opacity: 0.6;
  margin-right: 0.35rem;
}

.dpy-trust-item {
  flex: 1 1 200px;
  border-top: 3px solid var(--dpy-green);
  padding-top: 0.5rem;
}

.dpy-whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--dpy-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.dpy-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--dpy-green);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.32rem 0.62rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  border-radius: 0.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.dpy-whatsapp-link--compact .dpy-whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: 0.55rem;
  font-weight: 800;
}

/* ——— Storefront compra / CMS (005 look final) ——— */

.dpy-shop,
.dpy-pdp,
.dpy-cart,
.dpy-checkout,
.dpy-thankyou,
.dpy-404,
.dpy-cms {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.dpy-shop-title,
.dpy-cart-title,
.dpy-checkout-title,
.dpy-pdp-title,
.dpy-thankyou-title,
.dpy-404-title,
.dpy-cms-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  color: var(--dpy-navy);
  margin: 0 0 1.25rem;
}

.dpy-shop-grid ul,
.dpy-shop-grid .wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dpy-shop-grid .wc-block-product,
.dpy-shop-grid li {
  border-top: 3px solid var(--dpy-green);
  padding-top: 0.75rem;
}

.dpy-shop-card-title a,
.dpy-shop-card-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  color: var(--dpy-navy);
  text-decoration: none;
}

.dpy-shop-card-price,
.dpy-pdp-price .woocommerce-Price-amount {
  font-weight: 700;
  color: var(--dpy-navy);
}

.dpy-shop-card-cta .wp-element-button,
.dpy-pdp-add-to-cart .single_add_to_cart_button,
.dpy-cta .wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-button {
  background: var(--dpy-green) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 700;
  text-transform: none;
}

.dpy-pdp-columns {
  gap: 2rem;
  align-items: start;
}

.dpy-pdp-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dpy-pdp-excerpt {
  color: #333;
  line-height: 1.55;
}

.dpy-cart-empty {
  padding: 3rem 1rem;
  text-align: center;
  border: 1px dashed #c8c8d8;
}

.dpy-cart-empty-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  color: var(--dpy-navy);
}

.dpy-thankyou-lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.dpy-cms .dpy-cms-body {
  line-height: 1.65;
  font-size: 1rem;
}

.dpy-cms .dpy-cms-body h2,
.dpy-cms .dpy-cms-body h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  color: var(--dpy-navy);
}

/* Woo classic fallbacks */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  border-top: 3px solid var(--dpy-green);
  padding-top: 0.75rem;
}

.woocommerce div.product .product_title {
  font-family: "IBM Plex Serif", Georgia, serif;
  color: var(--dpy-navy);
}

.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce {
  font-family: "Open Sans", system-ui, sans-serif;
}

@media (max-width: 900px) {
  .dpy-shop-grid ul,
  .dpy-shop-grid .wc-block-product-template,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .dpy-shop,
  .dpy-pdp,
  .dpy-cart,
  .dpy-checkout,
  .dpy-thankyou,
  .dpy-404,
  .dpy-cms {
    padding: 1rem 0.85rem 2.5rem;
  }

  .dpy-shop-grid ul,
  .dpy-shop-grid .wc-block-product-template,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .dpy-pdp-columns {
    flex-direction: column;
  }
}

