/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Primary brand colors based on BÜLIO palette */
    --color-primary: #d44d32;       /* Warm orange-red from product */
    --color-primary-hover: #b8371f; /* Deeper red-orange */
    --color-primary-light: #fbece7; /* Light warm-orange background */
    --color-secondary: #f3a88c;     /* Soft peach */
    --color-dark: #3a221d;          /* Coffee brown / dark accent */
    --color-light: #fefcfb;         /* Off-white */
    --color-gray-light: #f0ebe8;    /* Soft gray-beige */
    --color-gray: #8c7e7b;          /* Muted brown-gray */
    --color-success: #2d8a4e;       /* Calm green */
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(58, 34, 29, 0.05);
    --shadow-md: 0 8px 24px rgba(58, 34, 29, 0.08);
    --shadow-lg: 0 16px 40px rgba(58, 34, 29, 0.15);
    
    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Layout */
    --content-max-width: 750px; /* Constraints portrait posters for visual excellence */
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f7f3f0;
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.body-lock {
    overflow: hidden;
    height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(254, 252, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 77, 50, 0.1);
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(254, 252, 251, 0.95);
}

.header-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.product-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.cta-nav {
    background: var(--color-primary);
    color: var(--color-light) !important;
    font-weight: 700;
    padding: 8px 14px;
    box-shadow: 0 4px 10px rgba(212, 77, 50, 0.2);
}

.cta-nav:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-dark);
    cursor: pointer;
    padding: 5px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 55px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(254, 252, 251, 0.98);
    z-index: 99;
    overflow: hidden;
    transition: height 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(212, 77, 50, 0.1);
}

.mobile-nav-overlay.open {
    height: calc(260px);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.mobile-nav-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark);
    padding: 5px 20px;
}

.mobile-cta-nav {
    background: var(--color-primary);
    color: var(--color-light);
    font-weight: 700;
    padding: 10px 30px;
    border-radius: 30px;
}

/* ==========================================================================
   POSTER SECTIONS (MOBILE-FIRST VERTICAL SCROLL)
   ========================================================================== */
main {
    padding-top: 55px; /* Offset for header */
}

.poster-section {
    max-width: var(--content-max-width);
    margin: 0 auto;
    background-color: var(--color-light);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.poster-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   INTERACTIVE CHECKOUT SECTION
   ========================================================================== */
.checkout-section {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 50px 20px 80px;
    background-color: #fff5f2; /* 溫暖的粉橘米色背景，與海報圖片無縫融合 */
    box-shadow: var(--shadow-sm);
}

.checkout-container {
    width: 100%;
}

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

.sub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 24px;
}

/* ==========================================================================
   PRODUCT SELECTION CARD (SINGLE DYNAMIC SELECTOR)
   ========================================================================== */
.product-selection-card {
    display: flex;
    flex-direction: column;
    background: #fffdfb; /* 溫暖的淺粉米色背景 */
    border: 2px solid rgba(212, 77, 50, 0.18); /* 粉橘色細邊框 */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: visible;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    transition: var(--transition);
}

.product-selection-card:hover {
    box-shadow: var(--shadow-md);
}

/* Image Display area */
.product-image-display {
    position: relative;
    width: 100%;
    background: #fdfaf7;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: visible; /* to show the crown on top */
}

.display-img-wrap {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
}

.main-display-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease; /* Fade-in effect */
}

/* Crown positioning styles removed as crown is now embedded inside the badge */

/* Card Badge positioned over image */
.product-image-display .card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-dark);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    z-index: 10;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.product-image-display .card-badge.featured-badge {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 77, 50, 0.3);
    font-size: 0.88rem; /* Slightly larger badge text */
    padding: 7px 14px;
}

.product-image-display .card-badge.featured-badge i.fa-crown {
    color: #ffd700; /* Bright gold crown */
    margin-right: 6px;
    font-size: 1.15rem; /* Make it significantly larger! */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
    animation: badgeCrownPulse 2s ease-in-out infinite alternate;
}

@keyframes badgeCrownPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15) rotate(5deg); }
}

/* Details area on right/bottom */
.product-details-wrap {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Spec Chips Selector */
.spec-selector-section {
    margin-top: 20px;
    margin-bottom: 16px;
    border-top: 1px dashed rgba(212, 77, 50, 0.1);
    border-bottom: 1px dashed rgba(212, 77, 50, 0.1);
    padding: 16px 0;
}

.spec-selector-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #8c7e7b;
    margin-bottom: 12px;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
}

