/*
Theme Name: Velvet
Theme URI: https://velvet.shins.ch/
Author: SHINS / Codex
Description: A restrained luxury WooCommerce theme for the Velvet demo boutique.
Version: 1.1.0
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: velvet
*/

:root {
  --velvet-ink: #171311;
  --velvet-wine: #641c2d;
  --velvet-wine-dark: #351018;
  --velvet-cream: #f5efe6;
  --velvet-paper: #fffaf3;
  --velvet-champagne: #c9aa78;
  --velvet-muted: #756b63;
  --velvet-line: rgba(23, 19, 17, 0.14);
  --velvet-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --velvet-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --velvet-shadow: 0 24px 70px rgba(53, 16, 24, 0.13);
  --velvet-width: min(1240px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--velvet-ink);
  background: var(--velvet-paper);
  font-family: var(--velvet-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.logged-in #coming-soon-footer-banner { display: none !important; }

img { max-width: 100%; height: auto; }
a { color: inherit; }

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  background: #fff;
  color: #111;
}

.velvet-demo-bar {
  padding: 8px 20px;
  background: var(--velvet-wine-dark);
  color: #fff7ec;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(20, 16, 14, .94);
  color: #fff;
  backdrop-filter: blur(16px);
}

.admin-bar .site-header { top: 32px; }

.header-inner {
  width: var(--velvet-width);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.site-branding { text-decoration: none; line-height: 1; }

.site-branding strong {
  display: block;
  font-family: var(--velvet-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .28em;
}

.site-branding small {
  display: block;
  margin-top: 7px;
  color: #d8c4a5;
  font-size: 8px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: #fff; }

.header-shop-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 99px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 112px));
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #160e0d center / cover no-repeat;
  color: #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(16,10,9,.92) 0%, rgba(16,10,9,.68) 38%, rgba(16,10,9,.06) 74%);
}

.hero-inner {
  width: var(--velvet-width);
  margin: 0 auto;
  padding: 100px 0 115px;
}

.hero-copy { max-width: 610px; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--velvet-champagne);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.editorial-copy h2,
.page-title,
.woocommerce-products-header__title,
.product_title {
  font-family: var(--velvet-serif);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .98;
}

.hero h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(58px, 7.2vw, 104px);
}

.hero-lead {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.77);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.velvet-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  min-height: 52px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--velvet-wine);
  border-radius: 0;
  background: var(--velvet-wine);
  color: #fff;
  font-family: var(--velvet-sans);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .15em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.velvet-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--velvet-wine-dark); color: #fff; transform: translateY(-1px); }

