/*
Theme Name: VILLAR - Hello Elementor Child
Template: hello-elementor
Description: Tema hijo personalizado para VILLAR Swimwear
Version: 1.0.0
*/

/* ====================================================
   VILLAR Brand Variables
==================================================== */
:root {
  --villar-red: #e60023;
  --villar-red-dark: #c50019;
  --villar-red-hover: #ff1530;
  --villar-black: #0a0a0a;
  --villar-bg: #111;
  --villar-bg-2: #1a1a1a;
  --villar-card: #1d1d1d;
  --villar-border: #2a2a2a;
  --villar-text: #ffffff;
  --villar-text-mute: #b0b0b0;
  --villar-text-faint: #7a7a7a;
  --villar-yellow: #f3a712;
  --villar-shell: 1280px;
  --villar-radius: 6px;
  --villar-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --villar-font-display: "Bebas Neue", "Oswald", "Impact", sans-serif;
}

/* ====================================================
   Reset / Base
==================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--villar-bg);
  color: var(--villar-text);
  font-family: var(--villar-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--villar-red); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.villar-shell { max-width: var(--villar-shell); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ====================================================
   Buttons
==================================================== */
.villar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: var(--villar-radius);
  transition: all .25s ease; cursor: pointer; border: 2px solid transparent;
}
.villar-btn--primary { background: var(--villar-red); color: #fff; }
.villar-btn--primary:hover { background: var(--villar-red-hover); color: #fff; transform: translateY(-1px); }
.villar-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.villar-btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }

/* ====================================================
   Top bar
==================================================== */
.villar-topbar {
  background: #050505; color: #d4d4d4; font-size: 11px; letter-spacing: .8px;
  border-bottom: 1px solid #1a1a1a;
}
.villar-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; gap: 16px; flex-wrap: wrap;
}
.villar-topbar__left, .villar-topbar__right { display: flex; gap: 28px; align-items: center; }
.villar-topbar__right a:hover { color: var(--villar-red); }
.villar-topbar__socials { display: flex; gap: 12px; padding-left: 12px; border-left: 1px solid #2a2a2a; }
.villar-topbar__socials a { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.villar-topbar__socials svg { width: 14px; height: 14px; fill: #d4d4d4; transition: fill .2s; }
.villar-topbar__socials a:hover svg { fill: var(--villar-red); }

/* ====================================================
   Header
==================================================== */
.villar-header {
  background: var(--villar-black); position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid #1a1a1a;
}
.villar-header__inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 40px; padding: 18px 0;
}
.villar-header__logo img { max-height: 46px; width: auto; filter: drop-shadow(0 0 8px rgba(230,0,35,.25)); }
.villar-header__logo--text {
  font-family: var(--villar-font-display); font-size: 32px; font-weight: 900;
  color: var(--villar-red); letter-spacing: 4px; line-height: 1;
  display: inline-flex; align-items: center; gap: 6px;
}
.villar-header__logo--text::before {
  content: ""; display: inline-block; width: 22px; height: 28px;
  background: linear-gradient(135deg, var(--villar-red) 50%, var(--villar-red-dark) 50%);
  clip-path: polygon(0 0, 100% 30%, 50% 100%, 0 75%);
}
.villar-nav { display: flex; justify-content: center; gap: 36px; }
.villar-nav a {
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 8px 0; position: relative;
}
.villar-nav a:hover, .villar-nav a.current { color: var(--villar-red); }
.villar-nav a.is-outlet { color: var(--villar-red); }
.villar-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--villar-red); transition: width .25s ease;
}
.villar-nav a:hover::after { width: 100%; }

