/* Global Styles */
:root {
    --primary-color: #e60012; /* Red for food/festive */
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --header-height: 80px;
}

body {
    font-family: "SweiFistLegCJKSC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Header */
.site-header {
    height: var(--header-height);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav {
    height: 100%;
    flex: 1;
    margin-left: 40px;
}

.menu-list {
    display: flex;
    height: 100%;
}

.menu-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.menu-item > a {
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background: #eee;
}

.menu-item:hover > a {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 2px solid var(--primary-color);
}

.menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 10px 0;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #666;
}

.dropdown-content a:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-trigger {
    cursor: pointer;
    padding: 5px;
}

.buy-action {
    display: flex;
    align-items: center;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 5px 15px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.buy-action:hover {
    background: var(--primary-color);
    color: #fff;
}

.cart-icon {
    margin-right: 8px;
    display: flex;
}

/* Carousel */
.home-carousel {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    overflow: hidden;
    background: #f0f0f0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

.carousel-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
}

.carousel-nav button:hover {
    background: rgba(0,0,0,0.6);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Product Showcase */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    text-align: center;
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-img {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

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

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

.product-title {
    font-size: 18px;
    margin: 0;
}

/* Company Intro */
.company-intro {
    padding: 0;
    background: #fff;
}

.intro-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.intro-image {
    flex: 1;
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.intro-content {
    flex: 1;
    font-size: 1.1em;
    color: #555;
    text-align: left;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--light-gray);
}

.intro-content .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.intro-content .section-title::after {
    margin: 15px 0 0;
}

/* News */
.home-news {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
    background-color: #f9f9f9;
}

.news-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    z-index: 0;
}

.news-bg-layer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(230, 0, 18, 0.03);
    border-radius: 50%;
}

.news-bg-layer::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(230, 0, 18, 0.03);
    border-radius: 50%;
}

.news-container {
    position: relative;
    z-index: 1;
    padding-left: 15px; /* Reset padding */
    padding-right: 15px;
}

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

.section-subtitle {
    color: #888;
    font-size: 16px;
    margin-top: -30px;
    margin-bottom: 0;
}

.news-slider-wrapper {
    overflow: hidden;
    margin: 0 -15px;
    padding: 20px 15px; /* Add padding for shadow */
}

.news-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-card {
    flex: 0 0 320px; /* Fixed width cards */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(230, 0, 18, 0.1);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 50px;
    z-index: 2;
}

.news-date-badge .day {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.news-date-badge .month {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-top: 2px;
}

.news-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 18px;
    margin: 0 0 15px;
    line-height: 1.4;
    height: 50px; /* Limit to 2 lines */
    overflow: hidden;
    font-weight: bold;
}

.news-title a {
    color: #333;
    transition: color 0.3s;
}

.news-card:hover .news-title a {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 66px; /* Limit height */
    overflow: hidden;
    flex: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}

.read-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

.news-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none; /* Let clicks pass through container */
    display: flex;
    justify-content: space-between;
    padding: 0 20px; /* Adjust based on container width */
    z-index: 10;
}

.news-nav button {
    width: 50px;
    height: 50px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Re-enable clicks */
}

.news-nav button:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Slogan */
.slogan-section {
    background: url('../img/slogan-bg.jpg') no-repeat center center/cover; /* Placeholder */
    background-attachment: fixed; /* Parallax effect */
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.slogan-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Dark overlay */
}

.slogan-section h2 {
    font-size: 3.5em;
    margin: 0;
    font-weight: 300;
    letter-spacing: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Product Showcase Enhancement */
.product-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-img {
    border-radius: 8px;
    overflow: hidden;
}

.product-title {
    margin-top: 15px;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .news-nav {
        width: 100%;
        left: 0;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .news-nav {
        position: relative;
        top: auto;
        transform: none;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        padding: 0;
    }
    
    .slogan-section h2 {
        font-size: 2em;
    }
}

/* Footer */
.site-footer {
    background: #222;
    color: #aaa;
    padding: 60px 0 20px;
    font-size: 14px;
}

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

.footer-left {
    flex: 0 0 250px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-logo .site-title {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
}

.footer-contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact-info i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.footer-qr img {
    width: 100px;
    height: 100px;
    margin-top: 10px;
    background: #fff;
    padding: 5px;
}

.footer-right {
    flex: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .main-nav {
        order: 3;
        width: 100%;
        margin: 0;
        display: none; /* Mobile menu hidden for now */
    }
    .footer-container {
        flex-direction: column;
    }
    .footer-left {
        flex: auto;
        text-align: center;
    }
    .footer-contact-info p {
        justify-content: center;
    }
    .footer-qr {
        display: flex;
        justify-content: center;
    }
    .intro-wrapper {
        flex-direction: column;
    }
    .intro-image {
        height: 250px;
        width: 100%;
        min-height: auto;
    }
    .intro-content {
        padding: 40px 20px;
    }
    .news-container {
        padding-left: 15px;
    }
    .news-nav {
        left: 15px;
    }
}
