.product-page {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    min-height: 100vh;
    padding: 2rem 0;
}
.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}
.product-image {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--card-border);
}
.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.features {
    flex: 2 1 400px;
    color: var(--text-primary);
}
.features h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}
.features h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1rem;
}
.features ul {
    list-style: none;
    padding: 0;
}
.features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 1rem;
}
.purchase-box {
    flex: 1 1 280px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--card-bg));
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 2rem;
    height: fit-content;
}
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}
.quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.quantity button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.quantity button:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}
.quantity span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: center;
}
.add-to-cart {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.add-to-cart:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-2px);
}
.description {
    flex: 1 1 100%;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}
.description h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}
.description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}
.moshabeh {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 2rem 2rem;
    position: relative;
}
.moshabeh::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}
.similar-products {
    padding: 2rem 0;
}
.slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}
.slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) transparent;
}
.slider::-webkit-scrollbar {
    height: 6px;
}
.slider::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}
.slider::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 3px;
}
.item {
    flex: 0 0 280px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
    border: 1px solid var(--card-border);
}
.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-light);
}
.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.3s;
}
.item:hover img {
    transform: scale(1.05);
}
.item h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item p {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}
.btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-2px);
}
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
}
.nav-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}
.nav-btn.left {
    right: 0;
}
.nav-btn.right {
    left: 0;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.item {
    animation: fadeInUp 0.5s ease forwards;
}
.item:nth-child(1) {
    animation-delay: 0.1s;
}
.item:nth-child(2) {
    animation-delay: 0.2s;
}
.item:nth-child(3) {
    animation-delay: 0.3s;
}
.item:nth-child(4) {
    animation-delay: 0.4s;
}
.item:nth-child(5) {
    animation-delay: 0.5s;
}
.item:nth-child(6) {
    animation-delay: 0.6s;
}
@media (max-width: 1200px) {
    .slider-wrapper {
        padding: 0 2rem;
    }
    .product-container {
        margin: 0 1rem;
    }
}
@media (max-width: 992px) {
    .features h1 {
        font-size: 1.6rem;
    }
    .purchase-box {
        flex: 1 1 100%;
    }
    .nav-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        padding: 1.5rem;
    }
    .product-image,
    .features,
    .purchase-box {
        flex: 1 1 100%;
    }
    .slider-wrapper {
        padding: 0 1rem;
    }
    .item {
        flex: 0 0 250px;
    }
    .nav-btn.left {
        right: 0.5rem;
    }
    .nav-btn.right {
        left: 0.5rem;
    }
    .moshabeh {
        margin-right: 1rem;
        font-size: 1.8rem;
    }
}
@media (max-width: 480px) {
    .product-container {
        padding: 1rem;
        gap: 1rem;
    }
    .features h1 {
        font-size: 1.4rem;
    }
    .slider {
        gap: 1rem;
    }
    .item {
        flex: 0 0 220px;
    }
    .nav-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    .nav-btn.left {
        right: 0;
    }
    .nav-btn.right {
        left: 0;
    }
}

.similar-products {
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.similar-products .moshabeh {
    margin: 1rem 0 2rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-right: 4px solid var(--primary-light);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.9));
    text-align: center;
    color: var(--primary-light);
}
.similar-products .moshabeh::after {
    right: 50%;
    transform: translateX(50%);
}
.similar-products .slider-wrapper {
    max-width: none;
    padding: 0 3rem;
    overflow: hidden;
}
.related-products-slider {
    scrollbar-width: auto;
    scrollbar-color: rgb(97, 109, 137) var(--bg-secondary);
}
.related-products-slider::-webkit-scrollbar-thumb {
    background: rgb(97, 109, 137);
}
.related-products-slider .product-card {
    flex: 0 0 250px;
}
.related-products-slider .product-image-container {
    height: 170px;
}
.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.quantity button:focus-visible,
.add-to-cart:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.45);
    outline-offset: 3px;
}
@media (max-width: 768px) {
    .product-page {
        padding: 1rem 0;
    }
    .product-image {
        padding: 1rem;
    }
    .purchase-box,
    .description {
        padding: 1.25rem;
    }
    .similar-products .slider-wrapper {
        padding: 0 0.25rem;
        overflow: visible;
    }
    .related-products-slider .product-card {
        flex-basis: min(72vw, 210px);
    }
    .related-products-slider .product-image-container {
        height: 132px;
    }
}
