/*
Theme Name: WithLove Atelier
Theme URI: https://www.withlove.ec/
Author: CoderCase
Description: Theme propio para tienda artesanal de detalles en resina.
Version: 1.0.0
Text Domain: withlove-atelier
*/

:root {
  --ink: #2d2528;
  --muted: #75666b;
  --paper: #fffaf7;
  --blush: #fde9ef;
  --rose: #d9789b;
  --lavender: #b7a0e8;
  --gold: #d6a64f;
  --line: #ead6dc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(85, 43, 58, .14);
  --radius: 26px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; max-width: 100vw; background: var(--paper); color: var(--ink); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 247, .88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(234,214,220,.8); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: linear-gradient(135deg, var(--rose), var(--lavender)); color: #fff; font-weight: 1000; }
.brand-name { font-weight: 1000; letter-spacing: .18em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 22px; color: var(--muted); font-weight: 800; font-size: .94rem; }
.menu a { text-decoration: none; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 900; }

.btn, .button, button, input[type="submit"], .wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(45,37,40,.18);
}
.btn.rose, .button.alt { background: linear-gradient(135deg, var(--rose), #ee9ab4); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

.hero { position: relative; padding: 76px 0 70px; overflow: hidden; }
.hero:before { content: ''; position: absolute; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, #fbd2df, transparent 68%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; min-width: 0; }
.kicker { display: inline-flex; margin: 0 0 16px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--rose); font-weight: 950; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }
.hero h1 { margin: 0; font-size: clamp(3.2rem, 8vw, 7rem); line-height: .9; letter-spacing: -.08em; overflow-wrap: break-word; }
.hero h1 span { color: var(--rose); }
.lead { margin: 24px 0 0; max-width: 620px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.showcase { width: 100%; min-width: 0; min-height: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; border-radius: 42px; background: linear-gradient(145deg, #fff, var(--blush)); box-shadow: var(--shadow); }
.showcase-card { position: relative; min-width: 0; overflow: hidden; border-radius: 30px; background: #fff; min-height: 210px; }
.showcase-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-card.placeholder { display: grid; place-items: center; padding: 22px; text-align: center; color: var(--muted); background: radial-gradient(circle at top, #fff, #f7dbe5); }
.showcase-card.big { grid-row: span 2; }
.sparkle { font-size: 4rem; line-height: 1; }

.section { padding: 78px 0; }
.section.alt { background: #fff; }
.section-title { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 34px; }
.section-title h2 { margin: 0; max-width: 680px; font-size: clamp(2.25rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -.07em; }
.section-title p { margin: 0; max-width: 420px; color: var(--muted); line-height: 1.6; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.cat-card strong { font-size: 1.35rem; }
.cat-card span { color: var(--muted); }
.cat-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: #fff; font-size: 1.8rem; }

.products-grid, ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
.product-card, ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 14px !important; border-radius: 30px; background: #fff; box-shadow: 0 18px 46px rgba(85,43,58,.09); text-align: center; }
.product-card a, ul.products li.product a { text-decoration: none; }
.product-card img, ul.products li.product img { width: 100% !important; aspect-ratio: 1; height: auto !important; object-fit: cover; border-radius: 22px; margin: 0 0 16px !important; }
.product-card h3, .woocommerce-loop-product__title { margin: 0 0 8px !important; color: var(--ink); font-size: 1.1rem !important; font-weight: 900; }
.price { color: var(--rose) !important; font-weight: 950 !important; }
.product-card .button, ul.products li.product .button { margin-top: 14px !important; width: 100%; background: var(--blush); color: var(--ink); box-shadow: none; }
.onsale { border: 0 !important; border-radius: 999px !important; background: var(--gold) !important; color: #fff !important; padding: 6px 10px !important; font-weight: 900 !important; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-card { padding: 28px; border-radius: var(--radius); background: linear-gradient(145deg, #fff, #fff4f7); border: 1px solid var(--line); }
.process-card b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--rose); color: #fff; margin-bottom: 18px; }
.process-card h3 { margin: 0 0 10px; }
.process-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.story { border-radius: 40px; padding: 42px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.story p { color: rgba(255,255,255,.76); line-height: 1.7; }
.story .btn { background: #fff; color: var(--ink); box-shadow: none; }

.site-footer { padding: 38px 0; background: #fff; color: var(--muted); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.woocommerce-page-shell { padding: 54px 0 80px; }
.woocommerce-page-shell h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.07em; }
.woocommerce-result-count, .woocommerce-ordering, .woocommerce-breadcrumb, .storefront-sorting, #secondary { display: none !important; }
.woocommerce-notices-wrapper { margin-bottom: 18px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 16px 18px; }

@media (max-width: 900px) {
  .menu { display: none; }
  .hero-grid, .story { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, ul.products { grid-template-columns: repeat(2, 1fr); }
  .section-title { display: block; }
  .section-title p { margin-top: 14px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1180px); }
  main, section { max-width: 100vw; overflow-x: hidden; }
  .hero-grid > * { min-width: 0; }
  .cart-link { display: none; }
  .hero { padding-top: 46px; }
  .kicker, .hero h1, .lead, .actions { max-width: calc(100vw - 28px); }
  .hero h1 { font-size: 2.28rem; line-height: 1.05; letter-spacing: -.04em; }
  .lead { max-width: 100%; font-size: 1rem; }
  .showcase { grid-template-columns: 1fr; min-height: 0; }
  .showcase-card.big { grid-row: auto; }
  .category-grid, .products-grid, ul.products, .process { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .footer-grid { display: block; }
}
