/* 
 * Main CSS for Checkout Theme
 */

/* ==========================================================================
   Variables & Resets (already partly in style.css, but we will consolidate)
   ========================================================================== */
:root {
    --gg-brand-color: #000000;
    --gg-brand-color-rgb: 0, 0, 0;
    --gg-text-color: #1f2937;
    --gg-text-muted: #6b7280;
    --gg-bg-color: #f9fafb;
    --gg-card-bg: #ffffff;
    --gg-border-color: #e5e7eb;
    
    --gg-border-radius: 16px;
    --gg-border-radius-sm: 8px;
    --gg-transition-speed: 0.3s;
    --gg-transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --gg-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --gg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gg-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gg-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gg-brand-color-primary: #0170B9;
    --gg-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gg-font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}


body.gg-shop .gg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */








/* ==========================================================================
   Hero Section
   ========================================================================== */
body.gg-shop .gg-hero-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--gg-brand-color-primary) 0%, #004d80 100%);
    margin-bottom: 64px;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 20px 40px -10px rgba(1, 112, 185, 0.4);
    position: relative;
    overflow: hidden;
}

body.gg-shop .gg-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 40%);
    animation: gg-rotateHero 20s linear infinite;
    z-index: 1;
}

@keyframes gg-rotateHero {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.gg-shop .gg-hero-section .gg-container {
    position: relative;
    z-index: 2;
}

body.gg-shop .gg-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Shop Grid
   ========================================================================== */
body.gg-shop ul.products {
    display: grid;
    /* A `min()` azért kell, mert a csupasz 280px-es minimum a 320 pixel
       széles telefonokon (a konténer belmérete ott 272px) kilógna. */
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 32px;
    padding: 0;
    margin: 0;
    list-style: none;
}

body.gg-shop .gg-product-card {
    background: var(--gg-card-bg);
    border-radius: var(--gg-border-radius);
    overflow: hidden;
    box-shadow: var(--gg-shadow-sm);
    transition: all var(--gg-transition-speed) ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
}

body.gg-shop .gg-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gg-shadow-hover);
    border-color: var(--gg-border-color);
}

body.gg-shop .gg-product-card .gg-product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

body.gg-shop .gg-product-card .gg-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

body.gg-shop .gg-product-card:hover .gg-product-image-wrapper img {
    transform: scale(1.05);
}

body.gg-shop .gg-product-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.gg-shop .gg-product-card .gg-product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--gg-text-color);
}

body.gg-shop .gg-product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gg-brand-color);
    margin-bottom: 24px;
}

body.gg-shop .gg-product-card .button.gg-details-btn {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--gg-brand-color);
    border: 2px solid var(--gg-brand-color);
    border-radius: var(--gg-border-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: all var(--gg-transition-speed) ease;
    cursor: pointer;
}

body.gg-shop .gg-product-card .button.gg-details-btn:hover {
    background-color: var(--gg-brand-color);
    color: #fff;
}

/* ==========================================================================
   Single Product Layout
   ========================================================================== */
body.gg-shop .gg-single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 48px;
    align-items: start;
}

@media (max-width: 991px) {
    body.gg-shop .gg-single-product-layout {
        grid-template-columns: 1fr;
        /* Swap order on mobile: image first, details second */
    }
    body.gg-shop .gg-single-product-details {
        order: 2;
    }
    body.gg-shop .gg-single-product-gallery {
        order: 1;
    }
}

body.gg-shop .gg-single-product-details h1.product_title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

body.gg-shop .gg-single-product-details .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gg-brand-color);
    margin-bottom: 24px;
    display: block;
}

body.gg-shop .gg-single-product-details .woocommerce-product-details__short-description {
    font-size: 1.125rem;
    color: var(--gg-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

body.gg-shop .stock {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}
body.gg-shop .stock.in-stock {
    background-color: #dcfce7;
    color: #166534;
}
body.gg-shop .stock.out-of-stock {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Add to Cart Form Layout */
body.gg-shop form.cart {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 48px;
    align-items: stretch;
}

/* Modern Quantity Selector (No Border) */
body.gg-shop div.quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    width: auto;
    background-color: transparent;
}

body.gg-shop .gg-quantity-btn {
    background: transparent;
    border: none;
    color: var(--gg-text-color);
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    width: 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--gg-transition-speed) ease;
}

body.gg-shop .gg-quantity-btn:hover {
    color: var(--gg-brand-color-primary);
}

body.gg-shop div.quantity input[type="number"].qty {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gg-text-color);
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
}

div.quantity input[type="number"].qty::-webkit-outer-spin-button,
body.gg-shop div.quantity input[type="number"].qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.gg-shop div.quantity input[type="number"].qty:focus {
    outline: none;
}

