/*
Theme Name: Edition House for Ecomus
Author: Edition House
Description: Dynamic Ecomus child theme for the independent luxury store collection.
Version: 1.0.0
Template: ecomus
Text Domain: ecomus
*/

:root {
  --vel-black: #2a1418;
  --vel-ink: #3b2024;
  --vel-paper: #f5eee9;
  --vel-lime: #c7a568;
  --vel-line: #dedbd5;
  --vel-muted: #6f6d69;
  --vel-red: #7b1f2b;
}

body.velaire-ecomus { color: var(--vel-ink); background: #fff; }
.velaire-ecomus .header-logo__text {
  color: var(--vel-black);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.075em;
}
.velaire-ecomus .site-header__desktop .header-contents { min-height: 94px; }
.velaire-ecomus .site-header__desktop .site-header__container { padding-inline: clamp(28px, 4vw, 64px); }
.velaire-ecomus .primary-navigation a { font-size: 15px; font-weight: 500; }
.velaire-ecomus .site-header__mobile .header-contents { min-height: 70px; }
.velaire-ecomus .site-header__mobile .header-logo__text { font-size: 24px; }
.velaire-ecomus.home .page-header--page { display: none; }

.vel-home { overflow: hidden; }
.vel-home a { text-decoration: none; }
.vel-home__wrap { width: min(1400px, calc(100% - 64px)); margin-inline: auto; }
.vel-kicker { margin: 0 0 13px; font-size: 12px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }

.vel-ecomus-hero {
  position: relative;
  display: grid;
  min-height: min(790px, calc(100vh - 94px));
  align-items: center;
  overflow: hidden;
  background: #f5f3ef;
}
.vel-ecomus-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 46%;
  background-image: var(--vel-hero-image);
  background-position: center 30%;
  background-size: cover;
}
.vel-ecomus-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #f5f3ef 0%, #f5f3ef 38%, rgba(245,243,239,.82) 48%, transparent 66%);
}
.vel-ecomus-hero__copy { position: relative; z-index: 2; width: min(620px, 46vw); margin-left: clamp(32px, 5vw, 82px); }
.vel-ecomus-hero h1 { margin: 0; max-width: 650px; font-size: clamp(66px, 7.2vw, 112px); font-weight: 400; letter-spacing: -.065em; line-height: .92; }
.vel-ecomus-hero p { max-width: 510px; margin: 30px 0 38px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }
.vel-ecomus-button { display: inline-flex; min-height: 58px; align-items: center; justify-content: center; gap: 17px; padding: 0 30px; background: var(--vel-black); color: #fff !important; font-size: 14px; font-weight: 650; }
.vel-ecomus-button:hover { background: #333; }
.vel-ecomus-hero__dots { display: flex; gap: 13px; margin-top: 54px; }
.vel-ecomus-hero__dots span { width: 7px; height: 7px; border-radius: 50%; background: #aaa; }
.vel-ecomus-hero__dots span:first-child { outline: 1px solid #111; outline-offset: 5px; background: #111; }

.vel-marquee { display: flex; min-height: 72px; align-items: center; gap: 42px; overflow: hidden; background: var(--vel-lime); white-space: nowrap; }
.vel-marquee__track { display: flex; min-width: max-content; gap: 48px; animation: vel-marquee 28s linear infinite; }
.vel-marquee span { font-size: 17px; }
.vel-marquee b { margin-right: 15px; font-size: 19px; }
@keyframes vel-marquee { to { transform: translateX(-50%); } }

.vel-home-section { padding-block: clamp(78px, 8vw, 125px); }
.vel-home-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.vel-home-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); font-weight: 450; letter-spacing: -.045em; line-height: 1; }
.vel-home-heading p { max-width: 490px; margin: 0; color: var(--vel-muted); font-size: 15px; line-height: 1.7; }
.vel-home-heading a { color: var(--vel-ink); border-bottom: 1px solid; font-size: 13px; font-weight: 650; }

.vel-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vel-category-card { position: relative; min-width: 0; }
.vel-category-card__media { aspect-ratio: 1/1; overflow: hidden; background: #eee; }
.vel-category-card img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.vel-category-card:hover img { transform: scale(1.045); }
.vel-category-card__label { display: flex; align-items: center; justify-content: space-between; padding: 17px 2px 0; color: var(--vel-ink); font-size: 16px; font-weight: 600; }
.vel-category-card__label span:last-child { font-size: 20px; font-weight: 400; }

.vel-products-section { background: var(--vel-paper); }
.vel-products-section ul.products { margin-inline: -8px; row-gap: 42px; }
.vel-products-section ul.products > li.product { padding-inline: 8px; }
.vel-products-section .product-thumbnail,
.post-type-archive-product.velaire-ecomus ul.products .product-thumbnail,
.tax-product_cat.velaire-ecomus ul.products .product-thumbnail { aspect-ratio: 1/1; overflow: hidden; background: #ebe8e2; }
.vel-products-section .product-thumbnail > a,
.post-type-archive-product.velaire-ecomus ul.products .product-thumbnail > a,
.tax-product_cat.velaire-ecomus ul.products .product-thumbnail > a { display: block; width: 100%; height: 100%; }
.vel-products-section .product-thumbnail img,
.post-type-archive-product.velaire-ecomus ul.products .product-thumbnail img,
.tax-product_cat.velaire-ecomus ul.products .product-thumbnail img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; }
.vel-products-section .woocommerce-loop-product__title { font-size: 16px; }

.vel-editorial { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 720px; background: #101010; color: #fff; }
.vel-editorial__media { min-height: 620px; background-image: var(--vel-editorial-image); background-position: center 35%; background-size: cover; }
.vel-editorial__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(50px, 7vw, 108px); }
.vel-editorial h2 { margin: 0; max-width: 570px; color: #fff; font-size: clamp(50px, 6vw, 88px); font-weight: 400; letter-spacing: -.065em; line-height: .96; }
.vel-editorial p { max-width: 490px; margin: 28px 0 38px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.72; }
.vel-editorial .vel-ecomus-button { background: #fff; color: #111 !important; }

.vel-testimonials { text-align: center; }
.vel-testimonials .vel-kicker { margin-bottom: 18px; }
.vel-testimonials > p { max-width: 850px; margin: 0 auto; font-size: clamp(28px, 3.4vw, 49px); letter-spacing: -.04em; line-height: 1.25; }
.vel-testimonials cite { display: block; margin-top: 27px; color: var(--vel-muted); font-size: 13px; font-style: normal; }

.vel-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--vel-line); border-bottom: 1px solid var(--vel-line); }
.vel-service { padding: 38px 28px; border-right: 1px solid var(--vel-line); }
.vel-service:last-child { border-right: 0; }
.vel-service svg { width: 26px; height: 26px; margin-bottom: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.vel-service strong { display: block; margin-bottom: 8px; font-size: 15px; }
.vel-service span { color: var(--vel-muted); font-size: 13px; line-height: 1.55; }

.vel-footer { display: grid; grid-template-columns: 1.3fr .7fr .8fr 1.2fr; gap: clamp(34px, 5vw, 82px); padding: 85px max(32px, calc((100% - 1400px)/2)); background: #101010; color: #fff; }
.vel-footer a { color: rgba(255,255,255,.75); }
.vel-footer__logo { display: inline-block; margin-bottom: 23px; color: #fff !important; font-size: 31px; font-weight: 750; letter-spacing: -.075em; }
.vel-footer__brand p, .vel-footer__newsletter p { max-width: 360px; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.7; }
.vel-footer__social { display: flex; gap: 19px; margin-top: 26px; font-size: 12px; }
.vel-footer h3 { margin: 4px 0 24px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.vel-footer__links a { display: block; margin-block: 13px; font-size: 13px; }
.vel-footer__newsletter form { display: flex; margin-top: 25px; border-bottom: 1px solid rgba(255,255,255,.45); }
.vel-footer__newsletter input { flex: 1; min-width: 0; padding: 13px 0; border: 0; background: transparent; color: #fff; }
.vel-footer__newsletter button { width: 45px; border: 0; background: transparent; color: #fff; font-size: 20px; }
.vel-footer__bottom { display: flex; justify-content: space-between; padding: 20px max(32px, calc((100% - 1400px)/2)); background: #101010; color: rgba(255,255,255,.46); border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.vel-footer__bottom a { color: rgba(255,255,255,.64); }

/* Ecomus product detail refinements */
.single-product.velaire-ecomus .site-content { padding-top: 0; }
.single-product.velaire-ecomus .ecomus-breadcrumb { margin-block: 28px; }
.single-product.velaire-ecomus .woocommerce-product-gallery__image { background: #f3f3f3; }
.single-product.velaire-ecomus .woocommerce-product-gallery__image img { width: 100%; height: auto; object-fit: contain; object-position: center; }
.single-product.velaire-ecomus div.product .product_title { font-size: clamp(38px, 3.5vw, 54px); font-weight: 450; letter-spacing: -.045em; line-height: 1.05; }
.single-product.velaire-ecomus div.product p.price { font-size: 26px; }
.vel-product-intro { max-width: 620px; margin: 20px 0 27px; padding-bottom: 24px; border-bottom: 1px solid var(--vel-line); }
.vel-product-intro p { margin: 0; color: #555; font-size: 15px; line-height: 1.72; }
.single-product.velaire-ecomus table.variations th { padding-bottom: 11px; }
.single-product.velaire-ecomus select.vel-native-select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.vel-size-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.vel-size-swatch { min-width: 48px; height: 46px; padding: 0 15px; border: 1px solid #d6d6d6; border-radius: 0; background: #fff; color: #111; font: 500 13px/1 inherit; cursor: pointer; }
.vel-size-swatch:hover { border-color: #111; }
.vel-size-swatch.is-selected, .vel-size-swatch[aria-pressed="true"] { border-color: #111; background: #111; color: #fff; }
.single-product.velaire-ecomus .single_add_to_cart_button { min-height: 54px; border-radius: 0; background: #111; text-transform: none; }
.single-product.velaire-ecomus .em-buy-now-button { min-height: 54px; border-radius: 0; background: var(--vel-red); color: #fff; }
.vel-product-assurances { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--vel-line); }
.vel-product-assurances p { margin: 9px 0; color: #4f4f4f; font-size: 13px; }
.vel-product-assurances span { display: inline-block; width: 24px; color: #111; font-size: 17px; }
.single-product.velaire-ecomus .woocommerce-tabs { margin-top: 90px; }
.single-product.velaire-ecomus .woocommerce-Tabs-panel { max-width: 1180px; margin-inline: auto; }
.vel-product-story__lead { max-width: 920px; margin-bottom: 45px !important; color: #222; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.025em; line-height: 1.45; }
.vel-product-story h3, .vel-detail-grid h3, .vel-delivery-tab h3 { margin: 35px 0 10px; font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.vel-product-story p, .vel-product-story li, .vel-detail-grid p, .vel-delivery-tab p { color: #555; font-size: 15px; line-height: 1.78; }
.vel-product-story ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; margin: 18px 0 0; padding: 0; list-style: none; }
.vel-product-story li { padding-bottom: 12px; border-bottom: 1px solid var(--vel-line); }
.vel-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 70px; }
.vel-detail-grid > div { padding: 4px 0 27px; border-bottom: 1px solid var(--vel-line); }
.vel-delivery-tab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.vel-delivery-tab > p { grid-column: 1 / -1; }
.vel-delivery-tab a { color: var(--vel-ink); border-bottom: 1px solid; }

/* Editorial and policy pages */
.page.velaire-ecomus article.page { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: clamp(65px, 8vw, 120px) 0; }
.vel-page-lead { max-width: 900px; margin-bottom: clamp(60px, 8vw, 105px); }
.vel-page-lead h2 { max-width: 900px; margin: 0 0 27px; font-size: clamp(48px, 6.4vw, 86px); font-weight: 400; letter-spacing: -.06em; line-height: .98; }
.vel-page-lead > p:last-child { max-width: 760px; margin: 0; color: #555; font-size: clamp(18px, 2vw, 25px); line-height: 1.58; }
.vel-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 8vw, 110px); margin: 55px 0; }
.vel-page-grid--three { grid-template-columns: repeat(3, 1fr); gap: 46px; }
.vel-page-grid h3, .vel-policy-section h3 { margin: 0 0 18px; font-size: 16px; font-weight: 650; }
.vel-page-grid p, .vel-policy-section p, .vel-policy-section li { color: #555; font-size: 15px; line-height: 1.82; }
.vel-page-quote { margin: clamp(80px, 10vw, 140px) 0; padding: 0; border: 0; color: #111; font-size: clamp(34px, 4vw, 58px); font-weight: 400; letter-spacing: -.04em; line-height: 1.28; }
.vel-policy-section { padding: 35px 0; border-top: 1px solid var(--vel-line); }
.vel-policy-section ul { margin: 13px 0 0; padding-left: 21px; }
.vel-policy-section li { margin: 9px 0; padding-left: 6px; }
.vel-legal-notice { margin-bottom: 70px; padding: 24px 28px; border: 1px solid #e1c66b; background: #fff9dc; }
.vel-legal-notice strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.vel-legal-notice p { margin: 6px 0; font-size: 14px; line-height: 1.6; }

@media (max-width: 1024px) {
  .vel-ecomus-hero { min-height: 680px; }
  .vel-ecomus-hero::after { inset: 0 0 0 40%; }
  .vel-ecomus-hero__copy { width: 52vw; }
  .vel-category-grid { grid-template-columns: repeat(2, 1fr); }
  .vel-service-grid { grid-template-columns: repeat(2, 1fr); }
  .vel-service:nth-child(2) { border-right: 0; }
  .vel-service:nth-child(-n+2) { border-bottom: 1px solid var(--vel-line); }
  .vel-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .vel-home__wrap { width: calc(100% - 30px); }
  .vel-ecomus-hero { min-height: 690px; align-items: end; }
  .vel-ecomus-hero::after { inset: 0; background-position: center top; background-size: 100% auto; background-repeat: no-repeat; }
  .vel-ecomus-hero::before { background: linear-gradient(0deg, rgba(245,243,239,.97) 0%, rgba(245,243,239,.87) 34%, transparent 68%); }
  .vel-ecomus-hero__copy { width: auto; margin: 0 20px 42px; }
  .vel-ecomus-hero h1 { max-width: 350px; font-size: clamp(53px, 16vw, 70px); }
  .vel-ecomus-hero p { margin: 20px 0 27px; font-size: 15px; }
  .vel-ecomus-hero__dots { display: none; }
  .vel-marquee { min-height: 59px; }
  .vel-marquee span { font-size: 14px; }
  .vel-home-heading { display: block; margin-bottom: 28px; }
  .vel-home-heading p { margin-top: 15px; }
  .vel-home-heading a { display: inline-block; margin-top: 18px; }
  .vel-category-grid { gap: 10px; }
  .vel-category-card__label { font-size: 14px; }
  .vel-editorial { grid-template-columns: 1fr; }
  .vel-editorial__media { min-height: 510px; }
  .vel-editorial__copy { padding: 54px 20px 64px; }
  .vel-service { padding: 30px 18px; }
  .vel-footer { grid-template-columns: 1fr; padding: 64px 20px; }
  .vel-footer__bottom { display: block; padding-inline: 20px; }
  .vel-footer__bottom span { display: block; margin-block: 5px; }
  .single-product.velaire-ecomus .woocommerce-tabs { margin-top: 65px; }
  .vel-product-story ul, .vel-detail-grid, .vel-delivery-tab { grid-template-columns: 1fr; }
  .vel-delivery-tab > p { grid-column: auto; }
  .page.velaire-ecomus article.page { width: calc(100% - 30px); padding-block: 55px 80px; }
  .vel-page-grid, .vel-page-grid--three { grid-template-columns: 1fr; gap: 26px; }
  .vel-page-lead { margin-bottom: 58px; }
  .vel-page-quote { margin-block: 70px; }
}
