
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');


body, html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}


.main-page {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.main-page::-webkit-scrollbar {
    display: none; 
}

.main-page .container {
    width: 90%;
    margin: 0 auto;
    position: relative;
}


.main-page #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6600, #e65c00);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.main-page .loader {
    width: 60px;
    height: 60px;
    border: 6px solid #fff;
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.main-page .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.9));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 70px; 
    display: flex; 
    align-items: center; 
}

.main-page .navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.main-page .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; 
    width: 90%;
    margin: 0 auto;
}

.main-page .logo {
    font-size: 26px;
    font-weight: 700;
    color: #ff6600;
    text-decoration: none;
    background: linear-gradient(90deg, #ff6600, #e65c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.main-page .logo img {
    width: 100px; 
    height: auto; 
    display: block; 
    max-height: 60px; 
    object-fit: contain; 
}


.main-page .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center; 
}

.main-page .nav-links li {
    margin-left: 25px;
}

.main-page .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.main-page .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #ff6600, #e65c00);
    transition: width 0.3s ease;
}

.main-page .nav-links a:hover {
    color: #ff6600;
}

.main-page .nav-links a:hover::after {
    width: 100%;
}


.main-page .hamburger {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff6600;
    padding: 0; 
}

@media (max-width: 768px) {
    .main-page .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        width: 200px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .main-page .nav-links.active {
        display: flex;
    }

    .main-page .hamburger {
        display: block;
        font-size: 26px;
        background: none;
        border: none;
        cursor: pointer;
        color: #ff6600;
    }
}


.main-page .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.main-page .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/img/hero-bg.jpg') center/cover no-repeat;
    transition: opacity 0.8s ease; 
    opacity: 1;
    z-index: 0;
}

.main-page .hero-background.fade {
    opacity: 0; 
}

.main-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(255,102,0,0.3));
    backdrop-filter: blur(8px);
    z-index: 1;
}

.main-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    z-index: 2;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.main-page .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.main-page .particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

.main-page .hero-content {
    position: relative;
    z-index: 4;
    text-shadow: 0 5px 25px rgba(0,0,0,0.6);
}

.main-page .hero h1 {
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #fff, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.8s ease; 
}

.main-page .hero p {
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 35px;
    transition: opacity 0.8s ease; 
}

.main-page .hero .gradient-btn {
    padding: 15px 45px;
    font-size: 22px;
    background: linear-gradient(45deg, #ff6600, #e65c00, #ff6600);
    background-size: 200% 100%;
    box-shadow: 0 6px 20px rgba(255,102,0,0.6);
    transition: opacity 0.8s ease, transform 0.4s ease, box-shadow 0.4s ease, background-position 0.4s ease; 
}

.main-page .hero .gradient-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(255,102,0,0.8);
    background-position: 100% 0;
}

.main-page .hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(255,102,0,0.2), transparent);
    z-index: 3;
}


.main-page .fade-out {
    opacity: 0;
}

.main-page .fade-in {
    opacity: 1;
    animation: fadeIn 0.8s ease-in;
}

.main-page .fade-in-scale {
    opacity: 1;
    animation: fadeInScale 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.main-page .gradient-btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(45deg, #ff6600, #e65c00, #ff6600);
    background-size: 200% 100%;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.main-page .gradient-btn::after {
    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.4s ease, height 0.4s ease;
}

.main-page .gradient-btn:hover::after {
    width: 200%;
    height: 200%;
}

.main-page .gradient-btn:hover {
    background-position: 100% 0;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 15px rgba(255,102,0,0.5);
}


.main-page .carousel {
    position: relative;
    width: 100%;
    margin: 60px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f9f9f9, #fff);
}

.main-page .carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.main-page .carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 320px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: scale(0.95);
}

.main-page .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.main-page .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-page .carousel-caption {
    position: absolute;
    bottom: 15px;
    left: 25px;
    background: linear-gradient(45deg, rgba(255,102,0,0.9), rgba(230,92,0,0.7));
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.main-page .carousel-prev, .main-page .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #ff6600, #e65c00);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.main-page .carousel-prev:hover, .main-page .carousel-next:hover {
    background: linear-gradient(45deg, #e65c00, #ff6600);
    transform: translateY(-50%) scale(1.1);
}

.main-page .carousel-prev {
    left: 15px;
}

.main-page .carousel-next {
    right: 15px;
}


.main-page .parallax-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.main-page .parallax-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.main-page .sticky-title {
    position: sticky;
    top: 70px;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #ff6600;
    background: linear-gradient(90deg, #ff6600, #e65c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 10;
    padding: 10px 0;
    transition: transform 0.3s ease;
}


.main-page .popular-products {
    background: linear-gradient(135deg, #f9f9f9, #fff);
}

.main-page .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.main-page .product-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.main-page .product-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 12px 30px rgba(255,102,0,0.2);
}

.main-page .product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,102,0,0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.main-page .product-card:hover::before {
    opacity: 1;
}

.main-page .product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.main-page .product-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.main-page .product-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}


.main-page .news-section {
    background: linear-gradient(135deg, #fff, #f9f9f9);
}

.main-page .news-grid {
    display: grid;
    gap: 25px;
    justify-content: center;
    width: 100%;
}

.main-page .news-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.main-page .news-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 30px rgba(255,102,0,0.2);
}

.main-page .news-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,102,0,0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.main-page .news-card:hover::before {
    opacity: 1;
}

.main-page .news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.main-page .news-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.main-page .news-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}


@media (min-width: 900px) {
    .main-page .news-grid { grid-template-columns: repeat(3, minmax(320px, 1fr)); }
    .main-page .news-grid:has(> .news-card:nth-child(1):nth-last-child(1)) { grid-template-columns: 1fr; }
    .main-page .news-grid:has(> .news-card:nth-child(2):nth-last-child(1)) { grid-template-columns: repeat(2, minmax(320px, 1fr)); }
}

@media (min-width: 600px) and (max-width: 899px) {
    .main-page .news-grid { grid-template-columns: repeat(2, minmax(320px, 1fr)); }
    .main-page .news-grid:has(> .news-card:nth-child(1):nth-last-child(1)) { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
    .main-page .news-grid { grid-template-columns: 1fr; }
}

.main-page .social-links {
    margin-top: 12px;
}

.main-page .social-icon {
    font-size: 26px;
    margin: 0 12px;
      text-decoration: none;
    transition: all 0.3s ease;
}

.main-page .social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: #e65c00;
}


.main-page #back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(45deg, #ff6600, #e65c00);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.main-page #back-to-top.visible {
    opacity: 1;
}

