/* Variables */
:root {
    --primary-color: #000000;
    --primary-hover: #333333;
    --accent-color: #ff3b30;
    --text-dark: #111111;
    --text-light: #888888;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --border-color: #e5e5ea;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 900px;
}

.section-padding {
    padding: 120px 0;
}

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

.text-red {
    color: var(--accent-color);
}

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

.bg-light {
    background-color: var(--bg-light);
}

.dark-bg {
    background-color: #000;
    color: white;
}

.dark-bg p {
    color: #aaa;
}

.dark-bg h2 {
    color: white;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.section-title-sm {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    /* Pill shape for modern e-commerce */
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: black;
}

.btn-outline.text-dark {
    border-color: var(--primary-color);
    color: var(--text-dark);
}

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

.btn-massive {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-light);
}

/* Mobile Sticky Buy Button */
.mobile-sticky-buy {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.mobile-sticky-buy .price {
    font-weight: 800;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    position: relative;
    background: radial-gradient(circle at center, #f8f8f8 0%, #ebebeb 100%);
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.1);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p.hero-desc {
    font-size: 1.2rem;
    max-width: 450px;
    margin-bottom: 30px;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-price .current {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero-price .original {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.guarantee {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guarantee i {
    color: #34c759;
    /* success green */
}

/* Hero Image */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: white;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.product-img {
    position: relative;
    z-index: 2;
    max-width: 120%;
    transform: scale(1.1);
}

.floating {
    animation: floating-product 6s ease-in-out infinite;
}

@keyframes floating-product {
    0% {
        transform: scale(1.1) translateY(0);
    }

    50% {
        transform: scale(1.1) translateY(-15px);
    }

    100% {
        transform: scale(1.1) translateY(0);
    }
}

.feature-tag {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.tag-1 {
    top: 50px;
    right: -20px;
}

.tag-2 {
    bottom: 80px;
    left: -20px;
}

/* Scrolling Marquee */
.marquee-container {
    overflow: hidden;
    background: var(--text-dark);
    color: white;
    padding: 15px 0;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Feature Showcase */
.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-layout.reverse .showcase-img {
    order: 2;
}

.showcase-layout.reverse .showcase-text {
    order: 1;
}

.showcase-img img {
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.showcase-text h2 {
    font-size: 3rem;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 500;
}

.feature-list i {
    color: #34c759;
    margin-top: 4px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.grid-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.item-main {
    grid-column: 1 / -1;
    height: 500px;
}

.grid-item:not(.item-main) {
    height: 400px;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

.media-logo {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.stars {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.review-card p {
    font-style: italic;
    color: var(--text-dark);
    font-weight: 500;
}

/* Checkout Section */
.checkout-section {
    background-color: var(--bg-light);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.checkout-info h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.checkout-product {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.checkout-product img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-light);
}

.product-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.color-selected {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 800;
}

.original-price {
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.stock-status {
    font-size: 0.85rem;
    font-weight: 700;
}

.guarantee-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guarantee-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.guarantee-list i {
    width: 24px;
    text-align: center;
    color: var(--text-dark);
}

/* Form Styles */
.checkout-form h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.form-desc {
    margin-bottom: 30px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background: white;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-light);
    transition: var(--transition);
    text-align: center;
}

.radio-option input {
    display: none;
}

.radio-option span:first-of-type {
    font-weight: 600;
    margin-bottom: 4px;
}

.radio-option .sub-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

.radio-option.active {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.secure-badge {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--text-light);
    transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 15px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.footer-logo span {
    font-weight: 400;
    color: var(--text-light);
}

.justify-center {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.social-links a {
    font-size: 1.2rem;
}

/* Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-btn {
        display: none;
    }

    .mobile-sticky-buy {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-layout,
    .showcase-layout,
    .reviews-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-price {
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .guarantee {
        justify-content: center;
    }

    .hero-image {
        height: 400px;
        order: -1;
        /* Move image above text on mobile */
        margin-bottom: 30px;
    }

    .product-circle {
        width: 300px;
        height: 300px;
    }

    .tag-1 {
        top: 20px;
        right: 0;
    }

    .tag-2 {
        bottom: 20px;
        left: 0;
    }

    .showcase-layout.reverse .showcase-img {
        order: 1;
    }

    .showcase-layout.reverse .showcase-text {
        order: 2;
    }

    .feature-list li {
        text-align: left;
    }

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

    .checkout-layout {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    body {
        padding-bottom: 80px;
        /* Space for sticky buy button */
    }
}