/* HEAVY LOGIC - FULL STYLESHEET 
   Design: Industrial Cyberpunk / Engineering Style
*/

:root {
    font-size: clamp(16px, 0.8vw + 12px, 24px); 
}

body {
    line-height: 1.6;
    background-color: #0a0a0a;
}

.container, header, .catalog-section, .services-section, .contact-section, .blog-section {
    max-width: 1600px; 
    margin: 0 auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

@media (min-width: 1600px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 5rem; 
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f0f0f; 
    color: #e0e0e0;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

.logo, h1, h2, h3, .price, .cart-total {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #1a1a1a;
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
}

.logo span {
    color: #00d2ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

nav a {
    color: #cccccc;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

nav a:hover {
    color: #00d2ff;
    border-bottom: 2px solid #00d2ff;
}

.hero {
    text-align: center;
    padding: 120px 20px;
    background: radial-gradient(circle at center, #1e1e1e 0%, #0f0f0f 100%);
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 25px;
    color: #fff;
}

.hero p {
    font-size: 20px;
    color: #888;
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn {
    background-color: #00d2ff;
    color: #0a0a0a;
    padding: 16px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn:hover {
    background-color: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.catalog-section, .services-section, .contact-section, .blog-section {
    padding: 100px 20px;
    text-align: center;
    max-width: 1200px; 
    margin: 0 auto;    
}

.grid, .services-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.product-card, .service-card, .blog-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.product-card:hover, .blog-card:hover {
    border-color: #00d2ff;
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.1);
}

.image-placeholder {
    width: 100%;
    height: 220px;
    background-color: #252525;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    border: 1px solid #2a2a2a;
}

.product-card h3, .blog-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: #fff;
}

.product-card p, .blog-card p {
    color: #999;
    font-size: 15px;
    margin-bottom: 20px;
    min-height: 45px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
}

.buy-btn {
    background-color: transparent;
    color: #00d2ff;
    border: 1px solid #00d2ff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background-color: #00d2ff;
    color: #0f0f0f;
}

.checkout-input {
    width: 100%;
    padding: 14px 18px;
    background-color: #121212;
    border: 1px solid #333; 
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.checkout-input:focus {
    border-color: #00d2ff;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
    background-color: #181818;
}

.floating-cart {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #00d2ff;
    color: #0a0a0a;
    padding: 18px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
}

.floating-cart:hover {
    transform: scale(1.08) translateY(-5px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5vh auto;
    padding: 40px;
    width: 90%;
    max-width: 550px;
    border-radius: 16px;
    border: 1px solid #00d2ff;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #2a2a2a;
}

.cart-total {
    margin-top: 30px;
    font-size: 22px;
    text-align: right;
    color: #fff;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
    border: 2px solid #0f0f0f;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d2ff;
}

.admin-wrap {
    padding: 50px 5%;
}

.admin-form {
    background-color: #1a1a1a;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #00d2ff;
    margin-bottom: 40px;
}

.m-item {
    background-color: #141414;
    padding: 15px 20px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-content .logo {
    display: inline-block;
    margin-bottom: 10px;
}

.footer-content p {
    color: #777;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    nav a {
        margin-left: 0;
        font-size: 13px; 
    }

    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }

    .catalog-section, .services-section, .contact-section, .blog-section, .admin-wrap {
        padding: 60px 15px;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .buy-btn {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 2vh auto;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cart-item > div {
        width: 100%;
        text-align: left !important;
    }
    
    .floating-cart {
        bottom: 20px;
        right: 20px;
        padding: 15px 20px;
        font-size: 14px;
    }
}

.loader-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.cyber-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    border: 3px solid transparent;
    border-top-color: #00d2ff;
    border-bottom-color: #00d2ff;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.cyber-spinner::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 3px solid transparent;
    border-left-color: #00d2ff;
    border-right-color: #00d2ff;
    border-radius: 50%;
    animation: spin-reverse 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.loader-text {
    color: #00d2ff;
    margin-top: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    animation: pulse-text 1.5s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(0, 210, 255, 0.8); }
    50% { opacity: 0.3; text-shadow: none; }
}

.carousel-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    background: #1a1a1a;
}
.carousel-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 18, 0.7);
    color: #00d2ff;
    border: 1px solid #00d2ff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}
.carousel-btn:hover { background: #00d2ff; color: #121212; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
}
.dot.active { background: #00d2ff; box-shadow: 0 0 8px #00d2ff; }
.toast-container {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #121212;
    border: 1px solid #00d2ff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(0, 210, 255, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Roboto', sans-serif;
    pointer-events: none;
}

.toast-container.show {
    bottom: 40px;
}

.toast-icon {
    background: #00d2ff;
    color: #121212;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

@media (min-width: 1440px) {
    header {
    width: 100vw !important; 
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important; 
    margin-right: -50vw !important;
    
    padding: 30px 5% !important; 
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
}
    .logo { font-size: 42px !important; }
    nav a { font-size: 20px !important; margin-left: 50px !important; }

    .product-card h3 { 
        font-size: 28px !important; 
        margin-bottom: 15px; 
    }
    .product-card p { 
        font-size: 19px !important; 
        line-height: 1.6 !important; 
        margin-bottom: 25px !important;
    }
    .price { font-size: 26px !important; }

    .services-section {
        max-width: 1600px !important;
        margin: 0 auto !important;
        text-align: left;
    }

    .service-card, .services-item {
        padding: 40px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .services-section h2 { 
        font-size: 48px !important; 
        margin-bottom: 50px !important;
        text-align: left; 
    }

    .service-card h3 { font-size: 30px !important; }
    .service-card p { font-size: 20px !important; line-height: 1.7; }
    .hero h1 { font-size: 90px !important; }
    .hero p { font-size: 24px !important; max-width: 900px; }

}

.site-footer {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;    
    gap: 10px;              
    padding: 60px 20px;
}

.site-footer .logo {
    margin: 0 !important;   
    padding: 0 !important;
    display: inline-block;
    text-indent: 2px;       
}

.site-footer .logo span {
    margin-left: 5px;       
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn {
    width: 32px !important;       
    height: 32px !important;      
    display: flex !important;
    align-items: center;         
    justify-content: center;      
    padding: 0 !important;        
    
    background: #1a1a1a;         
    color: #00d2ff;              
    border: 1px solid #333;      
    border-radius: 4px;           
    
    font-size: 20px;
    font-family: monospace;       
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #00d2ff;
    color: #000;
    border-color: #00d2ff;
}

.qty-input {
    width: 30px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-content {
    background-color: #0d0d0d !important;
    border: 1px solid #222 !important;
    border-top: 3px solid #00d2ff !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.9), 0 0 30px rgba(0, 210, 255, 0.05) !important;
    padding: clamp(20px, 4vw, 40px) !important; 
    width: 95% !important;
    max-width: 600px !important;
    margin: 5vh auto !important; 
    border-radius: 8px !important;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #777;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 100;
}

.close-modal:hover {
    color: #ff4444;
}

.cart-modal-header {
    background: transparent;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
}

.cart-modal-body {
    padding: 0;
}

.cart-modal-header {
    background: #111;
    padding: 20px 30px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h2 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin: 0;
    letter-spacing: 1px;
}

.cart-modal-close {
    color: #777;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.cart-modal-close:hover {
    color: #ff4444;
}

.cart-modal-body {
    padding: 30px;
}

.cart-table-header {
    display: flex;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
}

.cart-item-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.3s ease;
}

.cart-item-premium:hover {
    background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 1100px) {
    .mobile-grid-fix {
        grid-template-columns: 1fr !important; 
        gap: 30px !important;
    }
    .reviews-col {
        border-right: none !important;
        padding-right: 0 !important;
        order: 3;
    }
}