/**
 * GymGo Product Strip - Frontend CSS
 *
 * @package GymGo_Product_Strip
 */

/* ==========================================================================
   Product Strip Container
   ========================================================================== */

.ggps-product-strip-wrapper {
    margin: 0;
    overflow: hidden;
    padding-top: 15px;
}

.ggps-strip-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 15px 0;
    padding: 0;
    color: inherit;
}

.ggps-product-strip {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 0;
}

.ggps-swiper {
    overflow: visible;
    width: 100%;
}

.ggps-swiper .swiper-wrapper {
    display: flex;
}

.ggps-swiper .swiper-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    height: auto;
    overflow: visible;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.ggps-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ggps-nav:hover {
    background: #f5f5f5;
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ggps-nav-prev {
    left: 0;
}

.ggps-nav-next {
    right: 0;
}

.ggps-nav svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.ggps-nav.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.ggps-pagination {
    text-align: center;
    margin-top: 15px;
}

.ggps-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.ggps-pagination .swiper-pagination-bullet-active {
    background: #333;
    transform: scale(1.2);
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.ggps-card {
    background: var(--gymgo-white, #fff);
    border-radius: var(--gymgo-radius-md, 12px);
    overflow: visible;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ggps-card:hover {
    box-shadow: var(--gymgo-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    transform: translateY(-2px);
}

/* ==========================================================================
   Strip Badge (Marketing message above product)
   ========================================================================== */

.ggps-strip-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 5px 12px;
    border-radius: var(--gymgo-radius-xs, 4px);
    z-index: 10;
    max-width: 85%;
    box-shadow: var(--gymgo-shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.15));
}

.ggps-strip-badge-text {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: right;
}

/* ==========================================================================
   Card Image
   ========================================================================== */

.ggps-card-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 8px 8px 0 0;
}

.ggps-card-image-link {
    display: block;
}

.ggps-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 0 !important;
}

.ggps-card:hover .ggps-card-image img {
    transform: scale(1.05);
}

/* Sale Badge */
.ggps-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
}

.ggps-badge-sale {
    background: #e53935;
    color: #fff;
}

/* ==========================================================================
   Add to Cart Button
   ========================================================================== */

.ggps-card-button {
    width: 100%;
    border-radius: 0 0 var(--gymgo-radius-md, 12px) var(--gymgo-radius-md, 12px) !important;
    overflow: hidden;
}

