/*!
 * GNT.GE v1.2 — minimal storefront layer (loaded last, after gnt.css + theme.css).
 * Idea: categories first, flat surfaces, one dark-green band, Mtavruli headings in Google Sans.
 * To go back to the previous look remove the <link> to this file in resources/views/front/layouts/app.blade.php.
 */

/* ------------------------------------------------------------------ fonts */
@font-face {
    font-family: "GNT Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/google-sans-georgian-wght-normal.woff2") format("woff2");
    unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
    font-family: "GNT Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/google-sans-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "GNT Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/google-sans-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----------------------------------------------------------------- tokens */
:root {
    --g-font: "GNT Sans", "GNT Georgian", "GNT Latin", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Georgian", sans-serif;
    --g-ink: #10231a;
    --g-text: #1d2e25;
    --g-text-2: #3f5147;
    --g-muted: #66766d;
    --g-subtle: #93a198;
    --g-line: #e5eae6;
    --g-line-strong: #d2dbd5;
    --g-bg: #f4f6f5;
    --g-surface-2: #f3f5f4;
    --g-band: #0c3a23;
    --g-band-2: #0f4a2d;
    --g-accent: #15803d;
    --g-accent-600: #11692f;
    --g-accent-50: #edf7f0;
    --g-accent-100: #d3eedb;
    --g-bright: #2bd46a;
    --g-r-sm: 8px;
    --g-r: 12px;
    --g-r-lg: 16px;
    --g-shadow: 0 12px 28px -20px rgba(12, 58, 35, .38);
    --g-focus: 0 0 0 3px rgba(21, 128, 61, .28);
}
body.g-body { font-family: var(--g-font); color: var(--g-text); background: #fff; font-feature-settings: normal; }
.g-body h1, .g-body h2, .g-body h3, .g-body h4 { font-family: var(--g-font); }

/* Mtavruli headings (Google Sans has the U+1C90 block) */
.g-mtitle, .g-section__title, .g-pagehead__title, .g-footer__title, .g-menu__link, .g-mega__toggle span, .g-navbar__cta span,
.g-catside__title, .g-tile__name, .g-cta-band h2, .g-drawer__title, .g-drawer__label {
    letter-spacing: .02em; /* Georgian capitals come from mt() in the templates */
}
.g-mtitle { margin: 0 0 18px; font-size: 1.125rem; font-weight: 600; color: var(--g-ink); line-height: 1.3; }
.g-section__title { font-size: 1.125rem; font-weight: 600; }
@media (min-width: 992px) { .g-mtitle, .g-section__title { font-size: 1.25rem; } }

/* flat solid buttons — no gradients */
.g-btn--primary, .g-mega__toggle, .g-search__submit { background: var(--g-accent) !important; border-color: var(--g-accent) !important; }
.g-btn--primary:hover, .g-search__submit:hover { background: var(--g-accent-600) !important; border-color: var(--g-accent-600) !important; }
.g-btn { border-radius: 10px; }

/* ----------------------------------------------------------------- header */
.g-topbar { background: var(--g-bg); color: var(--g-muted); border-bottom: 1px solid var(--g-line); }
.g-topbar a, .g-topbar span { color: var(--g-muted); }
.g-topbar a:hover { color: var(--g-ink); }
.g-topbar__inner { min-height: 34px; }
.g-mainbar { border-bottom: 0; }
.g-search__field { height: 48px; background: var(--g-surface-2); border: 1px solid transparent; border-radius: 12px; }
.g-search__field:focus-within { background: #fff; border-color: var(--g-accent); }
.g-search__submit { border-radius: 9px; padding: 0 20px; }
.g-consult { border-right-color: var(--g-line); }
.g-consult__icon { background: var(--g-accent-50); color: var(--g-accent); }
.g-badge { background: var(--g-accent); }

.g-navbar { background: var(--g-band); border-bottom: 0; }
.g-navbar__inner { min-height: 50px; }
.g-menu__link { height: 50px; padding: 0 14px; color: rgba(255, 255, 255, .86) !important; font-size: .8125rem; font-weight: 500; }
.g-menu__link:hover, .g-menu__item.is-active > .g-menu__link { color: #fff !important; background: rgba(255, 255, 255, .07); }
.g-menu__item.is-active > .g-menu__link { box-shadow: inset 0 -3px 0 var(--g-bright); }
.g-menu__dropdown .g-menu__sublink { text-transform: none; letter-spacing: 0; }
.g-mega__toggle { height: 50px; border-radius: 0; padding: 0 20px; font-size: .8125rem; }
.g-mega__toggle:hover, .g-mega.is-open .g-mega__toggle { background: var(--g-accent-600) !important; }
.g-navbar__cta { height: 34px; color: #fff !important; background: transparent; border: 1px solid rgba(255, 255, 255, .28); border-radius: 9px; font-size: .8125rem; }
.g-navbar__cta:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.g-navbar__cta .g-icon { color: var(--g-bright); }
.g-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(12, 40, 25, .35); }

/* --------------------------------------------------------------- page head */
.g-pagehead { background: #fff; border-bottom: 1px solid var(--g-line); padding: 18px 0 16px; }
.g-pagehead__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 600; margin-top: 8px; }
.breadcrumb, .g-breadcrumbs { font-size: .8125rem; }

/* -------------------------------------------------------------- sections */
.g-section { padding: 28px 0; }
.g-section--tight { padding: 20px 0; }
@media (min-width: 992px) { .g-section { padding: 36px 0; } .g-section--tight { padding: 28px 0; } }
.is-home .g-main > .g-section:first-of-type, .is-home .g-tiles-section { padding-top: 24px; }
.g-section__head { margin-bottom: 18px; align-items: center; }
.g-link-arrow { font-size: .875rem; font-weight: 500; color: var(--g-accent) !important; }

/* ------------------------------------------------------- category tiles */
.g-tiles { --gap: 10px; display: flex; flex-wrap: wrap; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.g-tiles > li { flex: 1 1 calc((100% - var(--gap)) / 2); min-width: 0; display: flex; }
@media (min-width: 640px) { .g-tiles > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (min-width: 992px) { .g-tiles { --gap: 12px; } .g-tiles > li { flex-basis: calc((100% - (var(--cols, 5) - 1) * var(--gap)) / var(--cols, 5)); } }
.g-tile {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%;
    padding: 18px 12px 16px; text-align: center; color: var(--g-ink) !important; background: var(--g-surface-2);
    border: 1px solid transparent; border-radius: var(--g-r-lg); transition: background .2s, border-color .2s, box-shadow .2s;
}
.g-tile:hover { background: #fff; border-color: var(--g-accent-100); box-shadow: var(--g-shadow); }
.g-tile:focus-visible { outline: none; box-shadow: var(--g-focus); }
.g-tile__media { display: flex; align-items: center; justify-content: center; width: 100%; height: 92px; }
.g-tile__media img { max-width: 80%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s var(--g-ease); }
.g-tile:hover .g-tile__media img { transform: translateY(-3px); }
.g-tile__media .g-icon { width: 44px; height: 44px; color: var(--g-accent); stroke-width: 1.4; }
.g-tile__name { margin-top: 14px; font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.g-tile__count { margin-top: 4px; font-size: .75rem; color: var(--g-muted); }
@media (min-width: 992px) { .g-tile { padding: 24px 14px 20px; } .g-tile__media { height: 118px; } .g-tile__name { font-size: .875rem; } }
@media (prefers-reduced-motion: reduce) { .g-tile:hover .g-tile__media img { transform: none; } }

/* ------------------------------------------------------------- brand logos */
.g-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 28px; margin: 0; padding: 4px 0; list-style: none; border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); }
.g-logos__item { display: flex; align-items: center; justify-content: center; height: 76px; padding: 0 6px; color: var(--g-ink) !important; }
.g-logos__item img { height: 52px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.g-logos__item:hover img { filter: none; opacity: 1; }
@media (min-width: 992px) { .g-logos { gap: 8px 48px; } .g-logos__item img { height: 64px; max-width: 200px; } }

/* -------------------------------------------------------------- quote band */
.g-quoteband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 22px 20px; background: var(--g-surface-2); border-radius: var(--g-r-lg); }
.g-quoteband .g-mtitle { margin: 0; }
.g-quoteband p { margin: 6px 0 0; color: var(--g-muted); max-width: 64ch; font-size: .9375rem; }
.g-quoteband__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 992px) { .g-quoteband { padding: 28px 32px; } }
@media (max-width: 575.98px) { .g-quoteband__actions, .g-quoteband__actions .g-btn { width: 100%; } }

/* ---------------------------------------------------------- product cards */
.g-grid { gap: 10px; }
@media (min-width: 992px) { .g-grid { gap: 14px; } }
.g-card { border: 1px solid var(--g-line); border-radius: 14px; box-shadow: none; background: #fff; }
.g-card:hover { border-color: var(--g-accent-100); box-shadow: var(--g-shadow); }
.g-card__media { border-radius: 14px 14px 0 0; }
.g-card__media img { padding: 18px; }
.g-card__body { border-top: 0; padding: 4px 14px 14px; gap: 5px; }
.g-card__brand { color: var(--g-accent-600); font-size: .6875rem; letter-spacing: .08em; }
.g-card__title { font-size: .875rem; font-weight: 500; }
.g-card__title a:hover { color: var(--g-accent); }
.g-card__sku { font-size: .6875rem; }
.g-card__meta { display: flex; flex-wrap: wrap; margin: 0; font-size: .75rem; line-height: 1.4; color: var(--g-muted); }
.g-card__meta span + span::before { content: "·"; margin: 0 6px; color: var(--g-subtle); }
.g-card__specs { display: none; }
.g-card .g-price__now { font-size: 1.0625rem; font-weight: 700; color: var(--g-ink); }
.g-card .g-price__request { font-size: .8125rem; font-weight: 600; color: var(--g-text-2); }
.g-card__add { width: 40px; height: 40px; border-radius: 50%; background: var(--g-accent-50) !important; color: var(--g-accent) !important; }
.g-card__add:hover { background: var(--g-accent) !important; color: #fff !important; }
.g-card__ask { height: 36px; border: 1px solid var(--g-accent-100); background: #fff; color: var(--g-accent-600) !important; border-radius: 10px; }
.g-card__ask:hover { background: var(--g-accent-50); border-color: var(--g-accent); }
.g-card__stock { font-size: .6875rem; margin-top: 2px; }
.g-card__tool { border-radius: 50%; }

/* --------------------------------------------------------------- catalog */
.g-catalog { padding: 20px 0 48px; }
@media (min-width: 992px) { .g-catalog__layout { grid-template-columns: 248px minmax(0, 1fr); gap: 28px; } }
.g-catside__title { margin: 0 0 8px; padding: 0 0 10px; font-size: .8125rem; font-weight: 600; color: var(--g-ink); border-bottom: 1px solid var(--g-line); }
.g-catside .g-fcats a { padding: 8px 10px; font-size: .875rem; color: var(--g-text-2) !important; border-radius: 8px; }
.g-catside .g-fcats a:hover { background: var(--g-surface-2); color: var(--g-ink) !important; }
.g-catside .g-fcats a.is-active { background: var(--g-accent-50); color: var(--g-accent-600) !important; font-weight: 600; }
.g-catside .g-fcats small { color: var(--g-subtle); font-size: .75rem; }
.g-catside .g-fcats ul { border-left-color: var(--g-accent-100); }
@media (min-width: 992px) { .g-filters { top: 150px; } }

.g-subcats a { height: 36px; border-radius: 10px; border-color: var(--g-line-strong); font-size: .8125rem; }
.g-subcats a:hover { border-color: var(--g-accent); color: var(--g-accent) !important; }

/* filter dropdown row */
.g-fbar { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.g-fdrop { position: relative; }
.g-fdrop > summary {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 14px; list-style: none; cursor: pointer; user-select: none;
    font-size: .875rem; font-weight: 500; color: var(--g-ink); white-space: nowrap; background: #fff; border: 1px solid var(--g-line-strong); border-radius: 10px;
    transition: border-color .15s, background .15s;
}
.g-fdrop > summary::-webkit-details-marker { display: none; }
.g-fdrop > summary:hover, .g-fdrop[open] > summary { border-color: var(--g-ink); }
.g-fdrop > summary:focus-visible { outline: none; box-shadow: var(--g-focus); }
.g-fdrop > summary .g-icon { width: 15px; height: 15px; color: var(--g-muted); transition: transform .15s; }
.g-fdrop[open] > summary .g-icon { transform: rotate(180deg); }
.g-fdrop.is-active > summary { border-color: var(--g-accent); background: var(--g-accent-50); color: var(--g-accent-600); }
.g-fdrop > summary b { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--g-accent); color: #fff; font-size: .6875rem; font-weight: 700; }
.g-fdrop__panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 230px; max-width: 320px; max-height: 340px; overflow: auto;
    padding: 10px 12px; background: #fff; border: 1px solid var(--g-line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(12, 40, 25, .32);
}
.g-fdrop__panel--wide { min-width: 280px; }
.g-fdrop__panel .g-fchecks li { padding: 5px 0; }
.g-fdrop__panel .g-check { width: 100%; }
.g-fdrop__panel .g-check small { color: var(--g-subtle); margin-left: 4px; }
.g-fdrop__panel .g-frange { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.g-fdrop__panel .g-field__hint { margin: 8px 0 0; font-size: .75rem; }
.g-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; border: 1px solid var(--g-line); vertical-align: -1px; }
.g-ftoggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 14px; font-size: .875rem; color: var(--g-ink); background: #fff; border: 1px solid var(--g-line-strong); border-radius: 10px; cursor: pointer; }
.g-ftoggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--g-accent); }
.g-ftoggle.is-active { border-color: var(--g-accent); background: var(--g-accent-50); color: var(--g-accent-600); }
@media (max-width: 575.98px) {
    .g-fdrop { position: static; }
    .g-fdrop__panel { left: 0; right: 0; max-width: none; min-width: 0; }
    .g-fdrop > summary, .g-ftoggle { height: 38px; font-size: .8125rem; }
}
.g-toolbar { padding-bottom: 12px; border-bottom-color: var(--g-line); }
.g-toolbar__controls .g-select { border-radius: 10px; }
.g-active-filters .g-chip { border-radius: 10px; }

/* ----------------------------------------------------------------- footer */
.g-cta-band { background: var(--g-band) !important; }
.g-footer { background: var(--g-bg); color: var(--g-text-2); border-top: 1px solid var(--g-line); }
.g-footer__title { color: var(--g-ink) !important; font-size: .8125rem; font-weight: 600; }
.g-footer__links a, .g-footer__contact a { color: var(--g-text-2); }
.g-footer__links a:hover, .g-footer__contact a:hover { color: var(--g-accent); }
.g-footer__contact .g-icon { color: var(--g-accent); }
.g-footer__social a { color: var(--g-ink); border-color: var(--g-line-strong); background: #fff; }
.g-footer__social a:hover { color: #fff; background: var(--g-accent); border-color: var(--g-accent); }
.g-footer__newsletter label { color: var(--g-ink); }
.g-footer__newsletter .g-input { background: #fff; border-color: var(--g-line-strong); color: var(--g-ink); }
.g-footer__newsletter .g-input::placeholder { color: var(--g-subtle); }
.g-footer__bottom { border-top-color: var(--g-line); }
.g-footer__copy { color: var(--g-muted); }

/* request-only cards: the button already says it, drop the duplicate label */
.g-card__foot--request .g-price { display: none; }

/* product page */
.g-buy__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.25; letter-spacing: 0; }
