:root {
    --primary: #FF9900;
    --primary-dark: #e68a00;
    --secondary: #1a73e8;
    --dark: #121417;
    --darker: #0d0f12;
    --light: #f8f9fa;
    --lighter: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

.dark-mode {
    --primary: #ff8c5a;
    --primary-dark: #ff7842;
    --dark: #e4e6eb;
    --darker: #f0f2f5;
    --light: #1e2128;
    --lighter: #252a32;
    --gray: #a0aec0;
    --light-gray: #2d3340;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    position: relative;
}

body.dark {
    background-color: var(--dark);
    color: var(--light);
}

/* Header Styles */
header {
    background: var(--lighter);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.telegram-link {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.3);
}

.telegram-link i {
    font-size: 1.2rem;
}

/* Dark Mode Toggle */
.toggle-container {
    display: flex;
    align-items: center;
}

.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-moon {
    color: #f1c40f;
}

.fa-sun {
    color: #f39c12;
}

.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.checkbox:checked+.checkbox-label .ball {
    transform: translateX(24px);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    display: inline-block;
    padding: 0 20px;
    background: var(--lighter);
    position: relative;
    z-index: 2;
}

.section-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 1;
}

/* Featured Products */
#featured-product {
    margin-bottom: 50px;
}

.featured-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--lighter);
    transition: var(--transition);
}

.featured-slide {
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 30px;
}

.featured-image {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: contain;
    padding: 20px;
}

.featured-content {
    flex: 1.5;
    padding: 10px;
}

.featured-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.featured-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gray);
}

.featured-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.featured-controls button {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.featured-controls button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.product-item {
    background: var(--lighter);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid var(--light-gray);
}

.product-image img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3,
.product-content p {
    text-align: center;
}

.product-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.4;
    flex-grow: 1;
}

.product-content p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

.share-link {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.share-link:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.18);
}

/* Footer */
footer {
    background: var(--darker);
    color: var(--light);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

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

.disclaimer {
    font-size: 0.9rem;
    max-width: 700px;
    margin: 20px auto 30px;
    color: var(--gray);
    line-height: 1.7;
}

.copyright {
    font-size: 0.85rem;
    color: var(--gray);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Scroll to top button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 99;
}

#scrollToTopBtn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Toast notification */
#toast-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

#toast-popup.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-slide {
        flex-direction: column;
        text-align: center;
    }

    .featured-image {
        max-width: 100%;
    }

    .featured-content {
        padding: 20px 0 0;
    }

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .telegram-link {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .featured-slide {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .featured-content h3 {
        font-size: 1.5rem;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Highlighted product effect */
.highlighted-product {
    box-shadow: 0 0 0 4px var(--primary), 0 12px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary);
    animation: highlight-fade 1.5s;
}

@keyframes highlight-fade {
    0% {
        box-shadow: 0 0 0 8px var(--primary), 0 12px 25px rgba(0, 0, 0, 0.15);
    }

    100% {
        box-shadow: 0 0 0 4px var(--primary), 0 12px 25px rgba(0, 0, 0, 0.15);
    }
}