@font-face {
    font-family: 'IranianSans';
    src: url('/main/assets/fonts/IranianSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IranianSans', Arial, sans-serif;
    overflow-x: hidden;
}

.product-intro,
.product-features,
.product-video,
.product-reviews {
    padding: 2rem 0;
}

.-image-container {
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.-image {
    width: 100%;
    height: clamp(300px, 60vw, 500px); /* Matches product-description height */
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #dc2626;
    transition: transform 0.3s ease;
}

.-image:hover {
    transform: scale(1.03);
}

.thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.thumbnail-img {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.thumbnail-img.active,
.thumbnail-img:hover {
    border-color: #dc2626;
    transform: scale(1.1);
}

.product-description {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    min-height: clamp(300px, 60vw, 500px); /* Matches -image height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.product-description:hover {
    transform: translateY(-5px);
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    text-align: right;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.btn-primary {
    background: linear-gradient(90deg, #dc2626, #991b1b);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #b91c1c, #7f1d1d);
    transform: translateY(-2px);
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.star {
    font-size: 1.5rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star:hover,
.star.text-yellow-400 {
    color: #facc15;
}

.cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

.cart-message.show {
    opacity: 1;
}

@media (max-width: 992px) {
    .-image {
        height: clamp(250px, 50vw, 400px);
    }

    .product-description {
        min-height: clamp(250px, 50vw, 400px);
    }

    .thumbnail-img {
        width: clamp(50px, 12vw, 70px);
        height: clamp(50px, 12vw, 70px);
    }

    .product-description,
    .review-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .-image {
        height: clamp(200px, 40vw, 300px);
    }

    .product-description {
        min-height: auto;
        padding: 1rem;
    }

    .thumbnail-img {
        width: clamp(40px, 10vw, 60px);
        height: clamp(40px, 10vw, 60px);
    }

    .btn-primary {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .cart-message {
        top: 10px;
        right: 10px;
        padding: 0.75rem 1.5rem;
    }

    .star {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .-image {
        height: clamp(150px, 30vw, 250px);
    }

    .product-description,
    .review-card {
        padding: 0.75rem;
    }

    .thumbnail-img {
        width: clamp(30px, 8vw, 50px);
        height: clamp(30px, 8vw, 50px);
    }

    .btn-primary {
        font-size: 0.9rem;
    }

    .star {
        font-size: 1rem;
    }
}