﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333333;
}

.page-body {
    width: 100%;
    margin: 0;
    padding: 0;
}

#main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 70px;
    position: relative;
    z-index: 1;
    max-width: 1358px;
}

.roadmap {
    font-size: 14px;
    color: #000000;
    margin-left: 0;
}

    .roadmap a {
        color: #000000;
        text-decoration: none;
    }

        .roadmap a:hover {
            text-decoration: underline;
        }

.store-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 70px;
    width: 100%;
    padding: 0 20px;
}

.product-details {
    display: flex;
    gap: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 15px;
}

.product-images {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 50%;
}

.small-images-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.small-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 400px;
    overflow-y: auto;
}

.small-image {
    width: 80px;
    height: 80px;
    border: 2px solid #cccccc;
    border-radius: 6px;
    cursor: pointer;
}

    .small-image.selected {
        border-color: #dc3545;
        border-width: 2px;
    }

    .small-image img, .small-image-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

.main-image-container {
    position: relative;
    width: 520px;
    height: 520px;
}

.main-image {
    width: 520px;
    height: 520px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    cursor: zoom-in;
}

    .main-image img, .main-image-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 4px;
    }

.product-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
}

.product-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    text-align: justify;
}

.divider {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 10px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}
/* Nút Liên hệ */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 250px;
    padding: 14px 20px;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

    .contact-btn i {
        font-size: 22px;
    }

    .contact-btn:hover {
        background: #333333;
    }
/* ====================== RELATED ITEMS GIỐNG HỆT INDEX ====================== */
.related-items {
    padding: 40px 0;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin-top: 35px;
}

.related-title {
    color: #333333;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
}

.related-items .product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

.related-items .product-item {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.related-items .product {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 100%;
    height: 230px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.related-items .discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.related-items .product-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    background: #ffffff;
    border-radius: 5px;
}

.related-items .product-actions .add-to-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 8px 0;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

    .related-items .product-actions .add-to-cart:hover {
        background: #333333;
    }

.related-items .product-name {
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}
/* Zoom & Responsive giữ nguyên cũ */
.zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.zoom-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.zoom-small-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.zoom-small-image {
    border: 2px solid #cccccc;
    border-radius: 6px;
    cursor: pointer;
}

    .zoom-small-image img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }

    .zoom-small-image:hover {
        border-color: #dc3545;
    }

.zoom-image-style {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 4px;
}
/* Responsive giống Index */
@media (max-width: 750px) {
    .related-items {
        margin-top: 70px;
        padding: 40px 0 15px;
    }

    .related-title {
        font-size: 24px;
    }

    .related-items .product-grid {
        gap: 10px;
        padding: 0;
    }

    .related-items .product-item {
        width: 45%;
        padding: 5px;
        gap: 5px;
    }

    .related-items .product {
        height: 150px;
    }

        .related-items .product .product-image {
            width: 130px;
            height: 130px;
        }

    .related-items .discount-tag {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .related-items .product-actions .add-to-cart {
        padding: 6px 0;
        font-size: 12px;
    }

    .contact-btn {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 375px) {
    .related-items .product-item {
        width: 100%;
    }

    .related-items .product .product-image {
        width: 120px;
        height: 120px;
    }
}

.contact-btn-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 250px;
    padding: 14px 20px;
    margin-bottom: 10px;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

    .contact-btn-new:hover {
        background: #333333;
    }

    .contact-btn-new i {
        font-size: 20px;
    }

.arrow-icon {
    transition: transform 0.3s ease;
}

    .arrow-icon.rotated {
        transform: rotate(180deg);
    }

.contact-info-new {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .contact-info-new.open {
        max-height: 300px;
        opacity: 1;
    }

.contact-divider-new {
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 16px 0;
}

.info-row-new {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    color: #333;
}

    .info-row-new i {
        color: #e74c3c;
        font-size: 16px;
        width: 20px;
    }

.contact-link-new {
    color: #e74c3c !important;
    text-decoration: underline;
    font-weight: 500;
}

    .contact-link-new:hover {
        color: #c0392b !important;
    }

.info-or-new {
    font-style: italic;
    color: #555;
    font-size: 14px;
}

    .info-or-new a {
        color: #e74c3c;
        text-decoration: underline;
    }
/* Responsive */
@media (max-width: 750px) {
    .contact-btn-new {
        width: 100%;
        font-size: 15px;
    }
}
