/*
Theme Name: Goodleaf Store
Theme URI: https://goodleaf.top/
Author: Goodleaf
Description: A premium black-and-gold WooCommerce storefront built for Goodleaf.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: goodleaf-store
*/

:root {
  --gl-black: #080808;
  --gl-ink: #111111;
  --gl-charcoal: #1a1a1a;
  --gl-gold: #c7a45a;
  --gl-gold-light: #e3c77e;
  --gl-cream: #f7f4ed;
  --gl-white: #ffffff;
  --gl-grey: #757575;
  --gl-line: #dedbd3;
  --gl-success: #1d8c58;
  --gl-shadow: 0 18px 45px rgba(0, 0, 0, .14);
  --gl-radius: 2px;
  --gl-container: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gl-ink);
  background: var(--gl-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.gl-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.gl-container { width: min(calc(100% - 40px), var(--gl-container)); margin-inline: auto; }
.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; }

.gl-promo {
  padding: 8px 16px;
  color: #17120a;
  background: linear-gradient(90deg, #d7b56d, #f3dfaa, #c49c4d);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.gl-utility { background: #f6f4ef; border-bottom: 1px solid #e9e5db; font-size: 12px; }
.gl-utility .gl-container { min-height: 32px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.gl-utility strong { color: #5f4b24; }

.gl-header { position: sticky; top: 0; z-index: 50; background: rgba(7,7,7,.97); color: #fff; border-bottom: 1px solid rgba(199,164,90,.26); backdrop-filter: blur(12px); }
.admin-bar .gl-header { top: 32px; }
.gl-header-inner { min-height: 76px; display: grid; grid-template-columns: 250px 1fr 250px; align-items: center; gap: 24px; }
.gl-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 28px; font-weight: 900; letter-spacing: .08em; line-height: 1; }
.gl-logo-mark { width: 28px; height: 36px; border: 1px solid var(--gl-gold); border-radius: 50% 50% 45% 45%; position: relative; transform: rotate(0deg); }
.gl-logo-mark::after { content: ""; position: absolute; width: 1px; height: 25px; background: var(--gl-gold); left: 50%; top: 4px; transform: rotate(35deg); }
.gl-nav { justify-self: center; }
.gl-nav ul { display: flex; align-items: center; gap: 34px; padding: 0; margin: 0; list-style: none; }
.gl-nav a { display: inline-flex; align-items: center; min-height: 76px; color: #f8f8f8; font-size: 14px; font-weight: 700; position: relative; }
.gl-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 17px; height: 1px; background: var(--gl-gold); transition: right .25s ease; }
.gl-nav a:hover::after, .gl-nav .current-menu-item a::after { right: 0; }
.gl-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.gl-icon-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 40px; color: #fff; }
.gl-icon-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gl-cart-count { position: absolute; top: 1px; right: -2px; min-width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; padding: 0 4px; background: #e66e16; color: #fff; font-size: 10px; font-weight: 800; }
.gl-menu-toggle { display: none; border: 0; background: transparent; color: #fff; width: 42px; height: 42px; padding: 10px; }
.gl-menu-toggle span { display: block; height: 1px; margin: 6px 0; background: currentColor; }

.gl-hero { min-height: min(760px, 76vh); position: relative; display: grid; place-items: center; color: #fff; background: #080808 url("assets/images/hero.webp") center/cover no-repeat; isolation: isolate; }
.gl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.14) 48%, rgba(0,0,0,.4)), linear-gradient(0deg, rgba(0,0,0,.72), transparent 55%); }
.gl-hero-content { width: min(calc(100% - 40px), var(--gl-container)); padding: 110px 0; }
.gl-eyebrow { margin: 0 0 12px; color: var(--gl-gold-light); font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.gl-hero h1 { max-width: 700px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 92px); font-weight: 500; line-height: .98; letter-spacing: -.035em; text-shadow: 0 3px 20px rgba(0,0,0,.35); }
.gl-hero p { max-width: 560px; margin: 24px 0 34px; color: rgba(255,255,255,.86); font-size: clamp(16px, 2vw, 20px); }
.gl-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.gl-button, .button, button.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border: 1px solid var(--gl-gold);
  border-radius: var(--gl-radius);
  background: var(--gl-gold);
  color: #0c0a06;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.gl-button:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--gl-gold-light); transform: translateY(-2px); }
.gl-button--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.gl-button--ghost:hover { background: #fff; color: #111; }

.gl-trust-strip { background: var(--gl-black); color: #fff; border-top: 1px solid rgba(199,164,90,.35); }
.gl-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gl-trust-item { min-height: 96px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px; border-right: 1px solid #2d291f; }
.gl-trust-item:last-child { border-right: 0; }
.gl-trust-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border: 1px solid var(--gl-gold); border-radius: 50%; color: var(--gl-gold-light); font-size: 18px; }
.gl-trust-item strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.gl-trust-item span { display: block; color: #aaa; font-size: 12px; }

.gl-section { padding: 92px 0; }
.gl-section--soft { background: var(--gl-cream); }
.gl-section--dark { background: var(--gl-black); color: #fff; }
.gl-section-head { margin-bottom: 36px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.gl-section-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 56px); font-weight: 500; line-height: 1.08; }
.gl-section-head p { max-width: 560px; margin: 0; color: var(--gl-grey); }
.gl-section--dark .gl-section-head p { color: #aaa; }
.gl-text-link { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }

.gl-banner { min-height: 440px; display: flex; align-items: center; position: relative; overflow: hidden; background: #0d0d0d center/cover no-repeat; color: #fff; isolation: isolate; }
.gl-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.04)); }
.gl-banner--cigarette { background-image: url("assets/images/collection-cigarette.webp"); }
.gl-banner--menthol { background-image: url("assets/images/collection-menthol.webp"); }
.gl-banner-content { width: min(calc(100% - 40px), var(--gl-container)); margin-inline: auto; padding: 70px 0; }
.gl-banner-content h2 { max-width: 610px; margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 64px); line-height: 1.03; font-weight: 500; }
.gl-banner-content p { max-width: 520px; margin: 0 0 28px; color: rgba(255,255,255,.82); }

.gl-collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gl-collection-card { min-height: 460px; position: relative; overflow: hidden; display: flex; align-items: end; padding: 28px; color: #fff; background: #181818 center/cover no-repeat; isolation: isolate; box-shadow: var(--gl-shadow); }
.gl-collection-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.04) 60%); transition: background .25s ease; }
.gl-collection-card:hover::before { background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,.12) 70%); }
.gl-collection-card--one { background-image: url("assets/images/collection-cigarette.webp"); }
.gl-collection-card--two { background-image: url("assets/images/collection-tobacco.webp"); }
.gl-collection-card--three { background-image: url("assets/images/collection-menthol.webp"); }
.gl-collection-card h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.gl-collection-card span { color: var(--gl-gold-light); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.gl-story { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; background: #111; color: #fff; }
.gl-story-image { min-height: 520px; background: url("assets/images/story.webp") center/cover no-repeat; }
.gl-story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 100px); }
.gl-story-copy h2 { margin: 0 0 20px; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: 1.04; }
.gl-story-copy p { max-width: 550px; color: #bdbdbd; }

.gl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.gl-contact-grid h2 { margin: 0 0 16px; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; line-height: 1.05; }
.gl-contact-list { display: grid; gap: 14px; margin-top: 30px; }
.gl-contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--gl-line); }
.gl-contact-row strong { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.gl-newsletter { padding: 38px; background: var(--gl-black); color: #fff; }
.gl-newsletter h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.gl-newsletter p { color: #aaa; }
.gl-newsletter-form { display: flex; margin-top: 24px; }
.gl-newsletter-form input { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid #464646; border-right: 0; background: #151515; color: #fff; }
.gl-newsletter-form button { min-width: 110px; border: 1px solid var(--gl-gold); background: var(--gl-gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.gl-site-main { min-height: 55vh; }
.gl-content { padding: 70px 0 100px; }
.gl-page-header { padding: 72px 0; background: var(--gl-black); color: #fff; }
.gl-page-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 72px); font-weight: 500; }
.gl-entry { width: min(calc(100% - 40px), 920px); margin: 70px auto 100px; }
.gl-entry h1 { font-family: Georgia, serif; font-size: clamp(40px, 5vw, 62px); font-weight: 500; }

.gl-footer { padding: 70px 0 24px; background: #080808; color: #fff; }
.gl-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 50px; }
.gl-footer .gl-logo { margin-bottom: 22px; }
.gl-footer p { color: #9f9f9f; font-size: 13px; }
.gl-footer h3 { margin: 8px 0 22px; color: var(--gl-gold-light); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.gl-footer ul { list-style: none; padding: 0; margin: 0; }
.gl-footer li { margin: 10px 0; }
.gl-footer a { color: #c9c9c9; font-size: 13px; }
.gl-footer a:hover { color: var(--gl-gold-light); }
.gl-footer-bottom { margin-top: 55px; padding-top: 22px; display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid #272727; color: #777; font-size: 11px; }

.gl-float { position: fixed; right: 22px; bottom: 24px; z-index: 45; display: grid; gap: 10px; }
.gl-float a, .gl-back-to-top { width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 28px rgba(0,0,0,.22); cursor: pointer; }
.gl-whatsapp { background: #19b95b; color: #fff; font-size: 22px; font-weight: 900; }
.gl-back-to-top { background: #fff; color: #111; border: 1px solid #ddd; }

.gl-age-gate { position: fixed; inset: 0; z-index: 99999; display: none; place-items: center; padding: 24px; background: rgba(0,0,0,.92); backdrop-filter: blur(9px); }
.gl-age-gate.is-visible { display: grid; }
.gl-age-card { width: min(100%, 520px); padding: 45px; border: 1px solid rgba(199,164,90,.7); background: #0e0e0e; color: #fff; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.65); }
.gl-age-card .gl-logo-mark { margin: 0 auto 22px; }
.gl-age-card h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 40px; font-weight: 500; }
.gl-age-card p { color: #aaa; }
.gl-age-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.gl-age-no { min-height: 48px; border: 1px solid #555; background: transparent; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { margin: 0 0 28px; color: #888; font-size: 12px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 30px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; padding: 8px 38px 8px 12px; border: 1px solid #ddd; background: #fff; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; 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; margin: 0; padding: 15px 15px 20px; border: 1px solid #e2e2e2; background: #fff; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: contain; margin: 0 0 16px; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 52px; padding: 0; color: #111; font-size: 15px; line-height: 1.45; }
.woocommerce ul.products li.product .price { color: #111; font-size: 16px; }
.woocommerce ul.products li.product .price del { color: #e14e51; opacity: .95; font-size: 13px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; font-weight: 700; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 12px; }
.woocommerce span.onsale { min-width: 44px; min-height: 44px; display: grid; place-items: center; top: 10px; left: auto; right: 10px; padding: 4px; border-radius: 50%; background: #ef4d50; font-size: 11px; line-height: 1; }
.woocommerce div.product { padding: 70px 0 100px; }
.woocommerce div.product div.images img { background: #fff; }
.woocommerce div.product .product_title { font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #111; font-size: 24px; }
.woocommerce div.product form.cart .button { min-height: 50px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--gl-gold); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gl-gold); }
.woocommerce-cart table.cart img { width: 78px; }
.woocommerce-checkout #payment { background: #f5f2eb; border-radius: 0; }

@media (max-width: 1050px) {
  .gl-header-inner { grid-template-columns: 1fr auto auto; }
  .gl-menu-toggle { display: block; grid-column: 3; }
  .gl-actions { grid-column: 2; grid-row: 1; }
  .gl-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0a0a0a; border-top: 1px solid #2b2b2b; }
  .gl-nav.is-open { display: block; }
  .gl-nav ul { display: block; padding: 12px 25px 24px; }
  .gl-nav a { min-height: 48px; width: 100%; border-bottom: 1px solid #202020; }
  .gl-nav a::after { display: none; }
  .gl-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gl-trust-item:nth-child(2) { border-right: 0; }
  .gl-trust-item:nth-child(-n+2) { border-bottom: 1px solid #2d291f; }
  .gl-collections { grid-template-columns: 1fr 1fr; }
  .gl-collection-card:last-child { grid-column: 1 / -1; }
  .gl-story { grid-template-columns: 1fr; }
  .gl-story-image { min-height: 440px; }
  .gl-footer-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .gl-header { top: 46px; }
  .gl-utility { display: none; }
  .gl-logo { font-size: 21px; }
  .gl-logo-mark { width: 23px; height: 30px; }
  .gl-header-inner { min-height: 64px; gap: 8px; }
  .gl-actions .gl-account { display: none; }
  .gl-section { padding: 68px 0; }
  .gl-section-head { display: block; }
  .gl-section-head .gl-text-link { display: inline-block; margin-top: 20px; }
  .gl-hero { min-height: 650px; background-position: 58% center; }
  .gl-hero-content { padding: 90px 0; }
  .gl-trust-grid { grid-template-columns: 1fr; }
  .gl-trust-item { border-right: 0; border-bottom: 1px solid #2d291f; justify-content: flex-start; }
  .gl-trust-item:nth-child(3) { border-bottom: 1px solid #2d291f; }
  .gl-trust-item:last-child { border-bottom: 0; }
  .gl-collections { grid-template-columns: 1fr; }
  .gl-collection-card, .gl-collection-card:last-child { min-height: 390px; grid-column: auto; }
  .gl-banner { min-height: 520px; background-position: 64% center; }
  .gl-contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .gl-footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .gl-footer-bottom { display: block; }
  .gl-footer-bottom span { display: block; margin-top: 8px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 10px 10px 16px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 64px; font-size: 13px; }
}

@media (max-width: 480px) {
  .gl-container { width: min(calc(100% - 28px), var(--gl-container)); }
  .gl-promo { font-size: 11px; }
  .gl-logo span:last-child { letter-spacing: .04em; }
  .gl-actions { gap: 6px; }
  .gl-hero h1 { font-size: 48px; }
  .gl-buttons { display: grid; }
  .gl-button { width: 100%; }
  .gl-newsletter { padding: 28px 20px; }
  .gl-contact-row { grid-template-columns: 1fr; gap: 3px; }
  .gl-age-card { padding: 34px 22px; }
  .gl-age-actions { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
}