.spec-chips-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.spec-chip {
    border-radius: 12px;
    border: 1.5px solid var(--color-gray-light);
    background-color: #ffffff;
    color: var(--color-dark);
    font-weight: 700;
    padding: 14px 10px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    outline: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    gap: 4px;
}

.spec-chip:hover {
    border-color: rgba(243, 168, 140, 0.5);
    background: #fffdfc;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(212, 77, 50, 0.08);
}

.spec-chip.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 6px 18px rgba(212, 77, 50, 0.12);
}

/* Unique highlight for Recommended/Popular chip (with crown) */
.spec-chip[data-plan="popular"] {
    position: relative;
    border-color: rgba(243, 168, 140, 0.5);
    background: #fffcfb;
}

.spec-chip[data-plan="popular"] .chip-crown-icon {
    color: #e8a800;
    transition: var(--transition);
}

.spec-chip[data-plan="popular"].active {
    border-color: #e8a800;
    color: #4a321a;
    background: linear-gradient(135deg, #fffcf0, #fffae6);
    box-shadow: 0 6px 20px rgba(232, 168, 0, 0.18);
}

.spec-chip[data-plan="popular"].active .chip-crown-icon {
    transform: scale(1.2) rotate(-8deg);
}

/* Dynamic Content block */
.dynamic-details-header {
    margin-bottom: 18px;
}

.dynamic-details-block {
    margin-bottom: 20px;
}

.dynamic-plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4a332e;
    margin-bottom: 4px;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    letter-spacing: 0.5px;
}

.dynamic-plan-spec {
    font-size: 0.9rem;
    color: #8c7e7b;
    margin-bottom: 0;
    font-weight: 700;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
}

.dynamic-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dynamic-features-list li {
    font-size: 0.85rem;
    color: #543d38;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    font-weight: 600;
}

.dynamic-features-list li i {
    color: var(--color-primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Quantity Selector Section */
.quantity-selector-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.quantity-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #8c7e7b;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
}

.quantity-input-wrap {
    display: inline-flex;
    align-items: center;
    background: #fbf8f6;
    border: 1.5px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--color-dark);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

#qty-input {
    width: 44px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--color-gray-light);
    border-right: 1px solid var(--color-gray-light);
    background: #fff;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-dark);
    font-family: 'Outfit', sans-serif;
    outline: none;
    -moz-appearance: textfield;
}

#qty-input::-webkit-outer-spin-button,
#qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Price block */
.dynamic-price-bar-wrap {
    border-top: 1px solid rgba(212, 77, 50, 0.1);
    padding: 16px 0;
    margin-top: auto;
}

.dynamic-price-bar-wrap .card-price-bar {
    border: none;
    padding: 0;
    min-height: auto;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.card-original-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-dark);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    transition: var(--transition);
}

/* Strikethrough on original price when coupon applied */
.coupon-active .card-original-price {
    text-decoration: line-through;
    color: #a39794; /* Muted gray-brown */
    font-size: 1.15rem;
    font-weight: 600;
}

.card-coupon-price {
    display: none; /* Hidden by default */
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--color-primary); /* Bold coral-red */
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    transition: var(--transition);
}

/* When coupon is active, show the coupon price */
.coupon-active .card-coupon-price {
    display: inline-flex;
    align-items: center;
}

/* Add a badge before coupon price to make it super obvious */
.coupon-active .card-coupon-price::before {
    content: "折後價";
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--color-primary);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
}

/* CTA Checkout Button */
.checkout-action-btn {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(212, 77, 50, 0.2);
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
}

.checkout-action-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 77, 50, 0.35);
}

.checkout-action-btn:active {
    transform: translateY(0);
}

/* Image Switching Fade Transition */
.main-display-img.switching {
    opacity: 0.15;
}



/* Form Wrapper & Grid */
.form-wrapper {
    background: #fffdfb;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(212, 77, 50, 0.08);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.form-sec-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-sec-title i {
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.required {
    color: var(--color-primary);
    margin-left: 2px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    background: #faf7f5;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-dark);
    transition: var(--transition);
}

.form-group textarea {
    padding-left: 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-light);
    box-shadow: 0 0 0 3px rgba(212, 77, 50, 0.1);
}