/* Add to Cart Button with Loading State */
body.gg-shop .single_add_to_cart_button {
    background-color: var(--gg-brand-color);
    color: #fff;
    border: none;
    padding: 0 32px;
    height: 54px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--gg-border-radius-sm);
    cursor: pointer;
    transition: all var(--gg-transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

body.gg-shop .single_add_to_cart_button::after {
    content: "\2192"; /* → nyíl, kódolásfüggetlenül */
    margin-left: 8px;
    font-size: 1.25rem;
    transition: transform var(--gg-transition-speed) ease;
}

body.gg-shop .single_add_to_cart_button:hover {
    background-color: var(--gg-brand-color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(1, 112, 185, 0.2);
}

body.gg-shop .single_add_to_cart_button:hover::after {
    transform: translateX(4px);
}

body.gg-shop .single_add_to_cart_button:active {
    transform: translateY(0);
}

body.gg-shop .single_add_to_cart_button.loading {
    color: transparent;
}

body.gg-shop .single_add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gg-spin 1s infinite linear;
    margin-left: 0;
}

@keyframes gg-spin {
    to { transform: rotate(360deg); }
}



/* ==========================================================================
   Product Gallery (Swiper)
   ========================================================================== */
body.gg-shop .gg-single-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.gg-shop .gg-main-swiper {
    position: relative;
    border-radius: var(--gg-border-radius);
    overflow: hidden;
    background-color: #f3f4f6;
    width: 100%;
}

body.gg-shop .gg-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* Thumbnails */
body.gg-shop .gg-thumbs-swiper {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

body.gg-shop .gg-thumbs-swiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.6;
    cursor: pointer;
    border-radius: var(--gg-border-radius-sm);
    overflow: hidden;
    transition: opacity var(--gg-transition-speed) ease;
}

.gg-thumbs-swiper .swiper-slide-thumb-active,
body.gg-shop .gg-thumbs-swiper .swiper-slide:hover {
    opacity: 1;
}

body.gg-shop .gg-thumbs-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* ==========================================================================
   Storytelling Content Section
   ========================================================================== */
body.gg-shop .gg-product-storytelling-section {
    padding: 100px 0;
    margin-top: 80px;
    background-color: #fcfcfc;
    border-top: 1px solid var(--gg-border-color);
    position: relative;
}

body.gg-shop .gg-product-storytelling-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, transparent 100%);
    pointer-events: none;
}

body.gg-shop .gg-story-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

body.gg-shop .gg-story-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gg-brand-color);
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.02em;
}

body.gg-shop .gg-story-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gg-text-color);
}

body.gg-shop .gg-story-content p {
    margin-bottom: 24px;
}

body.gg-shop .gg-story-content h2, body.gg-shop .gg-story-content h3 {
    font-weight: 700;
    color: var(--gg-brand-color);
    margin-top: 48px;
    margin-bottom: 24px;
}

body.gg-shop .gg-story-content img {
    border-radius: var(--gg-border-radius);
    margin: 32px 0;
    box-shadow: var(--gg-shadow-md);
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Related Products Section
   ========================================================================== */
body.gg-shop .gg-related-products-section {
    padding: 80px 0;
}

body.gg-shop .gg-related-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--gg-text-color);
    margin-bottom: 48px;
    letter-spacing: -0.03em;
}


/* ==========================================================================
   Floating Cart & Minicart
   ========================================================================== */
body.gg-shop .gg-floating-cart-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background-color: var(--gg-brand-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gg-shadow-lg);
    cursor: pointer;
    z-index: 999;
    transition: all var(--gg-transition-bounce);
}

body.gg-shop .gg-floating-cart-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

body.gg-shop .gg-floating-cart-btn svg {
    width: 28px;
    height: 28px;
}

body.gg-shop .gg-floating-cart-btn .gg-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444; /* red for visibility */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gg-bg-color);
}

/* Minicart Animation */
@keyframes gg-popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
body.gg-shop .gg-floating-cart-btn.cart-updated {
    animation: gg-popIn 0.4s var(--gg-transition-bounce);
}

body.gg-shop .gg-minicart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--gg-transition-speed) ease;
}

body.gg-shop .gg-minicart-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.gg-shop .gg-minicart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--gg-card-bg);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s var(--gg-transition-bounce);
}

body.gg-shop .gg-minicart-sidebar.active {
    right: 0;
}

body.gg-shop .gg-minicart-header {
    padding: 24px;
    border-bottom: 1px solid var(--gg-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.gg-shop .gg-minicart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

body.gg-shop .gg-minicart-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gg-text-muted);
    transition: color var(--gg-transition-speed) ease;
    padding: 4px;
}

body.gg-shop .gg-minicart-close:hover {
    color: var(--gg-brand-color);
    transform: rotate(90deg);
}