.villar-header__icons { display: flex; align-items: center; gap: 22px; }
.villar-icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; position: relative; transition: color .2s;
}
.villar-icon-btn:hover { color: var(--villar-red); }
.villar-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.villar-cart-count {
  position: absolute; top: -4px; right: -8px;
  background: var(--villar-red); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ====================================================
   Hero
==================================================== */
.villar-hero {
  position: relative; background: #0a0a0a; min-height: 560px; overflow: hidden;
}
.villar-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: right center;
  filter: brightness(.9);
}
.villar-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0a0a0a 0%, rgba(10,10,10,.88) 28%, rgba(10,10,10,.25) 58%, transparent 100%);
}
.villar-hero__hex {
  position: absolute; left: -40px; top: 0; bottom: 0; width: 280px;
  pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(135deg, rgba(230,0,35,.0) 60%, rgba(230,0,35,.05) 60.5%, rgba(230,0,35,.0) 61%),
    repeating-linear-gradient(60deg, transparent 0 22px, rgba(230,0,35,.06) 22px 23px);
}
.villar-hero__hex span {
  position: absolute; width: 80px; height: 92px;
  border: 1.5px solid rgba(230,0,35,.5);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background:
    linear-gradient(135deg, rgba(230,0,35,.45) 0%, rgba(230,0,35,.05) 100%);
}
.villar-hero__hex span:nth-child(1) { top: 18%; left: 8px; opacity: .9; }
.villar-hero__hex span:nth-child(2) { top: 30%; left: 88px; opacity: .55; transform: scale(1.1); }
.villar-hero__hex span:nth-child(3) { top: 56%; left: 28px; opacity: .35; transform: scale(.9); }
.villar-hero__hex::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(230,0,35,.4), transparent);
}

.villar-hero__inner {
  position: relative; z-index: 2; min-height: 560px;
  display: flex; align-items: center;
}
.villar-hero__content { max-width: 600px; padding: 60px 0; }
.villar-hero__eyebrow {
  display: inline-block; color: #fff; font-size: 13px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 14px;
}
.villar-hero__eyebrow::after {
  content: ""; display: inline-block; width: 36px; height: 2px; background: var(--villar-red);
  margin-left: 14px; vertical-align: middle;
}
.villar-hero__title {
  font-family: "Oswald", var(--villar-font-display); font-weight: 700;
  font-size: clamp(48px, 7vw, 96px); line-height: .92; letter-spacing: 1px;
  margin: 0 0 22px; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.villar-hero__title .accent {
  color: var(--villar-red); display: block;
}
.villar-hero__title .accent em {
  font-style: italic; font-weight: 700;
  text-shadow: 0 0 32px rgba(230,0,35,.45), 0 2px 6px rgba(0,0,0,.35);
}
.villar-hero__title .word-block { display: block; }
.villar-hero__sub {
  color: #d0d0d0; font-size: 15px; line-height: 1.6; margin: 0 0 32px; max-width: 460px;
}
.villar-hero__sub .dot { color: var(--villar-red); font-weight: 700; }
.villar-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.villar-hero__dots {
  position: absolute; right: 32px; bottom: 24px; display: flex; gap: 8px; z-index: 3;
}
.villar-hero__dots span {
  width: 26px; height: 3px; background: rgba(255,255,255,.3); transition: background .2s;
}
.villar-hero__dots span.active { background: var(--villar-red); }

/* ====================================================
   Trust badges
==================================================== */
.villar-badges {
  background: #0d0d0d; border-bottom: 1px solid #1a1a1a;
}
.villar-badges__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 22px 0;
}
.villar-badge {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 0;
}
.villar-badge__icon {
  width: 40px; height: 40px; flex-shrink: 0; color: var(--villar-red);
  display: inline-flex; align-items: center; justify-content: center;
}
.villar-badge__icon svg { width: 32px; height: 32px; stroke: var(--villar-red); fill: none; stroke-width: 1.5; }
.villar-badge__title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin: 0; }
.villar-badge__sub { font-size: 12px; color: var(--villar-text-mute); margin: 2px 0 0; }

/* ====================================================
   Section headers
==================================================== */
.villar-section { padding: 48px 0; }
.villar-section__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.villar-section__title {
  margin: 0; font-family: "Oswald", var(--villar-font); font-size: 19px;
  font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: #fff; display: inline-flex; align-items: center; gap: 14px;
}
.villar-section__title::before {
  content: ""; display: inline-block; width: 4px; height: 18px; background: var(--villar-red);
}
.villar-section__link {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--villar-red); display: inline-flex; align-items: center; gap: 6px;
}
.villar-section__link::after { content: " >"; }

