/*
Theme Name: VELINT Perfumes
Theme URI: https://perfumes.velint.com.ec/
Description: Tema ligero y móvil primero para VELINT Perfumes, compatible con WooCommerce.
Author: VELINT Perfumes
Version: 1.2.1
Text Domain: divine-essence
Requires at least: 6.7
Requires PHP: 7.4
*/

:root {
  --de-ivory: #ffffff;
  --de-surface: #f0f2f5;
  --de-ink: #101c30;
  --de-muted: #625c59;
  --de-gold: #c79a3b;
  --de-green: #142844;
  --de-green-dark: #0c192c;
  --de-red: #a92f3d;
  --de-line: #d9dee6;
  --de-page: 1280px;
  --de-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --de-sans: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--de-ivory);
  color: var(--de-ink);
  font-family: var(--de-sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.admin-bar .de-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--de-gold); outline-offset: 3px; }
.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; }
.de-wrap { width: min(calc(100% - 32px), var(--de-page)); margin-inline: auto; }

.de-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 233, .96);
  border-bottom: 1px solid rgba(210, 203, 192, .72);
  backdrop-filter: blur(12px);
}
.de-header__inner { min-height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.de-brand { display: inline-flex; align-items: center; }
.de-brand img { display: block; width: auto; height: 42px; }
.de-nav ul { display: flex; justify-content: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.de-nav a { font-size: 14px; font-weight: 600; }
.de-nav a:hover { color: var(--de-green); }
.de-nav__mobile-head, .de-menu-backdrop { display: none; }
.de-search { position: relative; width: min(270px, 24vw); }
.de-search input { width: 100%; min-height: 42px; padding: 8px 40px 8px 14px; background: transparent; border: 1px solid var(--de-line); border-radius: 4px; }
.de-search button { position: absolute; inset: 0 0 0 auto; width: 58px; border: 0; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.de-menu-toggle { display: none; min-width: 44px; height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--de-ink); font-size: 13px; font-weight: 700; cursor: pointer; }

.de-main { min-height: 60vh; }
.de-section { padding: 76px 0; }
.de-kicker { display: inline-block; margin-bottom: 16px; color: var(--de-green); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.de-kicker::before { content: ""; display: block; width: 52px; height: 3px; margin-bottom: 16px; background: var(--de-green); }
.de-title, h1, h2, h3 { font-family: var(--de-serif); font-weight: 600; line-height: 1.06; }
.de-title { margin: 0 0 22px; font-size: clamp(42px, 5.4vw, 70px); letter-spacing: -.03em; }
.de-section-title { margin: 0 0 32px; font-size: clamp(36px, 4vw, 50px); }
.de-button, .button, button.button, input.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--de-ink);
  border-radius: 4px;
  background: var(--de-ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.de-button:hover, .button:hover { transform: translateY(-1px); background: var(--de-green-dark); border-color: var(--de-green-dark); color: #fff; }

.de-hero { overflow: hidden; }
.de-hero__grid { min-height: 610px; display: grid; grid-template-columns: .88fr 1.12fr; }
.de-hero__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 70px clamp(32px, 6vw, 90px); background: var(--de-ivory); }
.de-hero__copy::before { content: ""; position: absolute; inset: 0 auto 0 calc((100vw - min(100vw, var(--de-page))) / -2); width: 16vw; background: radial-gradient(circle at 100% 50%, rgba(11,96,77,.13), transparent 70%); }
.de-hero__copy p { max-width: 430px; margin: 0 0 30px; font-size: clamp(18px, 2vw, 22px); }
.de-hero__benefits { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: -12px 0 30px; padding: 0; list-style: none; }
.de-hero__benefits li { padding: 6px 10px; border: 1px solid rgba(11,96,77,.28); color: var(--de-green); font-size: 14px; font-weight: 700; }
.de-hero__visual { position: relative; min-height: 560px; overflow: hidden; background: #16231f; }
.de-hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,19,15,.12), transparent 44%), linear-gradient(0deg, rgba(4,19,15,.12), transparent 42%); pointer-events: none; }
.de-hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.de-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 18px 0 0; }
.de-category { position: relative; min-height: 290px; overflow: hidden; background: var(--de-surface); }
.de-category img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.de-category:hover img { transform: scale(1.025); }
.de-category__label { position: absolute; inset: auto auto 24px 24px; font-family: var(--de-serif); font-size: 38px; color: var(--de-ink); }
.de-category--dark { background: #14221e; }
.de-category--dark .de-category__label { color: #fff; }
.de-aerosol-home-promo { padding: 34px 0 0; }
.de-aerosol-home-promo__inner { position: relative; min-height: 330px; overflow: hidden; background: #0b2820; color: #fff; }
.de-aerosol-home-promo__inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.de-aerosol-home-promo__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(48%, 500px); min-height: 330px; padding: 42px; }
.de-aerosol-home-promo__copy > span { color: #e9c978; font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.de-aerosol-home-promo__copy h2 { margin: 6px 0 12px; font-size: clamp(36px, 4vw, 56px); }
.de-aerosol-home-promo__copy p { max-width: 330px; margin: 0 0 22px; font-size: 17px; font-weight: 600; }
.de-aerosol-home-promo__copy .de-button { border-color: #fff; background: #fff; color: var(--de-ink); }
.de-aerosol-home-promo__copy .de-button:hover { border-color: var(--de-gold); background: var(--de-gold); }

.de-products ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.de-products ul.products::before, .de-products ul.products::after { display: none; }
.de-products ul.products li.product { float: none; width: auto; margin: 0; padding: 0 0 18px; border: 1px solid var(--de-line); background: rgba(255,255,255,.32); }
.de-products ul.products li.product a img { aspect-ratio: 1; width: 100%; margin: 0 0 16px; object-fit: contain; background: var(--de-surface); }
.de-products ul.products li.product .woocommerce-loop-product__title,
.de-products ul.products li.product .price,
.de-products ul.products li.product .button { margin-inline: 16px; }
.de-products ul.products li.product .woocommerce-loop-product__title { margin-bottom: 6px; font-family: var(--de-sans); font-size: 18px; line-height: 1.25; text-align: center; }
/* WooCommerce archive markup can be rendered outside the themed content wrapper. */
.woocommerce ul.products li.product .woocommerce-loop-product__title { display: block; width: 100%; text-align: center !important; }
.de-products ul.products li.product .price { display: block; margin-bottom: 12px; color: var(--de-ink); font-size: 18px; font-weight: 700; }
.de-products ul.products li.product .price:empty { display: none; }
.de-products ul.products li.product .button { width: calc(100% - 32px); background: var(--de-green); border-color: var(--de-green); }
.de-products .woocommerce-products-header { margin: 0 0 22px; }
.de-products .woocommerce-products-header__title { margin: 0; }
.de-products .woocommerce-result-count { margin: 0 0 20px; }
.de-products .woocommerce-ordering { margin: 0 0 20px; }
.de-products .woocommerce-info { border-top-color: var(--de-gold); background: var(--de-surface); }

.de-collections { padding: 90px 0; background: #0d0c0d; color: #fff; }
.de-collections__intro { max-width: 620px; margin-bottom: 34px; }
.de-collections__intro .de-kicker, .de-collections__intro .de-kicker::before { color: #94c5b7; }
.de-collections__intro .de-kicker::before { background: #94c5b7; }
.de-collections__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.de-collection { display: grid; grid-template-rows: auto auto; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: #18221f; transition: transform .2s ease, border-color .2s ease; }
.de-collection:hover { transform: translateY(-4px); border-color: rgba(199,154,59,.75); }
.de-collection__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 12px; background: #21312b; }
.de-collection__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.de-collection__content { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding: 18px 20px; }
.de-collection__title { font-family: var(--de-serif); font-size: 30px; font-weight: 600; line-height: 1; }
.de-collection__action { color: #b6dfd4; font-size: 14px; font-weight: 700; white-space: nowrap; }
.de-whatsapp-strip { background: var(--de-green); color: #fff; }
.de-whatsapp-strip a { min-height: 92px; display: flex; align-items: center; gap: 18px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; }

.woocommerce .woocommerce-breadcrumb { margin: 26px 0; color: var(--de-muted); }
.woocommerce div.product { padding-bottom: 76px; }
.woocommerce div.product div.images img { background: var(--de-surface); }
.woocommerce div.product .product_title { margin-top: 0; font-size: clamp(42px, 5vw, 62px); }
.woocommerce div.product p.price { color: var(--de-ink); font-size: 28px; font-weight: 700; }
.woocommerce div.product form.cart { display: flex; align-items: stretch; gap: 12px; }
.woocommerce .quantity .qty { min-height: 50px; border: 1px solid var(--de-line); background: transparent; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--de-gold); }
.woocommerce .woocommerce-ordering select, .woocommerce select, .woocommerce input[type="search"] { min-height: 44px; border: 1px solid var(--de-line); border-radius: 4px; background: transparent; }
.stock.in-stock { color: var(--de-green); font-weight: 700; }
.stock.out-of-stock { color: var(--de-red); font-weight: 700; }

.de-footer { padding: 36px 0; background: #0d0c0d; color: #fff; }
.de-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.de-footer img { width: auto; height: 42px; }
.de-footer nav { display: flex; gap: 24px; font-size: 14px; }
.de-footer small { color: #c9c4bd; }

@media (max-width: 900px) {
  /* backdrop-filter creates a containing block that clips the fixed mobile drawer. */
  .de-header { backdrop-filter: none; }
  body.admin-bar .de-header { top: 46px; }
  body.de-menu-open { overflow: hidden; }
  .de-header__inner { grid-template-columns: 72px 1fr 44px; gap: 8px; min-height: 62px; }
  .de-menu-toggle {
    display: inline-flex;
    min-width: 64px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--de-line);
    border-radius: 4px;
    background: var(--de-ivory);
    color: var(--de-ink);
  }
  .de-brand { justify-self: center; }
  .de-brand img { height: 32px; max-width: 220px; }
  .de-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    visibility: hidden;
    padding: 0;
    border: 0;
    background: rgba(13, 12, 13, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .de-menu-backdrop.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .de-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    visibility: hidden;
    width: min(88vw, 380px);
    overflow-y: auto;
    padding: 0;
    border-right: 1px solid var(--de-line);
    background: #f5f1e9 !important;
    color: #100b10 !important;
    transform: translateX(-105%);
    transition: transform .22s ease, visibility .22s ease;
    box-shadow: 22px 0 54px rgba(0,0,0,.24);
  }
  body.admin-bar .de-nav { top: 46px; }
  .de-nav.is-open { visibility: visible; transform: translateX(0); }
  .de-nav__mobile-head {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--de-line);
    background: #f5f1e9;
  }
  .de-nav__mobile-head img { width: auto; height: 34px; }
  .de-nav-close {
    min-width: 72px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--de-ink);
    border-radius: 4px;
    background: transparent;
    color: var(--de-ink);
    font-weight: 700;
    cursor: pointer;
  }
  .de-nav ul { display: block; margin: 0; padding: 12px 20px 30px; }
  .de-nav li { margin: 0; border-bottom: 1px solid var(--de-line); }
  .de-nav a {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 10px 4px;
    color: #100b10 !important;
    font-size: 19px;
    font-weight: 700;
  }
  .de-nav a:hover, .de-nav a:focus-visible, .de-nav .current-menu-item > a { color: var(--de-green) !important; }
  .de-search { width: 44px; }
  .de-search input { position: fixed; top: 62px; left: 16px; right: 16px; z-index: 55; display: none; width: calc(100% - 32px); background: var(--de-ivory); }
  .de-search.is-open input { display: block; }
  .de-hero__grid { min-height: 0; grid-template-columns: 1fr; }
  .de-hero__visual { order: -1; min-height: 410px; }
  .de-hero__scene { object-position: 70% center; }
  .de-hero__copy { padding: 46px 24px 54px; }
  .de-aerosol-home-promo { padding-top: 20px; }
  .de-aerosol-home-promo__inner, .de-aerosol-home-promo__copy { min-height: 370px; }
  .de-aerosol-home-promo__copy { width: min(70%, 390px); padding: 34px 26px; }
  .de-category-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .de-category { min-width: 82%; scroll-snap-align: start; }
  .de-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .de-products ul.products li.product .woocommerce-loop-product__title { font-size: 16px; }
  .de-products ul.products li.product .button { padding-inline: 10px; font-size: 14px; }
  .de-collections { padding: 62px 0; }
  .de-collections__grid { grid-template-columns: 1fr; gap: 12px; }
  .de-collections__intro { margin-bottom: 24px; }
  .de-collection { grid-template-columns: minmax(0, 1.25fr) minmax(135px, .75fr); grid-template-rows: 1fr; min-height: 180px; }
  .de-collection__media { aspect-ratio: auto; padding: 8px; }
  .de-collection__content { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 0; padding: 18px; }
  .de-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .de-wrap { width: min(calc(100% - 24px), var(--de-page)); }
  .de-section { padding: 52px 0; }
  .de-title { font-size: 44px; }
  .de-hero__visual { min-height: 330px; }
  .de-hero__visual { min-height: 300px; }
  .de-aerosol-home-promo__inner, .de-aerosol-home-promo__copy { min-height: 340px; }
  .de-aerosol-home-promo__copy { width: 80%; padding: 28px 22px; }
  .de-aerosol-home-promo__copy h2 { font-size: 38px; }
  /* A single, generous product column prevents titles and CTAs from breaking on phones. */
  .de-products ul.products { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .de-products ul.products li.product { width: 100% !important; margin: 0 !important; padding-bottom: 22px; }
  .de-products ul.products li.product a img { margin-bottom: 20px; }
  .de-products ul.products li.product .woocommerce-loop-product__title { margin-bottom: 14px; font-size: 22px; line-height: 1.2; }
  .de-products ul.products li.product .button { min-height: 50px; padding-inline: 18px; font-size: 16px; }
  .de-collection__title { font-size: 28px; }
  .woocommerce div.product form.cart { flex-wrap: wrap; }
}

/* The approved VELINT mark has a square silhouette. */
.de-brand img { height: 76px; width: auto; object-fit: contain; }
.de-footer img { height: 90px; width: auto; background: #fff; padding: 6px; }
@media (max-width: 900px) {
  .de-brand img { height: 60px; max-width: 150px; }
  .de-nav__mobile-head img { height: 60px; width: auto; }
}

.de-hero[hidden], .velint-slide[hidden] { display: none !important; }
.de-header { background: #fff; }
body .de-wa-button:not(.is-disabled) { background: #142844; border-color: #142844; }
body .de-wa-button:not(.is-disabled):hover { background: #0c192c; }
.de-brand img { height: auto; width: 200px; max-height: 74px; object-fit: contain; }
.velint-slider { margin-block: 24px 40px; background: #f0f2f5; }
.velint-slide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 500px; }
.velint-slide__copy { padding: 48px; }
.velint-slide__copy h2 { font-size: clamp(38px,5vw,70px); line-height: 1.06; margin: 20px 0; }
.velint-slide__copy p { margin-bottom: 26px; }
.velint-slide > img { width: 100%; height: 520px; object-fit: contain; }
.velint-slider__controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px; }
.velint-slider__controls button { min-width: 44px; min-height: 44px; border: 1px solid #bbc4d0; background: #fff; color: #142844; cursor: pointer; padding: 8px 14px; }
.velint-footer { background: #fff; border-top: 1px solid #d9dee6; padding: 52px 0; color: #101c30; }
.velint-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; align-items: start; gap: 40px; }
.velint-footer img { width: 240px; height: auto; }
.velint-footer nav, .velint-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.velint-footer .de-button { font-size: 14px; text-align: center; padding: 14px; }
.de-collections { background: #101c30; }
.de-collection { background: #1d2d43; }
@media (max-width: 700px) {
 .velint-slide { grid-template-columns: 1fr; min-height: 0; }
 .velint-slide__copy { padding: 28px 24px; }
 .velint-slide > img { height: 310px; }
 .velint-slide__copy h2 { font-size: 40px; }
 .velint-footer__grid { grid-template-columns: 1fr; gap: 30px; }
 .de-brand img { width: 150px; height: auto; }
}

/* Transparent mobile drawer logo, with room for its close button. */
@media (max-width: 900px) {
  .de-nav__mobile-head img { width: 180px; max-width: 60%; height: auto; object-fit: contain; background: transparent; }
  .de-nav__mobile-head .de-nav-close { flex-shrink: 0; }
}

/* Edge-to-edge photographic collections. Preserve the whole composition on phones. */
.velint-slider { position: relative; width: 100%; max-width: none; margin: 0; background: #101c30; }
.velint-slide { display: block; min-height: 0; }
.velint-slide > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; margin: 0; }
.velint-slider__controls { position: absolute; inset: 50% 12px auto; transform: translateY(-50%); justify-content: space-between; padding: 0; pointer-events: none; }
.velint-slider__controls button { pointer-events: auto; background: rgba(255,255,255,.9); border: 0; border-radius: 50%; font-size: 22px; box-shadow: 0 2px 12px #0002; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