body.gg-shop .gg-minicart-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* WooCommerce Mini Cart Overrides */
body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
    overflow-y: auto;
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart-item {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    border-bottom: 1px solid var(--gg-border-color);
    position: relative;
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 32px;
    right: 8px;
    z-index: 10;
    background: #fff;
    color: #ef4444 !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    line-height: 1;
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart-item .remove:hover {
    background: #ef4444;
    color: #fff !important;
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart-item > a:not(.remove) {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    text-align: left;
    gap: 16px;
    font-weight: 700;
    color: var(--gg-text-color);
    font-size: 1.125rem;
    padding-right: 32px; /* Prevent overlap with remove button */
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart-item img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    object-fit: cover;
    border-radius: var(--gg-border-radius-sm);
    margin: 0;
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart-item .quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    margin-top: 8px;
    margin-left: 116px; /* Align under the name (100px img + 16px gap) */
    font-size: 1rem;
    color: var(--gg-text-muted);
    font-weight: 600;
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart-item .quantity .amount {
    color: var(--gg-text-color);
    font-size: 1.125rem;
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart__total {
    padding: 24px 0;
    margin: 0;
    border-top: 2px solid var(--gg-border-color);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hide standard view cart button */
body.gg-shop .widget_shopping_cart_content .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {
    display: none !important;
}

body.gg-shop .widget_shopping_cart_content .button {
    text-align: center;
    padding: 16px;
    border-radius: var(--gg-border-radius-sm);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--gg-transition-speed) ease;
}

body.gg-shop .widget_shopping_cart_content .button.checkout {
    background: var(--gg-brand-color-primary);
    color: #fff;
    border: none;
}

body.gg-shop .widget_shopping_cart_content .button.checkout:hover {
    background-color: #004d80;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(1, 112, 185, 0.2);
}


/* ==========================================================================
   Footer
   ========================================================================== */









/* ==========================================================================
   Add to Cart Success Modal
   ========================================================================== */
body.gg-shop .gg-cart-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--gg-transition-bounce);
}

body.gg-shop .gg-cart-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.gg-shop .gg-cart-success-modal {
    background: var(--gg-card-bg);
    padding: 48px;
    border-radius: var(--gg-border-radius);
    text-align: center;
    box-shadow: var(--gg-shadow-lg);
    max-width: 400px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s var(--gg-transition-bounce);
}

body.gg-shop .gg-cart-success-overlay.active .gg-cart-success-modal {
    transform: scale(1) translateY(0);
}

body.gg-shop .gg-success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
}

body.gg-shop .gg-checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #10b981; /* Green success color */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: none;
}

body.gg-shop .gg-cart-success-overlay.active .gg-checkmark {
    animation: gg-fill .4s ease-in-out .4s forwards, gg-scale .3s ease-in-out .9s both;
}

body.gg-shop .gg-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: none;
}

body.gg-shop .gg-cart-success-overlay.active .gg-checkmark-circle {
    animation: gg-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

body.gg-shop .gg-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: none;
}

body.gg-shop .gg-cart-success-overlay.active .gg-checkmark-check {
    animation: gg-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes gg-stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes gg-scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes gg-fill {
    100% { box-shadow: inset 0px 0px 0px 30px rgba(16, 185, 129, 0.1); }
}

body.gg-shop .gg-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gg-text-color);
    margin-bottom: 8px;
}

body.gg-shop .gg-success-message {
    color: var(--gg-text-muted);
    margin-bottom: 32px;
}

body.gg-shop .gg-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.gg-shop .gg-success-actions button {
    width: 100%;
    padding: 16px;
    border-radius: var(--gg-border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--gg-transition-speed) ease;
}

body.gg-shop .gg-btn-open-cart {
    background-color: var(--gg-brand-color-primary);
    color: #fff;
    border: none;
}

body.gg-shop .gg-btn-open-cart:hover {
    background-color: #004d80;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(1, 112, 185, 0.2);
}

body.gg-shop .gg-btn-continue-shopping {
    background-color: transparent;
    color: var(--gg-text-muted);
    border: 2px solid var(--gg-border-color);
}

body.gg-shop .gg-btn-continue-shopping:hover {
    border-color: var(--gg-text-color);
    color: var(--gg-text-color);
}

/* ==========================================================================
   WooCommerce Global Notices (Floating)
   ========================================================================== */
body.gg-shop .woocommerce-NoticeGroup, body.gg-shop .woocommerce-notices-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.gg-shop .woocommerce-error, body.gg-shop .woocommerce-message, body.gg-shop .woocommerce-info {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 16px 40px 16px 24px;
    margin: 0 0 24px;
    list-style: none !important;
    display: block;
    pointer-events: auto;
    animation: gg-slideDownFade 0.4s ease-out forwards;
    position: relative;
    width: 100%;
}

/* A wrapperen belül a távolságot a flex `gap` adja, ott nem kell margó.
   A margó azoknak szól, amik a lap folyamában maradnak — mint a kosár oldal
   „Jelenleg üres a bevásárlókosár." üzenete. */
body.gg-shop .woocommerce-notices-wrapper > .woocommerce-error,
body.gg-shop .woocommerce-notices-wrapper > .woocommerce-message,
body.gg-shop .woocommerce-notices-wrapper > .woocommerce-info,
body.gg-shop .woocommerce-NoticeGroup > .woocommerce-error,
body.gg-shop .woocommerce-NoticeGroup > .woocommerce-message,
body.gg-shop .woocommerce-NoticeGroup > .woocommerce-info {
    margin-bottom: 0;
}

/* Az Astra/WooCommerce ikon-pszeudoelemet tesz az értesítések elé, de a
   hozzá tartozó ikonfájl a bolt oldalain nem töltődik be — a helyén egy
   kis „tofu" négyzet ül rá a szöveg első betűjére. A színes bal oldali
   csík amúgy is jelöli a típust. */
body.gg-shop .woocommerce-error::before,
body.gg-shop .woocommerce-message::before,
body.gg-shop .woocommerce-info::before {
    content: none;
}

body.gg-shop .gg-notice-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    transition: opacity 0.2s ease;
}

body.gg-shop .gg-notice-close-btn:hover {
    opacity: 1;
}

