/*
Theme Name: VIPI Commerce & Editorial
Theme URI: https://vipi-vape.com
Author: VIPI
Description: A focused black-and-gold WordPress theme for the VIPI blog and WooCommerce system beside the approved static storefront.
Version: 1.0.1
Text Domain: vipi
*/

:root {
  --black: #070706;
  --panel: #11110f;
  --panel-2: #171714;
  --gold: #c7a45a;
  --gold-light: #ead39b;
  --text: #f4f0e8;
  --muted: #aaa398;
  --line: rgba(199, 164, 90, 0.28);
  --max: 1200px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
.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 { width: auto; height: auto; clip: auto; margin: 1rem; padding: .75rem 1rem; z-index: 9999; background: #fff; color: #000; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 6, .95);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; width: 82px; }
.brand img { width: 82px; max-height: 56px; object-fit: contain; }
.header-shipping { margin: 0; color: var(--gold-light); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.site-nav { justify-self: end; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.site-nav a { position: relative; color: #f0ece3; font-size: .73rem; letter-spacing: .13em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.45rem; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.cart-indicator { color: var(--gold-light) !important; white-space: nowrap; }
.cart-indicator b { font-weight: 700; }
.menu-toggle { display: none; justify-self: end; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 100%; height: 1px; margin: 7px 0; background: var(--gold-light); }

.page-hero { padding: clamp(5rem, 10vw, 9rem) 4vw 4rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 10%, rgba(199,164,90,.12), transparent 34%); }
.page-hero-inner, .site-main, .footer-inner { width: min(100%, var(--max)); margin-inline: auto; }
.eyebrow, .archive-label { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.03em; }
h1 { max-width: 900px; margin-bottom: 1rem; font-size: clamp(3rem, 8vw, 7.3rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
.page-intro { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.site-main { padding: clamp(3.5rem, 7vw, 7rem) 4vw; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card { display: flex; min-height: 100%; flex-direction: column; border: 1px solid var(--line); background: var(--panel); transition: transform .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #0d0d0b; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold); font-size: 2rem; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.post-card h2 { margin-bottom: .8rem; font-size: 1.55rem; text-transform: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 1rem; color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.post-excerpt { color: #c3bdb3; }
.read-more { margin-top: auto; padding-top: 1rem; color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination a, .pagination span { display: grid; min-width: 42px; min-height: 42px; place-items: center; border: 1px solid var(--line); }
.pagination .current { border-color: var(--gold); color: var(--gold-light); }
.empty-state { padding: 3rem; border: 1px solid var(--line); background: var(--panel); }

.breadcrumbs { margin-bottom: 2rem; color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--gold); }
.article-shell { width: min(100%, var(--reading)); margin-inline: auto; }
.article-header h1 { margin-bottom: 1.2rem; font-size: clamp(2.8rem, 7vw, 5.8rem); text-transform: none; }
.article-featured { margin: 2rem 0 3rem; border: 1px solid var(--line); }
.entry-content { color: #ded9cf; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 2.5em; scroll-margin-top: 110px; }
.entry-content h2 { color: var(--gold-light); font-size: clamp(1.8rem, 4vw, 2.7rem); }
.entry-content a { color: var(--gold-light); text-decoration: underline; text-underline-offset: .18em; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 0 1rem 1.5rem; border-left: 2px solid var(--gold); color: #eee7dc; }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { margin-top: .7rem; color: var(--muted); font-size: .82rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .8rem; border: 1px solid var(--line); text-align: left; }
.toc { margin: 2rem 0; padding: 1.4rem; border: 1px solid var(--line); background: var(--panel); }
.toc-title { margin: 0 0 .75rem; color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; }
.article-cta { margin-top: 4rem; padding: 2rem; border: 1px solid var(--gold); background: linear-gradient(135deg, rgba(199,164,90,.13), transparent); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .8rem 1.35rem; border: 1px solid var(--gold); background: var(--gold); color: #090907; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.button-outline { background: transparent; color: var(--gold-light); }
.related-posts { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-item { padding: 1.2rem; border: 1px solid var(--line); background: var(--panel); }

.commerce-shell { width: min(100%, 1000px); margin-inline: auto; }
.store-lock { margin-bottom: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--gold); background: rgba(199,164,90,.1); color: var(--gold-light); }
.woocommerce { color: var(--text); }
.woocommerce a { color: var(--gold-light); }
.woocommerce table.shop_table, .woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order, .woocommerce form.checkout { border-color: var(--line) !important; border-radius: 0 !important; background: var(--panel); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line) !important; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .select2-container--default .select2-selection--single {
  min-height: 48px; border: 1px solid #4a463e !important; border-radius: 0 !important; background: #0d0d0b !important; color: var(--text) !important;
}
.woocommerce textarea { min-height: 130px; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .wc-block-components-button {
  border: 1px solid var(--gold) !important; border-radius: 0 !important; background: var(--gold) !important; color: #090907 !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase;
}
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--gold) !important; background: var(--panel-2) !important; color: var(--text) !important; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--gold) !important; }
.vipi-checkout-notice { margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line); }
.vipi-checkout-notice p { margin: 0; }
.vipi-checkout-notice p + p { margin-top: .6rem; }
.vipi-checkout-notice a { color: var(--gold-light); }
.wc-block-components-sidebar, .wc-block-components-main { color: var(--text); }
.wc-block-components-order-summary, .wc-block-components-totals-wrapper, .wc-block-components-text-input input { border-color: var(--line) !important; }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); background: #050504; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding: 4rem 4vw; }
.footer-brand { margin-bottom: 1.2rem; }
.footer-tagline { margin: 0 0 .5rem; color: var(--gold-light); letter-spacing: .12em; text-transform: uppercase; }
.footer-copy, .footer-column { color: var(--muted); font-size: .9rem; }
.footer-column { display: flex; flex-direction: column; gap: .65rem; }
.footer-heading { margin: 0 0 .7rem; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.footer-bottom { padding: 1.1rem 4vw; border-top: 1px solid rgba(199,164,90,.15); color: #777168; font-size: .72rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; }
  .header-shipping { display: none; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 0 auto; display: flex; visibility: hidden; flex-direction: column; align-items: flex-start; gap: 1.3rem; padding: 2rem 6vw 2.5rem; border-bottom: 1px solid var(--line); background: #070706; opacity: 0; transform: translateY(-12px); transition: .2s ease; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .post-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .page-hero { padding-top: 4rem; }
  h1 { font-size: clamp(2.6rem, 15vw, 4.6rem); }
  .site-main { padding-inline: 5vw; }
  .post-grid, .related-grid, .footer-inner { grid-template-columns: 1fr; }
  .post-card h2 { font-size: 1.35rem; }
  .article-cta { padding: 1.4rem; }
}
