/* Perfect Match - Frontend Styles */

/* ===== CONTAINER STYLES ===== */
.perfect-match-container {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecef;
    position: relative;
    overflow: hidden;
}

.perfect-match-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d, #c44569, #f8b500, #00d2d3);
    background-size: 300% 300%;
    animation: perfectMatchGradient 8s ease infinite;
}

@keyframes perfectMatchGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== TITLE & DESCRIPTION ===== */
.perfect-match-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-align: center;
    position: relative;
}

.perfect-match-title::after {
    content: '💝';
    margin-left: 10px;
    font-size: 24px;
    animation: heartBeat 2s ease infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.perfect-match-description {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== GRID LAYOUT ===== */
.perfect-match-products {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.perfect-match-grid .perfect-match-products {
    display: grid;
    gap: 20px;
}

.perfect-match-grid-2 .perfect-match-products { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.perfect-match-grid-3 .perfect-match-products { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.perfect-match-grid-4 .perfect-match-products { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.perfect-match-grid-5 .perfect-match-products { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===== LIST LAYOUT ===== */
.perfect-match-list .perfect-match-products {
    flex-direction: column;
    gap: 15px;
}

.perfect-match-list .perfect-match-product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.perfect-match-list .perfect-match-product-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.perfect-match-list .perfect-match-product-media {
    flex: 0 0 120px;
    margin-right: 20px;
}

.perfect-match-list .perfect-match-product-content {
    flex: 1;
}

/* ===== SLIDER LAYOUT ===== */
.perfect-match-slider {
    position: relative;
}

.perfect-match-slider-track {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 20px;
}

.perfect-match-slider .perfect-match-product-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.perfect-match-slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.perfect-match-slider-prev,
.perfect-match-slider-next {
    background: #2c3e50;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.perfect-match-slider-prev:hover,
.perfect-match-slider-next:hover {
    background: #34495e;
    transform: scale(1.1);
}

.perfect-match-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.perfect-match-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.perfect-match-slider-dot.active {
    background: #2c3e50;
    transform: scale(1.2);
}

/* ===== PRODUCT ITEM STYLES ===== */
.perfect-match-product-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.perfect-match-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #ddd;
}

.perfect-match-product-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== BADGES ===== */
.perfect-match-primary-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.perfect-match-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: linear-gradient(135deg, #f8b500, #ffa726);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(248, 181, 0, 0.3);
}

/* ===== MEDIA STYLES ===== */
.perfect-match-product-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.perfect-match-product-image,
.perfect-match-product-video {
    width: 100%;
    height: 100%;
}

.perfect-match-product-image img,
.perfect-match-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.perfect-match-product-item:hover .perfect-match-product-image img,
.perfect-match-product-item:hover .perfect-match-video-thumbnail {
    transform: scale(1.05);
}

.perfect-match-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.perfect-match-product-video:hover .perfect-match-video-overlay {
    opacity: 1;
}

.perfect-match-play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2c3e50;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.perfect-match-play-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

/* ===== CONTENT STYLES ===== */
.perfect-match-product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.perfect-match-product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.perfect-match-product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.perfect-match-product-title a:hover {
    color: #c44569;
}

.perfect-match-product-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

/* ===== PRICING STYLES ===== */
.perfect-match-product-price {
    margin-bottom: 15px;
    font-weight: 600;
}

.perfect-match-price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 14px;
}

.perfect-match-price-discounted,
.perfect-match-price-current {
    color: #c44569;
    font-size: 18px;
    font-weight: 700;
}

.perfect-match-price-current {
    color: #2c3e50;
}

/* ===== ACTION BUTTONS ===== */
.perfect-match-product-actions {
    margin-top: auto;
}

.perfect-match-add-to-cart,
.perfect-match-view-product {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.perfect-match-add-to-cart:hover,
.perfect-match-view-product:hover {
    background: linear-gradient(135deg, #c44569, #ff6b9d);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 69, 105, 0.3);
}

.perfect-match-cart-icon {
    font-size: 16px;
}

.perfect-match-out-of-stock {
    text-align: center;
    color: #e74c3c;
    font-weight: 600;
    padding: 12px;
    background: #ffeaea;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* ===== BUNDLE ACTIONS ===== */
.perfect-match-bundle-action {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px dashed #c44569;
    text-align: center;
}

.perfect-match-bundle-pricing {
    margin-bottom: 20px;
}

.perfect-match-bundle-savings {
    margin-bottom: 10px;
}

.perfect-match-save-label {
    color: #27ae60;
    font-weight: 600;
    margin-right: 5px;
}

.perfect-match-save-amount {
    color: #27ae60;
    font-size: 20px;
    font-weight: 700;
}

.perfect-match-bundle-total {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.perfect-match-total-original {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}

.perfect-match-total-final,
.perfect-match-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #c44569;
}

.perfect-match-total-label {
    font-size: 18px;
    color: #2c3e50;
    margin-right: 10px;
}


.perfect-match-bundle-icon {
    font-size: 20px;
}

/* ===== VIDEO MODAL ===== */
.perfect-match-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.perfect-match-video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.perfect-match-video-modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

.perfect-match-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
}

.perfect-match-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

/* ===== LOADING STATES ===== */
.perfect-match-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.perfect-match-loading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #c44569;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .perfect-match-container {
        margin: 20px 0;
        padding: 20px 15px;
    }

    .perfect-match-title {
        font-size: 24px;
    }

    .perfect-match-products {
        gap: 15px;
    }

    .perfect-match-grid .perfect-match-products {
        grid-template-columns: 1fr;
    }

    .perfect-match-list .perfect-match-product-item {
        flex-direction: column;
        text-align: center;
    }

    .perfect-match-list .perfect-match-product-media {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
        width: 150px;
        height: 150px;
        align-self: center;
    }

    .perfect-match-slider .perfect-match-product-item {
        flex: 0 0 250px;
    }

    .perfect-match-bundle-action {
        padding: 20px 15px;
    }

    .perfect-match-bundle-total {
        flex-direction: column;
        gap: 10px;
    }

    .perfect-match-add-all-to-cart {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .perfect-match-slider .perfect-match-product-item {
        flex: 0 0 220px;
    }

    .perfect-match-product-content {
        padding: 15px;
    }

    .perfect-match-title::after {
        display: block;
        margin: 10px 0 0 0;
    }
}

/* ===== CONTEXT-SPECIFIC STYLES ===== */
.perfect-match-context-product {
    border-color: #c44569;
}

.perfect-match-context-shop {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.perfect-match-context-cart {
    border: 2px solid #27ae60;
    background: linear-gradient(135deg, #f0fff4, #ffffff);
}

.perfect-match-context-shortcode {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

/* ===== ACCESSIBILITY ===== */
.perfect-match-product-item:focus-within {
    outline: 2px solid #c44569;
    outline-offset: 2px;
}

.perfect-match-add-to-cart:focus,
.perfect-match-view-product:focus,
.perfect-match-add-all-to-cart:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .perfect-match-container {
        box-shadow: none;
        border: 1px solid #000;
    }

    .perfect-match-video-overlay,
    .perfect-match-product-actions,
    .perfect-match-bundle-action {
        display: none;
    }
}

/* ===== PROFESJONALNE IKONY SVG ===== */
.pm-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: pm-spin 1s linear infinite;
}

@keyframes pm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pm-success-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #27ae60;
    border-radius: 50%;
    position: relative;
}

.pm-success-icon::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pm-error-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #e74c3c;
    border-radius: 50%;
    position: relative;
}

.pm-error-icon::before,
.pm-error-icon::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    height: 8px;
    width: 2px;
    background-color: white;
}

.pm-error-icon::before {
    transform: rotate(45deg);
}

.pm-error-icon::after {
    transform: rotate(-45deg);
}

.pm-celebration-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #ff6b9d, #f8b500);
    border-radius: 50%;
    position: relative;
    animation: pm-pulse 1.5s ease-in-out infinite;
}

.pm-celebration-icon::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@keyframes pm-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pm-notification-icon-success {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #27ae60;
    border-radius: 50%;
    position: relative;
}

.pm-notification-icon-success::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pm-notification-icon-error {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    position: relative;
}

.pm-notification-icon-error::before,
.pm-notification-icon-error::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    height: 10px;
    width: 2px;
    background-color: white;
}

.pm-notification-icon-error::before {
    transform: rotate(45deg);
}

.pm-notification-icon-error::after {
    transform: rotate(-45deg);
}

.pm-notification-icon-info {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    position: relative;
}

.pm-notification-icon-info::after {
    content: 'i';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* ===== NEW PROTOCOL DESIGN - EXACT COPY FROM REFERENCE ===== */
.pm-protocol-new-container {
    margin: 30px 0;
    background: #464954;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 0;
}

/* Badge Nowość */
.pm-protocol-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #CEF34E;
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    z-index: 10;
}

/* Header Section */
.pm-protocol-header {
    padding: 24px 24px 32px 24px;
    color: white;
    position: relative;
}

.pm-protocol-title {
    font-size: 32px !important;
    font-weight: 400;
    color: white;
    margin: 48px 0 16px 0;
    line-height: 1.2;
}

.pm-protocol-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.pm-protocol-product-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3-column Grid Layout */
.pm-protocol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px 32px 24px;
}

.pm-protocol-product-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pm-protocol-product-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.pm-protocol-product-number {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.pm-protocol-product-image-container {
    width: 80px;
    height: 80px;
    margin: 16px auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-protocol-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.pm-protocol-product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.pm-protocol-product-image-container .pm-variant2-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.pm-protocol-product-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-protocol-product-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    line-height: 1.3;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-protocol-product-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 16px;
}

.pm-protocol-add-button {
    background: #CEF34E;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.pm-protocol-add-button:hover {
    background: #B8E02E;
    transform: translateY(-1px);
}

.pm-protocol-product-link {
    display: inline-block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.pm-protocol-product-link:hover {
    color: #CEF34E;
}

/* Empty slot */
.pm-protocol-empty-slot {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 2px dashed rgba(255, 255, 255, 0.15) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.pm-protocol-empty-slot:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none;
}

.pm-protocol-empty-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
}

.pm-protocol-empty-message p {
    margin: 0 0 4px 0;
}

.pm-empty-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: 700;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.pm-empty-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px !important;
}

/* Bottom Section */
.pm-protocol-bottom-section {
    background: #464954;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pm-protocol-discount-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pm-protocol-discount-icon {
    width: 48px;
    height: 48px;
    background: #CEF34E;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000000;
    flex-shrink: 0;
}

.pm-protocol-discount-icon svg {
    width: 24px;
    height: 24px;
    stroke: #000000;
}

.pm-protocol-discount-text {
    color: white;
}

.pm-protocol-discount-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.pm-protocol-discount-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.pm-protocol-pricing {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pm-protocol-price-old {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.pm-protocol-price-new {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.pm-protocol-main-button {
    background: #CEF34E;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pm-protocol-main-button:hover {
    background: #B8E02E;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(206, 243, 78, 0.3);
}

/* Responsive Design - Protocol */
@media (max-width: 900px) {
    .pm-protocol-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .pm-protocol-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px 24px 16px;
    }

    .pm-protocol-header {
        padding: 20px 16px 24px 16px;
    }

    .pm-protocol-title {
        font-size: 24px !important;
        margin: 40px 0 12px 0;
    }

    .pm-protocol-bottom-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 16px;
    }

    .pm-protocol-pricing {
        justify-content: center;
    }

    .pm-protocol-main-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pm-protocol-product-card {
        padding: 16px;
    }

    .pm-protocol-product-image-container {
        width: 60px;
        height: 60px;
    }

    .pm-protocol-title {
        font-size: 20px !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .pm-variant2-widget {
        padding: 16px;
    }

    .pm-variant2-header {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .pm-variant2-title {
        font-size: 18px !important;
    }

    .pm-variant2-grid {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }

    .pm-variant2-card {
        max-width: 100%;
    }

    .pm-variant2-icon-box {
        width: 70px;
        height: 70px;
    }

    .pm-variant2-product-name {
        height: auto;
        min-height: 32px;
    }
}

@media (max-width: 480px) {
    .pm-variant2-container {
        margin: 16px 0;
    }

    .pm-variant2-widget {
        padding: 12px;
    }

    .pm-variant2-card-compact {
        padding: 12px;
    }

    .pm-variant2-icon-box {
        width: 60px;
        height: 60px;
    }

    .pm-variant2-price-main {
        font-size: 20px;
    }
}

/* ========================================
   PERFECT POPUP REDESIGN
   Based on Premium E-commerce Design
   Clean, Professional, Modern
   ======================================== */

/* Overlay */
.pm-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999999;
}

/* Container */
.pm-popup-container {
    background: white;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header Sticky */
.pm-popup-header {
    flex-shrink: 0;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pm-popup-header h2 {
    font-size: 11px;
    font-weight: 700;
    color: #3f880b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.pm-popup-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 24px;
    line-height: 1;
    color: #999;
}

.pm-popup-close:hover {
    background: #f5f5f5;
}

/* Scrollable Content */
.pm-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* === MAIN GRID === */
.pm-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* === LEFT SIDE - IMAGE === */
.pm-product-image-side {
    background: #fafafa;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pm-image-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #3f880b;
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pm-image-wrapper {
    max-width: 400px;
    width: 100%;
}

.pm-product-image {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    position: relative;
}

.pm-gallery-img {
    width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
}

.pm-gallery-img.active {
    display: block;
}

.pm-image-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pm-dot {
    width: 8px;
    height: 8px;
    background: #d4d4d4;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    border-radius: 50%;
}

.pm-dot.active {
    background: #3f880b;
    width: 24px;
    border-radius: 4px;
}

/* === RIGHT SIDE - INFO === */
.pm-product-info-side {
    padding: 40px;
    overflow-y: auto;
}

/* TITLE */
.pm-product-title {
    margin-bottom: 24px;
}

.pm-product-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #171717;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.pm-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #737373;
    font-size: 13px;
}

.pm-product-meta svg {
    width: 14px;
    height: 14px;
}

/* PRICE */
.pm-price-section {
    margin-bottom: 32px;
}

.pm-price-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.pm-price-value {
    font-size: 56px;
    font-weight: 700;
    color: #3f880b;
    line-height: 1;
}

.pm-price-currency {
    font-size: 28px;
    font-weight: 600;
    color: #3f880b;
}

.pm-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(63, 136, 11, 0.1);
    padding: 10px 16px;
}

.pm-price-badge svg {
    width: 16px;
    height: 16px;
    stroke: #3f880b;
    stroke-width: 2.5;
    fill: none;
}

.pm-price-badge span {
    font-size: 12px;
    font-weight: 600;
    color: #3f880b;
}

/* STATS CARDS */
.pm-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.pm-stat-card {
    background: #fafafa;
    padding: 16px;
    text-align: center;
}

.pm-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 4px;
}

.pm-stat-label {
    font-size: 11px;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FEATURES */
.pm-features-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e5e5;
}

.pm-features-title {
    font-size: 11px;
    font-weight: 700;
    color: #171717;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pm-features-list {
    font-size: 13px;
    color: #404040;
    line-height: 1.7;
}

.pm-features-list table {
    width: 100%;
    border-collapse: collapse;
}

.pm-features-list td {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pm-features-list tr:last-child td {
    border-bottom: none;
}

.pm-features-list .aura-product-info-cell-bold {
    font-weight: 500;
    color: #171717;
    width: 40%;
}

.pm-features-list .aura-product-info-cell {
    color: #404040;
}

/* CTA BUTTON */
.pm-btn-add-cart {
    width: 100%;
    background: #3f880b;
    color: white;
    border: none;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pm-btn-add-cart:hover {
    background: #2f6808;
}

/* === BENEFITS SECTION === */
.pm-benefits-section {
    background: #fafafa;
    padding: 48px 40px;
    border-top: 1px solid #e5e5e5;
}

.pm-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #171717;
    text-align: center;
    margin: 0 0 32px 0;
}

.pm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 0 auto;
}

.pm-benefit-item {
    text-align: center;
}

.pm-benefit-icon {
    width: 64px;
    height: 64px;
    background: rgba(63, 136, 11, 0.1);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-benefit-icon svg {
    width: 32px;
    height: 32px;
    stroke: #3f880b;
    stroke-width: 2;
    fill: none;
}

.pm-benefit-title {
    font-size: 13px;
    font-weight: 600;
    color: #171717;
    line-height: 1.4;
}

/* === DETAILS SECTION === */
.pm-details-section {
    padding: 48px 40px;
    border-top: 1px solid #e5e5e5;
}

.pm-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pm-detail-block {
    background: #fafafa;
    padding: 24px;
}

.pm-detail-block h3 {
    font-size: 14px;
    font-weight: 700;
    color: #171717;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3f880b;
}

.pm-detail-content {
    font-size: 13px;
    color: #404040;
    line-height: 1.7;
}

.pm-detail-content p {
    margin: 0 0 8px 0;
}

.pm-detail-content p:last-child {
    margin-bottom: 0;
}

.pm-detail-content ul {
    padding-left: 16px;
    margin: 8px 0 0 0;
}

.pm-detail-content li {
    margin-bottom: 4px;
}

/* === LOADING === */
.pm-simple-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.pm-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e5e5;
    border-top-color: #3f880b;
    border-radius: 50%;
    animation: pmSpin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes pmSpin {
    to { transform: rotate(360deg); }
}

.pm-simple-loader p {
    color: #666666;
    font-size: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .pm-popup-container {
        max-width: 95%;
    }
}

@media (max-width: 1024px) {
    .pm-product-grid {
        grid-template-columns: 1fr;
    }

    .pm-product-image-side,
    .pm-product-info-side {
        padding: 32px;
    }

    .pm-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .pm-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .pm-popup-header {
        padding: 12px 16px;
    }

    .pm-popup-header h2 {
        font-size: 10px;
    }

    .pm-product-image-side,
    .pm-product-info-side,
    .pm-benefits-section,
    .pm-details-section {
        padding: 24px;
    }

    .pm-product-title h1 {
        font-size: 20px;
    }

    .pm-price-value {
        font-size: 48px;
    }

    .pm-price-currency {
        font-size: 24px;
    }

    .pm-section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .pm-benefits-grid,
    .pm-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pm-detail-block {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .pm-popup-container {
        height: 95vh;
        max-width: 100%;
    }

    .pm-popup-header {
        padding: 10px 12px;
    }

    .pm-product-image-side {
        padding: 20px;
    }

    .pm-image-badge {
        font-size: 9px;
        padding: 6px 12px;
    }

    .pm-product-image {
        padding: 20px;
        min-height: 300px;
    }

    .pm-product-info-side {
        padding: 20px;
    }

    .pm-product-title {
        margin-bottom: 20px;
    }

    .pm-product-title h1 {
        font-size: 18px;
    }

    .pm-price-section {
        margin-bottom: 24px;
    }

    .pm-price-value {
        font-size: 42px;
    }

    .pm-price-currency {
        font-size: 20px;
    }

    .pm-stats-grid {
        gap: 8px;
    }

    .pm-stat-card {
        padding: 12px;
    }

    .pm-stat-value {
        font-size: 18px;
    }

    .pm-stat-label {
        font-size: 10px;
    }

    .pm-features-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .pm-features-title {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .pm-features-list {
        font-size: 12px;
    }

    .pm-btn-add-cart {
        padding: 14px;
        font-size: 13px;
    }

    .pm-benefits-section,
    .pm-details-section {
        padding: 24px 16px;
    }

    .pm-section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .pm-benefit-icon {
        width: 56px;
        height: 56px;
    }

    .pm-benefit-icon svg {
        width: 28px;
        height: 28px;
    }

    .pm-benefit-title {
        font-size: 12px;
    }

    .pm-detail-block {
        padding: 16px;
    }

    .pm-detail-block h3 {
        font-size: 13px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .pm-detail-content {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pm-stats-grid {
        gap: 6px;
    }

    .pm-stat-card {
        padding: 10px;
    }

    .pm-stat-value {
        font-size: 16px;
    }

    .pm-price-badge {
        padding: 8px 12px;
    }

    .pm-price-badge span {
        font-size: 11px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .pm-popup-container {
        height: 98vh;
    }

    .pm-popup-header {
        padding: 8px 12px;
    }

    .pm-product-image-side,
    .pm-product-info-side,
    .pm-benefits-section,
    .pm-details-section {
        padding: 16px;
    }

    .pm-section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

/* ===== PROTOKÓŁ OPIS - PROFESJONALNY WYGLĄD ===== */
.protokol-description {
    font-family: inherit;
    line-height: 1.7;
    color: #333;
}

.protokol-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.protokol-intro h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #222;
}

.protokol-intro p {
    margin: 0;
    color: #666;
    font-size: 1em;
}

.protokol-product {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.protokol-product:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.protokol-product:last-child {
    margin-bottom: 0;
}

.protokol-product-image {
    flex: 0 0 100px;
}

.protokol-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1;
}

.protokol-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.protokol-phase {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #888;
}

.phase-icon {
    font-size: 1.3em;
    line-height: 1;
}

.phase-name {
    font-weight: 500;
    color: #666;
}

.phase-time {
    color: #999;
}

.phase-time::before {
    content: "•";
    margin-right: 8px;
}

.protokol-product-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.protokol-benefit {
    margin: 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Responsywność dla opisu protokołu */
@media (max-width: 600px) {
    .protokol-product {
        flex-direction: column;
        text-align: center;
    }

    .protokol-product-image {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
    }

    .protokol-product-image img {
        max-width: 120px;
    }

    .protokol-phase {
        justify-content: center;
    }

    .protokol-product-title {
        font-size: 1em;
    }

    .protokol-benefit {
        font-size: 0.9em;
    }
}
