

/* 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: #2c5530;
    --secondary: #b08968;
    --accent: #e6ccb2;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
}

body {
    background-color: #f9f9f9;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero .btn,.container .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero .btn:hover,.container .btn:hover {
    background-color: #1e3a22;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #9a7556;
}


.top-bar {
    background-color: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
}

.top-bar-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}


.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;  
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    max-width: 100px;
    max-height: 50px;
}

.logo span {
    color: var(--secondary);
}

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

.nav-links li {
    position: relative;
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

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

.nav-links a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.nav-icons {
    display: flex;
    align-items: center;
}

.nav-icons a {
    color: var(--dark);
    margin-left: 20px;
    font-size: 1.2rem;
}

.search-box {
    display: flex;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    align-items: center;
}

.search-box input {
    border: none;
    padding: 8px 15px;
    background: transparent;
    width: 200px;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}


.mega-menu {
    position: absolute;
    left: 0;
    top: 100%;  
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    padding: 20px;
    width: 500px;
}

.nav-links li:hover .mega-menu {
    display: block;
}

.mega-menu-content {
    display: flex;
    /* justify-content: space-between; */
    flex-wrap: wrap;
}

.mega-menu-column {
   width: 50%;
    padding: 0 15px;
}

.mega-menu-column h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--primary);
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: normal;
}

.mega-menu-column ul li a:hover {
    color: var(--primary);
}


.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1493663284031-b7e3aefcae8e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 分类区域 */
.categories {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.category-card {
    width: calc(25% - 30px);
    margin: 0 15px 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img {
    height: 200px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

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

.category-content h3 {
    margin-bottom: 10px;
}


.featured-products {
    padding: 80px 0;
    background-color: #f1f3f5;
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.product-card {
    width: calc(25% - 30px);
    margin: 0 15px 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    margin-bottom: 10px;
}

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

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


.services {
    padding: 80px 0;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.service-card {
    width: calc(25% - 30px);
    margin: 0 15px;
    text-align: center;
    padding: 30px 20px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}



.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 40px;
}

.footer-column {
    width: calc(25% - 30px);
    margin: 0 15px;
}

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

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

@media (max-width: 992px) {
    .category-card, .product-card, .service-card, .footer-column {
        width: calc(50% - 30px);
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .category-card, .product-card, .service-card, .footer-column {
        width: calc(100% - 30px);
    }
    
    .search-box input {
        width: 150px;
    }
}