.ggps-add-to-cart {
    /* Megjelenés: gymgo-theme.css 3/B "Kártya gomb" szabály */
    background: #fcee0a;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    margin: 0;
    border-radius: 0 0 var(--gymgo-radius-md, 12px) var(--gymgo-radius-md, 12px) !important;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ggps-product-strip .ggps-card-button .ggps-add-to-cart:not(.added) {
    background: #fcee0a !important;
}

.ggps-add-to-cart.loading {
    pointer-events: none;
}

.ggps-add-to-cart.loading .ggps-cart-icon,
.ggps-add-to-cart.loading .ggps-cart-text {
    opacity: 0;
}

.ggps-add-to-cart.loading .ggps-loading-spinner {
    display: block;
}

.ggps-add-to-cart.added {
    background: var(--gymgo-success, #4caf50);
    color: var(--gymgo-white, #fff);
}

.ggps-cart-icon svg {
    width: 16px;
    height: 16px;
}

.ggps-cart-text {
    white-space: nowrap;
    line-height: 1;
}

.ggps-loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: ggps-spin 0.8s linear infinite;
}

@keyframes ggps-spin {
    to {
        transform: rotate(360deg);
    }
}

.ggps-out-of-stock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 32px;
    padding: 0 8px;
    margin: 0;
    background: #f5f5f5;
    border: none;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    line-height: 1.1;
    text-align: center;
}

/* ==========================================================================
   Card Content
   ========================================================================== */

.ggps-card-rating {
    padding: 10px 10px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ggps-stars {
    display: flex;
    gap: 1px;
}

.ggps-star {
    font-size: 12px;
    line-height: 1;
}

.ggps-star-full,
.ggps-star-half {
    color: #ffc107;
}

.ggps-star-empty {
    color: #ddd;
}

.ggps-star-half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ggps-rating-count {
    font-size: 12px;
    color: #888;
}

.ggps-card-title {
    font-family: 'Bebas Neue', sans-serif;
    padding: 6px 10px 0;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.ggps-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ggps-card-title a:hover {
    color: #666;
}

.ggps-card-strip-desc {
    padding: 3px 10px 0;
    margin: 0;
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(11px * 1.3 * 3);
}

.ggps-card-price {
    padding: 6px 10px 10px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.ggps-card-price del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

.ggps-card-price ins {
    text-decoration: none;
    color: #e53935;
}

.ggps-savings {
    font-size: 12px;
    font-weight: 600;
    color: #4caf50;
    margin-top: 2px;
    line-height: 1.3;
}

.ggps-savings-amount {
    text-decoration: underline;
    color: #4caf50;
    font-weight: 700;
}

.ggps-savings-amount .woocommerce-Price-amount,
.ggps-savings-amount .woocommerce-Price-amount bdi,
.ggps-savings-amount .woocommerce-Price-currencySymbol {
    color: #4caf50 !important;
}

.ggps-price-from {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.ggps-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ggps-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.ggps-modal-content {
    position: relative;
    background: var(--gymgo-white, #fff);
    border-radius: var(--gymgo-radius-lg, 16px);
    max-width: 600px;
    width: 90%;
    max-height: 96dvh;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: var(--gymgo-shadow-modal, 0 20px 60px rgba(0, 0, 0, 0.25));
    animation: ggps-modal-in 0.3s ease;
}

@keyframes ggps-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ggps-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    background: #000 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    overflow: visible !important;
}

.ggps-modal-close:hover {
    background: #333 !important;
}

.ggps-modal-close svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    stroke: #fff !important;
    fill: none !important;
}

.ggps-modal-close svg line {
    stroke: #fff !important;
}

.ggps-modal-body {
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.ggps-modal-loading {
    text-align: center;
    padding: 60px 0;
}

.ggps-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #eee;
    border-top-color: #333;
    border-radius: 50%;
    animation: ggps-spin 0.8s linear infinite;
}

/* ==========================================================================
   Modal Product Wrapper - Wireframe Layout
   ========================================================================== */

.ggps-modal-product-wrap {
    padding: 0px;
    margin: 0;
}

/* Modal Header - Product Image + Info */
.ggps-modal-header {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin: 0;
    border: 0px solid transparent;
}

.ggps-modal-product-image {
    flex: 0 0 180px;
}

.ggps-modal-product-image img {
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
}

.ggps-modal-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ggps-modal-product-title {
    font-family: 'Bebas Neue', sans-serif;
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 400;
    color: #333;
}

.ggps-modal-product-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.ggps-modal-product-price del {
    order: 2;
    color: #999;
    font-weight: 400;
    font-size: 14px;
    text-decoration-thickness: 1px;
}

.ggps-modal-product-price ins {
    order: 1;
    display: inline-flex;
    text-decoration: none;
    color: #333;
}

.ggps-modal-product-price .woocommerce-price-suffix {
    order: 3;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.ggps-modal-product-price > span[aria-hidden="true"]:not(.woocommerce-Price-amount) {
    display: none;
}

.ggps-modal-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.ggps-modal-rating .ggps-stars {
    display: inline-flex;
    gap: 1px;
}

.ggps-modal-rating .ggps-star {
    font-size: 18px;
    line-height: 1;
}

.ggps-modal-rating .ggps-star-full {
    color: #f5a623;
}

.ggps-modal-rating .ggps-star-half {
    color: #f5a623;
    position: relative;
}

.ggps-modal-rating .ggps-star-empty {
    color: #ddd;
}

.ggps-modal-rating .ggps-rating-count {
    font-size: 12px;
    color: #666;
}

.ggps-modal-vat-info {
    font-size: 12px;
    color: #666;
}

/* Modal Form */
.ggps-modal-form {
    padding: 0;
    overflow-x: hidden;
}

/* Single product modal form - desktop padding */
.ggps-modal-content:not(.ggps-bundle-modal) .ggps-modal-form {
    padding: 0 8px 8px 8px;
}

/* Modal Form - WooCommerce Overrides */
.ggps-modal-form .variations {
    margin-bottom: 20px;
    width: 100%;
    padding: 0 20px; /* Add padding to match header */
    box-sizing: border-box;
}

.ggps-modal-form .variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

/* Label styling - Match Product Page */
.ggps-modal-form .variations td.label {
    display: block !important;
    padding: 0 0 5px 0 !important; /* Slightly less padding for modal */
    width: 100% !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
}

.ggps-modal-form .variations td.label label {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #000 !important;
}

/* Value cell - Match Product Page */
.ggps-modal-form .variations td.value {
    display: block !important;
    padding: 0 !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
}

/* Dropdown select styling - Match Product Page */
.ggps-modal-form .variations select {
    width: 100% !important;
    padding: 10px 40px 10px 16px !important;
    border: 2px solid #000 !important;
    border-radius: var(--gymgo-radius-sm, 8px) !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background-color: #fff !important;
    color: #000 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    transition: border-color 0.2s ease !important;
}

.ggps-modal-form .variations select:hover {
    border-color: #333 !important;
}

.ggps-modal-form .variations select:focus {
    outline: none !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

/* Flatsome swatch wrapper */
.ggps-modal-form .swatch-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Flatsome Variable Item (image/color swatches) */
.ggps-modal-form .variable-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 4px !important;
    margin: 0 !important;
    border: 2px solid #ddd !important;
    border-radius: var(--gymgo-radius-sm, 8px) !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.ggps-modal-form .variable-item:hover {
    border-color: #666 !important;
}

.ggps-modal-form .variable-item.selected,
.ggps-modal-form .variable-item.active {
    border-color: #000 !important;
    border-width: 2px !important;
    box-shadow: none !important;
}

/* Button/Label swatches */
.ggps-modal-form .variable-item-span-button,
.ggps-modal-form .variable-item-span-label {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 12px !important;
    color: #000 !important;
    line-height: 1.2;
}

/* Reset variations link */
.ggps-modal-form .reset_variations {
    display: block !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #666 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Quantity and Add to Cart Wrapper */
.ggps-modal-form .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important; /* Stack vertically on mobile/modal */
    gap: 15px !important;
    padding: 0 20px 20px 20px !important;
}

/* Quantity Input Styling - Match Product Page */
.ggps-modal-form .quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    border: 2px solid #000 !important;
    border-radius: var(--gymgo-radius-sm, 8px) !important;
    width: 140px !important; /* Fixed width for quantity selector */
}

.ggps-modal-form .quantity input.qty {
    width: 50px !important;
    padding: 10px 5px !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    border-radius: 0 !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 18px !important;
    text-align: center !important;
    background: #fff !important;
    color: #000 !important;
    -moz-appearance: textfield !important;
    height: auto !important;
    min-height: unset !important;
}

.ggps-modal-form .quantity input.qty::-webkit-outer-spin-button,
.ggps-modal-form .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.ggps-modal-form .quantity .minus,
.ggps-modal-form .quantity .plus {
    width: 45px !important;
    height: 100% !important;
    min-height: 44px !important;
    padding: 0 !important;
    background: #fff !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    color: #000 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ggps-modal-form .quantity .minus:hover,
.ggps-modal-form .quantity .plus:hover {
    background: #f5f5f5 !important;
}

.ggps-modal-form .single_add_to_cart_button {
    /* Layout - Átvéve a gymgo-theme.css által */
    /* A korábbi overrides törölve, hogy a globális stílus érvényesüljön */
    
    /* CTA megjelenés (gymgo-theme.css tokenek fallback) */
    background: var(--gymgo-cta-bg, #fcee0a) !important;
    color: var(--gymgo-cta-color, #000) !important;
    border: var(--gymgo-cta-border, 2px solid #000) !important;
    border-radius: var(--gymgo-cta-radius, 8px) !important;
    font-family: var(--gymgo-cta-font, 'Bebas Neue', sans-serif) !important;
    font-weight: var(--gymgo-cta-weight, 400) !important;
    text-transform: var(--gymgo-cta-transform, uppercase) !important;
    cursor: pointer !important;
    transition: var(--gymgo-cta-transition, all 0.3s ease) !important;
    text-align: center !important;
}

/* Quantity Wrapper - Redesigned to match Product Page */
.ggps-quantity-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Stretch to fill width */
    justify-content: center;
    min-height: auto;
    padding: 0 0 15px 0;
    border: none;
    background: transparent;
    width: 100%;
}

.ggps-quantity-label {
    display: block; 
    margin-bottom: 5px;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #000 !important;
    text-align: left; /* Align like product page label if possible, or keep centered if modal design requires */
}

/* Match ggpp-quantity-card style */
.ggps-quantity-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 2px solid #000 !important;
    border-radius: var(--gymgo-radius-sm, 8px) !important;
    overflow: hidden !important;
    background: #fff !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important; /* Full width */
    min-height: 60px !important; /* Taller */
}

/* Button styles matching product page */
.ggps-qty-btn {
    width: 60px !important; /* MATCH: 60px */
    min-width: 60px !important;
    height: auto !important; /* Fill height */
    border: none !important;
    background: #fff !important;
    font-size: 24px !important; /* MATCH: 24px */
    font-weight: 400 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.ggps-qty-btn.ggps-qty-minus {
    border-right: 2px solid #000 !important; /* Separator */
}

.ggps-qty-btn.ggps-qty-plus {
    border-left: 2px solid #000 !important; /* Separator */
}

.ggps-qty-btn:hover {
    background: #f5f5f5 !important;
}

/* Input matching display text */
.ggps-quantity {
    flex: 1 !important;
    width: auto !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
    height: auto !important;
}

.ggps-qty-btn:active {
    background: #eee !important;
}

/* Input style matching product page */
.ggps-quantity {
    width: 50px !important;
    height: auto !important;
    min-width: 50px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    border-radius: 0 !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 18px !important;
    text-align: center !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
    margin: 0 !important;
}

.ggps-quantity::-webkit-outer-spin-button,
.ggps-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.ggps-quantity::-webkit-outer-spin-button,
.ggps-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ggps-quantity-selector .ggps-quantity {
    align-self: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: normal !important;
}

.ggps-modal-add-to-cart {
    /* Layout */
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    padding: 14px 20px;
    margin: 15px 0 0 0;
    margin-top: 5px;
    font-size: 22px;
    letter-spacing: 1px;
    /* CTA megjelenés (gymgo-theme.css tokenek fallback) */
    background: var(--gymgo-cta-bg, #fcee0a) !important;
    color: var(--gymgo-cta-color, #000) !important;
    border: var(--gymgo-cta-border, 2px solid #000) !important;
    border-radius: var(--gymgo-cta-radius, 0) !important;
    font-family: var(--gymgo-cta-font, 'Bebas Neue', sans-serif) !important;
    font-weight: var(--gymgo-cta-weight, 400) !important;
    text-transform: var(--gymgo-cta-transform, uppercase) !important;
    cursor: pointer !important;
    transition: var(--gymgo-cta-transition, all 0.3s ease) !important;
    text-align: center !important;
}

/* ==========================================================================
   Variation Swatches - Full Width Row Style
   ========================================================================== */

.ggps-variations-wrap {
    margin-bottom: 0;
}

.ggps-variation-row {
    border-bottom: none;
}

.ggps-variation-row:last-child {
    border-bottom: none;
}

.ggps-variation-label {
    display: none;
}

.ggps-swatches {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0px;
}

.ggps-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 44px; /* MATCH: 44px */
    padding: 10px 20px; /* MATCH: 10px 20px */
    border: 2px solid #e0e0e0; /* MATCH: 2px */
    border-radius: var(--gymgo-radius-sm, 8px); /* ROUNDED */
    background: #fff;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif; /* MATCH */
    font-size: 14px;
    font-weight: 400; /* MATCH */
    text-transform: uppercase; /* MATCH */
    letter-spacing: 0.5px; /* MATCH */
    color: #333;
    transition: all 0.2s ease;
    margin-right: 8px; /* Gap logic */
    margin-bottom: 8px;
}

.ggps-swatch:hover {
    background: #f5f5f5;
    border-color: #333;
}

.ggps-swatch.selected {
    border-color: #000;
    border-width: 2px;
    background: #fff;
    color: #000;
    font-weight: 400; /* Bebas Neue is usually 400 */
}

/* Color swatches */
.ggps-swatch-color {
    width: auto;
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 0;
    position: relative;
    justify-content: center;
    gap: 8px;
}

.ggps-swatch-color::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.ggps-swatch-color.selected {
    background: #fff !important;
    border-color: #000;
    border-width: 2px;
}

.ggps-swatch-color.selected::after {
    content: '✓';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Image swatches */
.ggps-swatch-image {
    width: auto;
    min-height: 40px;
    padding: 8px 15px;
    gap: 10px;
    border-radius: 0;
}

.ggps-swatch-image:hover {
    background: #f9f9f9;
}

.ggps-swatch-image img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.ggps-swatch-image .ggps-swatch-label {
    font-size: 14px;
    line-height: 32px;
    text-align: left;
    color: #333;
    font-weight: 500;
}

.ggps-swatch-image.selected {
    background: #fff;
    border-color: #000;
    border-width: 2px;
}

.ggps-swatch-image.selected .ggps-swatch-label {
    color: #333;
    font-weight: 600;
}

/* Remove checkmark for image swatches */
.ggps-swatch-image.selected::after {
    display: none;
}

/* Text swatches - Match Product Page .variable-item-span-button */
.ggps-swatch-text {
    width: auto !important;
    justify-content: center !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 8px 16px !important;
    color: #000 !important;
    min-width: 50px !important;
    min-height: 40px !important; /* Button swatches might be shorter than image ones */
    border: 2px solid #ddd !important;
    border-radius: var(--gymgo-radius-sm, 8px) !important;
    background: #fff !important;
}

.ggps-swatch-text:hover {
    border-color: #666 !important;
}

.ggps-swatch-text.selected {
    border-color: #000 !important;
    border-width: 2px !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* Common Swatch Styles for Modal */
.ggps-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.ggps-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--gymgo-radius-sm, 8px); /* Rounded corners */
}

/* Labels above swatches and flavor cards */
.ggps-variation-label,
.ggps-quantity-label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #000 !important;
}

/* Swatch hover state */
.ggps-swatch:hover {
    border-color: #666;
    background: #fff;
}

/* Swatch selected state */
.ggps-swatch.selected {
    border-color: #000;
    border-width: 2px;
    background: #fff;
    color: #000;
    font-weight: 400; /* Font weight logic handled by font-family */
    box-shadow: none;
}

/* Custom Variations Table - keep for backwards compat */
.ggps-variations {
    width: 100%;
    margin-bottom: 20px;
}

.ggps-variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.ggps-variations th.label {
    font-weight: 600;
    margin-bottom: 5px;
    text-align: left;
}

.ggps-variations td.value {
    width: 100%;
}

.ggps-variation-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.ggps-variation-price {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* ==========================================================================
   Error
   ========================================================================== */

.ggps-error {
    padding: 15px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .ggps-product-strip {
        padding: 0 30px;
    }
    
    .ggps-nav {
        display: none !important;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 767px) {
    .ggps-strip-title {
        margin-left: 12px;
    }

    .ggps-add-to-cart[data-bundle-upgrade="1"] {
        padding: 0 8px;
        gap: 0;
    }

    .ggps-add-to-cart[data-bundle-upgrade="1"] .ggps-cart-icon {
        display: none;
    }

    .ggps-add-to-cart[data-bundle-upgrade="1"] .ggps-cart-text {
        font-size: 11px;
        letter-spacing: 0;
    }

    .ggps-product-strip {
        padding: 0 20px;
    }
    
    .ggps-nav {
        display: none !important;
        width: 28px;
        height: 28px;
    }
    
    .ggps-nav svg {
        width: 16px;
        height: 16px;
    }
    
    /* Always show overlay on mobile */
    .ggps-card-overlay {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.5);
    }
    
    .ggps-modal-product {
        flex-direction: column;
    }
    
    .ggps-modal-product-image {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .ggps-modal-body {
        padding: 4px;
        padding-bottom: 0;
    }
    
    .ggps-modal-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 479px) {
    .ggps-product-strip {
        padding: 0 15px;
    }
    
    .ggps-card-title {
        font-size: 15px;
    }
    
    .ggps-card-price {
        font-size: 14px;
    }
}

/* ==========================================================================
   Flavor Cards (Inline Card Style) - Matches Product Page Swatches
   ========================================================================== */

.ggps-flavor-cards-row {
    border-bottom: none !important;
    padding: 0 0 15px 0;
    margin-bottom: 5px;
}

.ggps-flavor-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Match swatch gap */
}

/* Flavor Card Button Styling - match variable-item EXACTLY */
.ggps-flavor-card {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 50px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: var(--gymgo-radius-sm, 8px) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    gap: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    width: auto !important;
    box-shadow: none !important;
    margin: 0 4px 4px 0 !important;
}

.ggps-flavor-card:hover {
    border-color: #999 !important;
    background: #fafafa !important;
}

.ggps-flavor-card.selected {
    border-color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* Image inside flavor card */
.ggps-flavor-card-img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    border-right: 2px solid #e0e0e0 !important;
}

.ggps-flavor-card.selected .ggps-flavor-card-img {
    border-right-color: #000 !important;
}

/* Placeholder box */
.ggps-flavor-card-placeholder {
    width: 50px !important;
    height: 50px !important;
    background: #f0f0f0 !important;
    flex-shrink: 0 !important;
    border-right: 2px solid #e0e0e0 !important;
    display: block !important;
    border-radius: 0 !important;
}

.ggps-flavor-card.selected .ggps-flavor-card-placeholder {
    border-right-color: #000 !important;
}

.ggps-flavor-card-name {
    padding: 0 14px !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #333 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
}

.ggps-flavor-card.selected .ggps-flavor-card-name {
    color: #000 !important;
    line-height: normal !important;
}

/* ==========================================================================
   Upsell Strip  [gg_upsell_strip]
   ========================================================================== */

.ggps-upsell-strip-wrapper {
    margin: 25px auto !important;
    width: 1280px !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Main row: two sections side-by-side */
.ggps-upsell-strip {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.ggps-upsell-strip.ggps-us-single-col {
    justify-content: center;
}

/* Each section */
.ggps-us-section {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

/* Bundle section: white bg, 2px black border */
.ggps-us-bundle-section {
    border: 2px solid #000;
}

/* Larger badge & savings in bundle section */
.ggps-us-bundle-section .ggps-badge-sale {
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 4px;
}

.ggps-us-bundle-section .ggps-savings {
    font-size: 14px;
    font-weight: 700;
}

/* Cards container */
.ggps-us-cards {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Upsell cards use the standard .ggps-card style */
.ggps-us-cards .ggps-card {
    flex: 1;
    min-width: 0;
    align-self: center;
    height: auto;
}

/* Plus sign between current product and upsell cards */
.ggps-us-plus {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    align-self: center;
}

/* Section titles (shared) */
.ggps-us-section-title {
    margin: 0 0 12px 0;
    padding: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* ---------- Mini card (current product only) ---------- */

.ggps-us-card {
    flex: 1;
    min-width: 0;
    max-width: 200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border: 1px solid #eee;
    align-self: center;
    height: auto;
}

.ggps-us-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ggps-us-card-current {
    border: 1px solid #eee;
}

.ggps-us-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ggps-us-card-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.ggps-us-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ggps-us-card:hover .ggps-us-card-image img {
    transform: scale(1.05);
}

/* Sale badge */
.ggps-us-badge-sale {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    background: #e53935;
    color: #fff;
    z-index: 2;
}

/* "Ez a termék" badge */
.ggps-us-badge-current {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px 0;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Card info */
.ggps-us-card-info {
    padding: 8px 10px 10px;
}

.ggps-us-card-title {
    font-family: 'Bebas Neue', sans-serif;
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.ggps-us-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.ggps-us-card-price del {
    color: #999;
    font-weight: 400;
    font-size: 11px;
}

.ggps-us-card-price ins {
    text-decoration: none;
    color: #e53935;
}

/* ---------- Combo Buttons ---------- */

/* Upsell sub-group: wraps upsell cards + mindkettőt button */
.ggps-us-upsell-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.ggps-us-upsell-cards {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.ggps-us-upsell-cards .ggps-card {
    flex: 1;
    min-width: 0;
    align-self: center;
    height: auto;
}

/* Dynamic fit for narrow upsell card CTA buttons */
.ggps-us-upsell-cards .ggps-add-to-cart {
    --ggps-fit-scale: 1;
    min-width: 0;
    padding: 0 8px;
    gap: calc(6px * var(--ggps-fit-scale));
}

.ggps-us-upsell-cards .ggps-add-to-cart .ggps-cart-text {
    font-size: calc(13px * var(--ggps-fit-scale));
}

.ggps-us-upsell-cards .ggps-add-to-cart .ggps-cart-icon svg {
    width: calc(16px * var(--ggps-fit-scale));
    height: calc(16px * var(--ggps-fit-scale));
}

.ggps-us-upsell-cards .ggps-add-to-cart.ggps-fit-hide-icon .ggps-cart-icon {
    display: none;
}

.ggps-us-combo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1.2;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ggps-us-combo-btn:hover {
    background: #333;
}

.ggps-us-combo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ---------- Combo Modal ---------- */

.ggps-combo-modal-scroll {
    position: relative;
}

.ggps-combo-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 65dvh;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scroll indicator arrow */
.ggps-combo-scroll-indicator {
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 8px 0;
    background: linear-gradient(transparent, rgba(255,255,255,0.95) 40%);
    pointer-events: none;
    z-index: 5;
}

.ggps-combo-scroll-indicator.visible {
    display: block;
}

.ggps-combo-scroll-indicator svg {
    animation: ggps-bounce 1.5s infinite;
}

@keyframes ggps-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.ggps-combo-product {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    position: relative;
}

.ggps-combo-product:first-child {
    padding-top: 40px;
}

.ggps-combo-product-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ggps-combo-product-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ggps-combo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ggps-combo-product-info {
    flex: 1;
    min-width: 0;
}

.ggps-combo-product-title {
    font-family: 'Bebas Neue', sans-serif;
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
}

.ggps-combo-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ggps-combo-product-price del {
    color: #999;
    font-weight: 400;
}

.ggps-combo-product-price ins {
    text-decoration: none;
    color: #e53935;
}

.ggps-combo-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.ggps-combo-check.ready {
    background: #4caf50;
}

/* Hide quantity wrap and add-to-cart button inside combo forms */
.ggps-combo-form .ggps-quantity-wrap,
.ggps-combo-form .ggps-modal-add-to-cart {
    display: none !important;
}

.ggps-combo-submit {
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 32px) !important;
    box-sizing: border-box;
    margin: 16px auto 20px auto !important;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    /* CTA megjelenés (gymgo-theme.css tokenek fallback) */
    background: var(--gymgo-cta-bg, #fcee0a) !important;
    color: var(--gymgo-cta-color, #000) !important;
    border: var(--gymgo-cta-border, 2px solid #000) !important;
    border-radius: var(--gymgo-cta-radius, 0) !important;
    font-family: var(--gymgo-cta-font, 'Bebas Neue', sans-serif) !important;
    text-transform: var(--gymgo-cta-transform, uppercase) !important;
    cursor: pointer !important;
    transition: var(--gymgo-cta-transition, all 0.3s ease) !important;
    text-align: center !important;
    align-self: center !important;
}

.ggps-modal-body button.ggps-combo-submit {
    display: flex !important;
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 32px) !important;
    margin: 16px auto 20px auto !important;
}

.ggps-combo-submit-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* hover/disabled: gymgo-theme.css 3/A szabály kezeli */

.ggps-combo-submit:hover:not(:disabled) .ggps-combo-submit-icon svg {
    stroke: #000;
}

.ggps-combo-submit:disabled .ggps-combo-submit-icon svg {
    stroke: #999;
}

/* ==========================================================================
   Upsell Strip Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .ggps-upsell-strip {
        flex-direction: column;
    }

    .ggps-us-section {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ggps-us-cards {
        gap: 8px;
    }

    .ggps-us-plus {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .ggps-us-card-title {
        font-size: 13px;
    }

    .ggps-us-card-price {
        font-size: 12px;
    }

    .ggps-us-section {
        padding: 12px;
    }

    .ggps-us-section-title {
        font-size: 18px;
    }

    .ggps-us-cards .ggps-card .ggps-card-title {
        font-size: 13px;
    }

    .ggps-us-cards .ggps-card .ggps-card-price {
        font-size: 12px;
    }

    .ggps-us-combo-btn {
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* ==========================================================================
   Bundle Modal (copied from archive-cards - KIVÁLÓ kinézet)
   ========================================================================== */

body.ggps-modal-open {
    overflow: hidden !important;
}

.ggps-modal-content.ggps-bundle-modal {
    border-radius: var(--gymgo-radius-lg, 16px) !important;
    overflow: hidden !important;
    background-clip: padding-box;
    clip-path: inset(0 round var(--gymgo-radius-lg, 16px));
    display: flex;
    flex-direction: column;
}

.ggps-modal-content.ggps-bundle-modal .ggps-modal-body {
    border-radius: inherit;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ggps-modal-content.ggps-bundle-modal .ggps-modal-product-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding-bottom: 0;
}

.ggps-modal-content.ggps-bundle-modal .ggps-modal-form.ggps-bundle-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Bundle Modal Header */
.ggps-modal-content.ggps-bundle-modal .ggps-modal-header {
    padding-top: 0px;
}

.ggps-modal-content.ggps-bundle-modal .ggps-modal-product-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.15;
    color: #333;
}

.ggps-modal-product-original-price {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 400;
    color: #8c8c8c;
    line-height: 1.1;
}

.ggps-modal-product-original-price del,
.ggps-modal-product-original-price .woocommerce-Price-amount,
.ggps-modal-product-original-price .woocommerce-Price-amount bdi {
    color: #8c8c8c;
    font-weight: 400;
    text-decoration-thickness: 1px;
}

.ggps-modal-bundle-discount-row {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.ggps-modal-bundle-discount-row .ggps-modal-bundle-discount-value {
    color: var(--gymgo-success, #22c55e) !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.ggps-modal-bundle-discount-row .ggps-modal-bundle-discount-value,
.ggps-modal-bundle-discount-row .ggps-modal-bundle-discount-value * {
    color: var(--gymgo-success, #22c55e) !important;
}

.ggps-modal-bundle-discount-row .ggps-modal-bundle-discount-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gymgo-success, #22c55e);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

/* Bundle Items Container */
.ggps-bundle-items {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 8px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Scroll hint indicator */
.ggps-modal-content.ggps-bundle-modal .ggps-modal-form.ggps-bundle-form.ggps-scroll-hint-visible::after {
    content: '⌄';
    position: absolute;
    left: 50%;
    bottom: 200px;
    transform: translate(-50%, 50%);
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    color: #000;
    pointer-events: none;
    z-index: 12;
    animation: ggps-chevron-bounce 1.15s ease-in-out infinite;
}

@keyframes ggps-chevron-bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50%) translateY(3px);
        opacity: 1;
    }
}

/* Bundle Item Card */
.ggps-bundle-item {
    display: block;
    padding: 16px;
    margin-bottom: 0;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ggps-bundle-item:last-child {
    margin-bottom: 0;
}

.ggps-bundle-item.ggps-bundle-incomplete {
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1);
}

/* Bundle Item Header */
.ggps-bundle-item-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ggps-bundle-item-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ggps-bundle-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ggps-bundle-item-info {
    flex: 1;
    min-width: 0;
}

.ggps-bundle-item-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #333;
}

.ggps-bundle-optional-badge {
    display: none;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.ggps-bundle-item-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}

/* Bundle Item Quantity Control */
.ggps-bundle-item-qty-control {
    margin-top: 6px;
}

.ggps-bundle-item-qty-control .ggps-quantity-selector.ggps-bundle-item-qty-selector {
    width: auto !important;
    min-width: 96px;
    max-width: 122px;
    height: 30px !important;
    min-height: 30px !important;
    border-width: 1px !important;
    border-radius: var(--gymgo-radius-sm, 8px) !important;
}

.ggps-bundle-item-qty-control .ggps-quantity-selector.ggps-bundle-item-qty-selector.is-disabled {
    opacity: 0.45;
}

.ggps-bundle-item-qty-control .ggps-quantity-selector.ggps-bundle-item-qty-selector .ggps-qty-btn {
    width: 28px !important;
    min-width: 28px !important;
    font-size: 18px !important;
}

.ggps-bundle-item-qty-control .ggps-quantity-selector.ggps-bundle-item-qty-selector .ggps-qty-btn.ggps-qty-minus,
.ggps-bundle-item-qty-control .ggps-quantity-selector.ggps-bundle-item-qty-selector .ggps-qty-btn.ggps-qty-plus {
    border-width: 1px !important;
}

.ggps-bundle-item-qty-control .ggps-quantity-selector.ggps-bundle-item-qty-selector .ggps-quantity-display {
    min-width: 34px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Optional Item Request Toggle */
.ggps-bundle-item-request-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #111;
    cursor: pointer;
    user-select: none;
}

.ggps-bundle-item-request-toggle {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #fff;
    cursor: pointer;
}

.ggps-bundle-item-request-text {
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 19px;
    letter-spacing: 1px;
    line-height: 1;
}

.ggps-bundle-item-request-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 0.7px;
    line-height: 1;
}

.ggps-bundle-item-request-qty.is-fixed {
    min-width: 58px;
}

.ggps-bundle-item-request-qty-unit {
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

/* Bundle Variation Selectors */
.ggps-bundle-item-variations {
    padding: 0;
}

.ggps-bundle-variation-row {
    margin-bottom: 10px;
}

.ggps-bundle-variation-row:last-child {
    margin-bottom: 0;
}

.ggps-bundle-attr-label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

/* Bundle Flavor Cards */
.ggps-bundle-flavor-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    row-gap: 3px;
}

.ggps-bundle-flavor-card {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: auto;
    min-height: 50px;
    padding: 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.ggps-bundle-flavor-card:hover {
    border-color: #999;
}

.ggps-bundle-flavor-card.selected {
    border-color: #000;
    background: #fff;
}

.ggps-bundle-flavor-card .ggps-bundle-flavor-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
    border-right: 2px solid #e0e0e0;
    margin-bottom: 0;
}

.ggps-bundle-flavor-card.selected .ggps-bundle-flavor-img {
    border-right-color: #000;
}

.ggps-bundle-flavor-card .ggps-bundle-flavor-name {
    padding: 0 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Bundle Swatches */
.ggps-bundle-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ggps-bundle-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: var(--gymgo-radius-sm, 8px);
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    transition: all 0.2s ease;
}

.ggps-modal-form.ggps-bundle-form .ggps-bundle-swatches .ggps-bundle-swatch {
    min-height: 40px !important;
    padding: 8px 20px !important;
    margin: 0 !important;
    line-height: 1.15 !important;
    border-radius: var(--gymgo-radius-sm, 8px) !important;
}

.ggps-bundle-swatch:hover {
    border-color: #999;
}

.ggps-bundle-swatch.selected {
    border-color: #000;
    background: #fff;
    font-weight: 400;
}

.ggps-bundle-swatch img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

/* Bundle Sticky Footer */
.ggps-bundle-sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 16px;
    background: #fff;
    border-top: 1px solid #ececec;
    border-radius: 0 0 var(--gymgo-radius-lg, 16px) var(--gymgo-radius-lg, 16px);
    margin-top: auto;
}

.ggps-modal-content.ggps-bundle-modal .ggps-bundle-sticky-footer {
    border-bottom-left-radius: var(--gymgo-radius-lg, 16px) !important;
    border-bottom-right-radius: var(--gymgo-radius-lg, 16px) !important;
}

.ggps-bundle-sticky-footer .ggps-quantity-wrap {
    padding: 0;
}

.ggps-bundle-sticky-footer .ggps-quantity-label {
    display: none !important;
}

.ggps-bundle-sticky-footer .ggps-quantity-selector {
    height: 60px !important;
    min-height: 60px !important;
}

.ggps-bundle-sticky-footer .ggps-quantity-selector .ggps-qty-btn {
    width: 60px !important;
    min-width: 60px !important;
    font-size: 24px !important;
}

.ggps-bundle-sticky-footer .ggps-quantity-selector .ggps-quantity-display {
    min-width: 50px;
    font-size: 24px;
}

.ggps-bundle-footer-qty .ggps-quantity {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0 !important;
    min-width: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ggps-quantity-display {
    flex: 1;
    width: auto;
    min-width: 50px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ggps-quantity-display .ggps-quantity-unit {
    font-size: 14px;
}

.ggps-quantity-selector .ggps-quantity-display .ggps-quantity-unit {
    display: none;
}

/* Bundle Add to Cart Button */
.ggps-bundle-add-to-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    /* CTA megjelenés */
    background: var(--gymgo-cta-bg, #fcee0a) !important;
    color: var(--gymgo-cta-color, #000) !important;
    border: var(--gymgo-cta-border, 2px solid #000) !important;
    border-radius: var(--gymgo-cta-radius, 0) !important;
    font-family: var(--gymgo-cta-font, 'Bebas Neue', sans-serif) !important;
    font-weight: var(--gymgo-cta-weight, 400) !important;
    text-transform: var(--gymgo-cta-transform, uppercase) !important;
    cursor: pointer !important;
    transition: var(--gymgo-cta-transition, all 0.3s ease) !important;
    text-align: center !important;
}

.ggps-bundle-sticky-footer .ggps-bundle-add-to-cart {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Bundle Item Stock Warning */
.ggps-bundle-item-stock {
    font-style: italic;
}

/* ==========================================================================
   Modal Responsive - Mobile
   ========================================================================== */

@media (max-width: 849px) {
    /* Fix modal centering on mobile - override external styles */
    .ggps-modal {
        align-items: center !important;
    }
    
    /* Make modal almost full-screen on mobile */
    .ggps-modal-content {
        width: 96%;
        max-width: none;
        max-height: 96dvh;
        margin: 2dvh auto;
        border-radius: var(--gymgo-radius-md, 12px);
    }
    
    .ggps-modal-content.ggps-bundle-modal {
        width: 96% !important;
        max-width: none !important;
        height: 96dvh !important;
        max-height: 96dvh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    
    .ggps-modal-content.ggps-bundle-modal .ggps-modal-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    .ggps-modal-content.ggps-bundle-modal .ggps-modal-product-wrap {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    
    .ggps-modal-content.ggps-bundle-modal .ggps-modal-form.ggps-bundle-form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    
    /* Keep horizontal layout - image and info side-by-side */
    .ggps-modal-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 15px;
        gap: 12px;
    }
    
    /* Smaller image on mobile to leave room for info */
    .ggps-modal-product-image {
        flex: 0 0 100px;
        width: 100px;
    }
    
    .ggps-modal-product-info {
        align-items: flex-start;
        flex: 1;
        min-width: 0;
    }
    
    .ggps-modal-product-title {
        font-size: 17px;
    }
    
    .ggps-modal-product-price {
        justify-content: flex-start;
        font-size: 15px;
    }
    
    .ggps-modal-product-original-price {
        font-size: 13px;
    }

    .ggps-modal-bundle-discount-row {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-top: 4px;
    }

    .ggps-modal-bundle-discount-row .ggps-modal-bundle-discount-value {
        font-size: 14px;
        padding: 3px 10px;
        order: 0;
    }

    .ggps-modal-bundle-discount-row .ggps-modal-bundle-discount-label {
        font-size: 12px;
        order: -1;
    }
    
    .ggps-modal-rating .ggps-star {
        font-size: 15px;
    }
    
    .ggps-modal-rating .ggps-rating-count {
        font-size: 11px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .ggps-modal-product-image {
        flex: 0 0 100px;
        width: 100px;
    }
    
    .ggps-modal-product-title {
        font-size: 15px;
    }
    
    .ggps-modal-product-price {
        font-size: 14px;
    }

    .ggps-modal-product-price .woocommerce-price-suffix {
        flex-basis: 100%;
        margin-top: 2px;
    }

    .ggps-modal-bundle-discount-row .ggps-modal-bundle-discount-value {
        font-size: 13px;
        padding: 3px 8px;
    }

    .ggps-modal-bundle-discount-row .ggps-modal-bundle-discount-label {
        font-size: 11px;
    }

    .ggps-bundle-item {
        padding: 12px;
    }

    .ggps-bundle-item-header {
        gap: 10px;
    }

    .ggps-bundle-item-thumb {
        width: 60px;
        height: 60px;
    }

    .ggps-bundle-item-name {
        font-size: 14px;
    }

    .ggps-bundle-flavor-card .ggps-bundle-flavor-name {
        font-size: 16px;
        padding: 0 10px;
    }

    .ggps-bundle-flavor-card .ggps-bundle-flavor-img {
        width: 45px;
        height: 45px;
    }
}
