
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* start */
#to-top{
    width: 30px;
    line-height: 25px;
    background-color: var(--primary);
    border-radius: 3px;
    vertical-align: middle;
    text-align: center;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: none;
}
.mobile-menu-search {
    padding: 10px;
    display: flex;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f5f5f5;
}
.mobile-menu-search .search-input {
    flex: 1;
    padding: 8px;
    border: none;
    background-color: transparent;
    outline: none;
}
.mobile-menu-search #jq-search-btn {
    padding: 8px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .search-input {  
        box-shadow: none;
    }
}
.header-action .fas.fa-search {
    position: absolute;
    right: 15px;
    color: #8914a2;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-action .fas.fa-search:hover {
    color: #4a90e2;
}
.cart-count{
    line-height: 20px;
    position: absolute;
    top: -11px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: var(--secondary);
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}
.side-menu {
    position: fixed;
    top: 0;
    left: -90%;
    width: 90%;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.side-menu.active {
    left: 0;
}

.menu-header {
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: bold;
}

.menu-close {
    margin-left: auto;
    font-size: 20px;
    cursor: pointer;
}

.menu-list {
    list-style: none;
    padding: 10px 0;
}

.menu-item {
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.side-menu .menu-link {
    display: block;
    width: 90%;   
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.side-menu .menu-link:hover {
    background-color: #f9f9f9;
}

.menu-icon {
    margin-right: 10px;
    font-size: 16px;
    color: #666;
}

.menu-arrow {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    transform-origin: center; 
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-arrow.expanded {
    transform: rotate(90deg);
}

.submenu {
    width: 100%;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.submenu.expanded {
    max-height: 1000px;
}

.submenu .menu-link {
    padding-left: 40px;
}

.submenu .submenu .menu-link {
    padding-left: 65px;
}


.content {
    margin-top: 60px;
    padding: 15px;
}

.content h1 {
    font-size: 20px;
    margin-bottom: 15px;
}

.content p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.successful_title{
    color: #58a81e;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 18px; 
    animation: flash 0.5s ease-in-out;
}
@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}
.quantity-control {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    -moz-appearance: textfield;
    outline: none;
    font-size: 12px;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* nodel */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.Pop-up{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    max-width: 600px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    overflow: hidden;
    animation: modalFadeIn 0.5s;
}
.Pop-up .top_header{
    display: flex;
    align-items: center;
    padding: 5px;
    justify-content: end;
}
.Pop-up .products_box{
  padding: 20px;
}
.Pop-up  .box_price .discount_price{
    text-decoration: line-through;
    color: #2a2828;
    font-size: 14px;
}
.Pop-up  .box_price .price{    
    color: #2a2828;
    font-weight: 500;
    font-size: 16px;
    margin-left: 15px;
}
.Pop-up .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}
.Pop-up  .btn  .button{
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 5px;
    margin: 0px 5px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}
.Pop-up select {
    padding: 2px 5px;
    width: 300px;
    height: 2.75rem;
    border: 1px solid #ddd;
    font-size: 12px;
    transition: border-color 0.3s ease;
    box-shadow: inset 0 -1.4em 1em 0 rgba(0, 0, 0, .02);
    outline: none;
}
.Pop-up .sku_code{
    margin-top: 10px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* backdrop-filter: blur(5px); */
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
/* end */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f5f5;
    color: var(--dark);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary);
    color: white;
    padding: 8px 5%;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.top-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    transition: var(--transition);
}

.top-links a:hover {
    color: var(--accent);
}

.header-main {
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.search-container {
    flex: 0 1 500px;
    position: relative;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    position: absolute;
    right: 3px;
    top: 2px;
    background: var(--accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary);
}

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

.header-action {
    margin-left: 20px;
    color: var(--primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.header-action:hover {
    color: var(--secondary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    padding: 0 5%;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.nav-link i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown-menu.level-2 {
    left: 100%;
    top: 0;
    margin-left: -5px;
}

.nav-item:hover > .dropdown-menu,
.dropdown-item:hover + .dropdown-menu,.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    position: relative;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.dropdown-item.has-children::after {
    content: ">";
    position: absolute;
    right: 15px;
    color: var(--gray);
}

/* Hero Section */
.hero {
    height: 300px;
    background: linear-gradient(165deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: white;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero .btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: #c0392b;
}


.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 2.2rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

.categories {
    padding: 0 5% 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.category-card {
    flex: 0 0 calc(20% - 25px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    min-width: 250px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.category-content {
    padding: 20px;
    text-align: center;
}

.category-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.category-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Featured Products */
.featured-products {
    padding: 0 5% 80px;
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.product-card {
    flex: 0 0 calc(20% - 30px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    min-width: 250px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

.product-category {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0px 3px;
}

.quick-buy-btn {
    background: var(--dark);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    width: 100%;
}

.quick-buy-btn:hover {
    background: var(--primary);
}
/* Banner Section */
.banner {
    margin: 0 5% 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1558769132-cb1aedeedd98?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.banner .btn {
    background: white;
    color: var(--primary);
}

.banner .btn:hover {
    background: #f8f9fa;
    color: var(--dark);
}

/* Newsletter Section */
.newsletter {
    background: white;
    padding: 60px 5%;
    text-align: center;
    margin: 0 5% 80px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: var(--gray);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
}

.newsletter-input:focus {
    border-color: var(--accent);
    outline: none;
}

.newsletter-btn {
    padding: 0 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--accent);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 5% 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    flex-wrap: wrap;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .category-card, .product-card {
        flex: 0 0 calc(33.333% - 25px);
    }
}

@media (max-width: 992px) {
    .header-main {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        flex: 0 0 100%;
        margin: 15px 0 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        z-index: 1000;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0;
        display: none;
    }
    
    .nav-item:hover > .dropdown-menu {
        display: block;
    }
    
    .category-card, .product-card {
        flex: 0 0 calc(50% - 25px);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-card, .product-card {
        flex: 0 0 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .newsletter-btn {
        border-radius: 30px;
        padding: 15px;
    }
    
    .banner h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .top-links a {
        margin: 0 8px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}