.velvet-button--light { border-color: #fff; background: #fff; color: var(--velvet-ink); }
.velvet-button--ghost { border-color: rgba(255,255,255,.52); background: transparent; color: #fff; }

.trust-strip { border-bottom: 1px solid var(--velvet-line); background: #fff; }
.trust-grid { width: var(--velvet-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 25px 32px; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid var(--velvet-line); }
.trust-item strong { display: block; font-family: var(--velvet-serif); font-size: 18px; font-weight: 500; }
.trust-item span { color: var(--velvet-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 110px 0; }
.section--cream { background: var(--velvet-cream); }
.section--dark { background: var(--velvet-ink); color: #fff; }
.section-inner { width: var(--velvet-width); margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.section-title { max-width: 720px; margin: 0; font-size: clamp(45px, 5vw, 72px); }
.section-kicker { max-width: 400px; margin: 0; color: var(--velvet-muted); }

.collection-note {
  margin: 0 0 30px;
  padding: 14px 18px;
  border-left: 3px solid var(--velvet-wine);
  background: rgba(100,28,45,.07);
  color: var(--velvet-muted);
  font-size: 13px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  margin: 0 0 20px;
  object-fit: cover;
  background: #efe6da;
  transition: transform .35s ease;
}

.woocommerce ul.products li.product:hover a img { transform: translateY(-4px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-family: var(--velvet-serif); font-size: 24px; font-weight: 500; }
.woocommerce ul.products li.product .price { color: var(--velvet-wine); font-size: 14px; font-weight: 700; }
.woocommerce ul.products li.product .button { min-height: 42px; margin-top: 12px; padding: 0 18px; background: transparent; color: var(--velvet-ink); }

.editorial-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
.editorial-image { min-height: 620px; background: center / cover no-repeat; }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 8vw, 110px); background: var(--velvet-wine-dark); color: #fff; }
.editorial-copy h2 { margin: 0 0 28px; font-size: clamp(48px, 5vw, 76px); }
.editorial-copy p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.editorial-list { display: grid; gap: 18px; margin: 25px 0 35px; padding: 0; list-style: none; }
.editorial-list li { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.editorial-list strong { display: block; margin-bottom: 3px; font-family: var(--velvet-serif); font-size: 20px; font-weight: 500; }
.editorial-list span { color: rgba(255,255,255,.6); font-size: 13px; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card { min-height: 310px; padding: 36px; border: 1px solid var(--velvet-line); background: rgba(255,255,255,.55); }
.story-number { color: var(--velvet-wine); font-family: var(--velvet-serif); font-size: 46px; }
.story-card h3 { margin: 70px 0 10px; font-family: var(--velvet-serif); font-size: 28px; font-weight: 500; }
.story-card p { margin: 0; color: var(--velvet-muted); }

.newsletter { padding: 90px 0; background: #ede1d1; text-align: center; }
.newsletter-inner { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.newsletter h2 { margin: 0 0 18px; font-family: var(--velvet-serif); font-size: clamp(44px, 6vw, 70px); font-weight: 400; }
.newsletter p { color: var(--velvet-muted); }
.newsletter-note { margin-top: 24px; font-size: 12px; }

.content-shell,
.woocommerce .site-main {
  width: var(--velvet-width);
  margin: 0 auto;
  padding: 85px 0 110px;
}

.page-header { max-width: 800px; margin-bottom: 42px; }
.page-title,
.woocommerce-products-header__title { margin: 0 0 24px; font-size: clamp(54px, 7vw, 88px); }
.entry-content { max-width: 850px; }
.entry-content h2 { margin-top: 2em; font-family: var(--velvet-serif); font-size: 34px; font-weight: 500; }
.entry-content p, .entry-content li { color: #514a45; }
.legal-warning { margin: 0 0 28px; padding: 18px 20px; border: 1px solid #d6b1a0; background: #fff1ea; font-weight: 700; }

.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: clamp(40px, 7vw, 90px); }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: auto; float: none; }
.woocommerce div.product .product_title { font-size: clamp(45px, 5vw, 70px); }
.woocommerce div.product p.price { color: var(--velvet-wine); font-size: 22px; }
.woocommerce-product-details__short-description { color: var(--velvet-muted); }
.velvet-demo-product-note { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--velvet-line); background: var(--velvet-cream); font-size: 13px; }

.site-footer { padding: 76px 0 28px; background: #15110f; color: rgba(255,255,255,.72); }
.footer-grid { width: var(--velvet-width); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-brand { font-family: var(--velvet-serif); font-size: 34px; color: #fff; letter-spacing: .18em; }
.footer-copy { max-width: 390px; }
.site-footer h3 { margin: 0 0 18px; color: #fff; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: rgba(255,255,255,.68); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { width: var(--velvet-width); margin: 60px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 980px) {
  .primary-menu { display: none; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-image { min-height: 480px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 240px; }
  .story-card h3 { margin-top: 35px; }
  .woocommerce div.product { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --velvet-width: min(100% - 28px, 1240px); }
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 66px; gap: 15px; }
  .site-branding strong { font-size: 20px; }
  .site-branding small { display: none; }
  .header-shop-link { min-height: 36px; padding: 0 13px; font-size: 9px; }
  .hero { min-height: 670px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(16,10,9,.94), rgba(16,10,9,.55)); }
  .hero-inner { padding: 90px 0; }
  .hero h1 { font-size: clamp(54px, 18vw, 78px); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-top: 1px solid var(--velvet-line); border-left: 0; }
  .section { padding: 75px 0; }
  .section-heading { display: block; }
  .section-kicker { margin-top: 20px; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 20px; }
  .editorial-image { min-height: 390px; }
  .editorial-copy { padding: 55px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .hero-actions { display: grid; }
  .velvet-button { width: 100%; }
}
