/* WooCommerce 3D Products Viewer Stiliai - GTV Blast Design */
.wrapper {
    padding-top: 20px!important;
}
	
.wc-3d-products-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wc-3d-products-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
}

/* Produktų sąrašas - kairė pusė */
.wc-3d-products-list {
    flex: 0 0 50%;
    min-width: 0;
    overflow-x: auto;
    background: #ffffff;
}

.wc-3d-products-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.wc-3d-products-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.wc-3d-products-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: none;
}

.wc-3d-products-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

.wc-3d-products-table tbody tr:hover {
    background-color: #f8f9fa;
}

.wc-3d-products-table tbody tr.active {
    background-color: #f1f1f1;
    border-left: 3px solid #393939;
}

.wc-3d-products-table td {
    padding: 4px 8px;
    vertical-align: middle;
    font-size: 14px;
    color: #495057;
}

/* SKU stulpelis */
.wc-3d-products-table td.sku-column {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #868e96;
    font-weight: 500;
}

/* Produkto nuoroda */
.part-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    font-size: 14px;
}

.part-link:hover {
    color: #ee1c25;
    text-decoration: none;
}

.part-link .part-symbol {
    font-size: 16px;
    color: #adb5bd;
    transition: transform 0.2s ease;
}

.part-link:hover .part-symbol {
    transform: scale(1.2);
    color: #ee1c25;
}

/* Mygtukas "Įdėti į krepšelį" - GTV Blast stiliaus */
.add-to-cart-btn {
    background: #ee1c25;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0.3px;
}

.add-to-cart-btn:hover {
    background: #ee1c25;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(64, 192, 87, 0.2);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.add-to-cart-btn.loading {
    position: relative;
    color: transparent;
}

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

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

.add-to-cart-btn.added {
    background: #339af0;
}

/* 3D Viewer - dešinė pusė - GTV Blast stiliaus */
.wc-3d-viewer {
    flex: 0 0 50%;
    min-width: 600px;
    position: sticky;
    top: 20px;
}

.wc-3d-viewer-container {
    width: 100%;
    height: 600px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

/* Verge3D iframe styling */
.wc-3d-viewer-container iframe {
    width: 100%;
    height: 550px;
    border: none;
}

.wc-3d-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 40px;
}

.wc-3d-placeholder p {
    margin: 10px 0;
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
}

.wc-3d-hint {
    font-size: 15px !important;
    opacity: 0.8 !important;
    font-weight: 400 !important;
    line-height: 1.6;
}

.wc-3d-hint-small {
    font-size: 13px !important;
    opacity: 0.7 !important;
    font-weight: 400 !important;
    margin-top: 20px !important;
}

/* Klaidos pranešimas */
.wc-3d-error {
    padding: 16px 20px;
    background: #fff5f5;
    border-left: 4px solid #fa5252;
    color: #c92a2a;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
}

/* Loading state */
.wc-3d-viewer-container.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.8s linear infinite;
}

/* ===============================================
   VIP / Locked View Styles
   =============================================== */

.wc-3d-locked {
    position: relative;
}

.wc-3d-vip-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.wc-3d-lock-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: lockPulse 2s ease-in-out infinite;
}

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

.wc-3d-vip-notice h2 {
    font-size: 32px;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: white;
}

.wc-3d-vip-notice > p {
    font-size: 16px;
    margin: 10px 0;
    opacity: 0.95;
    color: white;
}

.wc-3d-vip-notice a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.wc-3d-vip-notice a:hover {
    opacity: 0.8;
}

.wc-3d-preview-notice {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.wc-3d-preview-notice p {
    font-size: 14px;
    opacity: 0.8;
    color: white;
}

/* Blurred preview */
.wc-3d-blurred {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
    position: relative;
}

.wc-3d-blurred::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.8) 100%);
    pointer-events: none;
}

.part-link-disabled {
    color: #868e96;
    font-weight: 500;
    cursor: not-allowed;
}

.wc-3d-hidden-price {
    font-size: 18px;
    letter-spacing: 2px;
    color: #adb5bd;
}

