/*
Theme Name: LOVE STYLIZE
Theme URI: https://lovestylizeco.com/
Author: LOVE STYLIZE LLC
Description: Custom WooCommerce storefront faithfully modeled on the authorized LOVE STYLIZE source storefront.
Version: 1.0.1
Text Domain: lovestylize
Requires at least: 6.5
Requires PHP: 8.0
*/

:root {
  --ls-ink: #111111;
  --ls-muted: #6a6a6a;
  --ls-line: #e8e5e1;
  --ls-paper: #ffffff;
  --ls-soft: #f7f5f2;
  --ls-accent: #111111;
  --ls-serif: "Cormorant Garamond", Georgia, serif;
  --ls-sans: "Montserrat", Arial, sans-serif;
  --ls-max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ls-ink); background: var(--ls-paper); font: 400 15px/1.6 var(--ls-sans); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ls-ink); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 8px; padding: 12px 18px; background: #fff; z-index: 10000; }
.ls-container { width: min(calc(100% - 48px), var(--ls-max)); margin-inline: auto; }

.ls-announcement { min-height: 34px; display: grid; place-items: center; padding: 6px 16px; background: #111; color: #fff; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.ls-header { position: relative; z-index: 100; background: #fff; border-bottom: 1px solid var(--ls-line); }
.ls-header__main { min-height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.ls-logo { display: block; width: 210px; line-height: 0; }
.ls-logo img { width: 100%; max-height: 58px; object-fit: contain; }
.ls-wordmark { font: 600 29px/1 var(--ls-serif); letter-spacing: .16em; white-space: nowrap; }
.ls-header__tools { justify-self: end; display: flex; align-items: center; gap: 4px; }
.ls-icon-button { position: relative; min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.ls-icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ls-cart-count { position: absolute; top: 5px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 12px; background: #111; color: #fff; font: 600 10px/18px var(--ls-sans); }
.ls-mobile-toggle { display: none; }
.ls-nav { border-top: 1px solid var(--ls-line); }
.ls-nav__list { min-height: 48px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.4vw, 42px); list-style: none; }
.ls-nav__item > a, .ls-nav__item > button { display: flex; align-items: center; min-height: 48px; padding: 0; border: 0; background: transparent; color: #191919; font: 600 12px/1 var(--ls-sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ls-nav__item:hover > a, .ls-nav__item:hover > button { opacity: .55; }
.ls-mega { position: absolute; left: 0; right: 0; top: 100%; visibility: hidden; opacity: 0; transform: translateY(-8px); background: #fff; border-top: 1px solid var(--ls-line); border-bottom: 1px solid var(--ls-line); transition: opacity .2s, transform .2s, visibility .2s; }
.ls-nav__item:hover .ls-mega, .ls-nav__item:focus-within .ls-mega, .ls-nav__item.is-open .ls-mega { visibility: visible; opacity: 1; transform: none; }
.ls-mega__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; padding-block: 36px; }
.ls-mega h3 { margin: 0 0 14px; font: 600 12px/1.2 var(--ls-sans); letter-spacing: .08em; text-transform: uppercase; }
.ls-mega ul { margin: 0; padding: 0; list-style: none; }
.ls-mega li + li { margin-top: 7px; }
.ls-mega a { color: #4a4a4a; font-size: 13px; }
.ls-mega a:hover { color: #000; text-decoration: underline; }
.ls-search-panel { display: none; padding: 14px 0 20px; border-top: 1px solid var(--ls-line); }
.ls-search-panel.is-open { display: block; }
.ls-search-panel form { display: flex; gap: 10px; max-width: 720px; margin: auto; }
.ls-search-panel input { flex: 1; min-height: 48px; padding: 0 16px; border: 1px solid #999; }
.ls-mobile-menu { display: none; }

.ls-hero { position: relative; min-height: min(68vw, 780px); display: grid; align-items: end; overflow: hidden; background: #ddd; }
.ls-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.ls-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(0,0,0,0) 62%); }
.ls-hero__content { position: relative; z-index: 1; width: min(calc(100% - 48px), var(--ls-max)); margin: 0 auto clamp(50px, 7vw, 100px); color: #fff; }
.ls-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ls-hero h1 { max-width: 690px; margin: 0 0 20px; font: 500 clamp(46px, 6.4vw, 92px)/.92 var(--ls-serif); letter-spacing: -.02em; }
.ls-hero p { max-width: 520px; margin: 0 0 26px; font-size: clamp(15px, 1.4vw, 19px); }
.ls-button, .button, button.button, input.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 28px; border: 1px solid #111 !important; border-radius: 0 !important; background: #111 !important; color: #fff !important; font: 600 12px/1 var(--ls-sans) !important; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.ls-button--light { border-color: #fff !important; background: #fff !important; color: #111 !important; }
.ls-button:hover, .button:hover { background: #fff !important; color: #111 !important; }
.ls-button--light:hover { background: transparent !important; color: #fff !important; }

.ls-section { padding-block: clamp(58px, 7vw, 104px); }
.ls-section--soft { background: var(--ls-soft); }
.ls-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 3vw, 44px); }
.ls-section__head h2 { margin: 0; font: 500 clamp(35px, 4vw, 56px)/1 var(--ls-serif); }
.ls-text-link { padding-bottom: 3px; border-bottom: 1px solid; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.ls-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ls-category-card { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #eee; }
.ls-category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.ls-category-card:hover img { transform: scale(1.025); }
.ls-category-card__label { position: absolute; left: 16px; right: 16px; bottom: 16px; min-height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.94); font: 600 12px/1 var(--ls-sans); letter-spacing: .1em; text-transform: uppercase; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(16px, 2vw, 30px) 16px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin: 0 0 14px !important; background: #f4f4f4; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; margin: 0 0 5px !important; font: 500 14px/1.35 var(--ls-sans); }
.woocommerce ul.products li.product .price { color: #222 !important; font-size: 13px !important; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 10px !important; }
.woocommerce span.onsale { min-width: auto; min-height: auto; padding: 8px 10px; border-radius: 0; background: #111; line-height: 1; text-transform: uppercase; }

.ls-story { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 620px; background: #181818; color: #fff; }
.ls-story__image img { width: 100%; height: 100%; object-fit: cover; }
.ls-story__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 7vw, 110px); }
.ls-story h2 { margin: 0 0 22px; font: 500 clamp(42px, 5vw, 70px)/.98 var(--ls-serif); }
.ls-story p { max-width: 560px; color: #e9e9e9; }
.ls-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ls-line); border-block: 1px solid var(--ls-line); }
.ls-trust article { padding: 46px 30px; background: #fff; text-align: center; }
.ls-trust h3 { margin: 0 0 8px; font: 500 27px/1.1 var(--ls-serif); }
.ls-trust p { margin: 0; color: var(--ls-muted); font-size: 13px; }

.site-main, .woocommerce-page .site-main { width: min(calc(100% - 48px), var(--ls-max)); margin-inline: auto; padding-block: 54px 90px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: clamp(40px, 6vw, 96px); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; }
.woocommerce div.product .product_title { font: 500 clamp(38px, 4vw, 58px)/1 var(--ls-serif); }
.woocommerce div.product p.price { color: #111; font-size: 20px; }
.woocommerce div.product .woocommerce-product-gallery__image img { width: 100%; }
.woocommerce table.shop_table { border-radius: 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 48px; padding: 11px 12px; border: 1px solid #aaa; border-radius: 0; }
.ls-contact-form { max-width: 760px; margin-top: 32px; }
.ls-contact-form label { display: block; margin-bottom: 7px; font-weight: 600; }
.ls-contact-form input, .ls-contact-form textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #999; border-radius: 0; }

.ls-newsletter { padding-block: 72px; background: #efebe7; text-align: center; }
.ls-newsletter h2 { margin: 0 0 8px; font: 500 clamp(36px, 4vw, 54px)/1 var(--ls-serif); }
.ls-newsletter p { margin: 0 auto 24px; color: #5b5b5b; }
.ls-newsletter form { display: flex; max-width: 560px; margin: auto; }
.ls-newsletter input[type=email] { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 1px solid #111; border-right: 0; background: #fff; }
.ls-footer { background: #111; color: #fff; }
.ls-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(36px, 5vw, 90px); padding-block: 72px; }
.ls-footer__brand { max-width: 310px; }
.ls-footer-logo { display: block; width: 230px; margin-bottom: 20px; line-height: 0; }
.ls-footer-logo img { width: 100%; height: auto; filter: invert(1); }
.ls-footer h3 { margin: 0 0 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ls-footer ul { margin: 0; padding: 0; list-style: none; }
.ls-footer li + li { margin-top: 9px; }
.ls-footer a { color: #d7d7d7; font-size: 13px; }
.ls-footer a:hover { color: #fff; text-decoration: underline; }
.ls-social { display: flex; gap: 10px; margin-top: 22px; }
.ls-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #454545; }
.ls-social svg { width: 18px; height: 18px; fill: currentColor; }
.ls-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid #333; color: #aaa; font-size: 11px; }
.error404 .site-main { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.ls-404 h1 { margin: 0; font: 500 clamp(70px, 12vw, 160px)/.8 var(--ls-serif); }

@media (max-width: 1024px) {
  .ls-header__main { min-height: 76px; }
  .ls-desktop-only, .ls-nav { display: none; }
  .ls-mobile-toggle { display: grid; justify-self: start; }
  .ls-logo { width: 178px; }
  .ls-mobile-menu { display: block; position: fixed; z-index: 200; inset: 0; visibility: hidden; opacity: 0; background: rgba(0,0,0,.44); transition: opacity .2s, visibility .2s; }
  .ls-mobile-menu.is-open { visibility: visible; opacity: 1; }
  .ls-mobile-menu__panel { width: min(88vw, 420px); height: 100%; overflow-y: auto; padding: 18px 24px 50px; transform: translateX(-100%); background: #fff; color: #111; transition: transform .25s ease-out; }
  .ls-mobile-menu.is-open .ls-mobile-menu__panel { transform: none; }
  .ls-mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .ls-mobile-menu nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--ls-line); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .ls-mobile-menu details { border-bottom: 1px solid var(--ls-line); }
  .ls-mobile-menu summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .ls-mobile-menu details a { padding-left: 16px; font-size: 12px; font-weight: 500; }
  .ls-category-grid, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ls-story { min-height: 520px; }
  .ls-footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ls-container { width: min(calc(100% - 32px), var(--ls-max)); }
  .ls-announcement { min-height: 38px; font-size: 10px; letter-spacing: .08em; }
  .ls-header__main { grid-template-columns: 44px 1fr auto; gap: 8px; }
  .ls-logo { justify-self: center; width: min(45vw, 165px); text-align: center; }
  .ls-wordmark { font-size: 21px; letter-spacing: .12em; }
  .ls-account-tool { display: none; }
  .ls-hero { min-height: 76svh; align-items: end; }
  .ls-hero__image { object-position: center center; }
  .ls-hero::after { background: linear-gradient(0deg, rgba(0,0,0,.58), rgba(0,0,0,.04) 75%); }
  .ls-hero__content { width: calc(100% - 32px); margin-bottom: 42px; }
  .ls-hero h1 { max-width: 360px; font-size: clamp(44px, 15vw, 64px); }
  .ls-hero p { font-size: 15px; }
  .ls-section { padding-block: 56px; }
  .ls-section__head { align-items: center; }
  .ls-section__head h2 { font-size: 38px; }
  .ls-category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ls-category-card__label { left: 8px; right: 8px; bottom: 8px; min-height: 42px; font-size: 10px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 10px; }
  .woocommerce ul.products li.product .button { min-height: 44px; padding-inline: 8px !important; font-size: 10px !important; }
  .ls-story { grid-template-columns: 1fr; }
  .ls-story__image { min-height: 460px; }
  .ls-story__copy { padding: 52px 24px 64px; }
  .ls-trust { grid-template-columns: 1fr; }
  .site-main, .woocommerce-page .site-main { width: calc(100% - 32px); padding-block: 36px 64px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
  .ls-newsletter { padding-inline: 16px; }
  .ls-newsletter form { flex-direction: column; gap: 10px; }
  .ls-newsletter input[type=email] { border-right: 1px solid #111; }
  .ls-footer__grid { grid-template-columns: 1fr 1fr; gap: 42px 24px; padding-block: 56px; }
  .ls-footer__brand { grid-column: 1 / -1; }
  .ls-footer__bottom { flex-direction: column; }
}

@media (max-width: 390px) {
  .ls-category-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

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