﻿@font-face {
    font-family: "vazir";
    src: url("../fonts/vazir.eot") format("eot"), url("../fonts/vazir.ttf") format("truetype"), url("../fonts/vazir.woff") format("woff"), url("../fonts/vazir.woff2") format("woff2");
}

* {
    padding: 0;
    margin: 0;
}

html {
    font-size: 10px;
}

body {
    font-family: "vazir";
    overflow-x: hidden;
    height: 100vh;
}

.container {
    width: 85%;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 3.5rem;
    text-align: center;
    line-height: 2;
    color: crimson;
}

main {
    padding: 4rem 0;
    background: #f4f4f4;
}

.slide-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

section {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    direction: ltr;
}

section .thumbnail img {
    width: 300px;
    height: 400px;
    object-fit: contain;
}

section::-webkit-scrollbar {
    background: #d5d5d5;
    border: 1px solid #d5d5d5;
    height: 5px;
    width: 2px;
}

section::-webkit-scrollbar-track {
    --webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

section::-webkit-scrollbar-thumb {
    background: crimson;
}

section .thumbnail {
    flex: 0 0 auto;
    margin: 5px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #666;
    overflow: hidden;
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}

section .thumbnail:hover {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}

section .thumbnail .product-details {
    text-align: center;
    padding-bottom: 2rem;
}

section .thumbnail .product-details h2 {
    font-size: 2.2rem;
    font-weight: 600;
}

section .thumbnail .product-details p {
    font-size: 1.6rem;
    padding-bottom: 1rem;
    color: green;
    font-weight: 700;
    padding-top: 0.5rem;
}

section .thumbnail .product-details p span {
    text-decoration: line-through;
    color: #c00;
    margin-right: 5px;
}

section .thumbnail .product-details a {
    font-size: 1.6rem;
    text-decoration: none;
    background: rgb(220, 93, 20);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
}

section .thumbnail .product-details a:hover {
    background: crimson;
}

.arrow svg {
    color: #000;
    width: 60px;
    height: 60px;
    font-size: 30px;
    cursor: pointer;
}