.wc-3d-locked-viewer {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.wc-3d-lock-icon-large {
    font-size: 120px;
    margin-bottom: 20px;
    animation: lockFloat 3s ease-in-out infinite;
}

@keyframes lockFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* VIP Badge pentru butoane */
.add-to-cart-btn[disabled] {
    background: #868e96 !important;
    cursor: not-allowed !important;
}

/* ===============================================
   Login Form Styles (inline)
   =============================================== */

.wc-3d-login-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wc-3d-login-container h3 {
    margin: 0 0 25px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
    font-weight: 600;
}

#wc-3d-loginform {
    margin: 0;
}

#wc-3d-loginform p {
    margin-bottom: 20px;
}

#wc-3d-loginform label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

#wc-3d-loginform input[type="text"],
#wc-3d-loginform input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#wc-3d-loginform input[type="text"]:focus,
#wc-3d-loginform input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#wc-3d-loginform .login-remember {
    margin-bottom: 20px;
}

#wc-3d-loginform .login-remember label {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}

#wc-3d-loginform #wc-3d-rememberme {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

#wc-3d-loginform #wc-3d-wp-submit {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#wc-3d-loginform #wc-3d-wp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#wc-3d-loginform #wc-3d-wp-submit:active {
    transform: translateY(0);
}

.wc-3d-register-link,
.wc-3d-lost-password {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.wc-3d-register-link a,
.wc-3d-lost-password a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.wc-3d-register-link a:hover,
.wc-3d-lost-password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.wc-3d-no-vip-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 20px 0;
    text-align: center;
}

.wc-3d-contact-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    text-align: center;
}

.wc-3d-contact-info p {
    margin: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.wc-3d-contact-info strong {
    font-size: 15px;
    display: block;
    margin-bottom: 10px;
}

/* ===============================================
   Responsive dizainas
   =============================================== */

@media (max-width: 1200px) {
    .wc-3d-products-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .wc-3d-products-list {
        flex: 1 1 auto;
    }
    
    .wc-3d-viewer {
        position: static;
        min-width: 100%;
        flex: 1 1 auto;
    }
    
    .wc-3d-viewer-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .wc-3d-products-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .wc-3d-products-wrapper {
        gap: 20px;
    }
    
    .wc-3d-products-table {
        font-size: 13px;
    }
    
    .wc-3d-products-table th,
    .wc-3d-products-table td {
        padding: 12px 15px;
    }
    
    .wc-3d-products-table th {
        font-size: 11px;
    }
    
    .add-to-cart-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .wc-3d-viewer-container {
        height: 400px;
    }
    
    .wc-3d-login-container {
        padding: 20px;
        margin: 20px 15px;
    }
    
    .wc-3d-vip-notice {
        padding: 30px 20px;
    }
    
    .wc-3d-vip-notice h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .wc-3d-products-table {
        font-size: 12px;
    }
    
    .wc-3d-products-table th,
    .wc-3d-products-table td {
        padding: 10px 12px;
    }
    
    /* Mažesniuose ekranuose galima paslėpti SKU stulpelį */
    .wc-3d-products-table td.sku-column,
    .wc-3d-products-table th.sku-column {
        display: none;
    }
    
    .part-link {
        font-size: 13px;
    }
    
    .add-to-cart-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    #wc-3d-loginform input[type="text"],
    #wc-3d-loginform input[type="password"] {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ===============================================
   Papildomi GTV Blast stiliaus elementai
   =============================================== */

.wc-3d-products-table tbody tr:last-child {
    border-bottom: none;
}

/* Nr. stulpelio stilius */
.wc-3d-products-table td:first-child {
    font-weight: 600;
    color: #868e96;
    width: 60px;
}

/* Kainos stilius */
.wc-3d-products-table .woocommerce-Price-amount {
    font-weight: 600;
    color: #212529;
    font-size: 15px;
}

.wc-3d-products-table .woocommerce-Price-currencySymbol {
    font-weight: 400;
    margin-left: 2px;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}