/* ===================================================================
   Fotó Webshop Galéria Pro - Frontend Stílusok v2.5.0
   
   ✅ Optimalizált UI/UX:
   - Z-index normalizálás (1050-1060)
   - !important használat minimalizálás
   - Teljes accessibility support
   - Responsive breakpoints
   - Modal animációk
   - Touch-friendly targets (48px)
   - Loading states
   - Toast notifications
   - Dark mode support
   - RTL language support
   - Performance optimalizáció
   =================================================================== */

/* ===================================================================
   GALLERY TITLE CENTER ALIGNMENT
   =================================================================== */

.single-fwg_gallery .entry-title,
.single-fwg_gallery h1.entry-title,
.fwg_gallery .entry-title,
.post-type-archive-fwg_gallery .entry-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===================================================================
   BASE STYLES & LAYOUT
   =================================================================== */

.fwg-gallery-container {
    margin: 20px 0;
    clear: both;
    position: relative;
}

.fwg-photo-gallery {
    display: grid !important;
    gap: 12px !important;
    align-items: start;
}

.fwg-gallery-item {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
}

.fwg-photo-gallery.fwg-layout-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

.fwg-photo-gallery.fwg-layout-grid[data-columns-desktop="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.fwg-photo-gallery.fwg-layout-grid[data-columns-desktop="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.fwg-photo-gallery.fwg-layout-grid[data-columns-desktop="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.fwg-photo-gallery.fwg-layout-grid[data-columns-desktop="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.fwg-photo-gallery.fwg-layout-grid[data-columns-desktop="6"] {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
    .fwg-photo-gallery.fwg-layout-grid[data-columns-tablet="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-tablet="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-tablet="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-tablet="5"] {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-tablet="6"] {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .fwg-photo-gallery.fwg-layout-grid[data-columns-mobile="1"] {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-mobile="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-mobile="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-mobile="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-mobile="5"] {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .fwg-photo-gallery.fwg-layout-grid[data-columns-mobile="6"] {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===================================================================
   GALLERY ITEMS
   =================================================================== */

.fwg-gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
}

.fwg-gallery-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.fwg-image-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.fwg-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.fwg-protected-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.fwg-image-container:hover .fwg-gallery-image {
    transform: scale(1.05) translateZ(0);
}

.fwg-image-info {
    padding: 6px;
    background: #fff;
}

.fwg-image-filename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 11px;
    color: white;
    word-break: break-all;
    line-height: 1.3;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: background 0.2s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.fwg-image-container:hover .fwg-image-filename {
    background: rgba(0, 0, 0, 0.6);
}

.fwg-image-filename:hover::after {
    content: attr(data-full-filename);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 1000;
    margin-bottom: 5px;
    pointer-events: none;
}

.fwg-order-btn-floating {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 20 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.fwg-order-btn-floating:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    transform: scale(1.1) !important;
    color: white !important;
}

.fwg-order-btn-floating:active {
    transform: scale(0.95) !important;
}

.fwg-order-btn-floating:focus,
.fwg-order-btn-floating:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

.fwg-order-btn-floating .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

@media (max-width: 768px) {
    .fwg-product-modal-content {
        max-height: 95vh;
    }
    
    .fwg-order-btn-floating {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        top: 4px !important;
        right: 4px !important;
    }
    
    .fwg-order-btn-floating .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
    }
}

/* ===================================================================
   GALLERY HEADER
   =================================================================== */

.fwg-gallery-header {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.fwg-gallery-title {
    margin: 0 0 15px 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #333;
    font-weight: 700;
    line-height: 1.2;
}

.fwg-gallery-description {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================================================
   PROTECTION & ANTI-THEFT
   =================================================================== */

.fwg-gallery-container.fwg-no-select,
.fwg-gallery-container.fwg-no-select img,
.fwg-gallery-container.fwg-no-select button,
.fwg-gallery-container.fwg-no-select div {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.fwg-gallery-container.fwg-no-drag img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

img[draggable="false"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@-moz-document url-prefix() {
    img[draggable="false"] {
        -moz-user-select: none;
        -moz-user-drag: none;
    }
}

/* ===================================================================
   WATERMARK
   =================================================================== */

.fwg-watermark {
    position: absolute;
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    text-align: center;
}

.fwg-watermark-diagonal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    max-width: 140%;
    width: max-content;
}

.fwg-watermark-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 140%;
    width: max-content;
}

.fwg-watermark-corner-br {
    bottom: 10px;
    right: 10px;
    transform: none;
}

.fwg-watermark-repeat {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    padding: 30px;
    transform: none;
    line-height: 1.4;
}

.fwg-watermark-repeat::before,
.fwg-watermark-repeat::after {
    display: block;
    white-space: nowrap;
}

.fwg-image-container .fwg-watermark-repeat::before {
    content: attr(data-watermark-text);
    transform: rotate(-45deg);
}

.fwg-image-container .fwg-watermark-repeat::after {
    content: attr(data-watermark-text);
    transform: rotate(-45deg);
}

.fwg-lightbox-watermark {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

/* ===================================================================
   ASPECT RATIOS (with fallback for older browsers)
   =================================================================== */

.fwg-aspect-1-1 .fwg-gallery-image,
.fwg-aspect-4-3 .fwg-gallery-image,
.fwg-aspect-3-4 .fwg-gallery-image,
.fwg-aspect-16-9 .fwg-gallery-image {
    object-fit: cover;
}

.fwg-aspect-1-1 .fwg-gallery-image {
    aspect-ratio: 1 / 1;
}

.fwg-aspect-4-3 .fwg-gallery-image {
    aspect-ratio: 4 / 3;
}

.fwg-aspect-3-4 .fwg-gallery-image {
    aspect-ratio: 3 / 4;
}

.fwg-aspect-16-9 .fwg-gallery-image {
    aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 1 / 1) {
    .fwg-aspect-1-1 .fwg-image-container {
        width: 100%;
        padding-bottom: 100%;
        height: 0;
        position: relative;
    }
    
    .fwg-aspect-1-1 .fwg-gallery-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .fwg-aspect-4-3 .fwg-image-container {
        padding-bottom: 75%;
    }
    
    .fwg-aspect-3-4 .fwg-image-container {
        padding-bottom: 133.33%;
    }
    
    .fwg-aspect-16-9 .fwg-image-container {
        padding-bottom: 56.25%;
    }
}

/* ===================================================================
   LAYOUT STYLES
   =================================================================== */

.fwg-photo-gallery.fwg-layout-masonry {
    display: block;
    column-count: 3;
    column-gap: 12px;
}

.fwg-layout-masonry .fwg-gallery-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    vertical-align: top;
}

.fwg-photo-gallery.fwg-layout-justified {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.fwg-layout-justified .fwg-gallery-item {
    flex: 1 1 300px;
    margin: 5px;
    max-width: 400px;
    min-width: 250px;
}

/* ===================================================================
   PAGINATION (Touch-Friendly 48px targets)
   =================================================================== */

.fwg-gallery-pagination {
    margin: 40px 0;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.fwg-gallery-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    margin: 0 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 48px;
    min-height: 48px;
    text-align: center;
}

.fwg-gallery-pagination .page-numbers:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,115,170,0.3);
}

.fwg-gallery-pagination .page-numbers:focus,
.fwg-gallery-pagination .page-numbers:focus-visible {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

.fwg-gallery-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    font-weight: 700;
    cursor: default;
}

.fwg-gallery-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
    color: #999;
}

.fwg-gallery-pagination .page-numbers.prev,
.fwg-gallery-pagination .page-numbers.next {
    font-weight: 600;
    padding: 12px 20px;
}

.fwg-pagination-info {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* ===================================================================
   MODAL SYSTEM (Fixed Z-index + Animations)
   =================================================================== */

.fwg-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

.fwg-modal.fwg-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fwg-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.fwg-modal.fwg-show .fwg-modal-content {
    transform: scale(1);
}

.fwg-image-modal,
#fwg-image-modal {
    z-index: 1050 !important;
}

.fwg-product-modal,
#fwg-product-modal {
    z-index: 1055 !important;
}


.fwg-image-modal-content {
    position: relative;
}

.fwg-product-modal-content {
    position: relative;
    width: 800px;
    max-width: 90vw;
    max-height: 90vh;
}

.fwg-product-details-modal-content {
    position: relative;
    width: 600px;
    max-width: 90vw;
}

body.admin-bar .fwg-modal {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .fwg-modal {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

/* ===================================================================
   MODAL COMPONENTS
   =================================================================== */

.fwg-modal-header-fixed {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
}

.fwg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    gap: 10px;
}

.fwg-modal-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fwg-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.fwg-current-image-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.fwg-product-modal-thumbnail {
    width: 80px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fwg-product-modal-filename {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    flex: 1;
}

.fwg-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.fwg-modal-close:hover {
    transform: rotate(90deg);
}

.fwg-modal-close:focus,
.fwg-modal-close:focus-visible {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
    border-radius: 4px;
}

.fwg-cart-info-fixed {
    position: sticky;
    top: 80px;
    z-index: 9;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-bottom: 2px solid #004466;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: -8px;
}

.fwg-cart-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.fwg-cart-info {
    flex: 1;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
}

.fwg-header-cart-button {
    margin-left: 15px;
    background: #ffffff !important;
    color: #0073aa !important;
    border: 2px solid #0073aa !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 160px !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.fwg-header-cart-button:hover,
.fwg-header-cart-button:focus,
.fwg-header-cart-button:active {
    background: #0073aa !important;
    color: #ffffff !important;
    border-color: #0073aa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,115,170,0.3) !important;
    text-decoration: none !important;
}

.fwg-category-filter-row {
    padding: 10px 15px;
    background: #f0f4f8;
    border-bottom: 1px solid #d0d8e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fwg-category-filter-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.fwg-category-filter-select {
    flex: 1;
    max-width: 280px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.fwg-category-filter-select:hover {
    border-color: #0073aa;
}

.fwg-category-filter-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px rgba(0,115,170,0.2);
}

.fwg-modal-body-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f6f7;
}

/* ===================================================================
   PRODUCT ITEMS
   =================================================================== */

.fwg-product-item {
    margin: 0 0 12px 0;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: #ffffff;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.fwg-product-item:hover {
    box-shadow: 0 6px 20px rgba(0,115,170,0.15);
    border-color: #0073aa;
    transform: translateY(-2px);
}

.fwg-product-name-row {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.fwg-product-name {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    text-align: left;
    color: #1e3a6d;
    line-height: 1.4;
}

.fwg-product-description-block {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.fwg-product-short-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.fwg-toggle-description-btn {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.fwg-toggle-description-btn:hover {
    color: #005a87;
    border-bottom-color: #005a87;
    text-decoration: none;
}

.fwg-toggle-description-btn:focus,
.fwg-toggle-description-btn:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-radius: 2px;
}

.fwg-product-full-description {
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    margin-top: 10px;
    border-radius: 4px;
    line-height: 1.6;
    color: #333;
    animation: fwg-slide-down 0.3s ease;
}

.fwg-collapse-btn {
    display: inline-block;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
}

@keyframes fwg-slide-down {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

.fwg-product-main-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fafbfc;
    border-radius: 8px;
    flex-wrap: wrap;
}

.fwg-product-image-col {
    flex-shrink: 0;
}

.fwg-product-image-wrapper {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.fwg-product-image-wrapper:hover {
    transform: scale(1.05);
}

.fwg-product-image-wrapper:hover img {
    border-color: #0073aa;
    box-shadow: 0 4px 16px rgba(0,115,170,0.3);
}

.fwg-product-image-col img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.fwg-product-price-col {
    flex: 1;
}

.fwg-product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d35400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.fwg-product-price .woocommerce-Price-amount {
    color: #d35400;
}

.fwg-product-quantity-col {
    flex-shrink: 0;
}

.fwg-quantity-selector {
    display: inline-flex !important;
    align-items: stretch !important;
    border: 2px solid #0073aa !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0,115,170,0.15) !important;
    height: 40px !important;
    width: auto !important;
    max-width: fit-content !important;
}

.fwg-qty-btn {
    background: #0073aa !important;
    border: none !important;
    padding: 0 10px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
    min-width: 40px !important;
    height: 100% !important;
    line-height: 1 !important;
    margin: 0 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.fwg-qty-btn:hover {
    background: #005a87 !important;
    color: #ffffff !important;
}

.fwg-qty-btn:active {
    transform: scale(0.95) !important;
}

.fwg-qty-btn:focus,
.fwg-qty-btn:focus-visible {
    outline: 2px solid #0073aa !important;
    outline-offset: -2px !important;
}

.fwg-qty-input {
    border: none !important;
    width: 50px !important;
    text-align: center !important;
    padding: 0 4px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #1e3a6d !important;
    margin: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    height: 100% !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.fwg-qty-input:focus {
    outline: none !important;
    background: #f0f8ff !important;
}

.fwg-qty-fixed {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    background: #f7f7f7 !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    min-width: 60px !important;
    text-align: center !important;
}

.fwg-btn-added {
    background: #46b450 !important;
    border-color: #46b450 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

.fwg-btn-added:hover {
    background: #46b450 !important;
    opacity: 0.8 !important;
}

.fwg-btn-limit-reached {
    background: #999 !important;
    border-color: #999 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.fwg-btn-limit-reached:hover {
    background: #999 !important;
    opacity: 0.7 !important;
    transform: none !important;
    box-shadow: none !important;
}

.fwg-product-at-limit {
    opacity: 0.6 !important;
}

.fwg-qty-locked {
    display: inline-block;
    padding: 8px 16px;
    background: #f7f7f7;
    border: 2px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.fwg-product-actions-col {
    flex-shrink: 0;
    min-width: 140px;
}

.fwg-add-single-product-btn {
    padding: 8px 16px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    width: 100% !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(255,107,53,0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.fwg-add-single-product-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 14px rgba(255,107,53,0.4) !important;
    color: #ffffff !important;
}

.fwg-add-single-product-btn:active {
    transform: translateY(0) !important;
}

/* ===================================================================
   IMAGE MODAL / LIGHTBOX
   =================================================================== */

.fwg-image-modal-content {
    background: transparent;
    border-radius: 0;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Loading spinner lightbox-hoz */
.fwg-image-modal-content.fwg-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fwg-spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes fwg-spin {
    to { transform: rotate(360deg); }
}

.fwg-lightbox-figure {
    text-align: center;
    max-width: 100%;
    max-height: 100%;
}

.fwg-lightbox-figure img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.fwg-lightbox-caption {
    background: rgba(0,0,0,0.8) !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 0 0 8px 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Lightbox caption rendelés gomb */
.fwg-lightbox-caption .fwg-order-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
}

.fwg-lightbox-caption .fwg-order-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
    color: white !important;
}

.fwg-lightbox-caption .fwg-order-btn:active {
    transform: translateY(0) !important;
}

.fwg-lightbox-caption .fwg-order-btn .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.fwg-lightbox-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0,0,0,0.7) !important;
    color: white !important;
    border: none !important;
    font-size: 24px !important;
    padding: 15px 20px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    z-index: 1000 !important;
    transition: background 0.2s ease !important;
    margin: 0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    line-height: 1 !important;
}

.fwg-nav-prev {
    left: 20px !important;
    right: auto !important;
}

.fwg-nav-next {
    right: 20px !important;
    left: auto !important;
}

.fwg-lightbox-nav:hover {
    background: rgba(0,0,0,0.9) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.fwg-lightbox-nav:focus,
.fwg-lightbox-nav:focus-visible {
    outline: 3px solid #0073aa !important;
    outline-offset: 2px !important;
}

.fwg-image-modal-content .fwg-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(0,0,0,0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    cursor: pointer !important;
    z-index: 1001 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

/* ===================================================================
   PRODUCT IMAGE LIGHTBOX
   =================================================================== */

.fwg-product-image-lightbox,
#fwg-product-image-modal {
    z-index: 1060 !important;
}

.fwg-product-image-modal-content {
    background: transparent;
    border-radius: 0;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fwg-product-image-modal-content .fwg-lightbox-figure {
    text-align: center;
    max-width: 100%;
    max-height: 100%;
}

.fwg-product-image-modal-content #fwg-product-image-full {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}

.fwg-product-image-modal-content .fwg-lightbox-caption {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 20px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.fwg-product-image-modal-content .fwg-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(0,0,0,0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
    cursor: pointer !important;
    z-index: 1061 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fwg-product-image-modal-content .fwg-modal-close:hover {
    background: rgba(0,0,0,0.9) !important;
    transform: scale(1.1) !important;
}

/* ===================================================================
   LIGHTBOX ZOOM FUNCTIONALITY
   =================================================================== */

/* Lightbox image zoom alapbeállítások */
#fwg-modal-image,
#fwg-product-image-full {
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-x pan-y pinch-zoom;
}

/* Zoom cursor */
#fwg-modal-image,
#fwg-product-image-full {
    cursor: zoom-in;
}

/* Amikor zoom-olva van */
.fwg-image-container.fwg-zoomed #fwg-modal-image,
.fwg-image-container.fwg-zoomed #fwg-product-image-full {
    cursor: grab;
}

/* Amikor drag-olunk */
.fwg-image-container.fwg-zoomed #fwg-modal-image:active,
.fwg-image-container.fwg-zoomed #fwg-product-image-full:active {
    cursor: grabbing;
}

/* Lightbox container overflow kezelés zoom esetén */
.fwg-image-modal-content .fwg-image-container,
.fwg-product-image-modal-content .fwg-image-container {
    overflow: visible;
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
}

/* Zoom transition */
#fwg-modal-image,
#fwg-product-image-full {
    transition: transform 0.2s ease-out;
}

/* Disable transition during dragging */
#fwg-modal-image.fwg-dragging,
#fwg-product-image-full.fwg-dragging {
    transition: none;
}

/* Mobile touch optimization */
@media (max-width: 768px) {
    #fwg-modal-image,
    #fwg-product-image-full {
        touch-action: pan-x pan-y pinch-zoom;
    }
}

/* Zoom indicator hint (optional) */
.fwg-image-modal.fwg-show .fwg-image-container::after,
.fwg-product-image-modal.fwg-show .fwg-image-container::after {
    content: '🔍';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.fwg-image-modal.fwg-show .fwg-image-container:hover::after,
.fwg-product-image-modal.fwg-show .fwg-image-container:hover::after {
    opacity: 0.8;
}

/* Hide zoom hint on mobile */
@media (max-width: 768px) {
    .fwg-image-modal.fwg-show .fwg-image-container::after,
    .fwg-product-image-modal.fwg-show .fwg-image-container::after {
        display: none;
    }
}

/* Zoom control buttons */
.fwg-zoom-controls {
    position: absolute !important;
    top: 60px !important;
    right: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 1062 !important;
}

.fwg-zoom-btn {
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.fwg-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.05) !important;
}

.fwg-zoom-btn:active {
    transform: scale(0.95) !important;
}

.fwg-zoom-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.fwg-zoom-btn:disabled:hover {
    transform: none !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Mobile zoom buttons - smaller size */
@media (max-width: 768px) {
    .fwg-zoom-controls {
        top: 70px !important;
        right: 10px !important;
    }
    
    .fwg-zoom-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }
}

/* ===================================================================
   EMAIL FORM
   =================================================================== */

.fwg-email-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.fwg-email-form h3 {
    margin-bottom: 15px;
    color: #333;
}

.fwg-email-form p {
    margin-bottom: 20px;
    color: #666;
}

.fwg-email-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1em;
}

.fwg-email-form input[type="email"]:focus {
    outline: 3px solid #0073aa;
    outline-offset: 0;
    border-color: #0073aa;
}

.fwg-email-form button {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fwg-email-form button:hover {
    background: #005a87;
}

.fwg-email-form button:focus,
.fwg-email-form button:focus-visible {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

/* ===================================================================
   PROTECTION WARNINGS
   =================================================================== */

.fwg-devtools-warning,
.fwg-print-protection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    text-align: center;
    padding: 20px;
}

.fwg-devtools-warning h2,
.fwg-print-protection h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

/* ===================================================================
   TOAST NOTIFICATIONS
   =================================================================== */

.fwg-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #333;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    max-width: 400px;
}

.fwg-toast.fwg-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.fwg-toast-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.fwg-toast-message {
    flex: 1;
}

.fwg-toast-error {
    background: #dc3232;
}

.fwg-toast-success {
    background: #46b450;
}

.fwg-toast-warning {
    background: #ffb900;
    color: #333;
}

.fwg-toast-info {
    background: #0073aa;
}

/* ===================================================================
   LOADING STATES
   =================================================================== */

.fwg-gallery-image[data-loading="true"] {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: fwg-loading 1.5s infinite;
    min-height: 200px;
}

@keyframes fwg-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.fwg-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.fwg-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: fwg-spinner 0.6s linear infinite;
}

@keyframes fwg-spinner {
    to { transform: rotate(360deg); }
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS (Optimized)
   NOTE: Column counts are controlled by dynamic CSS from admin settings
   =================================================================== */

@media (max-width: 768px) {
    .fwg-photo-gallery {
        padding: 8px;
    }
    
    .fwg-gallery-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .fwg-gallery-description {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
    
    .fwg-image-info {
        padding: 3px;
    }
    
    /* 2 oszlop - Nagy betű, kényelmes */
    .fwg-photo-gallery[style*="repeat(2"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 2"] .fwg-image-filename {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(2"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 2"] .fwg-order-btn {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(2"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 2"] .fwg-order-btn .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
    }
    
    /* 3 oszlop - Közepes */
    .fwg-photo-gallery[style*="repeat(3"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 3"] .fwg-image-filename {
        font-size: 9px !important;
        padding: 5px 6px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(3"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 3"] .fwg-order-btn {
        font-size: 10px !important;
        padding: 5px 7px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(3"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 3"] .fwg-order-btn .dashicons {
        font-size: 12px !important;
        width: 12px !important;
        height: 12px !important;
    }
    
    /* 4 oszlop - Kicsi */
    .fwg-photo-gallery[style*="repeat(4"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 4"] .fwg-image-filename {
        font-size: 8px !important;
        padding: 4px 5px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(4"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 4"] .fwg-order-btn {
        font-size: 9px !important;
        padding: 4px 6px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(4"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 4"] .fwg-order-btn .dashicons {
        font-size: 11px !important;
        width: 11px !important;
        height: 11px !important;
    }
    
    /* 5-6 oszlop - Nagyon kicsi */
    .fwg-photo-gallery[style*="repeat(5"] .fwg-image-filename,
    .fwg-photo-gallery[style*="repeat(6"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 5"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 6"] .fwg-image-filename {
        font-size: 7px !important;
        padding: 3px 4px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(5"] .fwg-order-btn,
    .fwg-photo-gallery[style*="repeat(6"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 5"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 6"] .fwg-order-btn {
        font-size: 8px !important;
        padding: 3px 5px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(5"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="repeat(6"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 5"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 6"] .fwg-order-btn .dashicons {
        font-size: 10px !important;
        width: 10px !important;
        height: 10px !important;
    }
    
    /* Auto oszlop - alapértelmezett */
    .fwg-image-filename {
        font-size: 8px;
        padding: 5px 6px;
        line-height: 1.1;
    }
    
    .fwg-order-btn {
        padding: 4px 5px;
        font-size: 9px;
    }
    
    .fwg-order-btn .dashicons {
        font-size: 11px;
        width: 11px;
        height: 11px;
    }
    
    .fwg-product-main-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .fwg-product-description-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .fwg-cart-info-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .fwg-header-cart-button {
        margin-left: 0;
    }
    
    .fwg-modal-header {
        padding: 8px 12px !important;
    }
    
    .fwg-modal-header h3 {
        font-size: 1.1em !important;
    }
    
    .fwg-product-modal-thumbnail {
        width: 60px !important;
        max-height: 60px !important;
    }
    
    .fwg-category-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px !important;
        padding: 6px 12px !important;
    }
    
    .fwg-category-filter-label {
        font-size: 0.85rem !important;
    }
    
    .fwg-category-filter-select {
        max-width: 100%;
        font-size: 0.9rem !important;
        padding: 5px 8px !important;
    }
    
    .fwg-lightbox-nav {
        padding: 10px 15px !important;
        font-size: 18px !important;
    }
    
    .fwg-nav-prev {
        left: 10px !important;
        right: auto !important;
    }
    
    .fwg-nav-next {
        right: 10px !important;
        left: auto !important;
    }
    
    .fwg-gallery-pagination .page-numbers {
        min-width: 44px;
        min-height: 44px;
        padding: 10px 12px;
        margin: 0 2px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fwg-photo-gallery {
        padding: 4px;
    }
    
    .fwg-gallery-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    
    .fwg-gallery-pagination .page-numbers {
        padding: 8px 10px;
        margin: 0 1px;
        font-size: 13px;
    }
    
    .fwg-image-info {
        padding: 2px;
    }
    
    /* 2 oszlop - Nagy betű, kényelmes */
    .fwg-photo-gallery[style*="repeat(2"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 2"] .fwg-image-filename {
        font-size: 10px !important;
        padding: 5px 6px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(2"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 2"] .fwg-order-btn {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(2"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 2"] .fwg-order-btn .dashicons {
        font-size: 13px !important;
        width: 13px !important;
        height: 13px !important;
    }
    
    /* 3 oszlop - Közepes */
    .fwg-photo-gallery[style*="repeat(3"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 3"] .fwg-image-filename {
        font-size: 8px !important;
        padding: 4px 5px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(3"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 3"] .fwg-order-btn {
        font-size: 9px !important;
        padding: 4px 6px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(3"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 3"] .fwg-order-btn .dashicons {
        font-size: 11px !important;
        width: 11px !important;
        height: 11px !important;
    }
    
    /* 4 oszlop - Kicsi */
    .fwg-photo-gallery[style*="repeat(4"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 4"] .fwg-image-filename {
        font-size: 7px !important;
        padding: 3px 4px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(4"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 4"] .fwg-order-btn {
        font-size: 8px !important;
        padding: 3px 5px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(4"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 4"] .fwg-order-btn .dashicons {
        font-size: 10px !important;
        width: 10px !important;
        height: 10px !important;
    }
    
    /* 5-6 oszlop - Nagyon kicsi */
    .fwg-photo-gallery[style*="repeat(5"] .fwg-image-filename,
    .fwg-photo-gallery[style*="repeat(6"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 5"] .fwg-image-filename,
    .fwg-photo-gallery[style*="column-count: 6"] .fwg-image-filename {
        font-size: 6px !important;
        padding: 2px 3px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(5"] .fwg-order-btn,
    .fwg-photo-gallery[style*="repeat(6"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 5"] .fwg-order-btn,
    .fwg-photo-gallery[style*="column-count: 6"] .fwg-order-btn {
        font-size: 7px !important;
        padding: 2px 4px !important;
    }
    
    .fwg-photo-gallery[style*="repeat(5"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="repeat(6"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 5"] .fwg-order-btn .dashicons,
    .fwg-photo-gallery[style*="column-count: 6"] .fwg-order-btn .dashicons {
        font-size: 9px !important;
        width: 9px !important;
        height: 9px !important;
    }
    
    /* Auto oszlop - alapértelmezett */
    .fwg-image-filename {
        font-size: 7px;
        padding: 4px 5px;
        line-height: 1.1;
    }
    
    .fwg-order-btn {
        padding: 3px 4px;
        font-size: 8px;
    }
    
    .fwg-order-btn .dashicons {
        font-size: 10px;
        width: 10px;
        height: 10px;
    }
    
    .fwg-toast {
        right: 10px;
        top: 10px;
        max-width: calc(100vw - 20px);
    }
}

/* ===================================================================
   RTL LANGUAGE SUPPORT
   =================================================================== */


[dir="rtl"] .fwg-nav-prev {
    left: auto !important;
    right: 20px !important;
}

[dir="rtl"] .fwg-nav-next {
    right: auto !important;
    left: 20px !important;
}

[dir="rtl"] .fwg-gallery-header {
    border-left: none;
    border-right: 4px solid #0073aa;
}

[dir="rtl"] .fwg-product-description-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .fwg-product-main-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .fwg-header-cart-button {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .fwg-toast {
    right: auto;
    left: 20px;
    transform: translateX(-400px);
}

[dir="rtl"] .fwg-toast.fwg-toast-show {
    transform: translateX(0);
}

@media (max-width: 480px) {
    [dir="rtl"] .fwg-toast {
        left: 10px;
    }
}

/* ===================================================================
   PRODUCT DETAILS MODAL - PROFESSIONAL DESIGN
   =================================================================== */

.fwg-product-details-modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.fwg-product-details-modal .fwg-modal-header {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.fwg-product-details-modal .fwg-modal-header h3 {
    color: white;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
}

.fwg-product-details-modal .fwg-modal-close {
    color: white;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fwg-product-details-modal .fwg-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.fwg-product-details-top {
    display: flex;
    gap: 25px;
    padding: 25px;
    padding-bottom: 0;
}

.fwg-product-details-image {
    flex: 0 0 200px;
    position: relative;
}

.fwg-product-details-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.fwg-product-details-image img:hover {
    transform: scale(1.05);
}

.fwg-product-details-summary {
    flex: 1;
    min-width: 0;
}

.fwg-product-details-full {
    padding: 0 25px 25px 25px;
}

.fwg-product-details-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 15px;
}

.fwg-product-details-short {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

.fwg-product-details-description {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.fwg-product-details-description p {
    margin-bottom: 15px;
    text-align: justify;
}

.fwg-product-details-description ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.fwg-product-details-description ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.fwg-product-details-description ul li:last-child {
    border-bottom: none;
}

.fwg-product-details-description ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.fwg-product-details-description ul li strong {
    color: #ff6b35;
    font-weight: 600;
}

.fwg-product-details-description strong {
    color: #0073aa;
    font-weight: 600;
}

.fwg-product-details-description [style*="color: #666"] {
    color: #555 !important;
}

.fwg-product-details-description p:has(strong:first-child) {
    background: linear-gradient(to right, #fff9f5 0%, #ffffff 100%);
    padding: 15px;
    border-left: 4px solid #ff6b35;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

@media (max-width: 768px) {
    .fwg-product-details-top {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        padding-bottom: 0;
    }
    
    .fwg-product-details-image {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .fwg-product-details-full {
        padding: 0 20px 20px 20px;
    }
    
    .fwg-product-details-modal .fwg-modal-header h3 {
        font-size: 1.2em;
    }
    
    .fwg-product-details-price {
        font-size: 1.5em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .fwg-product-details-modal-content {
        width: 95vw;
        max-height: 90vh;
    }
    
    .fwg-product-details-top {
        padding: 15px;
        padding-bottom: 0;
    }
    
    .fwg-product-details-full {
        padding: 0 15px 15px 15px;
    }
    
    .fwg-product-details-modal .fwg-modal-header {
        padding: 15px;
    }
    
    .fwg-product-details-description {
        font-size: 13px;
    }
    
    .fwg-product-details-description ul li {
        padding-left: 25px;
        font-size: 13px;
    }
    
    .fwg-product-details-description ul li::before {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

[dir="rtl"] .fwg-product-details-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .fwg-product-details-description ul li {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .fwg-product-details-description ul li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .fwg-product-details-description p:has(strong:first-child) {
    border-left: none;
    border-right: 4px solid #ff6b35;
}

/* ===================================================================
   CART GALLERY LINK - BACK TO GALLERY BUTTON
   =================================================================== */

/* Fix WooCommerce cart product name hover contrast */
.woocommerce-cart-form .product-name a:hover,
.woocommerce-cart-form .product-name a:focus,
.woocommerce table.shop_table td.product-name a:hover,
.woocommerce table.shop_table td.product-name a:focus {
    color: #0073aa !important;
    background: transparent !important;
    text-decoration: underline !important;
}

.fwg-cart-gallery-link {
    margin-top: 8px;
    padding: 8px 0;
}

.fwg-return-to-gallery {
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.fwg-return-to-gallery:hover,
.fwg-return-to-gallery:focus {
    background: linear-gradient(135deg, #0a8fd4 0%, #0073aa 100%) !important;
    transform: translateX(-2px) !important;
    box-shadow: 0 3px 8px rgba(0,115,170,0.25) !important;
    text-decoration: none !important;
    color: white !important;
}

.fwg-return-to-gallery:active {
    transform: translateX(-1px) translateY(1px) !important;
}

@media (max-width: 768px) {
    .fwg-return-to-gallery {
        font-size: 11px !important;
        padding: 5px 10px !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
    }
}

/* Checkout page gallery link */
.fwg-checkout-gallery-link {
    margin-top: 6px;
}

.fwg-return-to-gallery-checkout {
    display: inline-block !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.fwg-return-to-gallery-checkout:hover,
.fwg-return-to-gallery-checkout:focus {
    background: linear-gradient(135deg, #0a8fd4 0%, #0073aa 100%) !important;
    transform: translateX(-2px) !important;
    box-shadow: 0 2px 6px rgba(0,115,170,0.3) !important;
    text-decoration: none !important;
    color: white !important;
}

.fwg-return-to-gallery-checkout:active {
    transform: translateX(-1px) translateY(1px) !important;
}

@media (max-width: 768px) {
    .fwg-checkout-gallery-link {
        display: block !important;
        width: 100% !important;
        margin-top: 8px !important;
        margin-bottom: 4px !important;
    }
    
    .fwg-return-to-gallery-checkout {
        display: inline-block !important;
        font-size: 11px !important;
        padding: 6px 12px !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
    }
}

/* Vásárlás folytatása gomb elrejtése a kosárban */
.woocommerce-cart .wc-backward,
.woocommerce-cart a.button.wc-backward {
    display: none !important;
}

/* Termék link letiltása a kosárban */
.woocommerce-cart .woocommerce-cart-form__cart-item .product-name a,
.woocommerce-cart .cart_item .product-name a {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: inherit;
}

/* Indexkép megjelenítése - CSAK PÉNZTÁR oldalon */
.woocommerce-checkout table.shop_table .product-thumbnail {
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-checkout .shop_table .product-thumbnail a {
    display: block !important;
    visibility: visible !important;
}

.woocommerce-checkout .shop_table .product-thumbnail img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    /* KRITIKUS: Megakadályozzuk a WooCommerce responsive táblázat átkapcsolását CSAK PÉNZTÁR oldalon */
    .woocommerce-checkout .shop_table,
    body.woocommerce-checkout table.shop_table {
        display: table !important;
        width: 100% !important;
    }
    
    .woocommerce-checkout .shop_table tbody,
    body.woocommerce-checkout table.shop_table tbody {
        display: table-row-group !important;
    }
    
    .woocommerce-checkout .shop_table tr,
    body.woocommerce-checkout table.shop_table tr {
        display: table-row !important;
    }
    
    .woocommerce-checkout .shop_table td,
    body.woocommerce-checkout table.shop_table td {
        display: table-cell !important;
    }
    
    /* Kép oszlop - CSAK PÉNZTÁR */
    .woocommerce-checkout .shop_table .product-thumbnail,
    body.woocommerce-checkout table.shop_table .product-thumbnail {
        display: table-cell !important;
        width: 70px !important;
        max-width: 70px !important;
        min-width: 70px !important;
        vertical-align: top !important;
        padding-right: 8px !important;
    }
    
    /* Kép méret - CSAK PÉNZTÁR - felülírja az inline 100px-et */
    .woocommerce-checkout .shop_table .product-thumbnail img,
    body.woocommerce-checkout table.shop_table .product-thumbnail img,
    .woocommerce-checkout .fwg-order-thumb {
        max-width: 60px !important;
        max-height: 60px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        border-radius: 4px !important;
    }
    
    /* Terméknév oszlop - CSAK PÉNZTÁR */
    .woocommerce-checkout .shop_table td.product-name,
    body.woocommerce-checkout table.shop_table td.product-name {
        display: table-cell !important;
        padding-left: 0 !important;
        vertical-align: top !important;
    }
}

/* ===================================================================
   GALÉRIA GYŰJTŐ OLDAL - ALL GALLERIES
   =================================================================== */

.fwg-all-galleries-container {
    display: grid;
    gap: 24px;
    margin: 40px 0;
    grid-template-columns: repeat(3, 1fr);
}

.fwg-all-galleries-container[data-columns="1"] {
    grid-template-columns: 1fr;
}

.fwg-all-galleries-container[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.fwg-all-galleries-container[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.fwg-all-galleries-container[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.fwg-all-galleries-container[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.fwg-all-galleries-container[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr);
}

.fwg-gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.fwg-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.fwg-gallery-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fwg-gallery-card-image {
    width: 100%;
    padding-top: 75%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.fwg-gallery-card:hover .fwg-gallery-card-image {
    transform: scale(1.05);
}

.fwg-gallery-card-title {
    padding: 20px;
    text-align: center;
    background: #fff;
}

.fwg-gallery-card-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Tablet nézet */
@media (max-width: 1024px) {
    .fwg-all-galleries-container[data-columns="4"],
    .fwg-all-galleries-container[data-columns="5"],
    .fwg-all-galleries-container[data-columns="6"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobil nézet */
@media (max-width: 768px) {
    .fwg-all-galleries-container {
        gap: 16px;
        margin: 20px 0;
    }
    
    .fwg-all-galleries-container[data-columns="1"] {
        grid-template-columns: 1fr;
    }
    
    .fwg-all-galleries-container[data-columns="2"],
    .fwg-all-galleries-container[data-columns="3"],
    .fwg-all-galleries-container[data-columns="4"],
    .fwg-all-galleries-container[data-columns="5"],
    .fwg-all-galleries-container[data-columns="6"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fwg-gallery-card-title {
        padding: 16px;
    }
    
    .fwg-gallery-card-title h3 {
        font-size: 16px;
    }
}

/* Extra kis mobil */
@media (max-width: 480px) {
    .fwg-all-galleries-container {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================================================
   GALLERIES TABLE VIEW
   =================================================================== */

.fwg-all-galleries-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 20px 0;
}

.fwg-all-galleries-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.fwg-all-galleries-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.fwg-all-galleries-table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid rgba(255,255,255,0.2);
}

.fwg-all-galleries-table thead th.fwg-table-thumbnail {
    width: 120px;
    text-align: center;
}

.fwg-all-galleries-table thead th.fwg-table-count {
    width: 140px;
    text-align: center;
}

.fwg-all-galleries-table thead th.fwg-table-date {
    width: 160px;
}

.fwg-all-galleries-table thead th.fwg-table-actions {
    width: 150px;
    text-align: center;
}

.fwg-all-galleries-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

.fwg-all-galleries-table tbody tr:hover {
    background-color: #f8f9fa;
}

.fwg-all-galleries-table tbody tr:last-child {
    border-bottom: none;
}

.fwg-all-galleries-table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
}

.fwg-thumbnail-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.fwg-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fwg-gallery-row:hover .fwg-thumbnail-image {
    transform: scale(1.1);
}

.fwg-thumbnail-empty {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #d0d0d0;
}

.fwg-no-image-icon {
    font-size: 32px;
    opacity: 0.4;
    display: block;
}

.fwg-table-name strong {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.fwg-image-count-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.fwg-table-date {
    color: #666;
    font-size: 14px;
}

.fwg-table-actions {
    text-align: center;
}

.fwg-view-gallery-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.fwg-view-gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
}

/* Tablet nézet táblázathoz */
@media (max-width: 1024px) {
    .fwg-all-galleries-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .fwg-all-galleries-table {
        min-width: 700px;
    }
    
    .fwg-all-galleries-table thead th {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .fwg-all-galleries-table tbody td {
        padding: 12px 16px;
    }
}

/* Mobil nézet - CARD LAYOUT táblázathoz */
@media (max-width: 768px) {
    .fwg-all-galleries-table-wrapper {
        border-radius: 8px;
        margin: 16px 0;
        box-shadow: none;
        background: transparent;
    }
    
    /* Táblázat elrejtése mobilon */
    .fwg-all-galleries-table thead {
        display: none;
    }
    
    .fwg-all-galleries-table,
    .fwg-all-galleries-table tbody,
    .fwg-all-galleries-table tr,
    .fwg-all-galleries-table td {
        display: block;
        width: 100%;
    }
    
    .fwg-all-galleries-table {
        border: none;
    }
    
    /* Minden sor egy kártya */
    .fwg-all-galleries-table tbody tr {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        margin-bottom: 16px;
        padding: 16px;
        border: none;
    }
    
    .fwg-all-galleries-table tbody tr:hover {
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    
    .fwg-all-galleries-table tbody td {
        padding: 8px 0;
        border: none;
        text-align: left !important;
    }
    
    /* Kép középre */
    .fwg-table-thumbnail {
        text-align: center !important;
        margin-bottom: 12px;
    }
    
    .fwg-thumbnail-wrapper {
        width: 100px;
        height: 100px;
    }
    
    /* Név és dátum */
    .fwg-table-name strong {
        font-size: 18px;
        display: block;
        margin-bottom: 8px;
    }
    
    .fwg-table-date {
        font-size: 13px;
        color: #999;
        display: block;
        margin-bottom: 12px;
    }
    
    .fwg-table-date::before {
        content: "📅 ";
    }
    
    /* Megtekintés gomb full-width */
    .fwg-table-actions {
        text-align: center !important;
        padding-top: 12px;
    }
    
    .fwg-view-gallery-btn {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
        text-align: center;
    }
}

/* ===================================================================
   FLOATING CART BUTTON
   =================================================================== */

.fwg-floating-cart-button {
    position: sticky;
    top: 20px;
    z-index: 999;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.fwg-floating-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.fwg-cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.fwg-cart-link .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: white !important;
}

.fwg-cart-count-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fwg-pulse-subtle 2s ease-in-out infinite;
}

@keyframes fwg-pulse-subtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fwg-cart-badge-bounce {
    animation: fwg-badge-bounce 0.6s ease !important;
}

@keyframes fwg-badge-bounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
}

.fwg-cart-total {
    color: white;
    font-weight: 700;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Mobil nézet */
@media (max-width: 768px) {
    .fwg-floating-cart-button {
        padding: 10px 16px;
        top: 10px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    
    .fwg-cart-link {
        font-size: 14px;
        gap: 6px;
    }
    
    .fwg-cart-link .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
        color: white !important;
    }
    
    .fwg-cart-text {
        display: none;
    }
}
    
    .fwg-cart-count-badge {
        padding: 3px 8px;
        font-size: 12px;
        min-width: 24px;
    }
    
    .fwg-cart-total {
        font-size: 15px;
        padding: 6px 12px;
    }
}

/* ===================================================================
   WOOCOMMERCE PAYMENT GATEWAY FIX - MOBILE
   Fix: Bankkártya logók ne legyenek eltakarva mobilon
   =================================================================== */

@media (max-width: 768px) {
    /* Bankkártya logók ne legyenek sticky/fixed mobilon */
    .woocommerce-checkout .wc_payment_method label,
    .woocommerce-checkout .payment_method_stripe label,
    .woocommerce-checkout .payment_box {
        position: relative !important;
        display: block !important;
        clear: both !important;
    }
    
    /* Bankkártya ikonok ne takarják el egymást */
    .woocommerce-checkout .wc_payment_method img,
    .woocommerce-checkout .payment_method_stripe img {
        position: relative !important;
        z-index: 1 !important;
        max-height: 30px !important;
        margin-right: 5px !important;
    }
    
    /* Payment box ne legyen sticky */
    .woocommerce-checkout #payment div.payment_box,
    .woocommerce-checkout .stripe-source-errors,
    .woocommerce-checkout .payment_method_stripe .payment_box {
        position: relative !important;
        margin-top: 15px !important;
        clear: both !important;
        display: block !important;
    }
    
    /* Kártyaszám mező ne takarja el a kártya logókat */
    .woocommerce-checkout .wc-stripe-elements-field,
    .woocommerce-checkout .stripe-card-group,
    .woocommerce-checkout #stripe-card-element {
        position: relative !important;
        margin-top: 10px !important;
        clear: both !important;
    }
}
