:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #fff3e0;
    --bg: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #777777;
    --border: #eee;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* HEADER */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 30px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(230,126,34,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    overflow: hidden;
}

.product {
    display: flex;
    gap: 35px;
}

/* IMAGE SECTION */
.image-section {
    width: 420px;
    flex-shrink: 0;
}

.main-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #f5f5f5;
}

.main-image img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.thumbnails img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.thumbnails img:hover,
.thumbnails img.active {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230,126,34,0.25);
}

/* DETAILS SECTION */
.details {
    flex: 1;
    min-width: 0;
}

.details h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 15px;
    font-size: 14px;
    color: var(--text-light);
}

.stars {
    color: #f39c12;
    font-size: 16px;
    letter-spacing: 2px;
}

.price-box {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.new-price {
    font-size: 32px;
    color: var(--primary);
    font-weight: 800;
    display: block;
    margin-top: 4px;
}

.meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
    background: #f8f9fa;
    padding: 8px 14px;
    border-radius: 8px;
}

.meta-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.btn {
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(230,126,34,0.35);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,126,34,0.45);
}

.btn-chat {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-chat:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* DESCRIPTION */
.desc-section {
    margin-top: 25px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.desc-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.desc-section p {
    color: #555;
    margin-bottom: 12px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-list li::before {
    content: '';
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='14' height='14'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

/* TRUST SECTION */
.trust-section {
    margin-top: 25px;
    background: #fafafa;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.trust-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
}

.trust-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .product {
        flex-direction: column;
    }

    .image-section {
        width: 100%;
    }

    .details h1 {
        font-size: 22px;
    }

    .new-price {
        font-size: 26px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .meta-info {
        flex-wrap: wrap;
    }

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

    .thumbnails img {
        width: 60px;
        height: 60px;
    }
}