/* Error Messages */
.error-msg {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 4px;
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
    border-color: var(--color-primary);
    background-color: #fff6f4;
}

.form-group.invalid .error-msg {
    display: block;
}

/* Shipping / Payment Radio Cards */
.shipping-options,
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-options {
    grid-template-columns: repeat(3, 1fr);
}

.radio-card {
    background: #faf7f5;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.radio-content i {
    font-size: 1.1rem;
    color: var(--color-gray);
    transition: var(--transition);
}

.radio-content span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gray);
    transition: var(--transition);
}

.radio-card:hover {
    border-color: var(--color-secondary);
}

.radio-card.active {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.radio-card.active .radio-content i {
    color: var(--color-primary);
}

.radio-card.active .radio-content span {
    color: var(--color-primary);
}

/* Dynamic field visibility */
.hidden {
    display: none !important;
}

/* Store Row layout */
.store-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
}

.store-row select {
    padding-left: 14px;
}

/* Credit Card Fields Box */
.credit-card-fields {
    background: #faf7f5;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.card-inputs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-inputs-grid input {
    padding-left: 14px !important;
}

.card-expiry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Order Summary Box */
.order-summary-box {
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px dashed var(--color-secondary);
}

.summary-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.summary-label {
    color: var(--color-gray);
    font-weight: 500;
}

.summary-val {
    font-weight: 700;
    color: var(--color-dark);
    text-align: right;
}

.summary-divider {
    border: none;
    border-top: 1px solid rgba(212, 77, 50, 0.15);
    margin: 12px 0;
}

.total-row {
    align-items: center;
    margin-bottom: 0;
}

.total-row .summary-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-dark);
}

.total-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* Coupon Section */
.coupon-section {
    margin: 0 auto 30px auto;
    max-width: 480px;
    background: #fffdfb;
    border: 1px solid rgba(212, 77, 50, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.coupon-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.coupon-section label i {
    color: var(--color-primary);
    margin-right: 4px;
}

.coupon-input-wrap {
    display: flex;
    gap: 10px;
}

.coupon-input-wrap input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(212, 77, 50, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--color-light);
    color: var(--color-dark);
    transition: all 0.2s ease;
}

.coupon-input-wrap input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 77, 50, 0.1);
}

.coupon-input-wrap button {
    padding: 0 20px;
    background-color: var(--color-dark);
    color: var(--color-light);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coupon-input-wrap button:hover {
    background-color: var(--color-primary);
}

.coupon-message {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.coupon-message.success {
    color: #2e7d32;
}

.coupon-message.error {
    color: #c62828;
}

.coupon-promo-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(212, 77, 50, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
}

.hint-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 77, 50, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(212, 77, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 77, 50, 0);
    }
}

.hint-text {
    font-size: 0.78rem;
    color: var(--color-dark);
    font-weight: 500;
}

