/*
Theme Name: Mi Tienda Comercial
Description: Tema WooCommerce responsive para un ecommerce paraguayo.
Version: 1.0.0
Text Domain: mi-tienda-comercial
*/

:root {
  --brand: #7A3E4D;
  --brand-dark: #693441;
  --accent: #D9A5AD;
  --ink: #292323;
  --muted: #756569;
  --surface: #FAF7F5;
  --surface-alt: #F1E5E1;
  --premium: #C3A36A;
  --sale: #D85C68;
  --line: #E8DCD8;
  --white: #FFFDFC;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(69, 36, 44, .08);
  --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; }
.site-main { min-height: 50vh; }

.utility-bar { background: var(--brand-dark); color: #eaf2ff; font-size: .86rem; }
.utility-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.utility-links, .utility-promise { display: flex; align-items: center; gap: 18px; }
.utility-links a:hover { color: var(--accent); }

.main-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: grid; grid-template-columns: 220px minmax(280px, 1fr) auto; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.55rem; font-weight: 850; color: var(--brand-dark); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--brand-dark), #2dd4bf); color: white; }
.product-search { display: flex; min-height: 48px; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; background: white; }
.product-search input { width: 100%; border: 0; outline: 0; padding: 0 20px; font: inherit; }
.product-search button { min-width: 120px; border: 0; background: var(--brand); color: white; font-weight: 750; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.action-link { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.action-link:hover { background: #ecfdf5; color: var(--brand); }
.cart-count { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 99px; background: var(--accent); color: #3f160d; font-size: .76rem; }

.primary-nav { background: var(--white); box-shadow: 0 4px 16px rgba(16, 24, 40, .05); position: relative; z-index: 20; }
.nav-inner { display: flex; align-items: center; min-height: 54px; gap: 6px; }
.nav-link { padding: 15px 18px; font-weight: 700; }
.nav-link:hover { color: var(--brand); }
.departments { margin-right: 12px; background: var(--brand); color: white; border-radius: 10px; }
.categories-dropdown { display: inline-block; position: relative; vertical-align: middle; }
.categories-dropdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; }
.categories-dropdown summary::-webkit-details-marker { display: none; }
.categories-dropdown summary:hover, .categories-dropdown[open] summary { color: white; background: var(--brand-dark, #134e4a); }
.categories-dropdown summary:focus-visible, .categories-menu a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.categories-menu { position: absolute; top: calc(100% + 8px); left: 0; width: min(740px, calc(100vw - 40px)); max-height: 65vh; overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 18px 40px rgba(16,24,40,.18); }
.categories-all { display: block; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 750; color: var(--brand); }
.categories-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.categories-menu-group a { display: block; padding: 5px 2px; overflow-wrap: anywhere; }
.categories-rubro { font-weight: 800; color: var(--brand); }
.categories-family { font-size: .9rem; }
.categories-menu a:hover { color: var(--brand); text-decoration: underline; }
.brands-menu { width: min(320px, calc(100vw - 40px)); }
.brand-menu-link { display: block; padding: 10px 0; }
@media (max-width: 700px) {
  .categories-dropdown { display: block; width: 100%; }
  .categories-menu { position: static; width: 100%; max-height: 55vh; margin-top: 8px; padding: 16px; box-shadow: none; }
  .categories-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
.mobile-toggle { display: none; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); background: white; border-radius: 9px; font-weight: 700; }

.hero { padding: 26px 0 14px; }
.commerce-showcase { display: grid; grid-template-columns: 285px 1fr; gap: 0; overflow: visible; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.department-panel { position: relative; z-index: 8; border-right: 1px solid var(--line); background: white; }
.department-title { display: flex; min-height: 54px; align-items: center; gap: 10px; padding: 0 20px; background: var(--accent); color: #3f160d; font-weight: 850; }
.department-list { margin: 0; padding: 10px 0; list-style: none; }
.department-item { position: relative; }
.department-link { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; font-weight: 650; }
.department-link:hover, .department-item:focus-within > .department-link { background: #ecfdf5; color: var(--brand); }
.department-name { display: flex; align-items: center; gap: 11px; }
.department-name span:first-child { width: 25px; text-align: center; }
.family-menu {
  position: absolute; top: -10px; left: 100%; width: 310px; min-height: 210px; display: none;
  padding: 22px; border: 1px solid var(--line); border-radius: 0 14px 14px 0; background: white; box-shadow: 18px 18px 40px rgba(16,24,40,.14);
}
.department-item:hover .family-menu, .department-item:focus-within .family-menu { display: block; }
.family-menu h3 { margin: 0 0 14px; color: var(--brand-dark); }
.family-links { display: grid; gap: 8px; }
.family-links a { padding: 8px 10px; border-radius: 8px; color: #344054; }
.family-links a:hover { background: #ecfdf5; color: var(--brand); }
.showcase-content { min-width: 0; }
.showcase-main {
  min-height: 355px; display: grid; grid-template-columns: 1.55fr .9fr; overflow: hidden;
}
.hero-card {
  min-height: 355px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  overflow: hidden; border-radius: 0; color: white;
  background: linear-gradient(90deg, rgba(6,44,46,.98) 0%, rgba(6,44,46,.93) 38%, rgba(6,44,46,.14) 72%),
              url("assets/images/bshop-hero.png") center / cover no-repeat;
}
.hero-copy { padding: clamp(30px, 5vw, 60px); }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 850; color: var(--accent); }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .98; letter-spacing: -.045em; }
.hero p { max-width: 570px; font-size: clamp(1rem, 1.7vw, 1.24rem); color: #eaf2ff; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #3f160d; font-weight: 850; }
.hero-visual { min-height: 100%; display: grid; place-items: center; padding: 40px; }
.device-card { width: min(360px, 85%); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 44px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); transform: rotate(5deg); font-size: 7rem; box-shadow: 0 28px 60px rgba(0,0,0,.18); }
.promo-preview { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; background: #d0d5dd; gap: 2px; }
.promo-tile { position: relative; display: flex; min-height: 175px; align-items: end; overflow: hidden; padding: 18px; color: white; background: #344054 center / cover no-repeat; }
.promo-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.76), rgba(0,0,0,.05) 68%); }
.promo-tile > span { position: relative; z-index: 1; font-size: .94rem; font-weight: 850; line-height: 1.2; }
.promo-tile:nth-child(1) { background-image: url("assets/images/bshop-ofertas.png"); background-position: 72% center; }
.promo-tile:nth-child(2) { background-image: url("assets/images/bshop-hero.png"); background-position: 73% center; }
.promo-tile:nth-child(3) { background-image: linear-gradient(135deg, #334155, #0f172a); }
.promo-tile:nth-child(4) { background-image: linear-gradient(135deg, #7c3aed, #2563eb); }
.promo-tile:hover::before { background: linear-gradient(0deg, rgba(15,118,110,.9), rgba(0,0,0,.08) 68%); }

.section { padding: 38px 0; }
.section-white { background: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.025em; }
.section-heading a { color: var(--brand); font-weight: 750; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .2s ease; }
.category-card:hover { transform: translateY(-4px); border-color: #99f6e4; box-shadow: var(--shadow); }
.category-icon { font-size: 2.3rem; }
.category-card h3 { margin: 24px 0 0; font-size: 1rem; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-thumb { aspect-ratio: 1 / .82; display: grid; place-items: center; padding: 20px; background: #f8fafc; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-placeholder { font-size: 4rem; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-info h3 { min-height: 48px; margin: 0 0 12px; font-size: 1rem; line-height: 1.35; }
.price { margin-top: auto; color: var(--brand-dark); font-size: 1.2rem; font-weight: 850; }
.product-card .button { margin-top: 14px; padding: 11px 14px; border-radius: 9px; background: var(--brand); color: white; text-align: center; font-weight: 750; }
.sale-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 9px; border-radius: 8px; background: #e31b54; color: white; font-size: .76rem; font-weight: 850; }

.offer-strip { margin: 10px auto 38px; padding: 34px; border-radius: 20px; color: white; background: linear-gradient(110deg, #970033, #b7053f 55%, #d3164e); }
.offer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.offer-inner h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.offer-inner p { margin: 6px 0 0; }
.offer-strip .cta { background: white; color: #b60d3e; white-space: nowrap; }

.brand-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-chip { display: grid; min-height: 78px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: white; color: #344054; font-weight: 850; }
.brand-chip small { font-weight: 500; color: var(--muted, #667085); }
.brand-chip:hover { border-color: var(--brand); color: var(--brand); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.benefit { padding: 24px; background: white; }
.benefit strong { display: block; margin-bottom: 4px; }
.benefit span { color: var(--muted); font-size: .9rem; }

.site-footer { margin-top: 36px; background: #101828; color: #d0d5dd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding: 54px 0 40px; }
.site-footer h3, .site-footer h4 { color: white; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 20px 0; border-top: 1px solid #344054; color: #98a2b3; font-size: .86rem; }

.content-card { margin: 40px auto; padding: clamp(22px, 4vw, 42px); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.woocommerce .woocommerce-breadcrumb { margin: 28px 0; color: var(--muted); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--brand); color: white; border-radius: 9px; }
.woocommerce .bshop-whatsapp-button,
.product-card .bshop-whatsapp-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #20b85a; color: white;
}
.woocommerce .bshop-whatsapp-button::before,
.product-card .bshop-whatsapp-button::before { content: "◉"; font-size: 1.05em; }
.woocommerce .bshop-whatsapp-button:hover,
.product-card .bshop-whatsapp-button:hover { background: #169647; color: white; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce div.product form.cart::after { display: none; }
.woocommerce .bshop-cart-whatsapp { width: 100%; margin-top: 10px; }
.bshop-order-notice {
  margin: 14px 0; padding: 14px 16px; border: 1px solid #86efac; border-radius: 10px;
  background: #f0fdf4; color: #166534; font-size: .92rem;
}
.woocommerce-checkout-payment {
  padding: 18px !important; border-radius: 12px !important; background: #f8fafc !important;
}
.woocommerce-checkout-payment .payment_methods { display: none !important; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; }
  .product-search { grid-column: 1 / -1; grid-row: 2; }
  .header-actions .account-text { display: none; }
  .commerce-showcase { grid-template-columns: 225px 1fr; }
  .showcase-main { grid-template-columns: 1fr; }
  .promo-preview { grid-template-columns: repeat(4, 1fr); grid-template-rows: 130px; }
  .promo-tile { min-height: 130px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .category-grid, .products-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .brand-row { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .utility-promise { display: none; }
  .utility-inner { justify-content: center; }
  .header-inner { grid-template-columns: 1fr auto; }
  .product-search button { min-width: 52px; font-size: 0; }
  .product-search button::after { content: "Buscar"; font-size: .75rem; }
  .mobile-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; padding: 8px 0; }
  .nav-menu { display: none; width: 100%; flex-direction: column; }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: 12px; }
  .departments { margin-right: 0; }
  .category-grid, .products-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { min-height: 125px; padding: 16px; }
  .product-info { padding: 14px; }
  .brand-row { grid-template-columns: repeat(2, 1fr); }
  .benefits, .footer-grid { grid-template-columns: 1fr; }
  .offer-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { gap: 26px; }
  .commerce-showcase { display: block; overflow: hidden; }
  .department-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .department-list { display: grid; grid-template-columns: 1fr 1fr; }
  .department-link { min-height: 42px; font-size: .88rem; }
  .family-menu { position: static; width: 100%; min-height: 0; padding: 8px 18px 16px; border: 0; border-radius: 0; box-shadow: none; }
  .department-item:hover .family-menu { display: none; }
  .department-item.is-open .family-menu { display: block; grid-column: 1 / -1; }
  .showcase-main { display: block; }
  .promo-preview { grid-template-columns: 1fr 1fr; grid-template-rows: 120px 120px; }
  .promo-tile { min-height: 120px; }
}

@media (max-width: 420px) {
  .category-grid, .products-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .header-actions { gap: 2px; }
}

/* Alyessence: belleza y moda, con contraste legible y dorado discreto. */
.utility-bar { background: var(--brand); color: var(--white); }
.utility-links a:hover { color: #F1E5E1; }
.brand { color: var(--brand); }
.brand-mark { background: linear-gradient(135deg, var(--brand), #C97F8C); }
.product-search, .product-search input, .categories-menu, .mobile-toggle,
.commerce-showcase, .department-panel, .family-menu, .section-white,
.category-card, .product-card, .brand-chip, .benefit, .content-card,
.woocommerce ul.products li.product { background-color: var(--white); }
.product-search button:hover, .product-card .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--brand-dark); color: var(--white); }
.action-link:hover, .department-link:hover,
.department-item:focus-within > .department-link, .family-links a:hover {
  background: var(--surface-alt); color: var(--brand);
}
.cart-count { background: var(--accent); color: var(--ink); }
.department-title { background: var(--accent); color: var(--ink); }
.family-links a, .brand-chip { color: var(--ink); }
.hero-card {
  background-image: linear-gradient(90deg, rgba(71,30,42,.98) 0%, rgba(71,30,42,.93) 38%, rgba(71,30,42,.14) 72%), url("assets/images/bshop-hero.png");
}
.hero p { color: var(--white); }
.hero .eyebrow { color: var(--accent); }
.cta { background: var(--brand); color: var(--white); }
.cta:hover { background: var(--brand-dark); color: var(--white); }
.hero .cta { background: var(--white); color: var(--brand-dark); }
.hero .cta:hover { background: var(--surface-alt); }
.promo-preview { background: var(--surface-alt); }
.promo-tile { background-color: var(--brand-dark); }
.promo-tile:nth-child(3) { background-image: linear-gradient(135deg, #7A3E4D, #693441); }
.promo-tile:nth-child(4) { background-image: linear-gradient(135deg, #D9A5AD, #7A3E4D); }
.promo-tile:hover::before { background: linear-gradient(0deg, rgba(105,52,65,.9), rgba(0,0,0,.08) 68%); }
.category-card:hover { border-color: var(--premium); }
.product-thumb { background: var(--surface); }
.price, .woocommerce ul.products li.product .price, .woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--brand); }
.sale-badge, .woocommerce span.onsale { background: var(--sale); color: var(--ink); }
.offer-strip { background: linear-gradient(110deg, #693441, #7A3E4D 55%, #965568); }
.offer-strip .cta { background: var(--white); color: var(--brand); }
.offer-strip .cta:hover { background: var(--surface-alt); }
.benefit strong { color: var(--brand); }
.site-footer { background: #35282C; color: var(--surface-alt); }
.footer-bottom { border-color: #655057; color: #D9C4C9; }
.woocommerce-checkout-payment { background: var(--surface-alt) !important; }
.woocommerce .woocommerce-info { border-top-color: var(--premium); background: var(--surface-alt); color: var(--ink); }
.woocommerce .woocommerce-info::before { color: var(--brand); }
.woocommerce .woocommerce-tabs ul.tabs li.active { border-top-color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px;
}
/* WhatsApp conserva su identificador verde, incluso al pasar el cursor. */
.woocommerce .bshop-whatsapp-button:hover, .product-card .bshop-whatsapp-button:hover {
  background: #169647; color: white;
}
