/* ===== PRODUCT PAGE STYLES ===== */

/* Business Tabs */
.business-tabs {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: var(--spacing-3);
    height: 2.5rem;
    margin-bottom: var(--spacing-10);
}

.tab-item {
    height: 100%;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    line-height: var(--line-height-figma);
    color: var(--color-text-black);
    min-width: fit-content;
    box-sizing: border-box;
}

.tab-item.active {
    background-color: var(--color-primary-500);
    border-color: var(--color-primary-500);
    color: var(--color-text-white);
    font-weight: var(--font-weight-bold);
}

/* Product Page Styles */
.product-page {
    background-color: var(--color-text-white);
    min-height: 100vh;
    padding: 0;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
}

.product-section {
    margin-bottom: var(--spacing-20);
    padding: var(--spacing-24) 0 0;
    max-width: 100rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-16);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: var(--spacing-5);
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.section-header .section-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-figma);
    margin-bottom: 0;
    text-align: left;
}

.section-header .section-description {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-figma);
    margin: 0;
    text-align: left;
    color: var(--color-text-700);
}

/* Product Content */
.product-content {
    display: flex;
    gap: var(--spacing-16);
    align-items: flex-start;
    width: 100%;
}

.product-image {
    position: relative;
    width: 58%; /* 전체 너비의 58% */
    height: auto;
    aspect-ratio: 936 / 436; /* 원본 비율 유지 */
    border-radius: var(--radius-xl);
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Table */
.product-table {
    flex: 1;
    min-width: 0;
}

.product-table table {
    width: 100%;
    border-collapse: collapse;
    border: none; /* 경계선 제거 */
}

.product-table thead {
    border-bottom: 2px solid var(--color-text-black);
}

.product-table tbody tr {
    border-bottom: 1px solid var(--color-text-400);
}

.product-table th {
    background-color: transparent;
    padding: var(--spacing-2) 0;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    text-align: center;
    line-height: var(--line-height-figma);
    vertical-align: middle;
    color: var(--color-text-black);
}

.product-table td {
    background-color: transparent;
    padding: var(--spacing-3) var(--spacing-4);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
    text-align: center;
    line-height: var(--line-height-normal);
    vertical-align: middle;
    color: rgba(0, 0, 0, 0.8);
}

.product-table td:first-child {
    text-align: left;
}

/* Composition Examples */
.composition-examples {
    display: flex;
    gap: var(--spacing-16);
    width: 100%;
    margin-bottom: var(--spacing-16);
}

.example-image {
    position: relative;
    width: 50%;
    height: auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tableware Specs - 3x2 Grid Layout */
.tableware-specs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-16);
    width: 100%;
}

.spec-row {
    display: flex;
    gap: var(--spacing-16);
    width: 100%;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.spec-image {
    width: 45%;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.spec-image img {
    width: 100%;
    height: auto;
}

.spec-item .product-table td:nth-child(2){
    word-break: break-all;
}

.spec-item .product-table th:last-child{
    padding-right: var(--spacing-4);
}

.spec-item .product-table th:last-child,
.spec-item .product-table td:last-child {
    text-align: right;
}

/* Return Machine Styles */
.return-machine {
    display: flex;
    gap: var(--spacing-16);
    align-items: center;
    width: 100%;
}


.return-machine.multiple {
    flex-direction: column;
    gap: var(--spacing-4);
}

.return-machine.reverse {
    flex-direction: row-reverse;
}

.machine-image {
    width: 50%;
    height: 34.875rem; /* 고정 높이 */
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--color-bg-contents);
    flex-shrink: 0;
}

.machine-image.multiple{
    width: 25%;
    height: 34.875rem; /* 고정 높이 */
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--color-bg-contents);
    flex-shrink: 0;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.machine-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}

.machine-info.multiple {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
    align-items: flex-start;
}

/* Product Grid for Multiple Items */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-6);
    width: 100%;
    
}

.product-item {
    display: flex;
    flex-direction: column;
    background: white;
    
    overflow: hidden;
    
}


.product-image.multiple {
    width: 100%;
    height: 558px;
    background: #F3F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image.multiple img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.machine-number {
    font-size: 4.5rem; /* 72px */
    font-weight: 900;
    color: var(--color-primary-600);
    line-height: 1;
}

.machine-title {
    margin: 0;
}

.divider {
    width: 100%;
    height: 0.125rem; /* 2px */
    background-color: var(--color-text-black);
    margin: var(--spacing-2) 0;
}

.divider.multiple {
    margin-top: var(--spacing-6);
}

.divider-light {
    width: 100%;
    height: 0.0625rem; /* 1px */
    background-color: var(--color-text-400);
    margin: var(--spacing-2) 0;
}

.machine-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.machine-features p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-black);
    margin: 0;
    line-height: var(--line-height-figma);
}

.machine-specs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.machine-spec-item {
    display: flex;
    gap: var(--spacing-5);
    align-items: flex-start;
}

.machine-spec-label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-black);
    min-width: 6.25rem; /* 100px */
    line-height: var(--line-height-figma);
}

.machine-spec-value {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-black);
    line-height: var(--line-height-figma);
}

.machine-types {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.type-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.type-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-black);
    margin: 0;
    line-height: var(--line-height-figma);
}

.type-spec {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-black);
    margin: 0;
    line-height: var(--line-height-figma);
}

/* Certification Cards */
.certification-cards {
    display: flex;
    gap: var(--spacing-8);
    justify-content: flex-start;
    width: 100%;
}

.certification-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-5);
    width: 23.5rem; /* 376px */
}

.certification-image {
    width: 100%;
    height: auto; /* 532px */
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-text-400);
    overflow: hidden;
    background: var(--color-text-100);
}

.certification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certification-title {
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-content {
        flex-direction: column;
        align-items: center;
    }
    
    .product-image {
        width: 100%;
    }

    .composition-examples {
        gap: var(--spacing-8);
    }
    
    .spec-item {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-8);
    }
    
    .spec-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .business-tabs {
        flex-wrap: wrap;
        height: auto;
        gap: var(--spacing-2);
    }
    
    .tab-item {
        height: 2.25rem;
    }
    
    .product-section {
        padding: 5rem 0;
        gap: var(--spacing-8);
    }

    .composition-examples {
        flex-direction: column;
    }
    
    .example-image {
        width: 100%;
        height: auto;
    }

    .product-table {
        min-width: 80%;
    }
    
    .spec-row {
        flex-direction: column;
    }
    
    
    
    .return-machine {
        flex-direction: column;
        gap: var(--spacing-8);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-4);
    }
    
    .return-machine.reverse {
        flex-direction: column;
    }
    
    .machine-image {
        width: 100%;
        height: auto;
    }
    
    .machine-info {
        width: 100%;
        padding: var(--spacing-4);
    }
    
    .machine-number {
        font-size: 3.5rem; /* 56px */
    }
    
    .certification-cards {
        flex-direction: column;
        align-items: center;
    }

    .certification-card {
        width: 100%;
        max-width: 23.5rem;
    }
}

@media (max-width: 480px) {
    .product-section {
        padding: 3.75rem 0;
        gap: var(--spacing-6);
    }
    
    .composition-examples {
        gap: var(--spacing-6);
    }
    
    .return-machine {
        gap: var(--spacing-6);
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }
    
    .product-info {
        padding: var(--spacing-3);
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-spec {
        font-size: 0.8rem;
    }
    
    .machine-info {
        padding: var(--spacing-3);
    }
    
    .machine-number {
        font-size: 3rem; /* 48px */
    }
}
