/* ========================================
   SINGLE PRODUKT - GALERIA + VIDEO + PLASTIK TEMPLATE
   ======================================== */

/* Product Detail Layout */
.product-detail-container {
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Image Section */
.product-image-section {
    position: sticky;
    top: 100px;
}

.product-main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.product-main-image:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.5),
        0 0 80px rgba(0, 255, 255, 0.2);
}

.product-main-image img.main-image {
    width: 100%;
    height: auto;
    display: block;
}

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

.product-main-image:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

/* Media Buttons */
.media-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.btn-video,
.btn-gallery {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(138, 43, 226, 0.1));
    border: 2px solid #00ffff;
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-video:hover,
.btn-gallery:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(138, 43, 226, 0.2));
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* TEMPLATE PLASTIKU */
.plastic-card-template {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.plastic-card-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1.586/1;
    margin: 0 auto;
    background: linear-gradient(135deg, #0a4f5c 0%, #1a2a6c 100%);
    border-radius: 15px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(138, 43, 226, 0.2);
    overflow: hidden;
    animation: plasticFloat 6s ease-in-out infinite;
}

@keyframes plasticFloat {
    0%, 100% { transform: translateY(0) rotateZ(0deg); }
    50% { transform: translateY(-10px) rotateZ(1deg); }
}

/* Efekt shimmer/holograficzny */
.plastic-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmerMove 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerMove {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Particle effect overlay na plastiku */
.plastic-card-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.3) 0%, transparent 50%);
    animation: particleGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes particleGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Neon border glow */
.plastic-card-frame::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #8a2be2, #00ffff);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.plastic-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.project-design {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    animation: projectPulse 3s ease-in-out infinite;
}

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

.project-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Product Info Section */
.product-info-section {
    color: #fff;
}

.product-title {
    font-size: 42px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    margin-bottom: 20px;
}

.product-price {
    font-size: 32px;
    color: #8a2be2;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    margin-bottom: 30px;
    font-weight: bold;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.product-features {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.product-features h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Order Form */
.order-form-section {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.order-form-section h3 {
    color: #00ffff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #00ffff;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.btn-submit-order {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00ffff, #8a2be2);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
}

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

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#lightboxImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #00ffff;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    color: #00ffff;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    max-width: 90vw;
}

.lightbox-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lightbox-thumb:hover {
    opacity: 1;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

/* ========================================
   VIDEO MODAL
   ======================================== */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.6);
}

#productVideo {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
}

.video-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #8a2be2;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.video-close:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
}

.video-timer {
    text-align: center;
    color: #8a2be2;
    font-size: 18px;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-image-section {
        position: static;
    }
    
    .product-title {
        font-size: 32px;
    }
    
    .product-price {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .media-buttons {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}


/* ========================================
   BACK NAVIGATION BUTTON - DARK NEON STYLE
   ======================================== */

.back-navigation {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.9), rgba(20, 0, 40, 0.9));
    border: 2px solid transparent;
    background-clip: padding-box;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(138, 43, 226, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Animated gradient border */
.btn-back::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #8a2be2, #00ffff, #8a2be2);
    background-size: 300% 300%;
    border-radius: 12px;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
}

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

/* Neon glow effect on hover */
.btn-back::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.4), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn-back:hover::after {
    width: 300px;
    height: 300px;
}

.btn-back:hover {
    transform: translateX(-5px) translateY(-2px);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.6),
        0 0 60px rgba(138, 43, 226, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.btn-back svg {
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.6));
}

.btn-back:hover svg {
    transform: translateX(-5px);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 1));
}

@media (max-width: 768px) {
    .btn-back {
        padding: 10px 18px;
        font-size: 11px;
        letter-spacing: 1px;
    }
}
