/**
 * Product Detail Component Styles
 * All sections - Complete Figma Design Implementation
 */

/* ==========================================
   SECTION 1 - PRODUCT HERO SECTION (Figma Design)
   ========================================== */

.product-detail-hero-section {
    padding: 60px 0;
    background: #fff;
}

.product-detail-container {
    width: 1270px !important;
    margin: 0 auto;
}

.product-hero-card {
    max-width: 1270px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Top Section: Image + Title | Table */
.product-hero-top {
    display: flex;
    align-items: stretch;
}

/* Left Side: Image + Title */
.product-hero-left {
    width: 316.75px !important;
    min-height: 346px;
    background: #FFFFFF;
    border: 1px solid #DEDFE0;
    border-right: none;
    border-radius: 18px 0px 0px 0px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-image-container {
    height: 250px;
    border-radius: 12px;
    border: 1px solid #F2F3F5;
    overflow: hidden;
}

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

.product-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.5em;
    text-transform: uppercase;
    color: #060923;
    margin: 0;
}

/* Right Side: Table Data */
.product-hero-right {
    flex: 1;
    background: #DEDFE0;
    border-radius: 0px 18px 0px 0px;
    padding: 1px;
    display: flex;
    flex-direction: column;
}

.product-table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.product-table-row {
    display: flex;
    align-items: stretch;
    gap: 1px;
    flex: 1;
}

.product-table-row.first-row {
    border-radius: 0px 18px 0px 0px !important;
    overflow: hidden;
}

.product-table-row.last-row {
    overflow: hidden;
}

.product-table-label {
    width: 162px;
    background: #FFFFFF;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5em;
    color: #060923;
    text-align: center;
}

.product-table-row:not(.first-row) .product-table-label {
    padding: 8px 24px;
    color: #383838;
}

.product-table-value {
    flex: 1;
    background: #FFFFFF;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5em;
    color: #383838;
}

.product-table-row.first-row .product-table-value {
    color: #060923;
    border-radius: 0px 18px 0px 0px;
}

/* Bottom Section: Badges */
.product-hero-bottom {
    background: #DEDFE0;
    border-radius: 0px 0px 18px 18px;
    padding: 1px;
}

.product-badges-grid {
    display: flex;
    align-items: stretch;
    gap: 1px;
}

.product-badge-item {
    flex: 1;
    background: #FFFFFF;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-badge-item.first-badge {
    border-radius: 0px 0px 0px 18px;
}

.product-badge-item.last-badge {
    border-radius: 0px 0px 18px 0px;
}

.badge-icon {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    border: 2px solid #DEDFE0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.badge-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    text-align: center;
    color: #383838;
    white-space: pre-line;
}

/* ==========================================
   SECTION 2 - PRODUCT DESCRIPTION (Figma Design)
   ========================================== */

.product-description-section {
    padding: 60px 0;
    background: #fff;
}

.section2-content {
    max-width: 1270px !important;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.section2-text {
    width: 545px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section2-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section2-tag {
    background: #46B088;
    border-radius: 80px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tag-dot {
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border-radius: 50%;
    display: block;
}

.section2-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5;
    text-transform: uppercase;
    color: #060923;
    margin: 0;
}

.section2-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.section2-image {
    flex: 1;
    height: 287.86px;
    overflow: hidden;
}

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

/* ==========================================
   SECTION 3 - KEY POINTS (Figma Design)
   ========================================== */

.product-keypoints-section {
    padding: 60px 0;
    background: #fff;
}

.section3-content {
    max-width: 1271px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section3-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section3-tag {
    background: #46B088;
    border-radius: 80px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section3-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5em;
    text-transform: uppercase;
    color: #060923;
    margin: 0;
}

.section3-keypoints-container {
    background: #DEDFE0;
    border-radius: 18px;
    padding: 1px;
}

.section3-keypoints-grid {
    display: flex;
    align-items: stretch;
    gap: 1px;
}

.section3-keypoint-card {
    flex: 1;
    padding: 16px 24px;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.section3-keypoint-card.white-card {
    background: #FFFFFF;
}

.section3-keypoint-card.gray-card {
    background: #FAFAFA;
}

.section3-keypoint-card.first-card {
    border-radius: 18px 0px 0px 18px;
}

.section3-keypoint-card.last-card {
    border-radius: 0px 18px 18px 0px;
}

.keypoint-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.keypoint-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keypoint-icon {
    width: 56px;
    height: 60px;
    object-fit: contain;
}

.keypoint-x-mark {
    position: absolute;
    top: 40px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border: 1.5px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.x-icon {
    color: #F73131;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.keypoint-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    text-align: center;
    color: #383838;
    width: 100%;
}

.section3-keypoint-card.white-card .keypoint-text {
    color: #383838;
}

.section3-keypoint-card.gray-card .keypoint-text {
    color: #242424;
}

/* ==========================================
   SECTION 4 - MAIN FEATURES (Figma Design)
   ========================================== */

.product-features-section {
    padding: 60px 0;
    background: #fff;
}

.section4-content {
    max-width: 1270px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid #DEDFE0;
    border-radius: 18px;
    padding-right: 24px;
    overflow: hidden;
}

.section4-image {
    flex: 1;
    height: 321.9px;
    overflow: hidden;
}

.section4-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px 0px 0px 18px;
}

.section4-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    width: auto;
    padding: 24px 0;
}

.section4-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section4-tag {
    background: #46B088;
    border-radius: 80px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section4-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5em;
    text-transform: uppercase;
    color: #060923;
    margin: 0;
}

.section4-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section4-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    margin: 0;
}

/* ==========================================
   SECTION 5 - SUPPLY MATERIALS (Figma Design)
   ========================================== */

.product-supplies-section {
    padding: 60px 0;
    background: #fff;
}

.section5-content {
    width: 1270px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section5-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section5-tag {
    background: #46B088;
    border-radius: 80px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section5-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5em;
    text-transform: uppercase;
    color: #060923;
    margin: 0;
}

.section5-supplies-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: flex-start;
}

.section5-supply-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 378px;
    flex-shrink: 0;
}

.supply-image-container {
    width: 100%;
    height: 298px;
    border: 2px solid #DEDFE0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.supply-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.supply-title { 
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    text-align: center;
    margin: 0;
}

.supply-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    margin: 0;
    width: 100%;
    text-align: center;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Large screens */
@media (max-width: 1300px) {
    .product-hero-card {
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }

    .section2-content {
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }

    .section3-content {
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }

    .section4-content {
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }

    .section5-content {
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }
}

/* Mobile and tablet */
@media (max-width: 768px) {
    /* Section 1 Responsive */
    .product-hero-top {
        flex-direction: column;
    }

    .product-hero-left {
        width: 100%;
        border-radius: 18px 18px 0px 0px;
        border-right: 1px solid #DEDFE0;
    }

    .product-hero-right {
        border-radius: 0px;
    }

    .product-table-row.first-row {
        border-radius: 0px;
    }

    .product-table-row.last-row {
        border-radius: 0px;
    }

    .product-badges-grid {
        flex-direction: column;
    }

    .product-badge-item.first-badge,
    .product-badge-item.last-badge {
        border-radius: 0px;
    }

    .product-hero-bottom {
        border-radius: 0px 0px 18px 18px;
    }

    /* Section 2 Responsive */
    .section2-content {
        flex-direction: column;
        gap: 20px;
    }

    .section2-text {
        width: 100%;
    }

    .section2-image {
        width: 100%;
        height: 200px;
    }

    /* Section 3 Responsive */
    .section3-keypoints-grid {
        flex-direction: column;
    }

    .section3-keypoint-card.first-card {
        border-radius: 18px 18px 0px 0px;
    }

    .section3-keypoint-card.last-card {
        border-radius: 0px 0px 18px 18px;
    }

    .section3-keypoint-card:not(.first-card):not(.last-card) {
        border-radius: 0px;
    }

    /* Section 4 Responsive */
    .section4-content {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .section4-image {
        width: 100%;
        height: 200px;
    }

    .section4-image img {
        border-radius: 18px 18px 0px 0px;
    }

    .section4-text {
        width: 100%;
        padding: 0;
    }

    /* Section 5 Responsive */
    .section5-supplies-grid {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .section5-supply-card {
        width: 100%;
        max-width: 378px;
    }

    .supply-image-container {
        height: 250px;
    }
}

/* ==========================================
   LEGACY STYLES (for backwards compatibility)
   ========================================== */

.product-image-container {
    margin: 30px 0;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-content,
.product-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #666;
}

.product-subtitle h2 {
    font-size: 1.5rem;
    color: #555;
    margin: 20px 0;
}

