/**
 * Product Detail Page Styles
 * 러블리키친 제품 상세 페이지 스타일시트
 */

/* ============================================
   Product Detail Section
   ============================================ */
.product-detail-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

@media (min-width: 1024px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* ============================================
   Product Gallery
   ============================================ */
.product-gallery {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.product-badge-detail {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    z-index: 10;
}

.product-badge-detail.entry {
    background: #e2e8f0;
    color: #475569;
}

.product-badge-detail.best {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #ffffff;
}

.product-badge-detail.premium {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
}

.product-badge-detail.flagship {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
}

.product-best-ribbon,
.product-flagship-ribbon {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.product-best-ribbon {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.product-flagship-ribbon {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid #8b5cf6;
    color: #8b5cf6;
}

.gallery-main {
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-main-swiper {
    aspect-ratio: 1/1;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.gallery-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-swiper img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.gallery-main-swiper .swiper-button-next,
.gallery-main-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.gallery-main-swiper .swiper-button-next::after,
.gallery-main-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.gallery-thumbs {
    padding: 0 5px;
}

.gallery-thumbs-swiper .swiper-slide {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.gallery-thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.gallery-thumbs-swiper .swiper-slide-thumb-active {
    border-color: var(--color-accent);
}

/* ============================================
   Product Info
   ============================================ */
.product-info {
    padding: 20px 0;
}

.product-info-header {
    margin-bottom: 25px;
}

.product-model-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.product-model-tag.flagship {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.product-detail-name {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-detail-name .en-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.1em;
    margin-top: 5px;
}

.product-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Product Price Box */
.product-price-box {
    background: #ffffff;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 2px solid var(--bg-gray);
}

.product-price-box.featured {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.product-price-box.flagship {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(167, 139, 250, 0.03) 100%);
}

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

.price-main .price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-main .price-unit {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-main .price-note {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-left: 8px;
}

.price-benefits {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.price-benefits span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-benefits i {
    color: #10b981;
}

/* Product Highlights */
.product-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.highlight-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #6366f1 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 1.1rem;
    color: #ffffff;
}

.highlight-content {
    display: flex;
    flex-direction: column;
}

.highlight-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.highlight-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Product Features List */
.product-features-list {
    margin-bottom: 30px;
}

.product-features-list h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.product-features-list ul {
    list-style: none;
}

.product-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-gray);
}

.product-features-list li:last-child {
    border-bottom: none;
}

.product-features-list li i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Product Actions */
.product-actions-detail {
    display: flex;
    gap: 15px;
}

.btn-inquiry-detail,
.btn-call-detail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-inquiry-detail {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-inquiry-detail:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-inquiry-detail.flagship {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.btn-inquiry-detail.flagship:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.btn-call-detail {
    background: #ffffff;
    color: var(--text-primary);
    border: 2px solid var(--bg-gray);
}

.btn-call-detail:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #ffffff;
}

/* ============================================
   Product Specs Section
   ============================================ */
.product-specs-section {
    padding: 80px 0;
    background: #ffffff;
}

.specs-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--bg-gray);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th,
.specs-table td {
    padding: 18px 25px;
    text-align: left;
    font-size: 0.95rem;
}

.specs-table th {
    width: 35%;
    background: rgba(59, 130, 246, 0.05);
    font-weight: 600;
    color: var(--text-primary);
}

.specs-table td {
    color: var(--text-secondary);
}

/* ============================================
   Included Section
   ============================================ */
.included-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .included-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .included-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.included-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 15px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.included-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.included-item.featured {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 2px solid var(--color-accent);
}

.included-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.included-icon i {
    font-size: 1.3rem;
    color: #ffffff;
}

.included-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   Other Products Section
   ============================================ */
.other-products-section {
    padding: 80px 0;
    background: #ffffff;
}

.other-products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
}

@media (min-width: 640px) {
    .other-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.other-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.other-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.other-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    z-index: 2;
}

.other-product-badge.entry {
    background: #e2e8f0;
    color: #475569;
}

.other-product-badge.best {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #ffffff;
}

.other-product-badge.premium {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
}

.other-product-badge.flagship {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
}

.other-product-image {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.other-product-image img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.other-product-card:hover .other-product-image img {
    transform: scale(1.05);
}

.other-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.other-product-model {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.other-product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.other-product-power {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .product-detail-section {
        padding: 50px 0;
    }

    .product-gallery {
        padding: 20px;
    }

    .gallery-thumbs-swiper .swiper-slide {
        width: 60px;
        height: 60px;
    }

    .product-detail-name {
        font-size: 1.6rem;
    }

    .product-tagline {
        font-size: 0.95rem;
    }

    .product-highlights {
        grid-template-columns: 1fr;
    }

    .product-actions-detail {
        flex-direction: column;
    }

    .btn-inquiry-detail,
    .btn-call-detail {
        width: 100%;
    }

    .specs-table th,
    .specs-table td {
        padding: 14px 18px;
        font-size: 0.88rem;
    }

    .specs-table th {
        width: 40%;
    }

    .included-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .included-item {
        padding: 18px 10px;
    }

    .included-icon {
        width: 50px;
        height: 50px;
    }

    .included-icon i {
        font-size: 1.1rem;
    }

    .included-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .product-detail-wrapper {
        gap: 30px;
    }

    .product-price-box {
        padding: 20px;
    }

    .price-main .price-value {
        font-size: 1.8rem;
    }

    .price-benefits {
        flex-direction: column;
        gap: 8px;
    }

    .highlight-item {
        padding: 12px;
    }

    .highlight-icon {
        width: 40px;
        height: 40px;
    }

    .highlight-icon i {
        font-size: 0.95rem;
    }

    .highlight-value {
        font-size: 0.85rem;
    }

    .product-features-list li {
        font-size: 0.88rem;
    }

    .other-products-section {
        padding: 50px 0;
    }

    .other-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .other-product-card {
        flex-direction: row;
    }

    .other-product-image {
        width: 120px;
        aspect-ratio: 1/1;
        flex-shrink: 0;
    }

    .other-product-info {
        align-items: flex-start;
        text-align: left;
        justify-content: center;
    }
}

/* ============================================
   Fallback - Ensure all elements are visible
   ============================================ */
.product-detail-section,
.product-detail-wrapper,
.product-gallery,
.product-info,
.gallery-main,
.gallery-thumbs,
.product-info-header,
.product-price-box,
.product-highlights,
.product-features-list,
.product-actions-detail {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.product-gallery img,
.gallery-main-swiper img {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100%;
    height: auto;
}

/* ============================================
   Additional Responsive Styles for Special Pages
   ============================================ */

/* Thumb Container Responsive */
.thumb-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

@media (max-width: 480px) {
    .thumb-container {
        gap: 8px;
    }

    .thumb {
        width: 60px;
        height: 60px;
    }
}

/* Product Options Responsive */
.product-options {
    margin-top: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .product-options {
        padding: 15px;
        margin-top: 20px;
    }

    .product-options h3 {
        font-size: 1rem !important;
    }

    .option-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .option-item > span:last-child {
        align-self: flex-end;
    }
}

/* Phone Inquiry Float Responsive */
.phone-inquiry-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.phone-inquiry-container .close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.phone-inquiry-container.hidden {
    display: none;
}

.phone-inquiry-float img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .phone-inquiry-container {
        bottom: 15px;
        right: 15px;
    }

    .phone-inquiry-float img {
        width: 150px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .phone-inquiry-container {
        bottom: 10px;
        right: 10px;
    }

    .phone-inquiry-float img {
        width: 120px !important;
        height: auto !important;
    }

    .phone-inquiry-container .close-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
        top: -5px;
        right: -5px;
    }
}

/* Product Detail Images Section Responsive */
.product-detail-images-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.product-detail-images img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .product-detail-images-section {
        padding: 50px 0;
    }

    .product-detail-images {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Page Hero Responsive for Special Pages */
.page-hero.product-detail-hero {
    padding: 140px 0 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .page-hero.product-detail-hero {
        padding: 120px 0 50px;
    }

    .page-hero.product-detail-hero .page-title {
        font-size: 1.6rem;
    }

    .page-hero.product-detail-hero .page-subtitle {
        font-size: 0.95rem;
    }

    .page-hero.product-detail-hero .special-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-hero.product-detail-hero {
        padding: 100px 0 40px;
    }

    .page-hero.product-detail-hero .page-title {
        font-size: 1.4rem;
    }
}

/* CTA Section Responsive */
.cta-section {
    padding: 80px 0;
}

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

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cta-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 50px 0;
    }

    .cta-desc {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }

    .cta-buttons a {
        width: 100%;
        justify-content: center;
    }
}

/* Main Image Container Responsive */
.main-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.main-image-container img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

@media (max-width: 480px) {
    .main-image-container {
        border-radius: 8px;
    }

    .main-image-container img {
        max-width: 90%;
        max-height: 90%;
    }
}

/* Best/Premium Ribbon Responsive */
.best-ribbon,
.premium-ribbon,
.flagship-ribbon {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .best-ribbon,
    .premium-ribbon,
    .flagship-ribbon {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .product-badge-detail {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* ============================================
   Sinkbowl Page Specific Styles
   ============================================ */

/* Sinkbowl Main Image - 4:3 aspect ratio */
.sinkbowl-main-image,
.product-gallery .main-image-container[style*="4/3"] {
    aspect-ratio: 4/3;
}

.product-features-image {
    padding: 60px 0;
    background: #f8fafc;
}

.product-features-image img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .product-features-image {
        padding: 40px 0;
    }

    .product-features-image img {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* 2-column grid for other products when there are only 2 items */
.other-products-grid:has(.other-product-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
    .other-products-grid:has(.other-product-card:nth-child(2):last-child) {
        grid-template-columns: 1fr;
    }
}

/* Original Price Style */
.original-price {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 5px;
}

/* Sale Label Style */
.sale-label {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .original-price {
        font-size: 0.9rem;
    }

    .sale-label {
        font-size: 0.85rem;
    }
}

/* Special Badge */
.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .special-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