.main-page #back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}


@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}



.admin-wrapper {

    display: flex;

    min-height: 100vh;

}





.sidebar {

    width: 250px;

    background-color: #ff6600;

    color: #fff;

    padding: 20px;

    position: fixed;

    top: 0;

    left: 0;

    height: 100%;

    box-shadow: 2px 0 5px rgba(0,0,0,0.1);

}



.sidebar h2 {

    font-size: 24px;

    margin-bottom: 30px;

    text-align: center;

}



.sidebar-menu {

    list-style: none;

    padding: 0;

    margin: 0;

}



.sidebar-menu li {

    margin-bottom: 20px;

}



.sidebar-menu a {

    color: #fff;

    text-decoration: none;

    font-size: 18px;

    display: block;

    padding: 10px;

    border-radius: 5px;

    transition: background-color 0.3s;

}



.sidebar-menu a:hover,

.sidebar-menu a.active {

    background-color: #e65c00;

}





.admin-content {

    margin-left: 250px; 

    flex-grow: 1;

    padding: 20px;

    background-color: #f9f9f9;

}



.admin-content h3 {

    font-size: 24px;

    color: #ff6600;

    margin-bottom: 20px;

}



.admin-content form {

    display: flex;

    flex-direction: column;

    gap: 15px;

    max-width: 600px;

}



.admin-content label {

    font-size: 16px;

    color: #333;

}



.admin-content input,

.admin-content textarea {

    padding: 10px;

    font-size: 16px;

    border: 1px solid #ccc;

    border-radius: 5px;

    width: 100%;

    box-sizing: border-box;

}



.admin-content ul {

    list-style: none;

    padding: 0;

}



.admin-content ul li {

    padding: 10px;

    background-color: #fff;

    margin-bottom: 10px;

    border-radius: 5px;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}



.admin-content ul li a {

    color: #ff6600;

    text-decoration: none;

}



.admin-content ul li a:hover {

    text-decoration: underline;

}


.main-page .footer {
    background: url('/static/img/footer-bg.jpg') center/cover no-repeat; 
    padding: 60px 0 20px;
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.main-page .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(255,102,0,0.3));
    backdrop-filter: blur(8px);
    z-index: 1;
}

.main-page .footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    z-index: 2;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.main-page .footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.main-page .footer-content {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.main-page .footer-section {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.main-page .footer-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-page .footer-section p,
.main-page .footer-section a {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
    text-decoration: none;
}

.main-page .footer-section a:hover {
    color: #ff6600;
}

.main-page .social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.main-page .social-icon {
    font-size: 26px;
    color: #fff;
    transition: all 0.3s ease;
}

.main-page .social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: #ff6600;
}

.main-page .footer-bottom {
    position: relative;
    z-index: 4;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.main-page .footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}


.news-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.news-table th,
.news-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.news-table th {
    background: #ff6600;
    color: #fff;
    font-weight: 600;
}

.news-table tr:hover {
    background-color: #f5f5f5;
}

.news-table a {
    color: #ff6600;
    text-decoration: none;
}

.news-table a:hover {
    text-decoration: underline;
}