/*
Theme Name: Geneceutica
Theme URI: https://geneceutica.ro
Author: Geneceutica SRL
Description: Temă premium/wellness pentru magazinul Geneceutica (WooCommerce, EuPlatesc, WPML).
Version: 1.2.18
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: geneceutica
WC requires at least: 8.0
*/

:root {
  --g-ground: #F5F3EE;
  --g-surface: #FFFFFF;
  --g-ink: #1A2420;
  --g-muted: #55605B;
  --g-line: #DDD8CE;
  --g-line-soft: #E4DFD5;
  --g-accent: #2E5A52;
  --g-accent-ink: #FFFFFF;
  --g-deep: #16231F;
  --g-deep-text: #EDEAE3;
  --g-deep-muted: #C8CFCB;
  --g-gold: #C9A66B;
  --g-sand: #E8E1D3;
  --g-sage: #DCE3DE;
  --g-serif: 'Instrument Serif', Georgia, serif;
  --g-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --g-radius: 28px;
  --g-wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--g-ground); color: var(--g-ink); font-family: var(--g-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g-ink); text-decoration: none; }
a:hover { color: var(--g-accent); }
h1, h2, h3, h4 { font-family: var(--g-serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(44px, 6vw, 76px); }
h2 { font-size: clamp(36px, 4.2vw, 52px); }
h3 { font-size: clamp(28px, 3vw, 40px); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--g-ink); color: #fff; padding: 12px 18px; border-radius: 999px; }

.g-wrap { max-width: var(--g-wrap); margin: 0 auto; padding: 0 24px; }
.g-eyebrow { display: inline-block; font-family: var(--g-sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--g-accent); }
.g-lead { font-size: 18px; line-height: 1.65; color: #4B5550; max-width: 560px; }

/* Buttons */
.g-btn, .button, button.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 1px solid var(--g-accent); background: var(--g-accent); color: var(--g-accent-ink); font-family: var(--g-sans); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.g-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--g-deep); border-color: var(--g-deep); color: #fff; }
.g-btn--ghost { background: transparent; color: var(--g-ink); border-color: var(--g-ink); }
.g-btn--ghost:hover { background: var(--g-ink); color: var(--g-ground); }
.g-btn--dark { background: var(--g-ink); border-color: var(--g-ink); color: var(--g-ground); }
.g-btn--light { background: var(--g-deep-text); border-color: var(--g-deep-text); color: var(--g-deep); }
.g-btn--outline-light { background: transparent; border-color: #6F7C77; color: var(--g-deep-text); }
.g-btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.g-link { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Announcement bar */
.g-announce { background: var(--g-deep); color: var(--g-deep-text); font-size: 13px; letter-spacing: .02em; }
.g-announce .g-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; padding-top: 10px; padding-bottom: 10px; }
.g-announce .is-gold { color: var(--g-gold); }

/* Header */
.g-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--g-line); }
.g-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.g-logo { font-family: var(--g-serif); font-size: 32px; line-height: 1; }
.g-logo img { max-height: 48px; width: auto; }
.g-footer__brand .g-logo img { max-height: 56px; }
@media (max-width: 640px) { .g-logo img { max-height: 38px; } }
.g-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.g-nav li { position: relative; }
.g-nav a { display: block; padding: 10px 0; }
.g-nav .sub-menu { display: none; position: absolute; top: 100%; left: -20px; min-width: 260px; flex-direction: column; gap: 0; padding: 12px; background: var(--g-surface); border: 1px solid var(--g-line-soft); border-radius: 18px; box-shadow: 0 18px 40px rgba(22, 35, 31, .08); }
.g-nav .sub-menu a { padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.g-nav .sub-menu a:hover { background: var(--g-ground); }
.g-nav li:hover > .sub-menu, .g-nav li:focus-within > .sub-menu { display: flex; }
.g-header__tools { display: flex; align-items: center; gap: 4px; }
.g-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--g-ink); cursor: pointer; border-radius: 999px; }
.g-icon-btn:hover { background: var(--g-line-soft); }
.g-lang { display: flex; gap: 6px; font-size: 13px; font-weight: 600; padding: 0 8px; }
.g-lang a { padding: 12px 2px; color: var(--g-muted); }
.g-lang a.is-current { color: var(--g-ink); }
.g-cart { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--g-ink); color: var(--g-ground); font-size: 14px; font-weight: 600; }
.g-cart:hover { color: #fff; background: var(--g-accent); }
.g-cart__count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--g-gold); color: var(--g-deep); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.g-menu-toggle { display: none; }
.g-search { display: none; border-top: 1px solid var(--g-line); padding: 16px 0; }
.g-search.is-open { display: block; }
.g-search form { display: flex; gap: 8px; }
.g-search input[type=search] { flex: 1; }

