/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    background: linear-gradient(to bottom, #fef3c7, #fed7aa);
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: #714c33;
    color: white;
    padding: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    text-align: center;
}

.header-title {
    display: flex;
    align-items: flex-end;  /* Bottom alignment */
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.header-icon {
    font-size: 2.5em;
    line-height: 1;
}

.header-title h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    line-height: 0.8;
}

.header-subtitle {
    color: #fde68a;
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    background-color: transparent;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: inherit;
}

.nav-btn:hover {
    background-color: #92400e;
}

.nav-btn.active {
    background-color: #92400e;
    font-weight: bold;
}

/* Section Styles */
section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    color: #78350f;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    align-items: flex-end;  /* Bottom alignment */
    justify-content: center;
    gap: 10px;
}

.title-icon {
    line-height: 1;
}
.section-description {
    text-align: center;
    color: #374151;
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.hero {
    padding: 60px 20px;
}

/* Products Section Styles */
.products {
    padding: 60px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 25px;
}

.product-brand {
    display: inline-block;
    background-color: #d97706;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.product-name {
    color: #78350f;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-flavor {
    display: inline-block;
    background-color: #fef3c7;
    color: #92400e;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

/* Container for button - centers it horizontally */
.button-container {
    text-align: center;
}

.product-specs {
    background: #fef3c7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.product-specs p {
    font-size: 0.9em;
    color: #374151;
    line-height: 1.8;
}

.product-button {
    display: inline-block;
    background: linear-gradient(to right, #ec4899, #9333ea);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-button:hover {
    background: linear-gradient(to right, #db2777, #7e22ce);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.product-button i {
    margin-right: 8px;
}

/* Purchase Section */
.purchase {
    background-color: white;
    padding: 60px 20px;
}

.icon-cart {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
    color: #78350f;  /* Dark brown - same as your theme */
}

.purchase-button {
    display: block;
    background: linear-gradient(to right, #ec4899, #9333ea);
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    max-width: 400px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.purchase-button:hover {
    background: linear-gradient(to right, #db2777, #7e22ce);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.platform-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 20px;
}

/* About Section */
.about {
    background-color: #fef3c7;
    padding: 60px 20px;
}

.about-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-box:last-child {
    margin-bottom: 0;
}

.about-box p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-box p:last-child {
    margin-bottom: 0;
}

.about-box strong {
    color: #78350f;
}

/* Brand Story Boxes */
.brand-story {
    border-left: 4px solid #d97706;
}

.mevso-story {
    border-left: 4px solid #92400e;
}

.taiwan-info {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 2px solid #d97706;
}

.brand-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fef3c7;
}

.brand-name {
    color: #78350f;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
}

/* Benefits Section */
.benefits {
    padding: 60px 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.benefit-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.benefit-title {
    color: #78350f;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
}

.benefit-text {
    color: #6b7280;
    line-height: 1.6;
}

/* Partners Section */
.partners {
    background-color: white;
    padding: 60px 20px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-card {
    background: #fef3c7;
    padding: 25px;
    border-left: 4px solid #d97706;
    border-radius: 0 12px 12px 0;
}

.partner-title {
    color: #78350f;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.partner-text {
    color: #374151;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #fde68a, #fed7aa);
    padding: 60px 20px;
}

.contact-box {
    background: white;
    border-radius: 16px;
    padding: 50px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-intro {
    text-align: center;
    color: #374151;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    background: #fef3c7;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #78350f;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-details p {
    color: #374151;
    margin-bottom: 5px;
}

.contact-info {
    color: #78350f;
    font-weight: 600;
}

.contact-hours {
    text-align: center;
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 30px;
}

/* Footer Styles */
footer {
    background-color: #714c33;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

footer p:last-child {
    margin-bottom: 0;
}

.footer-subtitle {
    color: #fde68a;
    font-size: 0.9em;
}

/* Utility Classes */
.hidden {
    display: none;
}

.icon-large {
    font-size: 4em;
    text-align: center;
    margin-bottom: 20px;
    color: #714c33;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-title h1 {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 2em;
    }

    .section-description {
        font-size: 1.1em;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 30px 20px;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Responsive Design - REPLACE the entire section at the bottom of your CSS */
@media (max-width: 768px) {
    /* Header fixes for tablet and mobile - keep icon and text side by side */
    .header-title {
        align-items: flex-end;  /* Bottom alignment */
        gap: 10px;
    }
    
    .header-icon {
        font-size: 1.8em;  /* Smaller icon */
    }
    
    .header-title h1 {
        font-size: 1.5em;
        line-height: 0.8;  /* Keep same as desktop for bottom alignment */
    }

    .section-title {
        font-size: 2em;
    }

    .section-description {
        font-size: 1.1em;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 30px 20px;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    /* Header fixes for small phones - keep side by side */
    .header-icon {
        font-size: 1.5em;  /* Even smaller icon for small phones */
    }

    .header-title h1 {
        font-size: 1.2em;  /* Smaller text */
        line-height: 0.8;  /* Keep same as desktop for bottom alignment */
    }

    .section-title {
        font-size: 1.8em;
    }

    .product-image {
        height: 250px;
    }
}