.promo-code {
    color: var(--color-primary);
    background: rgba(212, 77, 50, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border: 1px dashed rgba(212, 77, 50, 0.3);
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-code:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Submit Button & Badges */
.submit-order-btn {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(212, 77, 50, 0.25);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.submit-order-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 77, 50, 0.35);
}

.submit-order-btn:active {
    transform: translateY(0);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 16px;
}

.security-badges span {
    font-size: 0.75rem;
    color: var(--color-gray);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.security-badges span i {
    color: var(--color-success);
}

/* ==========================================================================
   INFO TEXT SECTION (FOR SEO & LAYOUT COMPLEMENT)
   ========================================================================== */
.info-section {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff5f2; /* 與下單區背景一致 */
    border-top: 1px solid var(--color-gray-light);
    box-shadow: var(--shadow-sm);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 10px;
}

.info-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.info-icon-wrap i {
    color: var(--color-primary);
    font-size: 1.3rem;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 48px 20px 110px; /* Added breathing space and bottom padding for mobile sticky bar */
    background: var(--color-dark);
    color: #e5dbd9;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.footer-container {
    width: 100%;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    color: #e5dbd9;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 12px;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

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

.footer-links .divider {
    color: #554442;
    font-weight: 300;
}

.footer-info {
    max-width: 650px;
    margin: 0 auto 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: #9c8986;
    line-height: 1.6;
}

.footer-info .info-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-info .info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-info .info-item strong {
    color: #e5dbd9;
    font-weight: 700;
    background: rgba(229, 219, 217, 0.08); /* Soft tag background */
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.footer-info a {
    color: #e5dbd9;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    max-width: 680px;
    margin: 0 auto;
}

.disclaimer {
    font-size: 0.68rem !important;
    color: #8c7976 !important;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
    text-align-last: center;
}

.copyright {
    font-size: 0.72rem;
    color: #9c8986;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   STICKY BOTTOM CTA BAR (MOBILE)
   ========================================================================== */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(254, 252, 251, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 77, 50, 0.15);
    box-shadow: 0 -4px 15px rgba(58, 34, 29, 0.08);
    z-index: 90;
    padding: 12px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-info {
    display: flex;
    flex-direction: column;
}

.sticky-plan-label {
    font-size: 0.75rem;
    color: var(--color-gray);
    font-weight: 600;
}

.sticky-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
}

.sticky-btn {
    background: var(--color-primary);
    color: var(--color-light);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(212, 77, 50, 0.2);
    transition: var(--transition);
}

.sticky-btn:hover {
    background: var(--color-primary-hover);
    transform: scale(1.03);
}

/* ==========================================================================
   SUCCESS MODAL POPUP
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 34, 29, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.success-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2.2rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.order-receipt-box {
    background: #faf7f5;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
    border: 1px solid var(--color-gray-light);
}

.order-receipt-box h4 {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-gray-light);
    padding-bottom: 6px;
}

.receipt-list {
    list-style: none;
}

.receipt-list li {
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--color-dark);
    display: flex;
    justify-content: space-between;
}

.receipt-list li strong {
    color: var(--color-gray);
    font-weight: 600;
}

.highlight-total {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.95rem;
}

.modal-close-btn {
    background: var(--color-dark);
    color: var(--color-light);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.modal-close-btn:hover {
    background: #251310;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 77, 50, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(212, 77, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 77, 50, 0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP & TABLET CONSTRAINTS)
   ========================================================================== */
@media (min-width: 768px) {
    /* Main Layout bounds for visual premium center column */
    .poster-section,
    .checkout-section,
    .info-section,
    .main-footer,
    .header-container,
    .sticky-cta-bar {
        max-width: var(--content-max-width);
    }
    
    .checkout-section {
        border-radius: 0;
    }
    
    .main-footer {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin-top: 30px;
        padding-bottom: 40px; /* Restore regular bottom padding on desktop */
    }

    .sticky-cta-bar {
        left: 50%;
        transform: translate(-50%, 100%);
        width: var(--content-max-width);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        border-left: 1px solid rgba(212, 77, 50, 0.15);
        border-right: 1px solid rgba(212, 77, 50, 0.15);
    }

    .sticky-cta-bar.visible {
        transform: translate(-50%, 0);
    }

    /* Grid layouts */
    /* Product Selection Card Grid Layout */
    .product-selection-card {
        max-width: var(--content-max-width);
        flex-direction: row; /* side-by-side grid */
    }
    
    .product-image-display {
        width: 48%;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }
    
    .display-img-wrap {
        height: 100%;
        aspect-ratio: 1 / 1;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }
    
    .main-display-img {
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }
    

    
    .product-details-wrap {
        width: 52%;
        padding: 30px;
    }
    
    .form-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-nav-overlay {
        display: none;
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   SOCIAL PROOF NOTIFICATION TOAST
   ========================================================================== */
.social-proof-toast {
    position: fixed;
    bottom: 90px;
    left: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 77, 50, 0.12);
    max-width: 320px;
    opacity: 0;
    transform: translateX(-120%);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.social-proof-toast.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-buyer {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.toast-action {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-bottom: 1px;
}

.toast-action strong {
    color: var(--color-primary);
    font-weight: 700;
}

.toast-time {
    font-size: 0.65rem;
    color: var(--color-gray);
    opacity: 0.7;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-gray);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* ==========================================================================
   MOBILE STICKY NAVIGATION TABS
   ========================================================================== */
.mobile-sticky-tabs {
    display: none;
    position: sticky;
    top: 55px; /* Directly below the main header */
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(254, 252, 251, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 77, 50, 0.08);
    z-index: 998;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox hide scrollbar */
    box-shadow: 0 4px 10px rgba(58, 34, 29, 0.03);
}

.mobile-sticky-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.tabs-container {
    display: flex;
    white-space: nowrap;
    padding: 8px 16px;
    gap: 16px;
    align-items: center;
}

.tab-item {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-gray);
    text-decoration: none;
    padding: 4px 8px;
    transition: var(--transition);
}

.tab-item:hover, .tab-item:active {
    color: var(--color-primary);
}

.tab-item.buy-tab {
    background-color: var(--color-primary);
    color: #fff !important;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(212, 77, 50, 0.15);
}

.tab-item.top-tab {
    color: var(--color-primary);
    font-weight: 700;
}

@media (max-width: 767px) {
    .mobile-sticky-tabs {
        display: block;
    }
}

/* ==========================================================================
   PLAN CAROUSEL WRAPPER & CHEVRONS
   ========================================================================== */
.plan-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 77, 50, 0.12);
    color: var(--color-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(58, 34, 29, 0.08);
    z-index: 100;
    transition: all 0.25s ease;
    opacity: 0.3; /* Faded by default as requested */
}

/* Active or hover makes it darker */
.carousel-nav-btn:hover, .carousel-nav-btn:active {
    opacity: 0.85;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(212, 77, 50, 0.2);
}

.prev-btn {
    left: 4px;
}

.next-btn {
    right: 4px;
}

/* On desktop, carousel buttons are hidden because cards are a grid */
@media (min-width: 768px) {
    .carousel-nav-btn {
        display: none;
    }
}



/* Clean text-only discount prices style is defined above */

/* ==========================================================================
   FLOATING BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 77, 50, 0.35);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top-btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(212, 77, 50, 0.45);
}

@media (max-width: 767px) {
    .back-to-top-btn {
        bottom: 85px; /* Adjust to stay clear of bottom sticky bar */
    }
}

/* ==========================================================================
   Checkout Payment & Shipping Info Badges
   ========================================================================== */
.checkout-info-box {
    background-color: var(--color-primary-light); /* 淡粉橘色背景 */
    border: 1px dashed rgba(212, 77, 50, 0.25); /* 淺粉橘色虛線 */
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 5px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
}

.info-icon {
    font-size: 1.1rem;
    display: inline-block;
    line-height: 1;
}

.info-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
}

.payment-logos {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
    align-items: center;
}

.card-logo {
    display: inline-block;
    vertical-align: middle;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

/* Rotated Saving Badge */
.saving-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ca8a04, #f59e0b);
    color: #ffffff;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 10px;
    transform: rotate(-3deg);
    box-shadow: 0 4px 10px rgba(202, 138, 4, 0.25);
    align-self: center;
    transition: all 0.3s ease;
    animation: pulse-subtle 2s infinite ease-in-out;
    letter-spacing: 0.02em;
}

@keyframes pulse-subtle {
    0%, 100% {
        transform: rotate(-3deg) scale(1);
    }
    50% {
        transform: rotate(-3deg) scale(1.05);
    }
}

/* Copied Tooltip */
.copied-tooltip {
    position: absolute;
    background-color: #1e293b;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px) translateX(-50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copied-tooltip.show {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
}

.copied-tooltip::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #1e293b;
}

/* Image Configurator Scale & Transition */
.display-img-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

#main-product-img {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
}

.display-img-wrap:hover #main-product-img {
    transform: scale(1.04);
}

#main-product-img.switching {
    opacity: 0.3;
    transform: scale(0.96);
}

/* Floating Mobile CTA Pulsing Glow */
@keyframes cta-pulse-glow-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 77, 50, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 77, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 77, 50, 0);
    }
}

.sticky-btn {
    animation: cta-pulse-glow-orange 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Announcement Bar & Price Bounce Animations
   ========================================================================== */
.announcement-bar {
    background: linear-gradient(90deg, #f4a88c, var(--color-primary), #f4a88c);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 16px;
    z-index: 1001;
    position: relative;
    font-weight: 700;
}

.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.time-box {
    background-color: #ffffff;
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Price Spring Bounce Animation */
@keyframes price-spring-bounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.08);
    }
    60% {
        transform: scale(0.97);
    }
    100% {
        transform: scale(1);
    }
}

.price-bounce-active {
    animation: price-spring-bounce 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}