/* Forms */
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=number], textarea, select, .woocommerce form .form-row .input-text, .woocommerce form .form-row select {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #C9C3B7; border-radius: 14px; background: var(--g-surface); color: var(--g-ink); font-family: var(--g-sans); font-size: 15px;
}
textarea { min-height: 140px; }
/* Enhanced selects (selectWoo/select2, e.g. "Județ" in checkout) look like the text fields above */
.select2-container--default .select2-selection--single { display: flex; align-items: center; height: auto; min-height: 50px; margin: 0; padding: 12px 40px 12px 16px; border: 1px solid #C9C3B7; border-radius: 14px; background: var(--g-surface); }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--g-ink); font-family: var(--g-sans); font-size: 15px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--g-muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 12px; height: 100%; }
.select2-container--default .select2-dropdown { border: 1px solid #C9C3B7; border-radius: 14px; overflow: hidden; background: var(--g-surface); font-family: var(--g-sans); font-size: 15px; }
.select2-container--default .select2-search--dropdown .select2-search__field { min-height: 42px; padding: 8px 12px; border: 1px solid #C9C3B7; border-radius: 10px; }
.select2-container--default .select2-results__option { padding: 8px 16px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--g-accent); color: var(--g-accent-ink); }
label { font-size: 14px; font-weight: 600; }

/* Hero */
.g-hero { padding: 72px 0 64px; }
.g-hero .g-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.g-hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.g-hero__copy h1 { margin: 0; }
.g-hero__copy h1 em { color: var(--g-accent); }
.g-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.g-hero__media { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g-tile { border-radius: var(--g-radius); overflow: hidden; background: var(--g-sage); min-height: 252px; position: relative; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.g-tile--tall { grid-row: span 2; min-height: 520px; }
.g-tile--sand { background: var(--g-sand); }
.g-tile--deep { background: var(--g-deep); color: var(--g-deep-text); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.g-tile--deep .g-eyebrow { color: var(--g-gold); font-size: 12px; }
.g-tile--deep strong { font-family: var(--g-serif); font-weight: 400; font-size: 26px; line-height: 1.15; }

/* Trust strip */
.g-trust { border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); }
.g-trust .g-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.g-trust strong { display: block; font-size: 15px; }
.g-trust span { font-size: 14px; color: var(--g-muted); }

/* Section heads */
.g-section { padding: 96px 0 48px; }
.g-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.g-section__head h2 { margin: 0; max-width: 680px; }

/* Divisions */
.g-divisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.g-division { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 24px; border-radius: var(--g-radius); background: var(--g-surface); border: 1px solid var(--g-line-soft); transition: transform .25s, box-shadow .25s; }
.g-division:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(22, 35, 31, .08); color: var(--g-ink); }
.g-division__media { height: 220px; border-radius: 20px; overflow: hidden; background: var(--g-sage); }
.g-division__media img { width: 100%; height: 100%; object-fit: cover; }
.g-division__body { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.g-division__count { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-muted); }
.g-division__name { font-family: var(--g-serif); font-size: 30px; line-height: 1.1; }
.g-division__text { font-size: 15px; color: #4B5550; }

/* DAO band */
.g-dao { padding: 48px 0; }
.g-dao__box { border-radius: 36px; background: var(--g-deep); color: var(--g-deep-text); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 56px; }
.g-dao__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.g-dao__copy .g-eyebrow { color: var(--g-gold); }
.g-dao__copy h2 { margin: 0; font-size: clamp(38px, 4.5vw, 56px); }
.g-dao__copy p { color: var(--g-deep-muted); font-size: 17px; line-height: 1.7; margin: 0; }
.g-dao__list { flex: 1 1 380px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.g-dao__list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid #34433E; color: var(--g-deep-text); font-size: 19px; }
.g-dao__list a:hover { color: var(--g-gold); }
.g-dao__list span.n { font-size: 13px; color: var(--g-gold); margin-right: 20px; }

/* Product grid (front + WooCommerce) */
.g-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.g-tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #C9C3B7; background: transparent; color: var(--g-ink); font-family: var(--g-sans); font-size: 14px; font-weight: 600; cursor: pointer; }
.g-tab[aria-selected=true] { background: var(--g-ink); border-color: var(--g-ink); color: var(--g-ground); }
.g-products, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; list-style: none; margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .g-card { width: auto !important; float: none !important; margin: 0 !important; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 20px !important; border-radius: 24px; background: var(--g-surface); border: 1px solid var(--g-line-soft); position: relative; }
.g-card[hidden] { display: none; }
.woocommerce ul.products li.product a img, .g-card__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #EFEBE3; border-radius: 18px; margin: 0 0 6px !important; }
.g-card__cat { position: absolute; top: 26px; left: 26px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--g-surface); padding: 6px 10px; border-radius: 999px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .g-card__title { font-family: var(--g-sans); font-size: 17px !important; font-weight: 600; line-height: 1.35; padding: 0 6px !important; margin: 0; }
.woocommerce ul.products li.product .price, .g-card__price { font-family: var(--g-serif); font-size: 28px !important; color: var(--g-ink) !important; padding: 0 6px; margin: auto 0 0 !important; }
.woocommerce ul.products li.product .price del { font-size: 18px; opacity: .55; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1 1 auto; }
.woocommerce ul.products li.product .button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; margin: 0 6px !important; font-size: 14px; }
.woocommerce span.onsale { min-height: 0; min-width: 0; line-height: 1; padding: 8px 12px; border-radius: 999px; background: var(--g-gold); color: var(--g-deep); font-size: 12px; font-weight: 700; top: 24px !important; right: 24px !important; left: auto !important; margin: 0; }
.g-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 6px; margin-top: auto; }
.g-card__foot .g-card__price { padding: 0; margin: 0 !important; }
.woocommerce .star-rating { margin: 0 6px !important; }
.g-stock-out { font-size: 13px; color: #8A4B2E; font-weight: 600; }

/* Promo pair */
.g-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; padding: 24px 0 96px; }
.g-promo { border-radius: 32px; padding: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.g-promo h3 { margin: 0; }
.g-promo p { margin: 0; font-size: 16px; line-height: 1.65; }
.g-promo--sand { background: var(--g-sand); color: #4A4436; }
.g-promo--sand .g-eyebrow { color: #6B5A35; }
.g-promo--sage { background: var(--g-sage); color: #3E4A45; }
.g-promo h3 { color: var(--g-ink); }

/* Content pages */
.g-page-head { padding: 64px 0 32px; }
.g-page-head h1 { margin: 0; }
.g-breadcrumb, .woocommerce .woocommerce-breadcrumb { font-size: 13px; color: var(--g-muted); margin: 0 0 16px; }
.g-breadcrumb a, .woocommerce .woocommerce-breadcrumb a { color: var(--g-muted); }
.g-content { padding-bottom: 96px; }
.g-prose { max-width: 760px; font-size: 17px; line-height: 1.75; }
.g-prose h2 { font-size: 38px; margin-top: 1.4em; }
.g-prose h3 { font-size: 28px; margin-top: 1.3em; }
.g-prose a { color: var(--g-accent); text-decoration: underline; text-underline-offset: 3px; }
.g-prose img { border-radius: 20px; margin: 24px 0; }
.g-prose ul, .g-prose ol { padding-left: 1.2em; }
.g-prose blockquote { margin: 32px 0; padding: 0 0 0 24px; border-left: 2px solid var(--g-gold); font-family: var(--g-serif); font-size: 26px; line-height: 1.35; }
.g-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
/* Topic link lists (e.g. Deficiența DAO hub page) */
.g-prose .g-topic-list { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--g-line); }
.g-prose .g-topic-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--g-line); color: var(--g-ink); font-size: 18px; line-height: 1.4; text-decoration: none; }
.g-prose .g-topic-list a::after { content: '\2192'; color: var(--g-gold); flex: none; }
.g-prose .g-topic-list a:hover { color: var(--g-accent); }
.g-prose th, .g-prose td { border-bottom: 1px solid var(--g-line); padding: 10px 8px; text-align: left; }

/* Blog cards */
.g-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.g-post { display: flex; flex-direction: column; gap: 14px; }
.g-post__media { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--g-sage); }
.g-post__media img { width: 100%; height: 100%; object-fit: cover; }
.g-post__meta { font-size: 13px; color: var(--g-muted); }
.g-post__title { font-family: var(--g-serif); font-size: 28px; line-height: 1.15; margin: 0; }
.g-pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.g-pagination .page-numbers, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--g-line) !important; padding: 0 14px; }
.g-pagination .current, .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--g-ink); color: var(--g-ground); }
.woocommerce nav.woocommerce-pagination { margin-top: 48px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }

