/*
Theme Name: Shopamina
Theme URI: https://shopamina.com.pe
Author: Shopamina
Description: Tienda WooCommerce administrable para Shopamina.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 8.1
Text Domain: shopamina
*/

:root {
  --pink: #fc378c;
  --pink-dark: #de1f70;
  --ink: #15111b;
  --muted: #6e6871;
  --blush: #fff0f6;
  --soft: #fff9fb;
  --white: #fff;
  --border: #eedde5;
  --green: #24c768;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(21, 17, 27, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.shop-container { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.announcement-bar { color: white; background: var(--ink); font-size: .82rem; font-weight: 750; }
.announcement-bar .shop-container { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 44px; }
.announcement-extra { opacity: .72; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(15px); }
.header-row { min-height: 84px; display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; width: max-content; font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 950; letter-spacing: -.075em; }
.brand-shop { color: var(--pink); }
.brand-amina { color: var(--ink); }
.brand-spark { width: 9px; height: 9px; margin: -27px 0 0 6px; border-radius: 2px; background: var(--pink); transform: rotate(45deg); }
.header-search { height: 48px; display: flex; overflow: hidden; border: 1px solid #ded8df; border-radius: 999px; background: white; }
.header-search input[type="search"] { width: 100%; min-width: 0; padding: 0 20px; border: 0; outline: 0; background: transparent; }
.header-search button { width: 54px; flex: 0 0 auto; border: 0; color: white; background: var(--pink); font-size: 1.45rem; cursor: pointer; }
.header-utilities { display: flex; align-items: center; gap: 8px; }
.header-utilities a { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; background: #f7f4f6; font-size: .86rem; font-weight: 800; }
.utility-icon { font-size: 1.1rem; }
.nav-cart { color: white !important; background: var(--ink) !important; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }
.category-nav { border-top: 1px solid #f1e9ed; background: white; }
.category-nav-inner { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 38px); overflow-x: auto; scrollbar-width: none; font-size: .9rem; font-weight: 750; white-space: nowrap; }
.hot-link { padding: 6px 13px; border-radius: 999px; color: white; background: var(--pink); }

.hero-slider { position: relative; overflow: hidden; background: white; }
.hero-slides { position: relative; min-height: 510px; }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; transform: translateX(2%); transition: opacity .55s ease, transform .55s ease, visibility .55s; background: linear-gradient(105deg, #fff 0 48%, #ffd7e8 100%); }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-slide.hero-dark { color: white; background: linear-gradient(115deg, #19131f 0 57%, #f63488 57% 100%); }
.hero-slide.hero-soft { background: linear-gradient(115deg, #fff0f6 0 58%, #fff 58% 100%); }
.hero-slide[style] { background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0 42%, rgba(255,255,255,.3) 70%), var(--hero-image); background-size: cover; background-position: center; }
.hero-content { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 55px; padding-block: 58px; }
.hero-copy-block { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { margin: 0 0 10px; color: var(--pink-dark); font-size: .78rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.hero-dark .eyebrow { color: #ff85b9; }
.hero-slide h1 { max-width: 720px; margin: 0; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .93; letter-spacing: -.075em; }
.hero-copy { max-width: 600px; margin: 22px 0 28px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.hero-dark .hero-copy { color: #ded5e2; }
.button, .wp-element-button, button[type="submit"], input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 850; cursor: pointer; }
.button-primary, .wp-element-button, input[type="submit"] { color: white; background: var(--pink); box-shadow: 0 12px 28px rgba(252,55,140,.28); }
.hero-art { position: relative; min-height: 350px; border-radius: 42px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.hero-orb { position: absolute; width: 210px; height: 210px; right: 12%; top: 10%; border-radius: 50%; background: var(--pink); }
.hero-smile { position: absolute; width: 260px; height: 112px; left: 14%; bottom: 15%; border: 25px solid #fff5f9; border-top: 0; border-radius: 0 0 180px 180px; transform: rotate(-4deg); }
.hero-tag { position: absolute; z-index: 2; left: 26px; top: 26px; padding: 12px 17px; border-radius: 15px; color: var(--ink); background: white; font-weight: 950; transform: rotate(-4deg); }
.hero-arrow { position: absolute; z-index: 5; top: 50%; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 8px 30px rgba(0,0,0,.12); font-size: 2rem; line-height: 1; }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
.hero-dots { position: absolute; z-index: 6; bottom: 20px; left: 50%; display: flex; gap: 7px; transform: translateX(-50%); }
.hero-dot { width: 9px; height: 9px; min-height: 0; padding: 0; border: 0; border-radius: 99px; background: rgba(21,17,27,.28); transition: width .25s, background .25s; }
.hero-dot.is-active { width: 28px; background: var(--pink); }

.trust { border-block: 1px solid var(--border); background: white; }
.trust-grid { min-height: 92px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-item { min-height: 52px; display: flex; align-items: center; gap: 13px; padding: 0 24px; border-right: 1px solid var(--border); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--pink); background: var(--blush); font-weight: 950; }
.trust-item span:last-child { display: grid; }
.trust-item strong { font-size: .9rem; }
.trust-item small { color: var(--muted); }

.section { padding: 68px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.section-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); }
.section-heading h2, .newsletter h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; letter-spacing: -.055em; }
.compact-heading { align-items: center; }
.text-link { color: var(--pink-dark); font-weight: 850; }
.category-section { background: white; }
.category-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-pill { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: .9rem; font-weight: 800; }
.category-visual { width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--pink); background: var(--blush); transition: transform .25s, box-shadow .25s; }
.category-pill:nth-child(even) .category-visual { color: white; background: var(--ink); }
.category-visual b { font-size: 1.75rem; }
.category-visual img { width: 100%; height: 100%; object-fit: cover; }
.category-pill:hover .category-visual { transform: translateY(-5px); box-shadow: var(--shadow); }

.product-section:nth-of-type(even) { background: white; }
.carousel-heading { align-items: flex-end; }
.carousel-actions { display: flex; gap: 8px; }
.carousel-arrow { width: 46px; height: 46px; min-height: 0; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: white; font-size: 1.25rem; }
.product-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 3px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #e1cad5 transparent; }
.shop-product-card { position: relative; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: 0 9px 28px rgba(21,17,27,.045); }
.product-image { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; background: #f8f5f7; }
.product-image img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s; }
.shop-product-card:hover .product-image img { transform: scale(1.045); }
.discount-badge { position: absolute; z-index: 2; top: 13px; left: 13px; padding: 6px 10px; border-radius: 999px; color: white; background: var(--pink); font-size: .78rem; font-weight: 900; }
.product-placeholder { padding: 20px; color: #a59da6; font-weight: 900; text-align: center; }
.demo-number { position: absolute; left: 18px; top: 12px; color: #f2c8d9; font-size: 3rem; font-weight: 950; }
.product-card-body { padding: 18px; }
.product-kicker { margin: 0 0 6px; color: var(--pink-dark); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.product-card-body h3 { min-height: 48px; margin: 0 0 10px; font-size: 1rem; line-height: 1.35; }
.product-price { min-height: 30px; margin-bottom: 14px; color: var(--ink); font-size: 1.15rem; font-weight: 950; }
.product-price del { margin-right: 5px; color: #999; font-size: .85rem; font-weight: 600; }
.product-price ins { color: var(--pink-dark); text-decoration: none; }
.product-button { min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: white; background: var(--ink); font-size: .85rem; font-weight: 850; }

.newsletter { margin-block: 34px 74px; padding: 44px 50px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; border-radius: 32px; color: white; background: var(--ink); }
.newsletter p { margin-bottom: 0; color: #d8d0dc; }
.newsletter .eyebrow { color: #ff80b6; }
.newsletter-form { display: flex; padding: 6px; border-radius: 999px; background: white; }
.newsletter-form input { width: 100%; min-width: 0; padding: 0 18px; border: 0; outline: 0; background: transparent; }
.newsletter-form button { flex: 0 0 auto; color: white; background: var(--pink); }
.floating-whatsapp { position: fixed; z-index: 60; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 18px; border-radius: 999px; color: white; background: var(--green); box-shadow: 0 14px 35px rgba(36,199,104,.3); font-weight: 850; }
.floating-whatsapp b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); }

.site-footer { padding-top: 56px; color: #ddd5e0; background: #100d14; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; padding-bottom: 48px; }
.footer-grid .brand-amina { color: white; }
.footer-brand p { max-width: 390px; color: #aaa1ad; }
.footer-grid h3 { margin: 8px 0 17px; color: white; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.footer-grid a:hover { color: white; }
.social-row { display: flex; gap: 14px; color: white; font-weight: 800; }
.footer-bottom { min-height: 64px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #2d2732; color: #8f8792; font-size: .85rem; }

/* WooCommerce pages */
.woocommerce .content-area, .woocommerce-page main { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 14px; border: 1px solid var(--border); border-radius: 20px; background: white; }
.woocommerce ul.products li.product a img { border-radius: 14px; background: var(--blush); }
.woocommerce ul.products li.product .price { color: var(--pink-dark); font-weight: 900; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { color: white; background: var(--ink); border-radius: 999px; }
.woocommerce div.product { padding-block: 55px; }

@media (max-width: 1000px) {
  .header-row { grid-template-columns: auto 1fr auto; gap: 15px; }
  .header-utilities a:not(.nav-cart) { display: none; }
  .category-rail { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 760px) {
  .shop-container { width: min(100% - 24px, 1240px); }
  .announcement-bar .shop-container { min-height: 31px; justify-content: center; text-align: center; }
  .announcement-extra { display: none; }
  .site-header { top: 0; }
  .header-row { min-height: 68px; grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; }
  .header-row .brand { justify-self: center; font-size: 1.65rem; }
  .header-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .header-utilities a { min-height: 42px; padding: 0 11px; }
  .header-utilities .nav-cart span:not(.utility-icon) { display: none; }
  .category-nav { display: none; }
  .category-nav.is-open { display: block; }
  .category-nav-inner { min-height: auto; padding: 14px 12px; justify-content: flex-start; }
  .hero-slides { min-height: 620px; }
  .hero-content { grid-template-columns: 1fr; gap: 25px; padding-block: 42px 58px; }
  .hero-slide h1 { font-size: clamp(2.9rem, 13vw, 4.4rem); }
  .hero-art { min-height: 230px; }
  .hero-orb { width: 135px; height: 135px; }
  .hero-smile { width: 175px; height: 75px; border-width: 18px; }
  .hero-arrow { width: 39px; height: 39px; top: auto; bottom: 13px; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
  .hero-dots { bottom: 26px; }
  .trust-grid { padding-block: 10px; }
  .trust-item { padding: 12px; border-right: 0; }
  .section { padding: 48px 0; }
  .section-heading { align-items: flex-start; }
  .section-heading h2, .newsletter h2 { font-size: 2.25rem; }
  .category-rail { display: flex; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .category-pill { min-width: 115px; scroll-snap-align: start; }
  .product-carousel { grid-auto-columns: 72%; }
  .product-image { min-height: 230px; }
  .newsletter { margin-bottom: 50px; padding: 30px 22px; grid-template-columns: 1fr; gap: 24px; }
  .newsletter-form { border-radius: 18px; flex-direction: column; padding: 8px; }
  .newsletter-form input { min-height: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: 0; }
  .product-carousel { grid-auto-columns: 84%; }
  .carousel-actions { display: none; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { padding: 8px; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
}
