/* ==========================================
   Deli Tools Global Style - Complete Design System
   Based on delitoolsglobal.com
   ========================================== */

/* === CSS Variables === */
:root {
    /* Brand Colors */
    --primary-red: #E31E24;
    --dark-red: #C41E3A;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --border-gray: #e0e0e0;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --yellow: #FFD700;
    
    /* Typography */
    --font-primary: 'Arial', 'Helvetica Neue', sans-serif;
    --font-heading: 'Arial Black', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
    --border-radius: 4px;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--medium-gray);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* === Main Header === */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    width: 54px;
    height: 54px;
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.1);
}

.logo h1 {
    display: none; /* 隐藏文字，只显示图标 */
}

/* === Navigation === */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 50px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
    display: block;
}

.main-nav > ul > li > a {
    padding: 15px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* === Dropdown Menu === */
.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--primary-red);
}

.main-nav > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown ul {
    display: block;
    padding: 15px 0;
}

.main-nav .dropdown li {
    margin: 0;
}

.main-nav .dropdown a {
    padding: 12px 25px;
    font-size: 14px;
    color: var(--medium-gray);
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    transition: var(--transition);
}

.main-nav .dropdown a::after {
    display: none;
}

.main-nav .dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-red);
    padding-left: 30px;
}

 


.hero-banner img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    opacity: 0.9;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 1000px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 56px;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

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

.btn-secondary:hover {
    background: var(--dark-gray);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}


/* === Section === */
.section {
    padding: var(--spacing-xl) 0;
}

.section .container .comstats h2{font-size: 56px;}
.section .container .comstats p{font-size: 20px; }

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 42px;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
}

.section-header p {
    font-size: 18px;
    color: var(--light-gray);
    margin-top: var(--spacing-md);
}

/* === Product Categories Carousel === */
.categories-carousel-wrapper {
    position: relative;
    margin-top: var(--spacing-lg);
    padding: 0 60px;
}

.categories-carousel {
    overflow: hidden;
    width: 100%;
}

.categories-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-carousel-track .category-card {
    flex: 0 0 calc((100% - 96px) / 5);
    min-width: calc((100% - 96px) / 5);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-gray);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators .indicator.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.carousel-indicators .indicator:hover:not(.active) {
    border-color: var(--primary-red);
}

/* Category Card Skeleton (Loading State) */
.category-card-skeleton {
    flex: 0 0 calc((100% - 96px) / 5);
    min-width: calc((100% - 96px) / 5);
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-title {
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 80%;
}

.skeleton-button {
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    width: 120px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    color: var(--white);
    z-index: 2;
}

.category-card-content h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: var(--spacing-xs);
}

.category-card-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.category-card-content .btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* === Product Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-image {
    position: relative;
    height: 264px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: var(--spacing-sm);
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xs);
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: var(--dark-gray);
}

.product-title a:hover {
    color: var(--primary-red);
}

.product-code {
    font-size: 13px;
    color: var(--light-gray);
    margin-bottom: var(--spacing-xs);
}

.product-brand {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.product-price {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-red);
}

.price-original {
    font-size: 18px;
    color: var(--light-gray);
    text-decoration: line-through;
}

.btn-view {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

/* === Page Header (Breadcrumb) === */
.page-header {
    background: var(--bg-light);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
}

.page-header h1 {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

.breadcrumb {
    font-size: 14px;
    color: var(--light-gray);
}

.breadcrumb a {
    color: var(--light-gray);
}

.breadcrumb a:hover {
    color: var(--primary-red);
}

.breadcrumb span {
    color: var(--dark-gray);
    font-weight: 600;
}

/* === Sidebar === */
.products-wrapper {
    display: flex;
    gap: var(--spacing-xl);
}

.products-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.filter-box {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.filter-box h3 {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-red);
}

.category-list li {
    margin-bottom: var(--spacing-xs);
}

.category-list a {
    color: var(--medium-gray);
    display: block; 
    transition: var(--transition);
    position: relative;
    padding-left: 20px;
}
 

.category-list a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
}

.category-list a:hover {
    color: var(--primary-red);
    padding-left: 25px;
}

.price-filter li {
    margin-bottom: var(--spacing-xs);
}

.price-filter input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* === Products Content Area === */
.products-content {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-gray);
}

.result-count {
    color: var(--light-gray);
    font-size: 15px;
}

.sort-options select {
    padding: 10px 15px;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--medium-gray);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-options select:hover {
    border-color: var(--primary-red);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-lg);
}

