/*
 Theme Name:   Astra Child
 Theme URI:    http://kameros365.lt
 Description:  Child theme for Astra
 Author:       Tomas Gum
 Author URI:   http://tkameros365.lt
 Template:     astra
 Version:      1.0.0
*/

/* Čia rašyk savo CSS pakeitimus */


/* Futuristic Product Template */

/**
 * Futuristic Security Camera Product Template Styles
 * 
 * Custom CSS for WooCommerce Single Product Template
 * Theme: Cyber-Tech / Futuristic Design
 * 
 * Import in your theme's main stylesheet or enqueue separately
 */

/* ============================================
   CSS Variables - Easy Customization
   ============================================ */
:root {
    --primary-cyan: #00f0ff;
    --primary-purple: #a855f7;
    --deep-blue: #0a0e27;
    --dark-blue: #131835;
    --accent-green: #00ff88;
    --warning-orange: #ff6b00;
    --text-primary: #e0e7ff;
    --text-secondary: #94a3b8;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-speed: 0.3s;
}

/* ============================================
   Base Styles & Reset
   ============================================ */
.futuristic-product-container * {
    box-sizing: border-box;
}

body.single-product {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #0d1117 50%, var(--dark-blue) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ============================================
   Animated Background Elements
   ============================================ */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glowing orbs background */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-cyan);
    top: -200px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-purple);
    bottom: -150px;
    left: -100px;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

/* ============================================
   Container & Layout
   ============================================ */
.futuristic-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Product Badge
   ============================================ */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-cyan);
    margin-bottom: 30px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.5); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   Product Grid Layout
   ============================================ */
.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ============================================
   Product Gallery (Left Column)
   ============================================ */
.product-gallery {
    position: sticky;
    top: 60px;
}

.main-image-container {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.8), rgba(19, 24, 53, 0.6));
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.main-image-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple), var(--accent-green));
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: -1;
}

.main-image-container:hover::before {
    opacity: 0.3;
    animation: borderRotate 3s linear infinite;
}

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

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-image-container:hover .main-image {
    transform: scale(1.05) rotateY(5deg);
}

/* Hexagon decorations */
.hex-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.hex-1 { 
    top: 20px; 
    right: 20px; 
    animation: hexFloat 4s ease-in-out infinite; 
}

.hex-2 { 
    bottom: 20px; 
    left: 20px; 
    animation: hexFloat 4s ease-in-out infinite 0.5s; 
}

@keyframes hexFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

/* Thumbnail gallery */
.thumbnail-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-cyan) rgba(0, 240, 255, 0.1);
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 10px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid rgba(0, 240, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-speed);
    overflow: hidden;
    background: rgba(13, 17, 23, 0.8);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: scale(1.1);
}

/* ============================================
   Product Info (Right Column)
   ============================================ */
.product-info {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5)); }
}

.product-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   Stats Grid
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Price Section
   ============================================ */
.price-section {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.price,
.price-section .price {
    font-family: 'Orbitron', sans-serif;
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-cyan);
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

/* WooCommerce price overrides */
.price-section .woocommerce-Price-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-cyan);
}

.price-section .woocommerce-Price-currencySymbol {
    font-size: 28px;
}

.price-section del {
    font-size: 24px;
    color: var(--text-secondary);
    margin-left: 15px;
}

.price-section ins {
    text-decoration: none;
}

.savings-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-green);
    color: var(--deep-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    animation: savingsPulse 2s ease-in-out infinite;
}

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

/* ============================================
   Features List
   ============================================ */
.features-list {
    margin-bottom: 40px;
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 240, 255, 0.03);
    border-left: 3px solid var(--primary-cyan);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
}

.feature-item:hover {
    background: rgba(0, 240, 255, 0.08);
    transform: translateX(10px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon::before {
    content: '✓';
    color: var(--deep-blue);
    font-weight: 900;
    font-size: 14px;
}

/* ============================================
   Quantity Selector
   ============================================ */
.quantity-section {
    margin-bottom: 30px;
}

.quantity-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    color: var(--primary-cyan);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.qty-btn:hover {
    background: rgba(0, 240, 255, 0.1);
}

.qty-input {
    width: 60px;
    height: 45px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(0, 240, 255, 0.2);
    border-right: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-primary);
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.qty-input:focus {
    outline: none;
}

/* Hide default WooCommerce quantity input */
.product-info .cart .quantity {
    display: none;
}

/* ============================================
   Action Buttons
   ============================================ */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.action-buttons .cart {
    flex: 1;
}

.btn {
    flex: 1;
    padding: 18px 30px;
    border-radius: var(--border-radius-md);
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.btn-primary,
.single_add_to_cart_button {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple)) !important;
    color: var(--deep-blue) !important;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.btn-primary::before,
.single_add_to_cart_button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.single_add_to_cart_button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover,
.single_add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}

/* ============================================
   Security Badges
   ============================================ */
.security-badges {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.security-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.security-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-weight: 900;
    flex-shrink: 0;
}

/* ============================================
   Tech Specs Accordion
   ============================================ */
.tech-specs {
    margin-top: 50px;
}

.spec-section {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.spec-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-speed);
}

.spec-header:hover {
    background: rgba(0, 240, 255, 0.08);
}

.spec-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.spec-toggle {
    color: var(--primary-cyan);
    font-size: 24px;
    transition: transform var(--transition-speed);
}

.spec-section.active .spec-toggle {
    transform: rotate(45deg);
}

.spec-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out;
}

.spec-section.active .spec-content {
    max-height: 1000px;
}

.spec-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.spec-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.spec-value {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* ============================================
   Out of Stock Notice
   ============================================ */
.out-of-stock-notice {
    padding: 20px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid var(--warning-orange);
    border-radius: var(--border-radius-md);
    text-align: center;
    margin-bottom: 30px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .product-wrapper {
        gap: 60px;
    }
    
    .product-title {
        font-size: 42px;
    }
}

@media (max-width: 968px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price,
    .price-section .woocommerce-Price-amount {
        font-size: 42px;
    }

    .product-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .futuristic-product-container {
        padding: 40px 20px;
    }
    
    .main-image-container {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .security-badges {
        flex-direction: column;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .price,
    .price-section .woocommerce-Price-amount {
        font-size: 36px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .grid-background,
    .orb,
    .product-badge,
    .action-buttons,
    .security-badges {
        display: none;
    }
    
    body.single-product {
        background: white;
        color: black;
    }
    
    .product-title,
    .stat-value,
    .price {
        color: black;
        -webkit-text-fill-color: black;
    }
}