/* 
Theme Name: Drubor Child (Tiszta verzió a Dokan-hoz)
Theme URI: https://példa.hu/   /* opcionális, a téma weboldala */  
Description: Tiszta gyermek téma a Dokan plugin kompatibilitásának javításához.  
Author: DruBor Design        /* vagy a saját nevünk/ügynökségünk */  
Version: 3.0.2 
Template: rehub-theme

Text Domain: drubor-child  
*/

/* --- Ide jöhetnek a gyermek téma egyedi stílusai --- */

/* Példa: A Dokan boltkártyák margójának igazítása 
.dokan-seller-wrap .dokan-single-seller { margin: 20px; } 
*/

/* Gomb méretének csökkentése a jogosultság nélküli dobozban */
.non-access-info-box .button.add-to-cart-button {
    font-size: 13px; /* Kisebb betűméret */
    padding: 5px 10px; /* Kisebb belső tér (padding) */
    line-height: 1; /* Sor magasság beállítása */
    height: auto; /* Magasság automatikus illesztése a tartalomhoz */
    min-height: unset; /* Ha van valamilyen minimális magasság beállítva, azt felülírja */
}

/* Ha a gomb még mindig túl nagy, vagy a gomb alatti p tag miatt, próbáljuk így: */
.non-access-info-box .store-locked {
    margin-bottom: 0 !important; /* Eltávolítja az alatta lévő margót, ha van */
}

.vendor-categories a {
    color: white !important;
}