.pagination a,
.pagination strong {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    color: var(--medium-gray);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.pagination strong {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* === Footer === */
.main-footer {
    background: var(--black);
    color: #999;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: flex-start;
}
#footerProductCategories{height: 200px;
    overflow: hidden;}
    
.footer-col:nth-of-type(1) {width: 40%;}
.footer-col:nth-of-type(2) {width: 30%;}
.footer-col:nth-of-type(3) {width: 25%;}
.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-red);
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
    color: #999;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid #333;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* Footer toggle icon (hidden on desktop) */
.footer-toggle {
    display: none;
}

/* Fixed footer bottom bar (mobile only) */
.footer-fixed-bar {
    display: none;
}

/* === Mobile Menu Toggle === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-gray);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === Responsive Design === */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        padding: 0 40px;
    }
    
    .main-header .container {
        padding: 15px 40px;
    }
    
    .categories-carousel-track .category-card,
    .category-card-skeleton {
        flex: 0 0 calc((100% - 96px) / 5);
        min-width: calc((100% - 96px) / 5);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .products-sidebar {
        width: 350px;
    }
}

/* Tablet and Medium Desktop */
@media (max-width: 1024px) {
    .categories-carousel-track .category-card,
    .category-card-skeleton {
        flex: 0 0 calc((100% - 72px) / 4);
        min-width: calc((100% - 72px) / 4);
    }
    
    .categories-carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .products-wrapper {
        flex-direction: column;
    }
    
    .products-sidebar {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    .section .container .comstats h2{font-size: 32px;}
    .section .container .comstats p{font-size: 16px;}
    .main-footer .container{padding-left: 0px;padding-right: 0px;}
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .main-header .container {
        padding: 10px 15px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 80px 0 20px;
    }
    
    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .main-nav > ul > li > a {
        padding: 15px 20px;
        display: block;
    }
    
    /* Dropdown in mobile */
    .main-nav .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: var(--bg-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav > ul > li.active .dropdown {
        max-height: 500px;
    }
    
    .main-nav .dropdown ul {
        padding: 0;
    }
    
    .main-nav .dropdown a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
    }
    
    /* Hero Banner */
    .hero-banner {
        /*height: 350px;*/
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    /* Section */
    .section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    /* Categories Carousel */
    .categories-carousel-track .category-card,
    .category-card-skeleton {
        flex: 0 0 calc((100% - 48px) / 3);
        min-width: calc((100% - 48px) / 3);
    }
    
    .categories-carousel-wrapper {
        padding: 0 45px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .category-card {
        height: 250px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* Page Header */
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    /* Products Header */
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    /* Footer - Mobile Collapsible */
    .main-footer {
        padding: 0; /* Add bottom padding for fixed bar */
    }
    
    body {
        padding-bottom: 71px; /* Prevent footer-fixed-bar from covering content */
    }    
   
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .footer-col {
        border-bottom: 1px solid #333;
    }
    .footer-col:nth-of-type(1) {width:auto}
.footer-col:nth-of-type(2) {width: auto;}
.footer-col:nth-of-type(3) {width: auto;}
    .footer-col h4 {
        margin: 0;
        padding: 15px 20px;
        font-size: 16px;
        cursor: pointer;
        position: relative;
        background: #1a1a1a;
    }
    
    .footer-col h4::after {
        display: none; /* Hide red underline on mobile */
    }
    
    .footer-col h4::before {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: var(--white);
        transition: var(--transition);
    }
    
    .footer-col.active h4::before {
        content: '−'; /* Minus sign when expanded */
    }
    
    .footer-col .footer-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .footer-col.active .footer-content {
        max-height: 800px; /* Adjust based on content */
    }
    
    .footer-col ul {
        padding: 15px 20px;
        margin: 0;
    } 
    .footer-col p {
        padding: 5px 20px;
        margin: 0;
    }
    
    .footer-col ul li a:hover {
        padding-left: 0; /* Remove hover padding on mobile */
        color: var(--primary-red);
    }
    
    /* Hide desktop footer-bottom */
    .footer-bottom {
        display: none;
    }
    
    /* Show fixed footer bar */
    .footer-toggle {
        display: block;
    }
    
    .footer-fixed-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .footer-fixed-content {
        padding: 0px; 
    }
    
    .footer-logo {
        background: var(--primary-red);
        padding: 8px 15px;
        display: inline-block;
        margin-bottom: 10px;
        display: none;
    }
    
    .footer-logo img {
        height: 30px;
        filter: brightness(0) invert(1); /* Make logo white */
    }
    
    .footer-contact-info {
        font-size: 13px;
        color: #666;
        line-height: 1.8;
    }
    
    .footer-contact-info p {
        margin: 3px 0;
        padding: 0;
    }
    
    .footer-contact-info svg,
    .footer-contact-info .icon {
        width: 14px;
        height: 14px;
        vertical-align: middle;
        margin-right: 5px;
    }
    
    .footer-action-bar {
        display: flex;
        justify-content: space-around;
        
    }
    
    .footer-action-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--primary-red);
        color: white;
        padding: 12px 10px;
        border: none;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        font-size: 12px;
    }
    
    .footer-action-btn:not(:last-child) {
        margin-right: 2px;
    }
    
    .footer-action-btn svg,
    .footer-action-btn .icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }
    
    .footer-action-btn:hover {
        background: #a01820;
    }
    
    /* Pagination */
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination strong {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Mobile (480px-768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .categories-carousel-track .category-card,
    .category-card-skeleton {
        flex: 0 0 calc((100% - 24px) / 2);
        min-width: calc((100% - 24px) / 2);
    }
    
    .categories-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .category-card {
        height: 280px;
    }
    
    .category-card-skeleton {
        height: 280px;
    }
}

@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    
    body {
        font-size: 14px;
    }
    
    /* Logo */
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    /* Categories Carousel - Small Mobile */
    .categories-carousel-track .category-card,
    .category-card-skeleton {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .categories-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    
    .carousel-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .category-card {
        height: 250px;
    }
    
    .category-card-skeleton {
        height: 250px;
    }
    
    .carousel-indicators {
        margin-top: 20px;
    }
    
    .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }
    
    /* Hero */
    .hero-banner {
       /* height: 300px;*/
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    /* Section Header */
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Product Card */
    .product-card-content {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .price-current {
        font-size: 24px;
    }
    
    /* Category Card */
    .category-card {
        height: 200px;
    }
    
    .category-card-content h3 {
        font-size: 20px;
    }
}


/**
 * Social Media Links Styles
 * 社交媒体图标样式
 * 参考: https://www.hbfeiao.com/
 */

/* ===== Social Media Links Container ===== */
.social-media-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* ===== Social Icon Styles ===== */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Hover Effects */
.social-icon:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Individual Social Media Colors (Optional) */
.social-icon:nth-child(1):hover {
    /* LinkedIn */
    border-color: #0077B5;
    color: #0077B5;
    background: rgba(0, 119, 181, 0.1);
}

.social-icon:nth-child(2):hover {
    /* Facebook */
    border-color: #1877F2;
    color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.social-icon:nth-child(3):hover {
    /* YouTube */
    border-color: #FF0000;
    color: #FF0000;
    background: rgba(255, 0, 0, 0.1);
}

.social-icon:nth-child(4):hover {
    /* Instagram */
    border-color: #E4405F;
    color: #E4405F;
    background: rgba(228, 64, 95, 0.1);
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1024px) {
    .social-media-links {
        gap: 12px;
        margin-top: 15px;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .social-media-links {
        gap: 10px;
        margin-top: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .social-media-links {
        gap: 8px;
        margin-top: 12px;
        justify-content: flex-start;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .social-icon svg {
        width: 15px;
        height: 15px;
    }
}

/* ===== Alternative Styles ===== */

/* Filled Style */
.social-media-links.filled .social-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.social-media-links.filled .social-icon:hover {
    background: #fff;
    color: #333;
}

/* Larger Icons */
.social-media-links.large .social-icon {
    width: 50px;
    height: 50px;
}

.social-media-links.large .social-icon svg {
    width: 22px;
    height: 22px;
}

/* Squared Icons */
.social-media-links.squared .social-icon {
    border-radius: 8px;
}

/* Colored Background */
.social-media-links.colored .social-icon:nth-child(1) {
    background: #0077B5;
    border-color: #0077B5;
    color: #fff;
}

.social-media-links.colored .social-icon:nth-child(2) {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

.social-media-links.colored .social-icon:nth-child(3) {
    background: #FF0000;
    border-color: #FF0000;
    color: #fff;
}

.social-media-links.colored .social-icon:nth-child(4) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #E4405F;
    color: #fff;
}

.social-media-links.colored .social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== Integration with Footer ===== */
/* Dark Background Adjustments */
.main-footer .social-media-links .social-icon {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.main-footer .social-media-links .social-icon:hover {
    border-color: #fff;
    color: #fff;
}

/* ===== Accessibility ===== */
.social-icon:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.social-icon:focus:not(:focus-visible) {
    outline: none;
}

/* ===== Print Styles ===== */
@media print {
    .social-media-links {
        display: none;
    }
}


/**
 * Global Search Functionality Styles
 * 全文检索功能样式
 * 参考: https://www.delitoolsglobal.com/
 */

/* ===== Search Toggle Button (Header) ===== */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    border-radius: 50%;
}

.search-toggle svg {
    width: 22px;
    height: 22px;
}

.search-toggle:hover {
    background: rgba(227, 30, 36, 0.1);
    color: #E31E24;
    transform: scale(1.1);
}

/* ===== Search Overlay ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Search Container ===== */
.search-container {
    max-width: 1000px;
    width: 90%;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

/* ===== Close Button ===== */
.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-close svg {
    width: 24px;
    height: 24px;
}

.search-close:hover {
    background: #E31E24;
    border-color: #E31E24;
    transform: rotate(90deg);
}

/* ===== Search Form ===== */
.search-form {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-input {
    flex: 1;
    padding: 20px 30px;
    font-size: 18px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-submit {
    width: 60px;
    height: 60px;
    background: #E31E24;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-submit svg {
    width: 24px;
    height: 24px;
}

.search-submit:hover {
    background: #C41E3A;
}

/* ===== Search Suggestions ===== */
.search-suggestions {
    color: #fff;
}

.suggestions-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hot Keywords */
.hot-keywords {
    margin-bottom: 30px;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tags a {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.keyword-tags a:hover {
    background: #E31E24;
    border-color: #E31E24;
    transform: translateY(-2px);
}

/* Auto Suggestions */
.suggestions-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    opacity: 0.6;
    flex-shrink: 0;
}

.suggestion-item span {
    flex: 1;
}

.suggestion-item:hover {
    background: rgba(227, 30, 36, 0.3);
    padding-left: 20px;
}

.suggestion-item:hover .suggestion-icon {
    opacity: 1;
}

/* ===== Responsive Design ===== */
.main-header .main-nav{margin-right: 60px;}

/* Tablet */
@media (max-width: 1024px) {
    .search-container {
        width: 85%;
        padding-top: 80px;
    }
    
    .search-input {
        padding: 18px 25px;
        font-size: 16px;
    }
    
    .search-submit {
        width: 55px;
        height: 55px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .search-toggle {
        width: 36px;
        height: 36px;
        margin-left: 10px;
    }
    
    .search-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .search-overlay {
        padding-top: 60px;
    }
    
    .search-container {
        width: 90%;
    }
    
    .search-close {
        top: -45px;
        width: 40px;
        height: 40px;
    }
    
    .search-close svg {
        width: 20px;
        height: 20px;
    }
    
    .search-input {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .search-submit {
        width: 50px;
        height: 50px;
    }
    
    .search-submit svg {
        width: 20px;
        height: 20px;
    }
    
    .keyword-tags a {
        padding: 6px 15px;
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .search-overlay {
        padding-top: 40px;
    }
    
    .search-close {
        top: -40px;
    }
    
    .search-input {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .search-submit {
        width: 45px;
        height: 45px;
    }
    
    .keyword-tags {
        gap: 8px;
    }
    
    .keyword-tags a {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .suggestion-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ===== Header Integration ===== */
.main-header .container {
    position: relative;
}

.main-header .search-toggle {
    position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .main-header .search-toggle {
        right: 60px;
    }
}

/* ===== Animation ===== */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-overlay.active .search-container {
    animation: slideDown 0.3s ease;
}

/* ===== Accessibility ===== */
.search-toggle:focus,
.search-close:focus,
.search-submit:focus {
    outline: 2px solid #E31E24;
    outline-offset: 2px;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.2);
}

/* ===== Dark Theme Support ===== */
@media (prefers-color-scheme: dark) {
    .search-overlay {
        background: rgba(0, 0, 0, 0.98);
    }
}

/* ===== Print Styles ===== */
@media print {
    .search-toggle,
    .search-overlay {
        display: none;
    }
}

/* ===== Loading State ===== */
.search-input-wrapper.loading .search-submit {
    pointer-events: none;
}

.search-input-wrapper.loading .search-submit svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* === Hero Banner === */
.hero-banner {
    position: relative; 
    background: var(--dark-gray);
    overflow: hidden;
    height: 600px;
}