/* Product Detail Page Styles */

:root {
    --product-bg: #f5f5f7;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
    --accent-blue: #0071e3;
}

.product-detail-page {
    background-color: #fff;
    color: var(--text-dark);
    font-family: 'Noto Sans SC', sans-serif;
}

/* Breadcrumbs */
.breadcrumb-section {
    padding: 24px 0;
    background-color: #fbfbfd;
    border-bottom: 1px solid #f2f2f2;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: 16px;
    color: var(--text-gray);
    padding: 0;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 15px;
    color: #d2d2d7;
    font-size: 14px;
    font-weight: 300;
}

.breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--text-dark);
}

.breadcrumbs li:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* Product Hero (Image Carousel + Info) */
.product-hero {
    padding: 40px 0 80px;
    background-color: #fff;
}

.product-hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 4 / 3;
}

.product-gallery {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

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

.gallery-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-dot.active {
    background: var(--accent-blue);
    width: 32px;
    border-radius: 7px;
}

.product-hero-info {
    padding-top: 20px;
}

.product-hero-info h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.product-hero-info .subtitle {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.product-price {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.product-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-variants {
    margin-bottom: 40px;
}

.variant-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}

.variant-options {
    display: flex;
    gap: 15px;
}

.variant-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 3px;
    background-clip: content-box;
}

.variant-dot.active {
    border-color: var(--accent-blue);
}

.buy-now-btn {
    display: inline-block;
    padding: 16px 60px;
    background-color: #000;
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, opacity 0.3s;
}

.buy-now-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Content Display Area (Grid & Full Width) */
.content-display-area {
    padding: 80px 0;
    background-color: #fff;
}

.feature-grid-section h2 {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    height: 700px;
}

.grid-item {
    background-color: #f5f5f7;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

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

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

.grid-item-main {
    grid-row: span 2;
}

/* Full Width Feature (Vertical Layout) */
.full-width-feature {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.full-width-feature .feature-header {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.full-width-feature h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.full-width-feature h2 span {
    color: var(--accent-blue);
}

.full-width-feature p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
}

.feature-image-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-image-container img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: block;
}

/* Mixed Content Area (Split Layouts) */
.mixed-content-area {
    padding: 20px 0;
}

.split-feature {
    padding: 60px 0;
}

.split-feature .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.split-feature.reverse .container {
    direction: rtl;
}

.split-feature.reverse .feature-text {
    direction: ltr;
}

.feature-text h3 {
    font-size: 42px;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 700;
}

.feature-text p {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.6;
}

.feature-image img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Inline Full Width Image for Mixed Content */
.inline-full-image {
    padding: 60px 0;
    text-align: center;
}

.inline-full-image .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.inline-header {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: left;
    margin: 0 auto 50px;
    gap: 80px;
    max-width: 1100px;
}

.inline-header h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    flex: 0 1 auto;
}

.inline-header h2 span {
    color: var(--accent-blue);
    display: block;
}

.inline-header p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 420px;
    flex: 0 1 auto;
}

.inline-full-image img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Two Column Features */
.two-col-features {
    padding: 100px 0;
    background-color: #fbfbfd;
}

.two-col-features .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-card-small {
    background: #fff;
    padding: 60px;
    border-radius: 32px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card-small:hover {
    transform: translateY(-10px);
}

.feature-card-small h4 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-card-small p {
    color: var(--text-gray);
    font-size: 16px;
}

.feature-card-small img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin-top: 40px;
    border-radius: 20px;
}

/* QR Section Redesign */
.qr-section {
    padding: 100px 0;
    background-color: #fff;
}

.qr-section .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.qr-text-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

.qr-text-content h2 span {
    color: var(--accent-blue);
    display: block;
}

.qr-text-content .sub-desc {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.qr-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.qr-features span {
    font-size: 16px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

.qr-image-box {
    background-color: #f5f5f7;
    padding: 60px;
    border-radius: 40px;
    text-align: center;
}

.qr-image-box p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 500;
}

.qr-code-wrapper {
    position: relative;
    display: inline-block;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
}

.qr-code-wrapper img {
    width: 160px;
    height: 160px;
    display: block;
}

/* Scanning Corners */
.qr-code-wrapper::before,
.qr-code-wrapper::after,
.qr-code-wrapper span::before,
.qr-code-wrapper span::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent-blue);
    z-index: 1;
}

.qr-code-wrapper::before {
    top: -10px;
    left: -10px;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 15px;
}

.qr-code-wrapper::after {
    top: -10px;
    right: -10px;
    border-left: 0;
    border-bottom: 0;
    border-top-right-radius: 15px;
}

.qr-code-wrapper span::before {
    bottom: -10px;
    left: -10px;
    border-right: 0;
    border-top: 0;
    border-bottom-left-radius: 15px;
}

.qr-code-wrapper span::after {
    bottom: -10px;
    right: -10px;
    border-left: 0;
    border-top: 0;
    border-bottom-right-radius: 15px;
}

/* Related News */
.related-news {
    padding: 100px 0;
}

.related-news h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: 700;
}

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

.news-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

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

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-hero-info {
        text-align: center;
    }

    .variant-options {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .grid-item-main {
        grid-row: span 1;
        height: 500px;
    }

    .grid-item {
        height: 350px;
    }

    .split-feature .container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .split-feature.reverse .container {
        direction: ltr;
    }

    .two-col-features .container {
        grid-template-columns: 1fr;
    }

    .qr-section .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .qr-features {
        justify-content: center;
    }

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

@media (max-width: 768px) {
     .breadcrumbs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        padding-bottom: 2px;
    }

    .breadcrumbs::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .breadcrumbs li {
        flex-shrink: 0;
    }

    .product-hero-info h1 {
        font-size: 32px;
    }

    .product-hero-info .subtitle {
        font-size: 18px;
    }

    .full-width-feature {
        padding: 40px 0;
    }

    .full-width-feature h2 {
        font-size: 28px;
    }

    .full-width-feature p {
        font-size: 16px;
    }

    .feature-image-container img {
        border-radius: 16px;
    }

    .inline-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
        padding: 0 20px;
    }

    .inline-header h2 {
        font-size: 28px;
    }

    .inline-header p {
        font-size: 16px;
        max-width: 100%;
    }

    .inline-full-image img {
        border-radius: 16px;
    }

    .feature-text h3 {
        font-size: 28px;
    }

    .feature-text p {
        font-size: 16px;
    }

    .feature-card-small {
        padding: 30px;
        border-radius: 20px;
    }

    .feature-card-small h4 {
        font-size: 22px;
    }

    .qr-text-content h2 {
        font-size: 32px;
    }

    .qr-features {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
        max-width: 200px;
        margin: 0 auto;
    }

    .qr-image-box {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .qr-code-wrapper img {
        width: 140px;
        height: 140px;
    }

    .related-news {
        padding: 60px 0;
    }

    .related-news h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
}