/*
Theme Name: Black Code Glossis
Theme URI: https://glossisprofessional.com.br
Author: Glossis Professional
Description: Tema WooCommerce oficial da linha Glossis Professional Black Code.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: black-code-glossis
*/

:root {
  --ink: #070707;
  --panel: #111011;
  --panel-soft: #171416;
  --paper: #f8f3f4;
  --muted: #b8aeb1;
  --rose: #d999a7;
  --rose-strong: #f2b4c1;
  --rose-deep: #8e4e5e;
  --line: rgba(224, 160, 174, 0.22);
  --max: 1240px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 84% 10%, rgba(167, 82, 103, .14), transparent 27rem),
    linear-gradient(180deg, #050505 0%, #0b090a 60%, #070707 100%);
  font: 400 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.announcement {
  padding: 8px 16px;
  color: #1a1013;
  background: linear-gradient(90deg, #bd7586, #f0b1bd, #bd7586);
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, .86);
  backdrop-filter: blur(18px);
}
.nav { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; }
.wordmark img { width: auto; height: 78px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; color: #d6cfd1; font-size: .9rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--rose-strong); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03); cursor: pointer;
}
.icon-btn:hover { border-color: var(--rose); background: rgba(217,153,167,.09); }
.bag-count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: #1a0c10; font-size: .75rem; font-weight: 800; }

.hero { min-height: 720px; display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: clamp(32px, 6vw, 92px); padding-block: 64px 76px; }
.eyebrow { margin: 0 0 16px; color: var(--rose); font-size: .76rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.2rem, 6.6vw, 6.7rem); line-height: .92; letter-spacing: -.045em; }
.hero h1 em { color: var(--rose-strong); font-weight: 400; }
.hero-copy { max-width: 600px; margin: 28px 0 34px; color: #c9c0c3; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #d894a3, #f0b5c0); color: #1b0e12;
  cursor: pointer; font-weight: 800; letter-spacing: .04em;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn.secondary { border-color: var(--line); color: var(--paper); background: transparent; }
.btn.secondary:hover { border-color: var(--rose); }
.hero-visual { position: relative; justify-self: end; width: min(100%, 535px); }
.hero-visual::before { content: ""; position: absolute; inset: 8% -8% -4% 13%; background: #21161a; border-radius: 52% 48% 3% 3%; transform: rotate(3deg); }
.hero-visual::after { content: "BLACK CODE"; position: absolute; right: -4%; bottom: 7%; color: rgba(240,181,192,.12); font: 700 clamp(2rem, 5vw, 5rem)/1 Georgia, serif; letter-spacing: .08em; writing-mode: vertical-rl; }
.hero-image { position: relative; width: 100%; aspect-ratio: .79; object-fit: cover; object-position: center; border-radius: 2px; box-shadow: var(--shadow); clip-path: polygon(0 0, 94% 0, 100% 7%, 100% 100%, 0 100%); }
.hero-badge { position: absolute; left: -34px; bottom: 38px; z-index: 2; width: 116px; height: 116px; display: grid; place-items: center; text-align: center; border: 1px solid var(--rose); border-radius: 50%; background: #0b090a; color: var(--rose-strong); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; transform: rotate(-8deg); }

.benefits { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit { padding: 28px clamp(18px, 3vw, 38px); border-right: 1px solid var(--line); }
.benefit:last-child { border-right: 0; }
.benefit strong { display: block; margin-bottom: 3px; color: var(--rose-strong); font-size: .86rem; letter-spacing: .13em; text-transform: uppercase; }
.benefit span { color: var(--muted); }

.section { padding-block: 108px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.section-head h2 { max-width: 650px; margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.6rem); line-height: 1; letter-spacing: -.035em; }
.section-head p { max-width: 420px; margin: 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { position: relative; min-width: 0; border: 1px solid rgba(255,255,255,.08); background: var(--panel); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(217,153,167,.48); }
.product-media { display: block; aspect-ratio: .8; background: #0c0b0c; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-body { padding: 22px; }
.product-kicker { color: var(--rose); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.product-title { margin: 6px 0 8px; font-size: 1.65rem; line-height: 1.1; }
.product-desc { min-height: 50px; margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.08); }
.price { font-weight: 750; color: #eee7e9; }
.add-btn { border: 0; border-bottom: 1px solid var(--rose); padding: 7px 0; color: var(--rose-strong); background: transparent; cursor: pointer; font-weight: 750; }
.add-btn:hover { color: #fff; }

.ritual { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 8vw, 110px); align-items: center; }
.brand-panel { aspect-ratio: 1; display: grid; place-items: center; padding: 15%; border: 1px solid var(--line); background: linear-gradient(145deg, #130e10, #040404); position: relative; }
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; width: 42%; height: 1px; background: var(--rose); opacity: .55; }
.brand-panel::before { top: 14%; left: -7%; }
.brand-panel::after { bottom: 14%; right: -7%; }
.brand-panel img { width: 100%; mix-blend-mode: screen; }
.ritual h2 { margin: 0 0 24px; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .95; }
.ritual p { color: var(--muted); font-size: 1.05rem; }
.ritual-list { margin: 28px 0 34px; padding: 0; list-style: none; counter-reset: ritual; }
.ritual-list li { counter-increment: ritual; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ritual-list li::before { content: "0" counter(ritual); color: var(--rose); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }

.site-footer { padding: 56px 0 34px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 40px; }
.footer-title { color: var(--paper); font-family: Georgia, serif; font-size: 1.45rem; }
.footer-links { display: grid; gap: 8px; margin-top: 12px; }
.footer-links a:hover { color: var(--rose); }
.copyright { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); font-size: .8rem; }

.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.68); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 70; top: 0; right: 0; width: min(440px, 100%); height: 100%; padding: 26px; display: flex; flex-direction: column; background: #100d0f; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s ease; box-shadow: -30px 0 70px rgba(0,0,0,.45); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 2rem; }
.close-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.cart-list { flex: 1; overflow: auto; padding: 16px 0; }
.empty-cart { display: grid; place-items: center; height: 60%; color: var(--muted); text-align: center; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.cart-item img { width: 74px; height: 92px; object-fit: cover; }
.cart-item h3 { margin: 4px 0 2px; font: 400 1.1rem/1.2 Georgia, serif; }
.cart-item small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.remove { border: 0; background: transparent; color: var(--rose); cursor: pointer; align-self: start; }
.drawer-foot { padding-top: 18px; border-top: 1px solid var(--line); }
.drawer-foot .btn { width: 100%; }
.drawer-note { margin: 12px 0 0; color: var(--muted); font-size: .79rem; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; padding: 13px 20px; border: 1px solid var(--line); background: #21171a; box-shadow: var(--shadow); transform: translate(-50%, 120px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.product-page { padding-block: 60px 110px; }
.breadcrumb { margin-bottom: 28px; color: var(--muted); font-size: .86rem; }
.breadcrumb a:hover { color: var(--rose); }
.detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(38px, 7vw, 100px); align-items: start; }
.detail-image-wrap { position: sticky; top: 112px; padding: 0 9%; background: linear-gradient(145deg, #171214, #070707); border: 1px solid var(--line); }
.detail-image { width: 100%; aspect-ratio: .8; object-fit: cover; }
.detail-copy { padding-top: 18px; }
.detail-copy h1 { margin: 0 0 12px; font-size: clamp(3.3rem, 6vw, 6rem); line-height: .92; }
.detail-lead { max-width: 600px; color: #c9c0c3; font-size: 1.15rem; }
.detail-price { margin: 28px 0; padding-block: 18px; border-block: 1px solid var(--line); font-size: 1.15rem; font-weight: 800; }
.detail-copy .btn { width: 100%; max-width: 420px; }
.detail-block { margin-top: 38px; }
.detail-block h2 { margin: 0 0 12px; color: var(--rose-strong); font: 800 .77rem/1.3 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.detail-list { margin: 0; padding-left: 19px; color: var(--muted); }
.detail-list li { margin: 7px 0; }
.back-products { display: inline-flex; margin-top: 38px; color: var(--rose); border-bottom: 1px solid currentColor; }
.composition-section { margin-top: 92px; padding: clamp(30px, 5vw, 62px); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(217,153,167,.08), rgba(255,255,255,.018)); }
.composition-heading { display: grid; grid-template-columns: 1fr .75fr; gap: 42px; align-items: end; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.composition-heading h2 { margin: 0; font-size: clamp(2.5rem, 4.8vw, 4.7rem); line-height: .96; letter-spacing: -.035em; }
.composition-heading p:last-child { margin: 0; color: var(--muted); }
.ingredient-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 42px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: ingredient; }
.ingredient-list li { counter-increment: ingredient; position: relative; min-height: 48px; padding: 12px 0 12px 42px; border-bottom: 1px solid rgba(255,255,255,.07); color: #d8d0d2; font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.ingredient-list li::before { content: counter(ingredient, decimal-leading-zero); position: absolute; left: 0; color: var(--rose); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .announcement { font-size: .66rem; letter-spacing: .1em; }
  .nav { height: 76px; }
  .wordmark img { height: 64px; }
  .icon-btn .bag-label { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 52px 62px; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5.4rem); }
  .hero-visual { width: 86%; margin-top: 18px; }
  .hero-badge { left: -20px; width: 92px; height: 92px; font-size: .6rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit:last-child { border-bottom: 0; }
  .section { padding-block: 78px; }
  .section-head { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; }
  .product-desc { min-height: 0; }
  .ritual { grid-template-columns: 1fr; }
  .brand-panel { width: 88%; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-image-wrap { position: static; padding-inline: 7%; }
  .product-page { padding-block: 34px 80px; }
  .composition-section { margin-top: 62px; padding: 26px 20px; }
  .composition-heading { grid-template-columns: 1fr; gap: 16px; }
  .ingredient-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* WordPress and WooCommerce */
.admin-bar .site-header { top: 32px; }
.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: 10px; padding: 12px 18px; z-index: 9999; background: #fff; color: #111; }
.site-main { min-height: 60vh; }
.content-shell { padding-block: 64px 100px; }
.content-shell > article, .entry-content { max-width: 860px; }
.page-title, .entry-title { margin: 0 0 30px; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .96; }
.entry-content a { color: var(--rose-strong); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2 { margin-top: 42px; font-size: 2rem; }
.entry-content h3 { margin-top: 30px; font-size: 1.45rem; }
.entry-content li { margin-block: 8px; }
.legal-note { padding: 16px 18px; border-left: 3px solid var(--rose); background: rgba(217,153,167,.08); color: var(--muted); }
.nav-links .menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.mobile-nav { display: none; }
.account-link { color: #d6cfd1; font-size: .85rem; }
.account-link:hover { color: var(--rose-strong); }
.cart-link { position: relative; }
.hero-product-link { display: block; }
.product-card .button, .product-card .added_to_cart {
  border: 0; border-bottom: 1px solid var(--rose); border-radius: 0; padding: 7px 0;
  color: var(--rose-strong); background: transparent; font-weight: 750; line-height: 1.3;
}
.product-card .button:hover, .product-card .added_to_cart:hover { color: #fff; background: transparent; }
.product-card .added_to_cart { margin-left: 8px; }
.price del { color: #8f8588; font-size: .82em; }
.price ins { text-decoration: none; }
.woocommerce-notices-wrapper { width: min(calc(100% - 40px), var(--max)); margin: 24px auto 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border: 1px solid var(--line); border-top: 3px solid var(--rose); padding: 18px 22px 18px 48px;
  color: var(--paper); background: #171214;
}
.woocommerce-error { border-top-color: #e46e79; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--rose); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  border-radius: 3px; padding: 14px 20px; color: #1b0e12; background: linear-gradient(135deg, #d894a3, #f0b5c0); font-weight: 800;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { color: #1b0e12; background: #f0b5c0; }
.woocommerce div.product { padding-block: 54px 96px; }
.woocommerce div.product div.images img { border: 1px solid var(--line); background: #111; }
.woocommerce div.product .product_title { font-size: clamp(3rem, 5.4vw, 5.7rem); line-height: .94; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rose-strong); font-size: 1.45rem; }
.woocommerce div.product form.cart { display: flex; gap: 12px; margin-block: 28px; }
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid var(--line); color: var(--paper); background: #141113; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color: var(--line); background: #141113; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { color: var(--rose-strong); background: #21171a; }
.woocommerce table.shop_table { border-color: var(--line); border-radius: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: rgba(255,255,255,.08); }
.woocommerce-cart-form img { width: 84px !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  min-height: 46px; border: 1px solid var(--line); border-radius: 2px; padding: 9px 12px; color: var(--paper); background: #141113;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--paper); line-height: 27px; }
.select2-dropdown { border-color: var(--line); color: #222; }
.woocommerce-checkout #payment { color: var(--paper); background: #171214; }
.woocommerce-checkout #payment div.payment_box { color: #2a2023; background: #f3e6e9; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #f3e6e9; }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 2px; margin: 0 0 30px; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 16px; background: #151214; }
.woocommerce-MyAccount-navigation .is-active a { color: #1b0e12; background: var(--rose); }
.composition-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 36px; margin: 24px 0; padding: 0; list-style: none; counter-reset: composition; }
.composition-list li { counter-increment: composition; position: relative; padding: 12px 0 12px 38px; border-bottom: 1px solid rgba(255,255,255,.08); overflow-wrap: anywhere; }
.composition-list li::before { content: counter(composition, decimal-leading-zero); position: absolute; left: 0; color: var(--rose); font-size: .68rem; font-weight: 800; }
.composition-catalog { display: grid; gap: 28px; }
.composition-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: #111011; }
.composition-card h2 { margin-top: 0; }
.shop-shell { padding-block: 56px 96px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 0 0 20px; border: 1px solid rgba(255,255,255,.08); background: #111011; }
.woocommerce ul.products li.product a img { margin: 0 0 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart { margin-inline: 18px; }
.woocommerce ul.products li.product .price { color: var(--rose-strong); }
.footer-legal { margin-top: 18px; font-size: .78rem; }
.footer-legal a { margin-right: 14px; }

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 980px) {
  .nav-links .menu { display: none; }
  .account-link { display: none; }
}
@media (max-width: 720px) {
  .composition-list { grid-template-columns: 1fr; }
  .woocommerce div.product .product_title { font-size: 3.1rem; }
  .woocommerce div.product form.cart { align-items: stretch; }
}
