﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInDown 0.8s ease-out;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ecf0f1;
    animation: pulse 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

    .nav-menu a {
        color: #ecf0f1;
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        position: relative;
        overflow: hidden;
    }


        .nav-menu a:hover::before {
            content: '';
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

    .menu-toggle:hover {
        transform: rotate(90deg);
    }

.mobile-nav {
    display: none;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .search-input:focus {
        outline: none;
        border-color: #3498db;
        transform: translateY(-2px);
    }

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        background: linear-gradient(45deg, #2980b9, #3498db);
        transform: translateY(-50%) scale(1.05);
    }

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Introduction Section */
.introduction {
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out;
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

    .introduction::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.05), transparent);
        animation: shimmer 3s infinite;
    }

    .introduction h2 {
        font-size: 2.5rem;
        color: #2c3e50;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
        animation: slideInFromLeft 1s ease-out;
    }

        .introduction h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(45deg, #3498db, #2980b9);
            border-radius: 2px;
            animation: expandWidth 1.5s ease-out;
        }

    .introduction p {
        font-size: 1.2rem;
        color: #666;
        line-height: 1.8;
        max-width: 800px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
        animation: slideInFromRight 1s ease-out 0.3s both;
    }

    .introduction .highlight {
        color: #3498db;
        font-weight: bold;
        text-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
    }

/* Products Section */
.products-section {
    animation: fadeInUp 1.4s ease-out;
}

    .products-section h2 {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2rem;
        color: #2c3e50;
        position: relative;
        animation: slideInFromRight 1s ease-out;
    }

        .products-section h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background: linear-gradient(45deg, #e74c3c, #c0392b);
            border-radius: 2px;
            animation: expandWidth 1.5s ease-out;
        }

.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    display: grid;
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease forwards;
    max-width:250px;
}

    .product-card:hover {
        transform: translateY(-15px) scale(1.03);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

.product-image {
    height: 180px;
    background: linear-gradient(135deg, #f1f2f6, #ddd);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #666;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .product-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s;
    }

.product-card:hover .product-image::before {
    left: 100%;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tag-bestseller {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.tag-sale {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.tag-outofstock {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #3498db;
}

.product-price {
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 0.3rem;
    float:left;
}

.product-unit {
    color: #666;
    font-size: 0.85rem;
    float: right;
    margin-top: 5px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #27ae60, #9b59b6);
        animation: gradientShift 4s ease-in-out infinite;
    }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        color: #ecf0f1;
        position: relative;
        padding-bottom: 0.5rem;
    }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(45deg, #3498db, #2980b9);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

    .footer-section:hover h3::after {
        width: 80px;
    }

    .footer-section p, .footer-section a {
        color: #bdc3c7;
        text-decoration: none;
        line-height: 2;
        margin-bottom: 0.8rem;
        transition: all 0.3s ease;
        display: block;
        position: relative;
        padding-left: 1.5rem;
    }

        .footer-section p::before, .footer-section a::before {
            content: '▶';
            position: absolute;
            left: 0;
            color: #3498db;
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }

        .footer-section a:hover {
            color: #3498db;
            transform: translateX(10px);
            text-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
        }

            .footer-section a:hover::before {
                transform: translateX(5px);
            }

.footer-bottom {
    border-top: 2px solid rgba(52, 152, 219, 0.3);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    background: rgba(0,0,0,0.1);
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

    .footer-bottom p {
        color: #95a5a6;
        font-size: 0.9rem;
        margin: 0;
        position: relative;
    }


/* Company Info Section */
.company-info {
    text-align: center;
    padding: 1rem 0;
}

    .company-info .logo-footer {
        font-size: 2rem;
        font-weight: bold;
        color: #3498db;
        margin-bottom: 1rem;
        text-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
    }

    .company-info .tagline {
        font-style: italic;
        color: #95a5a6;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.social-link {
   
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 15px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a::before {
    content: unset;
}
.social-link svg {
    color: blue;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #27ae60, #9b59b6);
    }

    25% {
        background: linear-gradient(90deg, #e74c3c, #f39c12, #27ae60, #9b59b6, #3498db);
    }

    50% {
        background: linear-gradient(90deg, #f39c12, #27ae60, #9b59b6, #3498db, #e74c3c);
    }

    75% {
        background: linear-gradient(90deg, #27ae60, #9b59b6, #3498db, #e74c3c, #f39c12);
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c3e50, #34495e);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 999;
    }

        .mobile-nav.active {
            display: block;
            animation: slideDown 0.3s ease;
        }

        .mobile-nav ul {
            list-style: none;
            padding: 1rem 0;
        }

        .mobile-nav li {
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

            .mobile-nav li:last-child {
                border-bottom: none;
            }

        .mobile-nav a {
            display: block;
            color: #ecf0f1;
            text-decoration: none;
            padding: 1rem 1.5rem;
            transition: all 0.3s ease;
        }

    .introduction h2 {
        font-size: 2rem;
    }

    .introduction p {
        font-size: 1rem;
    }

    .introduction {
        padding: 2rem 1rem;
    }

    .products-section h2 {
        font-size: 1.5rem;
    }

    .search-input {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 180px;
        font-size: 2rem;
    }

    .product-name {
        font-size: 0.9rem;
        height: 2rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-bottom {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .introduction h2 {
        font-size: 1.5rem;
    }

    .introduction p {
        font-size: 0.9rem;
    }

    .products-section h2 {
        font-size: 1.3rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
    .product-image {
        height: 240px;
    }
    .company-info .logo-footer {
        font-size: 1.5rem;
    }

    .company-info .tagline {
        font-size: 1rem;
    }
    .product-card{
        max-width:100% !important;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.header-container a {
    text-decoration: none;
}
.out-of-stock-label {
    background: red;
    font-weight: bold;
}

.out-of-stock .product-info {
    opacity: 0.6 !important;
}
.hidden{
    display:none;
}
.old-price {
    font-weight: normal;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(0, 0, 0, 0.45);
    color: black;
    margin-right: 8px;
    font-size: 14px;
}
.contact-text svg {
    width: 20px;
}
.product-image img{
    max-width:100%;
}
