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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    /* Mobile touch improvements */
    min-height: 44px; /* Minimum touch target size */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Remove iOS tap highlight */
    -webkit-user-select: none; /* Prevent text selection */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation; /* Fast tap response */
}

.btn-primary {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.btn-secondary:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
}

.sold-out-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.6;
    min-height: 44px;
    width: 100%;
    display: block;
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h1 {
    color: #8B4513;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8B4513;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B4513;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.nav-mobile span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile menu animation when active */
.nav-mobile.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.nav-mobile.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile menu dropdown */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e9ecef;
    z-index: 999;
}

.nav-menu.active .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.nav-menu.active .nav-link:last-child {
    border-bottom: none;
}

/* Membership Section */
.membership {
    padding: 120px 0;
    background: linear-gradient(135deg, #fdf5e6 0%, #f5f1eb 100%);
}

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

.membership .section-title {
    font-size: 2.5rem;
    color: #3e2723;
    margin-bottom: 15px;
    font-weight: 700;
}

.membership .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.member-info {
    background: linear-gradient(135deg, #fdf5e6 0%, #f5f1eb 100%);
    margin: 0 auto 60px auto;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #deb887;
    max-width: 800px;
}

.member-info p {
    color: #5d4037;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.plans-container {
    max-width: 1000px;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background: #fefefe;
    border-radius: 20px;
    padding: 30px 25px;
    border: 2px solid #deb887;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.plan-basic {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border: none;
}

.plan-premium {
    background: linear-gradient(135deg, #D2691E 0%, #CD853F 100%);
    color: white;
    border: none;
}

.plan-vip {
    background: linear-gradient(135deg, #654321 0%, #8B4513 100%);
    color: white;
    border: none;
}

.plan-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
    background: rgba(255,255,255,0.2);
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-type {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-period {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.5;
}

.plan-features li::before {
    content: "✓";
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.plan-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.plan-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.important-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.important-note p {
    color: #856404;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.disclaimer {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e9ecef;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .membership {
        padding: 80px 0;
    }
    
    .membership .section-title {
        font-size: 2rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-card {
        padding: 25px 20px;
    }
    
    .member-info {
        margin: 0 20px 40px 20px;
        padding: 20px;
    }
    
    .important-note, .disclaimer {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Promotion Section */
.promotion {
    background: linear-gradient(135deg, #6B4423 0%, #8B5A2B 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 80px; /* Account for fixed header height */
    position: relative;
    animation: promotionSlideIn 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(107, 68, 35, 0.3);
    z-index: 1001; /* Higher than header (1000) */
}

@keyframes promotionSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promotion-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1002; /* Even higher to ensure it's clickable */
}

.promotion-close-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.promotion-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Image Promotion Styles */
.promotion-image-content {
    position: relative;
}

.promotion-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
}

.promotion-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 400px;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0; /* Fallback color while loading */
}

.promotion-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

/* Text Promotion Styles */
.promotion-text-content {
    padding: 2rem;
    text-align: center;
}

.promotion-text-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.promotion-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.promotion-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.promotion-description p {
    margin-bottom: 0.8rem;
}

.promotion-cta {
    margin-top: 1.5rem;
}

.promotion-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.promotion-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .promotion {
        padding: 1.5rem 0;
        margin-top: 70px; /* Adjust for smaller header on mobile */
    }
    
    .promotion-close {
        top: 10px;
        right: 10px;
        z-index: 1002;
    }
    
    .promotion-close-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .promotion-title {
        font-size: 1.5rem;
    }
    
    .promotion-description {
        font-size: 1rem;
    }
    
    .promotion-text-content {
        padding: 1.5rem;
    }
    
    .promotion-image-overlay {
        padding: 1.5rem;
    }
    
    .promotion-image {
        min-height: 150px;
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .promotion {
        padding: 1rem 0;
    }
    
    .promotion-title {
        font-size: 1.3rem;
    }
    
    .promotion-description {
        font-size: 0.95rem;
    }
    
    .promotion-text-content {
        padding: 1rem;
    }
    
    .promotion-image-overlay {
        padding: 1rem;
    }
    
    .promotion-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation for hiding promotion */
.promotion.hiding {
    animation: promotionSlideOut 0.4s ease-in forwards;
}

@keyframes promotionSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        padding: 0;
        margin: 0;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8) 0%, rgba(160, 82, 45, 0.6) 100%),
                url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    min-width: 200px;
}

/* Ensure button elements have same styling as links */
.hero-buttons button.btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    cursor: pointer;
    font-family: inherit;
}

.hero-buttons .btn-secondary {
    color: white;
    border-color: white;
}

.hero-buttons .btn-secondary:hover {
    background: white;
    color: #8B4513;
    border-color: white;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* Line Icon */
.line-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Coffee Icon */
.coffee-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products {
    background: #f8f9fa;
}

/* Product Search */
.product-search {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

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

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #8B4513;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #A0522D;
    transform: translateY(-50%) scale(1.1);
}

.search-icon {
    font-size: 14px;
    color: white;
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.category-btn.active,
.category-btn:hover {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
    transform: translateY(-2px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

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

.product-card.sold-out {
    opacity: 0.7;
    filter: grayscale(30%);
}

.product-card.sold-out:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.8);
}

.product-image {
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #8B4513;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.product-sold-out-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 28px;
    font-weight: 500;
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.product-category {
    color: #8B4513;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    position: relative;
}

.product-description.collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
}

.product-description-content {
    display: block;
    overflow: hidden;
    max-height: none;
    transition: max-height 0.3s ease;
}

.product-description.expanded .product-description-content {
    overflow: visible;
}

.product-description-toggle {
    display: none;
    background: none;
    border: none;
    color: #4A2F18; /* more obvious while matching site palette */
    font-weight: 700;
    font-size: 1.35rem;
    padding: 8px 12px;
    min-height: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0.25rem 0 1rem 0;
    transition: color 0.3s ease;
    align-items: center;
    gap: 0.35rem;
}

.product-description-toggle:hover,
.product-description-toggle:focus {
    color: #6B4423;
    outline: none;
}

.product-description-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
    border-radius: 4px;
}

.chevron {
    display: inline-block;
    transition: transform 0.25s ease-in-out;
    font-size: 0.9rem;
    line-height: 1;
}

.chevron.open {
    transform: rotate(180deg);
}

.product-sold-out-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #dc3545;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Rich Product Description Styles */
.product-description p {
    margin-bottom: 0.75rem;
}

.product-description strong {
    font-weight: 600;
    color: #333;
}

.product-description em {
    font-style: italic;
    color: #555;
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-description img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.product-description br {
    line-height: 1.8;
}

/* Product options (size and color selection) */
.product-options {
    margin: 1rem 0 0.5rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #8B4513;
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.option-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #8B4513;
}

.selected-option-display {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.size-color-combinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.combination-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.combination-option:hover {
    border-color: #8B4513;
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.15);
}

.combination-option.selected {
    border-color: #8B4513;
    background: #8B4513;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.combination-option.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.combination-option.unavailable:hover {
    transform: none;
    box-shadow: none;
    border-color: #e0e0e0;
}

.combination-info {
    width: 100%;
}

.combination-details {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.combination-price {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #8B4513;
}

.combination-option.selected .combination-price {
    color: #fff;
}

/* Legacy dropdown styles (kept for backward compatibility) */
.product-size-select,
.product-color-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s;
}

.product-size-select:focus,
.product-color-select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .size-color-combinations {
        grid-template-columns: 1fr;
    }
    
    .combination-option {
        min-height: 50px;
        padding: 0.5rem;
    }
    
    .combination-details {
        font-size: 0.85rem;
    }
    
    .combination-price {
        font-size: 0.9rem;
    }
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8B4513;
}

/* Product Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.product-tag {
    background: #6B4423;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    border: 1px solid #5A3317;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-story p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature h4 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Order Section */
.order {
    background: #f8f9fa;
}

.order-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Member Payment Highlight */
.member-payment-highlight {
    background: white;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.member-payment-highlight::before {
    content: "推薦";
    position: absolute;
    top: -8px;
    right: 8px;
    background: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
}

.member-payment-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

/* Selected state for member payment */
.member-payment-highlight input[type="radio"]:checked + .payment-label {
    background: linear-gradient(135deg, #fff9e6 0%, #ffeb9c 100%);
    border-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.member-payment-highlight input[type="radio"]:checked + .payment-label::after {
    content: "✓";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
}

/* Override general payment checkmark for member payment highlight */
.member-payment-highlight.payment-option:has(input[type="radio"]:checked)::after {
    display: none;
}

/* Pickup Options */
.pickup-info-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.pickup-schedule {
    margin-bottom: 2rem;
}

.pickup-schedule .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pickup-schedule .form-col {
    display: flex;
    flex-direction: column;
}

.pickup-schedule label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.pickup-schedule input, .pickup-schedule select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pickup-schedule small {
    color: #666;
    font-size: 0.85rem;
}

.pickup-payment-methods {
    margin-bottom: 2rem;
}

.pickup-payment-methods h4 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.pickup-address {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.pickup-address h5 {
    margin-bottom: 1rem;
    color: #8B4513;
    font-weight: 600;
}

.pickup-address p {
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.6;
}

.pickup-address p:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8B4513;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.product-selection {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.product-item-info {
    flex: 1;
}

.product-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-item-price {
    color: #8B4513;
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #8B4513;
    background: white;
    color: #8B4513;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #8B4513;
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

/* Payment Methods Styles */
.payment-methods,
.membership-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.payment-option,
.membership-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.payment-option:hover:not(.disabled),
.membership-option:hover {
    border-color: #8b4513;
    background: #faf8f5;
}

.payment-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
}

.payment-option input[type="radio"],
.membership-option input[type="radio"] {
    display: none;
}

.payment-option:has(input[type="radio"]:checked),
.membership-option:has(input[type="radio"]:checked) {
    border-color: #8b4513;
    background: #faf8f5;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

.payment-option:has(input[type="radio"]:checked)::after,
.membership-option:has(input[type="radio"]:checked)::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    width: 100%;
}

.payment-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-info strong {
    font-size: 1rem;
    color: #2c1810;
}

.payment-info small {
    color: #666;
    font-size: 0.85rem;
}

.transfer-info-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.transfer-info-card h4 {
    color: #8b4513;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.bank-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.account-number {
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #8b4513;
}

.transfer-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.transfer-note p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

#accountDigits {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
}

.order-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.summary-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.summary-content {
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.discount-applied {
    color: #6c757d;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    flex-basis: 100%;
    text-align: right;
    margin-top: 0.2rem;
}

.summary-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.8rem;
    background: #e8f5e8;
    border-radius: 8px;
    border: 1px solid #28a745;
}

.discount-label {
    font-weight: 600;
    color: #155724;
}

.discount-amount {
    font-weight: 600;
    color: #155724;
    font-size: 1.1rem;
}

.member-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.member-status.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.member-status.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
}

.member-welcome {
    color: #155724;
    font-weight: 500;
}

.member-info {
    color: #0c5460;
    font-weight: 500;
}

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

.summary-item-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.summary-item-quantity {
    color: #666;
    margin: 0 10px;
    font-size: 0.9rem;
}

.summary-item-price {
    font-weight: 600;
    color: #8B4513;
}

.summary-total {
    border-top: 2px solid #8B4513;
    padding-top: 1rem;
    font-size: 1.2rem;
    text-align: right;
    color: #8B4513;
}

.summary-actions {
    margin-top: 1rem;
    text-align: center;
}

/* Bean List Section */
.bean-list {
    background: #f5f5f5;
    padding: 80px 0;
}

.bean-list-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.bean-list-image-container {
    text-align: center;
}

.bean-list-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.bean-list-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.bean-list-placeholder {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 40px;
    border: 3px solid #8B4513;
}

.placeholder-content h3 {
    color: #8B4513;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
}

.placeholder-content > p {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.placeholder-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.placeholder-info ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.placeholder-info li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.placeholder-info li:before {
    content: "☕";
    position: absolute;
    left: 0;
    color: #8B4513;
}

.contact-note {
    background: #8B4513;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.contact-note strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.image-caption {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.bean-list-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-card .btn {
    width: 100%;
    margin-top: 10px;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-details h4 {
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #666;
    margin-bottom: 1rem;
}

.line-qr-preview {
    margin: 15px 0;
    text-align: center;
}

.line-qr-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #8B4513;
    background: white;
    padding: 5px;
}

.line-qr-crop {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #8B4513;
    margin: 0 auto;
    position: relative;
}

.cropped-qr-image {
    width: 240px; /* Double the container width to show both QR codes */
    height: auto;
    position: relative;
    left: -10px; /* Adjust to center the LEFT QR code (LINE) */
    top: -120px; /* Adjust to show the QR code area */
    object-fit: cover;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    border: 2px solid #8B4513;
}

.qr-placeholder .qr-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.qr-placeholder p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: white !important;
}

.qr-placeholder small {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 5px;
}

.map-link {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
}

.map-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #ccc;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8B4513;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

.website-credit {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    font-size: 0.85rem;
}

.version-info {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #666;
    opacity: 0.8;
}

.version-info p {
    margin: 0;
}

.creator-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.creator-link:hover {
    color: #f4e27c;
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.modal-close:hover {
    color: #333;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-icon.success {
    color: #28a745;
}

.modal-icon.error {
    color: #dc3545;
}

/* Image Modal */
.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px;
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-caption {
    text-align: center;
}

.modal-caption h3 {
    color: #8B4513;
    margin-bottom: 10px;
}

.modal-caption p {
    color: #666;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    max-width: 150px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-mobile {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-card {
        width: 100%;
        max-width: none;
        min-height: 420px;
        box-sizing: border-box;
    }
    
    /* Mobile search bar adjustments */
    .search-container {
        max-width: 350px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 45px 10px 14px;
    }
    
    .search-btn {
        width: 32px;
        height: 32px;
        right: 6px;
    }
    
    .search-icon {
        font-size: 12px;
    }
    
    /* Tablet product image improvements */
    .product-image {
        height: 160px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #f8f9fa;
        border: 1px solid #e0e0e0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-form-container {
        padding: 2rem 1rem;
    }
    
    .pickup-schedule .form-row {
        grid-template-columns: 1fr;
    }
    
    .pickup-info-section {
        padding: 1.5rem;
    }
    
    .pickup-address {
        padding: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .product-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .quantity-control {
        justify-content: center;
    }
    
    .bean-list-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bean-list-image {
        max-width: 100%;
    }
    
    .bean-list-placeholder {
        padding: 25px;
    }
    
    .placeholder-content h3 {
        font-size: 1.5rem;
    }
    
    .placeholder-content > p {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .image-modal-content {
        max-width: 95vw;
        padding: 15px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        max-width: none;
    }
    

}

/* New Products Section Styles */
.new-products {
    background: linear-gradient(135deg, #2c1810, #4a3024);
    color: white;
}

.new-products .section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.new-badge {
    background: linear-gradient(45deg, #d4af37, #f4e27c);
    color: #2c1810;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.new-products-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.new-products-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.new-products-image-container:hover {
    transform: translateY(-5px);
}

.new-products-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.new-products-image:hover {
    transform: scale(1.02);
}

.new-products-info {
    display: grid;
    gap: 20px;
}

.info-card.highlight {
    background: linear-gradient(135deg, #d4af37, #f4e27c);
    color: #2c1810;
    border: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.info-card.highlight:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Updated QR Code Styles */
.qr-codes-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.qr-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 300px;
}

.contact-qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

.qr-card-info h4 {
    color: #2c1810;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.qr-card-info p {
    color: #666;
    margin: 5px 0;
    font-size: 0.95rem;
}

.line-qr-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: contain;
    border: 2px solid #e0e0e0;
}

@media (max-width: 768px) {
    .new-products-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .new-products .section-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .new-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .contact-qr-image {
        width: 150px;
        height: 150px;
    }
    
    .qr-card {
        padding: 20px;
        max-width: 280px;
    }
    
    .line-qr-image {
        width: 100px;
        height: 100px;
    }
    
    /* Mobile search bar adjustments */
    .search-container {
        max-width: 280px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 40px 10px 12px;
    }
    
    .search-btn {
        width: 30px;
        height: 30px;
        right: 5px;
    }
    
    .search-icon {
        font-size: 11px;
    }
    
    .payment-methods {
        gap: 12px;
    }
    
    .payment-option {
        padding: 12px;
    }
    
    .payment-label {
        gap: 12px;
    }
    
    .payment-icon {
        font-size: 1.3rem;
        width: 25px;
    }
    
    .transfer-info-card {
        padding: 15px;
    }
    
    .bank-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .product-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .order-form-container {
        padding: 1.5rem 1rem;
    }
    
    .contact-qr-image {
        width: 120px;
        height: 120px;
    }
    
    /* Mobile product image improvements */
    .product-image {
        height: 180px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #f8f9fa;
        border: 1px solid #e0e0e0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        min-height: 420px;
    }
    
    .qr-card {
        padding: 15px;
        max-width: 240px;
    }
    
    /* Floating cart for very small screens */
    .floating-cart {
        bottom: 80px;
        right: 12px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: -4px;
        right: -4px;
    }
    
    /* Hero buttons for very small screens */
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 15px;
        min-width: 160px;
    }
    
    /* Member discount note for very small screens */
    .member-discount-note {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Product Loading States */
.products-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
    position: relative;
}

.products-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #d4af37;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.products-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
    font-size: 1.1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Image Fallback Indicator */
.product-image[data-fallback="true"]::after {
    content: '⚠️';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.7;
}

/* Shopping Cart Styles */
.cart-toggle {
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cart-toggle:hover {
    background: #A0522D;
    transform: translateY(-1px);
}

.cart-modal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-body {
    flex: 1;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-empty p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    color: #8B4513;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-quantity-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-quantity-btn:hover:not(:disabled) {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.cart-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.cart-remove-btn:hover {
    background: #c82333;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding: 20px;
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
}

.cart-total h4 {
    color: #8B4513;
    font-size: 24px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.add-to-cart-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.35rem; /* match .product-description-toggle */
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: #A0522D;
    transform: translateY(-1px);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.order-cart-items {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.empty-cart-message {
    color: #666;
    font-style: italic;
    margin: 0;
}

.order-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.order-cart-item-info {
    flex: 1;
    text-align: left;
}

.order-cart-item-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.order-cart-item-price {
    color: #8B4513;
    font-size: 14px;
}

.order-cart-item-quantity {
    color: #666;
    font-size: 14px;
    min-width: 80px;
    text-align: right;
}

/* Product card add to cart section */
.product-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Product quantity badge on product image */
.product-quantity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    z-index: 3;
    border: 2px solid white;
    animation: pulse-badge 0.6s ease-in-out;
}

@keyframes pulse-badge {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Product quantity controls in product card */
.product-quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Product combinations summary */
.product-combinations-summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.combinations-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.view-combinations-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 8px;
}

.view-combinations-btn:hover {
    background: #A0522D;
    transform: translateY(-1px);
}

/* Combinations Modal */
.combinations-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.combinations-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.combinations-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.combinations-modal-header h3 {
    margin: 0;
    color: #333;
}

.combinations-modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.combinations-modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
}

.combinations-modal-close:active {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
}

.combinations-modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.combinations-intro {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.combination-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fafafa;
}

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

.combination-details {
    flex: 1;
}

.combination-specs {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.combination-price {
    color: #8B4513;
    font-weight: 600;
}

.combination-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.combination-quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.combo-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.combo-qty-btn:hover:not(:disabled) {
    background: #f0f0f0;
}

.combo-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.combo-qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.combo-remove-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
}

.combo-remove-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.combinations-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    text-align: right;
}

.complete-combinations-btn {
    padding: 0.75rem 1.5rem;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.complete-combinations-btn:hover {
    background: #A0522D;
}

.complete-combinations-btn:active {
    background: #654321;
    transform: scale(0.98);
}

/* Add combinations section in modal */
.add-combinations-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.add-combinations-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.available-combinations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-combination-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
    gap: 1rem;
}

.modal-combination-option:hover {
    border-color: #8B4513;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.1);
}

.modal-combination-info {
    flex: 1;
}

.modal-combination-details {
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.modal-combination-price {
    color: #8B4513;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-add-combination-btn {
    padding: 0.5rem 1rem;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
}

.modal-add-combination-btn:hover {
    background: #A0522D;
    transform: translateY(-1px);
}

.modal-add-combination-btn:active {
    background: #654321;
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .combinations-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .combination-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .combination-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .modal-combination-option {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .modal-combination-info {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .modal-add-combination-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .combo-remove-btn {
        min-width: 100px;
        padding: 0.6rem 1rem;
    }
    
    .view-combinations-btn {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .product-combinations-summary {
        gap: 15px;
        padding: 15px;
    }
}

.product-qty-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
    color: #333;
}

.product-qty-btn:hover:not(:disabled) {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
    transform: translateY(-1px);
}

.product-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.product-qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #8B4513;
}

.remove-from-cart-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.remove-from-cart-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Responsive cart styles */
@media (max-width: 768px) {
    .cart-toggle {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .cart-modal .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .nav-menu.active .cart-toggle {
        margin: 10px 20px;
        align-self: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Hide back-to-top on desktop by default */
@media (min-width: 769px) {
    .back-to-top {
        display: none;
    }
}

/* Show back-to-top on mobile and tablet */
@media (max-width: 768px) {
    .back-to-top {
        display: block;
    }
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 80px; /* Above the back-to-top button */
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #8B4513;
    border: 3px solid #8B4513;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.floating-cart:hover {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-cart:active {
    transform: translateY(0);
}

.floating-cart .cart-icon {
    display: block;
    font-size: 24px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    min-width: 22px;
}

.cart-badge.hidden {
    display: none;
}

/* Show floating cart only on mobile */
@media (max-width: 768px) {
    .floating-cart {
        display: block;
    }
    
    /* Hide cart toggle from mobile menu */
    .nav-menu.active .cart-toggle {
        display: none;
    }
    
    /* Adjust floating cart position for smaller screens */
    .floating-cart {
        bottom: 90px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    /* Adjust member discount note for mobile */
    .member-discount-note {
        margin: 15px 0;
        padding: 10px 12px;
        font-size: 13px;
        gap: 10px;
    }
    
    .line-official-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Adjust hero buttons for mobile */
    .hero-buttons .btn {
        padding: 14px 28px;
        font-size: 16px;
        min-width: 180px;
    }
}

/* Member Discount Note */
.member-discount-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.member-discount-note p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.line-official-btn {
    background: #06c755;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.line-official-btn:hover {
    background: #05b04d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.line-official-btn .line-icon {
    font-size: 1rem;
}

/* Delivery Payment Methods */
.delivery-payment-methods {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.delivery-payment-methods h4 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sub-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

/* LINE Pay Logo not used for now */
.payment-icon img {
    height: 30px;
    width: auto;
}

.linepay-logo {
    height: 90px;
    width: 90px;
    margin-right: 10px;
    vertical-align: middle;
}

.delivery-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.delivery-note p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Delivery Information Section */
.delivery-info-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.delivery-info-section h4 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.form-row {
    margin-bottom: 15px;
}

.form-col {
    width: 100%;
}

.same-as-above {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.same-as-above input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.same-as-above label {
    margin: 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* Invoice Section */
.invoice-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.invoice-section h4 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.invoice-section h5 {
    color: #8B4513;
    margin: 20px 0 15px 0;
    font-size: 1rem;
}

.invoice-options {
    margin-bottom: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-option label {
    margin: 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-option label {
    margin: 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

/* Responsive adjustments for delivery forms */
@media (max-width: 768px) {
    .delivery-payment-methods,
    .delivery-info-section,
    .invoice-section {
        padding: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .sub-payment-methods .payment-option {
        padding: 12px;
    }
    
    .checkbox-option {
        align-items: flex-start;
    }
    
    /* Mobile button improvements */
    .btn {
        min-height: 48px; /* Minimum touch target size */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Remove iOS tap highlight */
        -webkit-user-select: none; /* Prevent text selection */
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation; /* Fast tap response */
    }
    
    .btn-large {
        min-height: 56px; /* Larger touch target for primary actions */
        width: 100%;
        font-size: 16px; /* Prevents iOS zoom */
        font-weight: 600;
    }
    
    /* Ensure submit button is fully clickable */
    .btn:active {
        background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
        transform: translateY(1px);
    }
}

/* LINE Pay QR Code Styles */
.linepay-qr-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #00c300 0%, #00a000 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 195, 0, 0.2);
    animation: fadeInUp 0.3s ease-out;
}

.linepay-qr-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.linepay-qr-container h4 {
    color: #00c300;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.qr-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.linepay-qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.linepay-qr-code:hover {
    transform: scale(1.05);
}

.qr-instruction {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for QR code */
@media (max-width: 768px) {
    .linepay-qr-section {
        margin: 15px 0;
        padding: 15px;
    }
    
    .linepay-qr-container {
        padding: 15px;
    }
    
    .linepay-qr-code {
        max-width: 180px;
    }
    
    .linepay-qr-container h4 {
        font-size: 16px;
    }
    
    .qr-instruction {
        font-size: 13px;
    }
}