/* ====================================================
   Categories grid
==================================================== */
.villar-cats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.villar-cat {
  position: relative; aspect-ratio: 5/4; border-radius: var(--villar-radius); overflow: hidden;
  background: var(--villar-card); display: block; transition: transform .35s ease;
}
.villar-cat:hover { transform: translateY(-4px); }
.villar-cat__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .55; transition: opacity .35s ease, transform .5s ease;
}
.villar-cat:hover .villar-cat__img { opacity: .82; transform: scale(1.06); }
.villar-cat::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.88) 100%);
  z-index: 1; pointer-events: none;
}
.villar-cat__inner {
  position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff;
}
.villar-cat__title {
  font-family: "Oswald", var(--villar-font-display); font-weight: 700; font-size: 30px;
  letter-spacing: 2.5px; line-height: 1; margin: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
.villar-cat__under {
  width: 28px; height: 3px; background: var(--villar-red); margin-top: 6px;
}
.villar-cat--outlet {
  background:
    radial-gradient(ellipse at top right, #ff2040 0%, #c20020 30%, #5c0010 100%);
}
.villar-cat--outlet .villar-cat__img { display: none; }
.villar-cat--outlet::before {
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.35) 100%);
}
.villar-cat--outlet::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.18) 0%, transparent 30%),
    repeating-linear-gradient(60deg, transparent 0 30px, rgba(255,255,255,.04) 30px 32px),
    linear-gradient(135deg, transparent 40%, rgba(0,0,0,.3) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.villar-cat--outlet .villar-cat__inner { z-index: 2; }
.villar-cat--outlet .villar-cat__title {
  font-size: 38px; color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.villar-cat--outlet .villar-cat__sub {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 6px; color: #fff;
  font-weight: 700;
}
.villar-cat__pct {
  position: absolute; right: 14px; bottom: 8px; z-index: 2;
  font-family: var(--villar-font-display); font-size: 88px; font-weight: 900;
  color: rgba(255,255,255,.2); line-height: 1; pointer-events: none;
  text-shadow: 0 0 30px rgba(255,255,255,.1);
}

/* Diagonal accent stripes on all category cards */
.villar-cat::after {
  content: ""; position: absolute; top: 0; right: 0; width: 60%; height: 100%; z-index: 1;
  background:
    linear-gradient(115deg, transparent 70%, rgba(230,0,35,.12) 72%, transparent 74%),
    linear-gradient(115deg, transparent 55%, rgba(255,255,255,.04) 56%, transparent 58%);
  pointer-events: none;
}
.villar-cat--outlet.villar-cat::after { display: none; }

/* ====================================================
   Products grid
==================================================== */
.villar-products {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.villar-product {
  background: #fafafa; border-radius: var(--villar-radius); overflow: hidden;
  position: relative; transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.villar-product:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(230,0,35,.22); }
.villar-product__img {
  aspect-ratio: 1/1; background: #eaeaea; background-size: cover; background-position: center;
  position: relative; display: block;
}
.villar-product__fav {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: #555; z-index: 2; transition: color .2s ease, background .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.villar-product__fav:hover { color: var(--villar-red); }
.villar-product__fav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.villar-product__body { padding: 14px 14px 16px; }
.villar-product__name {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #111; margin: 0 0 6px; line-height: 1.3; min-height: 32px;
}
.villar-product__name a { color: inherit; }
.villar-product__price { color: var(--villar-red); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.villar-product__price del { color: #888; font-weight: 500; font-size: 12px; margin-left: 6px; }
.villar-product__stars { color: var(--villar-yellow); font-size: 11px; letter-spacing: 1px; }
.villar-section--bestsellers { background: var(--villar-bg-2); padding: 48px 0 64px; }
.villar-section--bestsellers .villar-products-wrap { position: relative; }
.villar-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.villar-arrow:hover { background: var(--villar-red); border-color: var(--villar-red); }
.villar-arrow--right { right: -42px; }
.villar-arrow--left { left: -42px; }

/* ====================================================
   Newsletter strip
==================================================== */
.villar-news {
  background: #060606; border-top: 1px solid #1a1a1a; padding: 36px 0;
}
.villar-news__grid {
  display: grid; grid-template-columns: 1.1fr 1.5fr 1fr 1fr; gap: 36px; align-items: center;
}
.villar-news__brand img { max-height: 38px; }
.villar-news__brand p {
  font-size: 12px; color: var(--villar-text-mute); margin: 12px 0 0; line-height: 1.55; max-width: 260px;
}
.villar-news__offer { display: flex; align-items: center; gap: 16px; }
.villar-news__offer-text { color: #fff; font-size: 13px; letter-spacing: .5px; flex: 0 0 auto; }
.villar-news__offer-text strong {
  display: block; font-family: var(--villar-font-display); font-size: 34px; color: var(--villar-red);
  letter-spacing: 2px; line-height: 1;
}
.villar-news__offer-text small { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--villar-text-mute); margin-top: 2px; }
.villar-news__form {
  flex: 1 1 auto; display: flex; background: #1a1a1a; border-radius: 4px; overflow: hidden;
  border: 1px solid #2a2a2a;
}
.villar-news__form input {
  flex: 1; background: transparent; border: none; padding: 12px 14px; color: #fff; font-size: 13px;
  outline: none;
}
.villar-news__form input::placeholder { color: #666; }
.villar-news__form button {
  background: var(--villar-red); color: #fff; padding: 0 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  transition: background .2s;
}
.villar-news__form button:hover { background: var(--villar-red-hover); }

.villar-news__contact { font-size: 12px; }
.villar-news__contact h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; color: #fff; }
.villar-news__contact a { display: flex; gap: 8px; color: var(--villar-text-mute); margin: 4px 0; align-items: center; }
.villar-news__contact a:hover { color: var(--villar-red); }
.villar-news__contact svg { width: 14px; height: 14px; stroke: var(--villar-red); fill: none; stroke-width: 1.7; }

.villar-news__pays h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; color: #fff; }
.villar-news__pays-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.villar-pay {
  background: #fff; color: #111; border-radius: 4px; padding: 5px 10px; font-size: 11px;
  font-weight: 800; letter-spacing: .5px; min-height: 24px; display: inline-flex; align-items: center;
}
.villar-pay--ipse { background: #003a70; color: #fff; }
.villar-pay--nequi { background: #ff007f; color: #fff; }
.villar-pay--amex { background: #2671b8; color: #fff; }

/* ====================================================
   Footer
==================================================== */
.villar-footer {
  background: #050505; padding: 22px 0; border-top: 1px solid #1a1a1a;
  font-size: 12px; color: var(--villar-text-faint);
}
.villar-footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.villar-footer__legal { display: flex; gap: 24px; }
.villar-footer__legal a { color: var(--villar-text-faint); letter-spacing: 1px; text-transform: uppercase; font-size: 11px; }

/* Hide WP default header/footer when our custom takes over */
.site-header, .site-footer { display: none !important; }
.elementor-default header.site-header, .elementor-default footer.site-footer { display: none !important; }

/* ====================================================
   WooCommerce overrides for shop/single product pages
==================================================== */
.woocommerce { color: #fff; padding: 32px 0; max-width: var(--villar-shell); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.woocommerce h1, .woocommerce h2 { color: #fff; }
.woocommerce-page .product { color: #111; }
.woocommerce ul.products li.product { background: #fafafa; padding: 14px; border-radius: var(--villar-radius); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--villar-red); font-weight: 800; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: #111; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce .button {
  background: var(--villar-red) !important; color: #fff !important; padding: 12px 24px !important;
  text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--villar-red-hover) !important; }
.woocommerce-breadcrumb { color: var(--villar-text-mute); }
.woocommerce-breadcrumb a { color: var(--villar-text); }

/* ====================================================
   Responsive
==================================================== */
@media (max-width: 1100px) {
  .villar-cats { grid-template-columns: repeat(3, 1fr); }
  .villar-products { grid-template-columns: repeat(3, 1fr); }
  .villar-badges__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .villar-news__grid { grid-template-columns: 1fr 1fr; }
  .villar-nav { gap: 22px; }
  .villar-nav a { font-size: 12px; }
}
@media (max-width: 720px) {
  .villar-topbar__left, .villar-topbar__right { gap: 14px; font-size: 10px; flex-wrap: wrap; }
  .villar-header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .villar-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0a0a0a; flex-direction: column; padding: 16px 24px;
    transform: scaleY(0); transform-origin: top; transition: transform .2s;
    border-top: 1px solid #1a1a1a;
  }
  .villar-nav.open { transform: scaleY(1); }
  .villar-cats { grid-template-columns: repeat(2, 1fr); }
  .villar-products { grid-template-columns: repeat(2, 1fr); }
  .villar-news__grid { grid-template-columns: 1fr; gap: 22px; }
  .villar-hero__title { font-size: clamp(36px, 9vw, 56px); }
  .villar-hero__inner { min-height: 480px; }
  .villar-section { padding: 36px 0; }
  .villar-footer__inner { justify-content: center; text-align: center; flex-direction: column; }
}