body.gg-shop .woocommerce-error li, body.gg-shop .woocommerce-message li, body.gg-shop .woocommerce-info li {
    margin: 4px 0;
    padding: 0;
    display: block;
    width: 100%;
    font-size: 0.95rem;
}

body.gg-shop .woocommerce-error {
    border-left: 6px solid #e74c3c;
    color: #c0392b;
}

body.gg-shop .woocommerce-message {
    border-left: 6px solid #2ecc71;
    color: #27ae60;
}

body.gg-shop .woocommerce-info {
    border-left: 6px solid #3498db;
    color: #2980b9;
}

/* A vízszintes középre zárás a wrapper dolga (`left: 50%` + `translateX(-50%)`),
   ez az animáció csak fentről úsztat be. Korábban itt is szerepelt egy
   `translateX(-50%)`, és mivel a kitöltés `forwards`, az értesítés tartósan
   elcsúszott a saját szélességének felével balra — a toastok a wrapperen belül
   is, a folyamban maradó értesítések (pl. a kosár oldal
   `<p class="cart-empty woocommerce-info">` eleme) pedig egészen a képernyőn
   kívülre. */
@keyframes gg-slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mini cart meta mezők (extrák) formázása */
body.gg-shop .woocommerce-mini-cart-item .variation {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 12px;
    align-items: center;
    font-size: 13px;
    margin-top: 12px;
    padding: 10px;
    background-color: #f8fafc; /* Világos szürke háttér az elkülönítésért */
    border-radius: 6px;
}

body.gg-shop .woocommerce-mini-cart-item .variation dt {
    font-weight: 600;
    color: #334155;
    margin: 0;
}

body.gg-shop .woocommerce-mini-cart-item .variation dd {
    margin: 0;
    color: #475569;
}

body.gg-shop .woocommerce-mini-cart-item .variation dd p {
    margin: 0 !important; /* Eltávolítja a <p> alapértelmezett alsó/felső margóját */
}