/* Shop layout */
.g-shop { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 96px; }
.g-shop__side { flex: 1 1 240px; max-width: 280px; }
.g-shop__main { flex: 999 1 560px; min-width: 0; }
.g-shop__side .widget { margin-bottom: 32px; }
.g-shop__side .widget-title, .g-shop__side h2 { font-family: var(--g-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.g-shop__side ul { list-style: none; padding: 0; margin: 0; }
.g-shop__side li { padding: 4px 0; }
.g-shop__side .children { padding-left: 14px; }
.g-shop__side .count { color: var(--g-muted); font-size: 13px; }
.woocommerce .woocommerce-result-count { color: var(--g-muted); font-size: 14px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; border-radius: 999px; }
.term-description { max-width: 760px; color: #4B5550; }

/* Single product */
.woocommerce div.product { display: flex; flex-wrap: wrap; gap: 56px; padding-bottom: 64px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images { flex: 1 1 440px; min-width: 0; }
.woocommerce div.product div.images img { border-radius: var(--g-radius); background: #EFEBE3; }
/* Never upscale the product photo: small originals stay at their real size, centred on the panel. */
.woocommerce div.product div.images .woocommerce-product-gallery__image { border-radius: var(--g-radius); background: #EFEBE3; overflow: hidden; }
.woocommerce div.product div.images .woocommerce-product-gallery__image > a { display: flex; justify-content: center; align-items: center; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px !important; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 80px !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 12px; }
.woocommerce div.product div.summary { flex: 1 1 420px; min-width: 0; }
.woocommerce div.product .product_title { font-size: clamp(36px, 4vw, 52px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-family: var(--g-serif); font-size: 36px; color: var(--g-ink); }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 17px; line-height: 1.7; color: #4B5550; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce .quantity .qty { width: 88px; min-height: 52px; border-radius: 999px; text-align: center; }
.woocommerce div.product form.cart .button { flex: 1 1 220px; }
.woocommerce div.product .stock { color: var(--g-accent); font-weight: 600; }
.woocommerce div.product .stock.out-of-stock { color: #8A4B2E; }
.g-replaced { font-weight: 600; margin: 0 0 12px; }
.g-replaced a { color: var(--g-accent); }
.woocommerce div.product .product_meta { font-size: 14px; color: var(--g-muted); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--g-line); padding-top: 20px; }
.g-tiers { margin: 20px 0 4px; }
.g-tiers__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-accent); margin: 0 0 10px; }
.g-tiers__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.g-tier { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 14px 16px; min-height: 44px; border: 1px solid #C9C3B7; border-radius: 16px; background: var(--g-surface); color: var(--g-ink); font-family: var(--g-sans); cursor: pointer; }
.g-tier:hover { border-color: var(--g-accent); }
.g-tier[aria-pressed=true] { border-color: var(--g-accent); box-shadow: inset 0 0 0 1px var(--g-accent); }
.g-tier__qty { font-size: 13px; color: var(--g-muted); }
.g-tier__price { grid-row: 2; font-size: 17px; font-weight: 700; }
.g-tier__off { grid-row: span 2; align-self: center; background: var(--g-gold); color: var(--g-deep); font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.g-tiers__note { font-size: 13px; color: var(--g-muted); margin: 8px 0 0; }
.g-product-assurance { list-style: none; padding: 20px; margin: 24px 0; border-radius: 20px; background: var(--g-surface); border: 1px solid var(--g-line-soft); display: grid; gap: 10px; font-size: 14px; }
.g-product-assurance li { display: flex; gap: 10px; align-items: center; }
.g-product-assurance svg { flex: none; color: var(--g-accent); }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { flex: 1 1 100%; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; margin: 0 0 32px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 1px solid #C9C3B7 !important; border-radius: 999px !important; background: transparent !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 20px !important; font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--g-ink) !important; border-color: var(--g-ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--g-ground) !important; }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 820px; font-size: 17px; line-height: 1.75; }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 40px; margin: 32px 0 28px; }

/* Cart, checkout, account */
.woocommerce-cart .g-content, .woocommerce-checkout .g-content, .woocommerce-account .g-content { max-width: 1180px; }
.woocommerce table.shop_table { border: 1px solid var(--g-line-soft) !important; border-radius: 22px !important; background: var(--g-surface); border-collapse: separate !important; overflow: hidden; }
.woocommerce table.shop_table th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--g-line-soft) !important; padding: 16px !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order, #order_review { background: var(--g-surface); border: 1px solid var(--g-line-soft); border-radius: 22px; padding: 24px; }
.woocommerce-checkout #payment { background: var(--g-ground) !important; border-radius: 18px !important; }
.woocommerce-checkout #payment div.payment_box { background: var(--g-surface) !important; border-radius: 12px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border: 0 !important; border-radius: 16px; background: var(--g-surface) !important; box-shadow: inset 0 0 0 1px var(--g-line-soft); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--g-accent) !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; border-radius: 12px; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--g-ink); color: var(--g-ground); }

/* Footer */
.g-footer { background: var(--g-deep); color: var(--g-deep-muted); }
.g-footer a { color: var(--g-deep-muted); }
.g-footer a:hover { color: var(--g-gold); }
.g-footer__top { display: flex; flex-wrap: wrap; gap: 48px; padding: 72px 0 56px; }
.g-footer__brand { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.g-footer__brand .g-logo { color: var(--g-deep-text); font-size: 36px; }
.g-footer__brand p { max-width: 380px; font-size: 15px; line-height: 1.7; margin: 0; }
.g-footer__company { font-size: 14px; line-height: 1.7; }
.g-footer__col { flex: 1 1 160px; min-width: 0; }
.g-footer__col h2 { font-family: var(--g-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-gold); margin: 0 0 14px; }
.g-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.g-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 32px; border-top: 1px solid #34433E; font-size: 13px; }
.g-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.g-badges img { height: 40px; width: auto; border-radius: 6px; background: #fff; padding: 4px; }
.g-social { display: flex; gap: 6px; }
.g-social a { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #34433E; }

/* DAO questionnaire */
.g-quiz { max-width: 760px; background: var(--g-surface); border: 1px solid var(--g-line-soft); border-radius: var(--g-radius); padding: clamp(24px, 4vw, 48px); }
.g-quiz fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.g-quiz legend { font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.g-quiz__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.g-quiz__opts label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #C9C3B7; border-radius: 999px; cursor: pointer; font-weight: 500; }
.g-quiz__opts input:checked + span { font-weight: 700; }
.g-quiz__opts label:has(input:checked) { background: var(--g-ink); color: var(--g-ground); border-color: var(--g-ink); }
.g-quiz[hidden], .g-quiz__result[hidden], .g-quiz [hidden], .g-quiz__missing[hidden] { display: none; }
.g-quiz__result { display: flex; flex-direction: column; gap: 20px; }
.g-quiz__result h2 { margin: 8px 0 12px; font-size: clamp(30px, 3.4vw, 42px); }
.g-quiz__result:focus { outline: none; }
.g-quiz__missing { color: #8A4B2E; font-weight: 600; }
.g-quiz__disclaimer { font-size: 14px; color: var(--g-muted); margin: 0; }
.g-quiz__email { margin-top: 12px; padding: 24px; border-radius: 20px; background: var(--g-ground); display: flex; flex-direction: column; gap: 4px; }
.g-quiz__email h3 { font-size: 26px; margin: 0 0 8px; }
.g-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.5; }
.g-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--g-accent); }
.g-quiz__restart { align-self: flex-start; background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 12px 0 2px; color: var(--g-ink); }
.g-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Checkout: customer details stacked on the left (billing, shipping, notes), order summary on the right */
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
@media (min-width: 992px) {
  .woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 40px; align-items: start; }
  .woocommerce-checkout form.checkout > * { grid-column: 1; }
  .woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
  .woocommerce-checkout form.checkout > .g-checkout-summary { grid-column: 2; position: sticky; top: 104px; } /* top is adjusted in theme.js when the summary is taller than the screen */
  .woocommerce-checkout .g-checkout-summary #order_review_heading { margin-top: 0; }
}

/* Checkout: "Livrezi la o altă adresă?" (a label inside the section heading) */
.woocommerce-checkout #ship-to-different-address label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--g-sans); font-size: 18px; font-weight: 600; letter-spacing: 0; cursor: pointer; }
.woocommerce-checkout #ship-to-different-address input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--g-accent); }

/* Checkout, shipping: postcode and phone side by side. By ID, because WooCommerce's address script
   gives the same classes to the billing fields (where the phone sits next to the email instead). */
@media (min-width: 769px) {
  .woocommerce form #shipping_postcode_field { float: left; width: 47%; clear: both; }
  .woocommerce form #shipping_phone_field { float: right; width: 47%; clear: none; }
}

/* Checkout: close the half-width rows (city/county, phone/email) at the end of each section */
.woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after, .woocommerce-address-fields__field-wrapper::after { content: ""; display: table; clear: both; }

/* Contact Form 7 */
.g-form { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.g-form label { display: flex; flex-direction: column; gap: 6px; }
.g-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-form .g-check .wpcf7-list-item { margin: 0; }
.g-form .g-check .wpcf7-list-item label { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; }
.g-form .g-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--g-accent); }
.g-form input[type=file] { font-family: var(--g-sans); font-size: 14px; }
.g-form .wpcf7-submit { align-self: flex-start; }
.g-form .wpcf7-not-valid-tip { font-size: 13px; font-weight: 500; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; }
.wpcf7-spinner { margin: 0 12px; }
.g-quote, .g-account-agmp { margin-top: 28px; padding: 24px; border-radius: 20px; background: var(--g-ground); }
.g-quote h3, .g-account-agmp h3 { margin-top: 0; }
@media (max-width: 640px) { .g-form__row { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 1080px) {
  .g-menu-toggle { display: inline-flex; }
  .g-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--g-ground); border-bottom: 1px solid var(--g-line); padding: 8px 24px 24px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .g-nav.is-open { display: block; }
  .g-nav ul { flex-direction: column; gap: 0; }
  .g-nav a { padding: 14px 0; border-bottom: 1px solid var(--g-line-soft); font-size: 17px; }
  .g-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; }
  .g-nav .sub-menu a { font-size: 15px; }
  .g-lang { display: none; }
}
@media (max-width: 640px) {
  .g-header__inner { min-height: 68px; }
  .g-logo { font-size: 26px; }
  .g-cart__label { display: none; }
  .g-cart { padding: 0 14px; }
  .g-hero { padding-top: 40px; }
  .g-tile--tall { min-height: 340px; }
  .g-tile { min-height: 160px; }
  .g-section { padding-top: 64px; }
  .g-shop__side { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