/* GARÁZSPIAC – napernyős hét sávos piackártyák */
.gp-canopy-card{display:flex!important;flex-direction:column;min-width:0;border:1px solid #e6ded6;background:#fff;box-shadow:0 5px 19px rgba(40,23,20,.08);overflow:hidden;border-radius:12px}
.gp-canopy-card__head{min-height:54px;padding:10px 11px;background:#fff7ee;color:#512e2e;display:flex;flex-direction:column;gap:3px}
.gp-canopy-card__head strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gp-canopy-card__head small{font-size:10px;color:#806b5c}
.gp-canopy-card__type{background:#84232b;color:#fff;font-size:11px;font-weight:800;padding:7px 11px;text-transform:uppercase}
.gp-canopy-card__categories{padding:8px 10px;min-height:40px;color:#65544a;font-size:11px;line-height:1.3}
.gp-canopy-card__umbrella{height:72px;position:relative;overflow:hidden;background:linear-gradient(#f9eee2,#fff)}
.gp-canopy-card__umbrella span{position:absolute;left:9%;top:8px;width:82%;height:54px;border-radius:90% 90% 6% 6%;background:repeating-conic-gradient(from 205deg at 50% 2%,#922c35 0deg 22deg,#f5e1b9 22deg 44deg);clip-path:polygon(50% 0,100% 38%,100% 100%,0 100%,0 38%)}
.gp-canopy-card__umbrella i{position:absolute;left:49%;bottom:0;width:3px;height:20px;background:#9c795d}
.gp-canopy-card__gallery{display:flex;height:106px;background:#f3ebe3;overflow:hidden;gap:2px}
.gp-canopy-card__gallery img{width:33.333%;height:100%;object-fit:cover;flex:1;min-width:0}
.gp-canopy-card__gallery-empty{display:grid;place-items:center;width:100%;font-size:12px;color:#806b5c}
.gp-canopy-card__products{padding:10px 11px;font-size:11px;color:#655b53;min-height:52px;line-height:1.4}
.gp-canopy-card__link{display:block;margin:auto 9px 10px;padding:10px 6px;border-radius:7px;color:#fff!important;background:#84232b;text-align:center;text-decoration:none;font-size:12px;font-weight:800}
.gp-canopy-card__link:hover{background:#632029}
.gp-home-market-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
@media(max-width:1100px){.gp-home-market-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:650px){.gp-home-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:410px){.gp-home-market-grid{grid-template-columns:1fr!important}}

/* === 02_FOOLDAL v1.2.0 presentation only === */
:root {
    --gp-ink: #1d2939;
    --gp-muted: #667085;
    --gp-line: #e4e7ec;
    --gp-soft: #f7f8f5;
    --gp-accent: #1f6b4f;
    --gp-accent-dark: #174f3c;
    --gp-warm: #f4efe6;
    --gp-white: #fff;
    --gp-radius: 18px;
    --gp-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

.gp-shell,
.gp-search-shell {
    width: min(1500px, calc(100% - 40px));
    margin-inline: auto;
}

.gp-homepage,
.gp-search-page {
    color: var(--gp-ink);
    background: var(--gp-white);
}

.gp-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--gp-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.gp-home-search {
    padding: 34px 0 30px;
    background: linear-gradient(180deg, #f8faf7 0%, #fff 100%);
}

.gp-home-search__intro {
    max-width: 850px;
    margin-bottom: 24px;
}

.gp-home-search__intro h1,
.gp-search-header h1 {
    margin: 0 0 10px;
    color: var(--gp-ink);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.gp-home-search__intro p,
.gp-search-header p {
    max-width: 760px;
    margin: 0;
    color: var(--gp-muted);
    font-size: 17px;
    line-height: 1.55;
}

.gp-search-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gp-search-entry {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--gp-line);
    border-radius: var(--gp-radius);
    background: var(--gp-white);
    box-shadow: 0 2px 10px rgba(16, 24, 40, .025);
    color: var(--gp-ink);
    text-decoration: none;
}

.gp-search-entry:hover {
    border-color: #b7cfc5;
    box-shadow: var(--gp-shadow);
    transform: translateY(-1px);
}

.gp-search-entry__icon {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 12px;
    background: #edf5f1;
    color: var(--gp-accent);
    font-size: 22px;
    font-weight: 700;
}

.gp-search-entry > strong {
    display: block;
    margin-bottom: 6px;
    font-size: 19px;
}

.gp-search-entry > span:not(.gp-search-entry__icon) {
    display: block;
    min-height: 44px;
    color: var(--gp-muted);
    font-size: 14px;
    line-height: 1.45;
}

.gp-search-entry > b {
    display: inline-block;
    margin-top: 18px;
    color: var(--gp-accent);
    font-size: 14px;
}

.gp-search-entry__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.gp-search-entry__chips a {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--gp-soft);
    color: var(--gp-ink);
    font-size: 12px;
    line-height: 1.1;
    text-decoration: none;
}

.gp-search-entry__chips a:hover {
    background: #e8f2ed;
    color: var(--gp-accent-dark);
}

.gp-home-keyword-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-top: 14px;
}

.gp-home-keyword-form input,
.gp-home-keyword-form button,
.gp-search-page input,
.gp-search-page select,
.gp-search-page button {
    min-height: 44px;
    border-radius: 10px;
}

.gp-home-keyword-form input {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    background: #fff;
}

.gp-home-keyword-form button {
    padding: 0 15px;
    border: 0;
    background: var(--gp-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.gp-home-section {
    padding: 34px 0;
}

.gp-home-section:nth-of-type(even) {
    background: var(--gp-soft);
}

.gp-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.gp-section-head h2 {
    margin: 0;
    color: var(--gp-ink);
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.1;
}

.gp-text-link {
    color: var(--gp-accent);
    font-weight: 700;
    text-decoration: none;
}

.gp-scroll-nav {
    display: flex;
    gap: 7px;
}

.gp-scroll-nav button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--gp-line);
    border-radius: 50%;
    background: #fff;
    color: var(--gp-ink);
    font-size: 25px;
    cursor: pointer;
}

.gp-scroll-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 12px;
}

.gp-scroll-track > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gp-home-market-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gp-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(16, 24, 40, .035);
    color: var(--gp-ink);
    text-decoration: none;
}

.gp-home-market-card:hover {
    border-color: #bdcec7;
    box-shadow: var(--gp-shadow);
    transform: translateY(-2px);
}

.gp-home-market-card--compact {
    width: clamp(250px, 24vw, 330px);
}

.gp-home-market-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e9eee9, #dfe8e3);
    background-position: center;
    background-size: cover;
}

.gp-home-market-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 14px 15px;
}

.gp-home-market-card .gp-ctx-badge {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf5f1;
    color: var(--gp-accent-dark);
    font-size: 11px;
    font-weight: 800;
}

.gp-home-market-card .gp-ctx-name {
    display: block;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-home-market-card .gp-ctx-loc,
.gp-home-market-card .gp-ctx-cats,
.gp-home-market-time {
    color: var(--gp-muted);
    font-size: 12px;
    line-height: 1.35;
}

.gp-home-market-card .gp-ctx-cats {
    min-height: 32px;
}

.gp-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.gp-category-tile {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gp-line);
    border-radius: 14px;
    background: #fff;
    color: var(--gp-ink);
    text-decoration: none;
}

.gp-category-tile__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #e8ece8;
    background-position: center;
    background-size: cover;
}

.gp-category-tile__image--empty {
    background: linear-gradient(135deg, #edf1ed, #e4ebe6);
}

.gp-category-tile strong,
.gp-category-tile > span:last-child {
    display: block;
    padding-inline: 12px;
}

.gp-category-tile strong {
    padding-top: 11px;
    font-size: 14px;
    line-height: 1.25;
}

.gp-category-tile > span:last-child {
    padding-top: 4px;
    padding-bottom: 12px;
    color: var(--gp-muted);
    font-size: 11px;
}

.gp-home-market-grid,
.gp-search-page .gp-ctx-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px !important;
}

.gp-featured-items__track .gp-featured-card {
    width: clamp(200px, 18vw, 250px);
}

.gp-featured-card {
    overflow: hidden;
    border: 1px solid var(--gp-line);
    border-radius: 14px;
    background: #fff;
    color: var(--gp-ink);
    text-decoration: none;
}

.gp-featured-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f2;
}

.gp-featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-featured-card > strong,
.gp-featured-card__price,
.gp-featured-card__cta {
    display: block;
    padding-inline: 13px;
}

.gp-featured-card > strong {
    padding-top: 12px;
    font-size: 14px;
    line-height: 1.35;
}

.gp-featured-card__price {
    padding-top: 6px;
    font-weight: 800;
}

.gp-featured-card__cta {
    padding-top: 8px;
    padding-bottom: 13px;
    color: var(--gp-accent);
    font-size: 12px;
    font-weight: 700;
}

.gp-home-legacy-content:empty {
    display: none;
}

/* Search presentation shell. ID78/ID70/ID67 behavior remains owned by their existing snippets. */
.gp-search-page {
    padding: 30px 0 52px;
    background: #f8f9f7;
}

.gp-search-header {
    margin-bottom: 18px;
}

.gp-search-header h1 {
    font-size: clamp(30px, 3.2vw, 44px);
}

.gp-search-panel {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--gp-line);
    border-radius: var(--gp-radius);
    background: #fff;
    box-shadow: 0 4px 18px rgba(16, 24, 40, .04);
}

.gp-search-panel--active {
    padding-bottom: 12px;
}

.gp-active-filter-empty {
    display: block;
    margin: 0;
    color: var(--gp-muted);
    font-size: 14px;
}

#gp-active-filter-slot.is-populated + .gp-active-filter-empty {
    display: none;
}

.gp-search-panel__head {
    margin-bottom: 13px;
}

.gp-search-panel__head h2 {
    margin: 0 0 4px;
    color: var(--gp-ink);
    font-size: 20px;
    line-height: 1.25;
}

.gp-search-panel__head p {
    margin: 0;
    color: var(--gp-muted);
    font-size: 13px;
}

.gp-search-controls-source > *:first-child {
    margin-top: 0 !important;
}

.gp-search-controls-source .woof_products_top_panel {
    display: none !important;
}

.gp-search-map-zone {
    padding: 0;
    overflow: hidden;
}

.gp-search-map-zone .gp-search-panel__head {
    margin: 0;
    padding: 17px 18px 0;
}

#gp-search-map-slot .gp-map-title-wrapper {
    padding-inline: 18px;
}

#gp-search-map-slot .gp-map-container {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 0 var(--gp-radius) var(--gp-radius);
    overflow: hidden;
}

#gp-search-map-slot #gp-context-map {
    width: 100% !important;
    min-height: 500px;
}

.gp-search-market-results {
    padding-top: 22px;
}

.gp-search-market-results .gp-section-head {
    margin-bottom: 14px;
}

.gp-search-market-results .gp-ctx-card {
    min-width: 0;
}

.gp-search-page .woocommerce-products-header,
.gp-search-page .woocommerce-result-count,
.gp-search-page .woocommerce-ordering,
.gp-search-page ul.products {
    display: none !important;
}

@media (max-width: 1199px) {
    .gp-search-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gp-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .gp-home-market-grid,
    .gp-search-page .gp-ctx-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gp-shell,
    .gp-search-shell {
        width: min(100% - 24px, 1500px);
    }

    .gp-home-search {
        padding-top: 22px;
    }

    .gp-home-search__intro h1,
    .gp-search-header h1 {
        font-size: 31px;
    }

    .gp-home-search__intro p,
    .gp-search-header p {
        font-size: 15px;
    }

    .gp-search-entry-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gp-search-entry {
        padding: 16px;
    }

    .gp-search-entry > span:not(.gp-search-entry__icon) {
        min-height: 0;
    }

    .gp-home-keyword-form {
        grid-template-columns: 1fr;
    }

    .gp-home-keyword-form button {
        width: 100%;
    }

    .gp-home-section {
        padding: 26px 0;
    }

    .gp-section-head {
        align-items: center;
    }

    .gp-text-link {
        max-width: 45%;
        text-align: right;
        font-size: 12px;
    }

    .gp-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .gp-home-market-grid,
    .gp-search-page .gp-ctx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px !important;
    }

    .gp-home-market-card .gp-ctx-name {
        font-size: 14px;
    }

    .gp-home-market-card__body {
        padding: 10px;
    }

    .gp-new-markets__track .gp-home-market-card--compact {
        width: 78vw;
        max-width: 300px;
    }

    .gp-featured-items__track .gp-featured-card {
        width: 66vw;
        max-width: 235px;
    }

    .gp-search-page {
        padding-top: 20px;
    }

    .gp-search-panel {
        margin-bottom: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .gp-search-map-zone {
        padding: 0;
    }

    .gp-search-map-zone .gp-search-panel__head,
    #gp-search-map-slot .gp-map-title-wrapper {
        padding-inline: 14px;
    }

    #gp-search-map-slot #gp-context-map {
        min-height: 360px;
    }

    .gp-search-controls-source input,
    .gp-search-controls-source select,
    .gp-search-controls-source button,
    .gp-search-controls-source .button {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .gp-home-market-grid,
    .gp-search-page .gp-ctx-grid {
        grid-template-columns: 1fr;
    }
}

/* Safety: ID70 keeps its original DOM parent to preserve map initialization. */
.gp-search-map-zone.gp-map-stays-in-controls { display:none; }
.gp-search-controls-source .gp-map-container { min-height:380px; }

/* GP 1.2.1 hotfix: homepage cards must stay compact, unaffected by parent theme. */
body.home .gp-homepage .gp-home-market-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
}
body.home .gp-homepage .gp-home-market-grid > .gp-home-market-card {
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}
body.home .gp-homepage .gp-home-market-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center;
}
@media (max-width: 1199px) {
    body.home .gp-homepage .gp-home-market-grid {grid-template-columns: repeat(4, minmax(0, 1fr)) !important;}
}
@media (max-width: 767px) {
    body.home .gp-homepage .gp-home-market-grid {grid-template-columns: repeat(2, minmax(0, 1fr)) !important;}
}
@media (max-width: 360px) {
    body.home .gp-homepage .gp-home-market-grid {grid-template-columns: 1fr !important;}
}

/* GarázsPiac – közös vízszintes kategória-kereső (Kezdő + Kereső). */
.gp-category-divider {
    position: relative;
    width: 100%;
    background: #fff;
    border-top: 4px solid #7A1F24;
    border-bottom: 1px solid #ddd;
    padding: 16px 0 18px;
    z-index: 20;
}
.gp-category-divider__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 14px;
}
.gp-category-divider__head h2 {
    margin: 2px 0 0;
    color: #2d2d2d;
    font-size: 22px;
}
.gp-category-divider__kicker {
    color: #7A1F24;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}
.gp-category-divider__nav {
    display: flex;
    gap: 6px;
}
.gp-category-divider__nav button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.gp-category-divider__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    padding: 2px 2px 12px;
}
.gp-category-divider__item {
    position: relative;
    flex: 0 0 190px;
    scroll-snap-align: start;
}
.gp-category-divider__item summary {
    list-style: none;
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}
.gp-category-divider__item summary::-webkit-details-marker {
    display: none;
}
.gp-category-divider__image {
    width: 52px;
    height: 52px;
    border-radius: 7px;
    background: #f2f2f2 center/cover no-repeat;
}
.gp-category-divider__name {
    color: #333;
    font-size: 13px;
    line-height: 1.2;
}
.gp-category-divider__chevron {
    color: #7A1F24;
    font-size: 18px;
}
.gp-category-divider__dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 260px;
    max-height: 320px;
    overflow: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    z-index: 1000;
}
.gp-category-divider__dropdown a {
    display: block;
    padding: 8px 9px;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}
.gp-category-divider__dropdown a:hover {
    background: #f5eded;
    color: #7A1F24;
}
.gp-category-divider__all {
    color: #7A1F24 !important;
    font-weight: 900;
}
@media (max-width: 600px) {
    .gp-category-divider__head {
        align-items: center;
    }
    .gp-category-divider__item {
        flex-basis: 160px;
    }
}