/* Felülírjuk az inline stílusokat a feltöltött képek előnézeténél, hogy illeszkedjen az új gridhez */
body.gg-shop .woocommerce-mini-cart-item .variation dd .gg-cart-thumbnails {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* ==========================================================================
   Astra kompatibilitás — a bolt és a termékoldal kilép a sablonból
   --------------------------------------------------------------------------
   A webshop saját elrendezést kap: a hero a képernyő teljes szélességében ül,
   a tartalom pedig a .gg-container 1280 pixeles rácsában. Ehhez az Astra
   tartalmi konténerét (.ast-container / .ast-woocommerce-container) fel kell
   oldani, és el kell hagyni a kenyérmorzsa sávot.
   ========================================================================== */
body.gg-shop.post-type-archive-product #content > .ast-container,
body.gg-shop.tax-product_cat #content > .ast-container,
body.gg-shop.single-product #content > .ast-container {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.gg-shop.post-type-archive-product .ast-woocommerce-container,
body.gg-shop.tax-product_cat .ast-woocommerce-container,
body.gg-shop.single-product .ast-woocommerce-container {
    padding-left: 0;
    padding-right: 0;
}

/* Kenyérmorzsa és Astra oldalcím: a bolt saját hero-ja veszi át a szerepüket. */
body.gg-shop.post-type-archive-product nav.woocommerce-breadcrumb,
body.gg-shop.tax-product_cat nav.woocommerce-breadcrumb,
body.gg-shop.single-product nav.woocommerce-breadcrumb,
body.gg-shop.post-type-archive-product .ast-archive-description,
body.gg-shop.post-type-archive-product .woocommerce-products-header {
    display: none;
}

/* A tartalom rácsa. A hero ezen kívül van, ezért fut ki a szélekig. */
body.gg-shop .gg-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* A hero a teljes szélességet kapja, a benne lévő cím viszont a rácshoz igazodik. */
body.gg-shop .gg-hero-section {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 0 40px 40px;
}

body.gg-shop .gg-hero-section > .gg-container {
    max-width: 1280px;
    padding: 0 24px;
}

/* A termékoldalon nincs hero, ott a tartalom felül kap levegőt. */
body.gg-shop.single-product .ast-woocommerce-container > .gg-container {
    padding-top: 48px;
}

/* A webshop tipográfiája (a dev design Lexend fonttal készült).
   Csak a shop tartalmi részére hat — a fejléc, a menü és a lábléc
   megtartja az oldal saját betűtípusát. */
body.gg-shop #primary,
body.gg-shop .gg-minicart-sidebar,
body.gg-shop .gg-cart-success-overlay,
body.gg-shop .gg-floating-cart-btn {
    font-family: var(--gg-font-family);
}

/* Az Astra alapértelmezett termékrács-kiegészítői ne ütközzenek a kártyáinkkal. */
body.gg-shop ul.products li.product .astra-shop-summary-wrap,
body.gg-shop ul.products li.product .ast-shop-product-out-of-stock {
    display: none;
}

/* ==========================================================================
   Astra kompatibilitás — termékoldal kéthasábos elrendezése
   --------------------------------------------------------------------------
   A jobb oszlop megkapta a WooCommerce .summary osztályát, hogy a képfeltöltő
   dinamikus árfrissítése ($('.summary .price')) megtalálja. Ezzel viszont
   ráragadtak az Astra float-alapú szélességszabályai:

     .woocommerce-page #content .ast-woocommerce-container div.product div.summary
         { width: 46% }                       @media (min-width: 922px)
     .woocommerce div.product div.summary { float: right; width: 48% }

   Az elsőben ott az #content ID, ezért osztályokkal nem lehet legyőzni — a
   layout viszont grid, ahol a float és a 46% csak összenyomja az oszlopot.
   Ezért itt !important a helyes eszköz.
   ========================================================================== */
body.gg-shop .gg-single-product-layout > .gg-single-product-details,
body.gg-shop .gg-single-product-layout > .gg-single-product-gallery {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: none !important;
    margin: 0 !important;
}

/* Az Astra a float-os elrendezéshez clearfixet tesz a termékdobozra; grid
   mellett ez fölösleges üres sort hagy. */
body.gg-shop div.product .gg-single-product-layout::after,
body.gg-shop div.product .gg-single-product-layout::before {
    content: none;
}

/* ==========================================================================
   Astra kompatibilitás — termékrács
   --------------------------------------------------------------------------
   Az Astra a WooCommerce terméklistát float-os elrendezésre stílusozza
   (.woocommerce ul.products li.product ...), és a gombokra fix margót tesz.
   A kártyáink flex-oszlopok, ahol a „Részletek" gomb margin-top:auto-val
   tapad az aljára — ezt az Astra 7px-es felső margója rontja el.
   ========================================================================== */
body.gg-shop ul.products li.product.gg-product-card {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
}

body.gg-shop ul.products li.product .button.gg-details-btn {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    width: 100%;
}

body.gg-shop ul.products li.product .gg-product-title,
body.gg-shop ul.products li.product .price {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* A kártyán belüli képhivatkozás ne kapja meg az Astra alapértelmezett
   blokkos margóit. */
body.gg-shop ul.products li.product .gg-product-image-wrapper {
    display: block;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Astra kompatibilitás — mini-kosár
   --------------------------------------------------------------------------
   Az Astra a saját fejléc-kosarához a .widget_shopping_cart_content alatti
   képet abszolút pozicionálja. A mi oldalsávos mini-kosarunk flex-sorokból
   épül, ott ez kiveszi a képet a flow-ból, és a terméknévre csúszik.
   ========================================================================== */
body.gg-shop .gg-minicart-sidebar .widget_shopping_cart_content img,
body.gg-shop .gg-minicart-body .widget_shopping_cart_content img {
    position: static !important;
    float: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

/* ==========================================================================
   Átlátszó fejléc a bolt oldalon
   --------------------------------------------------------------------------
   A hero a képernyő tetejéig fut, a fejléc pedig ráúszik — így a kék felület
   a lap legtetejéről indul. Ehhez a fejléc kikerül a dokumentumfolyamból, a
   menü fehérre vált, a hero pedig annyi felső belső margót kap, hogy a cím
   ne csússzon a menüsor alá.

   A fejléc magasságát a --gg-header-h tartja: ha az Astra fejlécmagassága
   változna a Testreszabóban, elég ezt az egy értéket átírni.
   ========================================================================== */
body.gg-shop.post-type-archive-product,
body.gg-shop.tax-product_cat {
    --gg-header-h: 70px;
}

body.gg-shop.post-type-archive-product #masthead.site-header,
body.gg-shop.tax-product_cat #masthead.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
}

body.gg-shop.post-type-archive-product #ast-desktop-header,
body.gg-shop.post-type-archive-product .ast-main-header-wrap,
body.gg-shop.post-type-archive-product .ast-primary-header-bar,
body.gg-shop.post-type-archive-product .main-header-bar,
body.gg-shop.post-type-archive-product .ast-mobile-header-wrap,
body.gg-shop.tax-product_cat #ast-desktop-header,
body.gg-shop.tax-product_cat .ast-main-header-wrap,
body.gg-shop.tax-product_cat .ast-primary-header-bar,
body.gg-shop.tax-product_cat .main-header-bar,
body.gg-shop.tax-product_cat .ast-mobile-header-wrap {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* A tartalom a lap tetejéről indul: az Astra felső térköze itt nem kell. */
body.gg-shop.post-type-archive-product #primary,
body.gg-shop.tax-product_cat #primary {
    margin-top: 0 !important;
}

/* A hero a fejléc alá is beér, a cím alatta ül. */
body.gg-shop.post-type-archive-product .gg-hero-section,
body.gg-shop.tax-product_cat .gg-hero-section {
    padding-top: calc(var(--gg-header-h) + 72px);
    padding-bottom: 100px;
}

/* Fehér menü a kék felületen.
   Az Astra a menüszínt a Testreszabóból, #masthead-del erősített szabályokkal
   adja, ezért itt !important kell. */
body.gg-shop.post-type-archive-product .main-header-menu .menu-link,
body.gg-shop.post-type-archive-product .main-header-menu > .menu-item > a,
body.gg-shop.post-type-archive-product .ast-builder-menu a,
body.gg-shop.post-type-archive-product .main-navigation a,
body.gg-shop.post-type-archive-product .ast-header-html a,
body.gg-shop.post-type-archive-product .site-title a,
body.gg-shop.tax-product_cat .main-header-menu .menu-link,
body.gg-shop.tax-product_cat .main-header-menu > .menu-item > a,
body.gg-shop.tax-product_cat .ast-builder-menu a,
body.gg-shop.tax-product_cat .main-navigation a,
body.gg-shop.tax-product_cat .ast-header-html a,
body.gg-shop.tax-product_cat .site-title a {
    color: #ffffff !important;
}

body.gg-shop.post-type-archive-product .main-header-menu .menu-link:hover,
body.gg-shop.post-type-archive-product .main-header-menu > .menu-item > a:hover,
body.gg-shop.tax-product_cat .main-header-menu .menu-link:hover,
body.gg-shop.tax-product_cat .main-header-menu > .menu-item > a:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* A fejléc telefongombja.

   Az Astra szerkezete: <a class="ast-custom-button-link"> egy INLINE elem,
   és a benne lévő <div class="ast-custom-button"> a tényleges gomb (annak van
   háttere, kerete, 30px lekerekítése és 15/25px belső margója).

   Ezért a doboz-stílusokat a belső div kapja: egy inline elemre tett háttér
   és border-radius a sorok köré rajzolódna, alul-felül fura ívekkel. A link
   csak a szövegszínt viszi, minden más nullázva rajta. */
body.gg-shop.post-type-archive-product .ast-custom-button-link,
body.gg-shop.tax-product_cat .ast-custom-button-link {
    color: #ffffff !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.gg-shop.post-type-archive-product .ast-builder-button-wrap .ast-custom-button,
body.gg-shop.tax-product_cat .ast-builder-button-wrap .ast-custom-button {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.gg-shop.post-type-archive-product .ast-builder-button-wrap:hover .ast-custom-button,
body.gg-shop.tax-product_cat .ast-builder-button-wrap:hover .ast-custom-button {
    background: rgba(255, 255, 255, 0.26) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* A legördülő almenük megtartják a saját, világos hátterüket, ezért ott a
   linkek maradnak sötétek. */
body.gg-shop.post-type-archive-product .main-header-menu .sub-menu .menu-link,
body.gg-shop.tax-product_cat .main-header-menu .sub-menu .menu-link {
    color: var(--gg-text-color) !important;
}

@media (max-width: 921px) {
    body.gg-shop.post-type-archive-product .gg-hero-section,
    body.gg-shop.tax-product_cat .gg-hero-section {
        padding-top: calc(var(--gg-header-h) + 40px);
        padding-bottom: 56px;
        border-radius: 0 0 28px 28px;
    }

    body.gg-shop.post-type-archive-product .gg-hero-title,
    body.gg-shop.tax-product_cat .gg-hero-title {
        font-size: 2.25rem;
    }

    /* A hamburger ikon eleve fehér, így a kék felületen is látszik.
       A lenyíló menü viszont a hero fölé kerülne — kap saját, tömör hátteret,
       különben a kék háttéren olvashatatlan lenne. */
    body.gg-shop.post-type-archive-product .ast-mobile-header-wrap .main-header-bar-navigation,
    body.gg-shop.tax-product_cat .ast-mobile-header-wrap .main-header-bar-navigation {
        background: #01598f;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    }

    body.gg-shop.post-type-archive-product .ast-mobile-header-wrap .main-header-bar-navigation a,
    body.gg-shop.post-type-archive-product .ast-mobile-header-wrap .main-header-bar-navigation .menu-link,
    body.gg-shop.tax-product_cat .ast-mobile-header-wrap .main-header-bar-navigation a,
    body.gg-shop.tax-product_cat .ast-mobile-header-wrap .main-header-bar-navigation .menu-link {
        color: #ffffff !important;
    }

    body.gg-shop.post-type-archive-product .ast-mobile-header-wrap .main-header-bar-navigation .menu-item,
    body.gg-shop.tax-product_cat .ast-mobile-header-wrap .main-header-bar-navigation .menu-item {
        border-color: rgba(255, 255, 255, 0.16) !important;
    }
}


/* ==========================================================================
   Fejléc a bolt többi oldalán (kosár, termék, fiók)
   --------------------------------------------------------------------------
   Az egész oldal átlátszó Astra-fejlécet használ, és ez globális beállítás,
   nem oldalankénti meta — tehát oda is jut belőle, ahol nincs alatta sötét
   hőskép. A telefongomb szövege `#f5f5f5` áttetsző sötét pasztillán, a
   hamburger és a keresőikon fehér: világos háttéren mindez láthatatlan.

   A bolt és a kategóriaoldal kivétel: ott a kék hero adja a hátteret, és a
   fenti „Átlátszó fejléc a bolt oldalon" szakasz állítja be a fehér változatot.
   ========================================================================== */
body.gg-shop.woocommerce-cart .ast-builder-button-wrap .ast-custom-button,
body.gg-shop.single-product .ast-builder-button-wrap .ast-custom-button,
body.gg-shop.woocommerce-account .ast-builder-button-wrap .ast-custom-button {
    color: #ffffff !important;
    background: var(--gg-brand-color-primary) !important;
    border-color: var(--gg-brand-color-primary) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.gg-shop.woocommerce-cart .ast-builder-button-wrap:hover .ast-custom-button,
body.gg-shop.single-product .ast-builder-button-wrap:hover .ast-custom-button,
body.gg-shop.woocommerce-account .ast-builder-button-wrap:hover .ast-custom-button {
    background: #015b96 !important;
    border-color: #015b96 !important;
}

/* A doboz-stílusok a belső <div class="ast-custom-button">-é. A körülötte lévő
   <a> inline elem: rátett háttér és lekerekítés a sorok köré rajzolódna,
   alul-felül félkörökkel. */
body.gg-shop.woocommerce-cart .ast-custom-button-link,
body.gg-shop.single-product .ast-custom-button-link,
body.gg-shop.woocommerce-account .ast-custom-button-link {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* A hamburger ikonja SVG, és az Astra a Testreszabóból globálisan fehérre
   festi:

     [data-section="section-header-mobile-trigger"] .ast-button-wrap
     .mobile-menu-toggle-icon .ast-mobile-svg { fill: var(--ast-global-color-5) }

   Tartalmi oldalon ez jó, mert ott sötét hőskép van alatta. A bolt világos
   oldalain viszont fehér ikon ül a 10%-os fekete korongon: gyakorlatilag
   láthatatlan. A gomb szövegszínét hiába állítjuk át, az SVG-nek saját
   `fill`-je van. */
body.gg-shop.woocommerce-cart .mobile-menu-toggle-icon .ast-mobile-svg,
body.gg-shop.single-product .mobile-menu-toggle-icon .ast-mobile-svg,
body.gg-shop.woocommerce-account .mobile-menu-toggle-icon .ast-mobile-svg {
    fill: var(--gg-text-color);
}

body.gg-shop.woocommerce-cart .ast-mobile-menu-trigger-fill,
body.gg-shop.woocommerce-cart .ast-mobile-menu-trigger-minimal,
body.gg-shop.single-product .ast-mobile-menu-trigger-fill,
body.gg-shop.single-product .ast-mobile-menu-trigger-minimal,
body.gg-shop.woocommerce-account .ast-mobile-menu-trigger-fill,
body.gg-shop.woocommerce-account .ast-mobile-menu-trigger-minimal {
    color: var(--gg-text-color) !important;
}

/* A kosár oldalon a fejléc ráült az oldalcímre, mert az átlátszó változat
   abszolút pozicionált és nem foglal helyet. Itt visszakerül a normál
   folyamba, saját háttérrel és egy elválasztó vonallal — ugyanúgy, mint a
   pénztáron és a köszönőoldalon. */
body.gg-shop.woocommerce-cart #masthead.site-header {
    position: static;
    background-color: var(--gg-card-bg);
    border-bottom: 1px solid var(--gg-border-color);
}

body.gg-shop.woocommerce-cart #masthead .main-header-menu .menu-link {
    background-color: transparent;
    color: var(--gg-text-color);
}

body.gg-shop.woocommerce-cart #masthead .main-header-menu .menu-item:hover > .menu-link,
body.gg-shop.woocommerce-cart #masthead .main-header-menu .current-menu-item > .menu-link {
    color: var(--gg-brand-color-primary);
}

/* A lebegő toast a termék- és boltoldalon van a helyén, ahol a „kosárba
   tettem" visszajelzés a görgetéstől függetlenül látszódnia kell. A kosár
   oldalon nem: ott az üzenetek nem eltűnő visszajelzések, hanem az oldal
   állapotát írják le („üres a kosár", „eltávolítva"), és fixen a lap tetején a
   fejléc menüjét takarnák. Itt a folyamban maradnak, a cím alatt. */
body.gg-shop.woocommerce-cart .woocommerce-notices-wrapper,
body.gg-shop.woocommerce-cart .woocommerce-NoticeGroup {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    pointer-events: auto;
}

/* Értesítés nélkül a WooCommerce üres wrappert is kitesz — folyamban maradva
   ez egy 24 pixeles szellemhézag lenne a tartalom felütt. */
body.gg-shop.woocommerce-cart .woocommerce-notices-wrapper:empty {
    display: none;
    margin: 0;
}

/* Üres mini-kosár: a WooCommerce sablonja és az Astra blokkja is kiírja, hogy
   a kosár üres. Az Astráé marad (abban van „Vásárlás folytatása" gomb, a
   szövegét a functions.php magyarítja), a WooCommerce sima bekezdése megy. */
body.gg-shop .gg-minicart-body > .widget_shopping_cart_content > p.woocommerce-mini-cart__empty-message {
    display: none;
}

/* ==========================================================================
   Lebegő kosár és az Astra felgörgető gombja
   --------------------------------------------------------------------------
   Mindkettő a jobb alsó sarokban ül fixen: a kosár 32px-re, az Astra
   `#ast-scroll-top` 30px-re az aljától — vagyis pontosan egymáson, és a kosár
   (z-index 999) letakarja a felgörgetőt (z-index 99).

   A felgörgető csak görgetés után jelenik meg, ezért a kosarat sem toljuk fel
   véglegesen: a shop.js teszi a body-ra a `gg-scrolltop-visible` osztályt,
   amíg a felgörgető látszik. Az áttűnést a gomb saját `transition: all`-ja adja.
   ========================================================================== */
body.gg-shop.gg-scrolltop-visible .gg-floating-cart-btn {
    bottom: 88px;
}

/* ==========================================================================
   Termékoldal: kosárba tétel sora mobilon
   --------------------------------------------------------------------------
   A sor `flex-wrap: nowrap`, a gomb `min-width: 200px` — együtt 384 pixel alá
   nem megy, plusz a konténer 2×24px belső margója. Vagyis 432 pixelnél
   keskenyebb kijelzőn kilóg a képernyőből, ami minden telefont jelent.

   Telefonon ezért a darabszám kerül fölülre, alatta a teljes szélességű gomb.
   ========================================================================== */
@media (max-width: 600px) {
    body.gg-shop form.cart {
        flex-wrap: wrap;
        gap: 12px;
    }

    body.gg-shop div.quantity {
        flex: 0 0 auto;
    }

    body.gg-shop .single_add_to_cart_button {
        flex: 1 1 100%;
        min-width: 0;
        padding: 0 20px;
    }
}

/* ==========================================================================
   Oldalsó kosár: a terméklista görgethető, az összeg és a Pénztár gomb fixen
   lent marad. (Korábban a panel levágta a túllógó részt, és hosszabb kosárnál
   a Pénztár gomb kicsúszott a képernyőről.)
   ========================================================================== */
body.gg-shop .gg-minicart-sidebar {
    height: 100vh;
    height: 100dvh; /* mobilon a böngésző címsorával együtt is kiférjen */
}

body.gg-shop .gg-minicart-header {
    flex: 0 0 auto;
}

body.gg-shop .gg-minicart-body {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 16px;
}

body.gg-shop .gg-minicart-body > .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

body.gg-shop .gg-minicart-body .woocommerce-mini-cart {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-bottom: 0;
    padding-right: 4px;
}

body.gg-shop .gg-minicart-body .woocommerce-mini-cart__total,
body.gg-shop .gg-minicart-body .woocommerce-mini-cart__buttons {
    flex: 0 0 auto;
}

body.gg-shop .gg-minicart-body .woocommerce-mini-cart__total {
    padding: 16px 0;
}


/* ==========================================================================
   Termékoldal: a galéria ne feszítse szét az oldalt.
   --------------------------------------------------------------------------
   Az "1fr 1fr" rácsoszlop a tartalmához nő, a Swiper képlapozó pedig a
   rácshoz méri magát: több galériaképnél a kettő a végtelenségig felhúzta
   egymást (33 millió px széles oszlop, üres barna folt, végtelen görgetés).
   A minmax(0, 1fr) megtiltja, hogy az oszlop szélesebb legyen a helynél.
   ========================================================================== */
body.gg-shop .gg-single-product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 991px) {
    body.gg-shop .gg-single-product-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.gg-shop .gg-single-product-layout > *,
body.gg-shop .gg-single-product-gallery,
body.gg-shop .gg-main-swiper,
body.gg-shop .gg-thumbs-swiper {
    min-width: 0;
    max-width: 100%;
}

body.gg-shop .gg-thumbs-swiper {
    overflow: hidden;
}

/* ==========================================================================
   Bolt: a termékkártyák középre rendezve, egyenletes közökkel.
   --------------------------------------------------------------------------
   Az Astra fix 4 oszlopot állít (desktop-columns-4), így 3 terméknél az utolsó
   oszlop üres maradt, és a kártyák balra tolódtak. Az auto-fit eltünteti az
   üres oszlopokat, a justify-content középre teszi a sort (a középső kártya
   pontosan középen). Az Astra szabályát csak !important-tal lehet felülírni.
   ========================================================================== */
body.gg-shop ul.products {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 360px)) !important;
    justify-content: center;
}

/* ==========================================================================
   Termékgaléria: lapozó nyilak a nagy képen és húzható csúszka a
   bélyegképek alatt, hogy a 4-nél több kép is elérhető legyen.
   ========================================================================== */
body.gg-shop .gg-main-swiper .gg-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gg-text-color, #1e293b);
    font-size: 30px;
    line-height: 1;
    padding: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s ease, background 0.2s ease;
}

body.gg-shop .gg-main-swiper .gg-gallery-prev {
    left: 12px;
}

body.gg-shop .gg-main-swiper .gg-gallery-next {
    right: 12px;
}

body.gg-shop .gg-main-swiper .gg-gallery-nav:hover {
    background: #fff;
}

body.gg-shop .gg-main-swiper .gg-gallery-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

body.gg-shop .gg-thumbs-swiper.gg-thumbs-has-scrollbar {
    padding-bottom: 18px;
}

body.gg-shop .gg-thumbs-swiper .gg-thumbs-scrollbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

body.gg-shop .gg-thumbs-swiper .gg-thumbs-scrollbar .swiper-scrollbar-drag {
    background: var(--gg-brand-color-primary, #0066a8);
    border-radius: 3px;
    cursor: grab;
}

/* ==========================================================================
   „Korábban elkészült munkáink" szekció: ugyanolyan széles, mint a termék
   rész (1280 px), a szöveges bekezdések viszont olvasható szélességűek.
   ========================================================================== */
body.gg-shop .gg-story-wrapper {
    max-width: 1280px;
}

body.gg-shop .gg-story-content > p,
body.gg-shop .gg-story-content > h2,
body.gg-shop .gg-story-content > h3,
body.gg-shop .gg-story-content > ul,
body.gg-shop .gg-story-content > ol {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
