/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #00fecc;
    --bg-dark: #0a0a0a;
    --bg-secondary: #151515;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navbar ===== */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), #00c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 254, 204, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top right, rgba(0, 254, 204, 0.05), transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    padding-right: 2rem;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 254, 204, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Search Box */
.search-box {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary-color);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--bg-dark);
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* Filters */
.filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* Carousel */
.hero-carousel {
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    height: 500px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.carousel-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 254, 204, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* ===== Products Section ===== */
.products {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(0, 254, 204, 0.2);
}

.product-image {
    width: 100%;
    height: 280px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-link:hover {
    gap: 0.6rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Container Mobile - ВАЖНО! */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Mobile Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-image {
        height: 30px;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .nav-menu .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 1.5rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .hero-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.8rem;
    }

    /* Search Mobile */
    .search-box {
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .search-box input {
        font-size: 0.9rem;
        padding: 0.75rem 0.8rem;
        width: 100%;
    }

    .search-btn {
        padding: 0.75rem 1rem;
    }

    /* Hide filters on mobile */
    .filters {
        display: none;
    }

    /* Carousel Mobile */
    .carousel-container {
        height: 250px;
        border-radius: 12px;
        width: 100%;
        overflow: hidden;
    }

    .carousel-item {
        padding: 0.5rem;
    }

    .carousel-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 0.3rem;
    }

    .carousel-btn.next {
        right: 0.3rem;
    }

    /* Products Section Mobile */
    .products {
        padding: 3rem 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        word-wrap: break-word;
    }

    .product-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .product-category {
        font-size: 0.75rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .footer-col h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-col p,
    .footer-col li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        line-height: 1.8;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.8rem;
    }

    /* Container Mobile */
    .container {
        padding: 0 1.2rem;
    }

    /* Section Title Mobile */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
    }
}

/* Extra Small Devices (phones < 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1rem;
    }

    .product-image {
        height: 200px;
    }

    .filter-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .carousel-container {
        height: 240px;
    }
}

/* ===== Product Detail Page ===== */

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

.breadcrumbs span:last-child {
    color: var(--text-primary);
}

/* Product Detail Section */
.product-detail {
    padding: 4rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Product Image */
.product-detail-image {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-image-wrapper {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    max-height: 600px;
}

.product-detail-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Product Info */
.product-detail-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-detail-title-en {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.product-detail-description,
.product-detail-features,
.product-detail-specs {
    margin-bottom: 2.5rem;
}

.product-detail-description h3,
.product-detail-features h3,
.product-detail-specs h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-detail-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-detail-features ul {
    list-style: none;
    padding: 0;
}

.product-detail-features li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-detail-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 1rem 0;
    font-size: 1rem;
}

.specs-table td:first-child {
    color: var(--text-secondary);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Action Buttons */
.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.product-detail-actions .btn-order {
    flex: 1;
    max-width: 100%;
}

.btn-order {
    flex: 1;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 254, 204, 0.4);
}

.btn-contact {
    flex: 1;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Delivery Info */
.product-detail-delivery {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.delivery-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
}

.delivery-item:first-child {
    padding-top: 0;
    border-bottom: 1px solid var(--border-color);
}

.delivery-item:last-child {
    padding-bottom: 0;
}

.delivery-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.delivery-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.delivery-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Related Products */
.related-products {
    padding: 3rem 0 5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Back to Catalog */
.back-to-catalog {
    padding: 2rem 0;
    text-align: center;
}

.btn-back {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

/* Responsive for Product Detail */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-image {
        position: relative;
        top: 0;
    }

    .product-detail-title {
        font-size: 2rem;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .breadcrumbs {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Breadcrumbs Mobile */
    .breadcrumbs {
        padding: 0.8rem 0;
        font-size: 0.85rem;
    }

    .breadcrumbs .separator {
        margin: 0 0.3rem;
    }

    /* Product Detail Mobile */
    .product-detail {
        padding: 1.5rem 0;
    }

    .product-detail-grid {
        gap: 1.5rem;
    }

    .product-image-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .product-image-wrapper img {
        max-height: 350px;
    }

    .product-detail-badge {
        top: 1.5rem;
        right: 1.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .product-detail-category {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .product-detail-title {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

    .product-detail-title-en {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .product-detail-description {
        margin-bottom: 2rem;
    }

    .product-detail-description h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .product-detail-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Action Button Mobile */
    .product-detail-actions {
        margin-bottom: 2rem;
    }

    .btn-order {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Related Products Mobile */
    .related-products {
        padding: 2.5rem 0 3rem;
    }

    /* Back Button Mobile */
    .back-to-catalog {
        padding: 1.5rem 0;
    }

    .btn-back {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-detail-title {
        font-size: 1.4rem;
    }

    .product-detail-title-en {
        font-size: 0.9rem;
    }

    .product-detail-description p {
        font-size: 0.9rem;
    }

    .product-image-wrapper {
        padding: 1rem;
    }

    .product-image-wrapper img {
        max-height: 280px;
    }

    .btn-order {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}
