body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #3d3d3d;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

nav {
    text-align: center;
    margin: 20px 0;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #f3f3f3;
}

.product-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px;
}

.product {
    background-color: white;
    padding: 15px;
    margin: 15px;
    width: 200px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product h3 {
    margin: 10px 0;
    color: #333;
}

.product p {
    color: #888;
}

.product .price {
    font-size: 18px;
    color: #e74c3c;
    margin: 10px 0;
}

.product button {
    background-color: #27ae60;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.product button:hover {
    background-color: #2ecc71;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    bottom: 0;
}

.m{
    height: 180px;
    background-color: #2ecc71;
    border-radius: 50px;
}

.p{
    font-size: xx-large;
    margin-top: 5%;
}


/* _______________________________________________________________________________________ */




*{
    box-sizing: border-box;
    margin: 0 1px 0 0;
}


.list {
    display: flex;
    overflow-x: auto;
    margin: 2em;
    padding: 0.5em;
    background-color: rgb(255, 255, 255, 0.1);
    border-radius: 0.5em;
    scroll-snap-type: x mandatory;
}

.item {
    width: 33%;
    display: flex;
    flex-direction: column;
    padding: 0.5em;
    margin: 0.5em;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25em;
    scroll-snap-align: start;
    scroll-margin-inline: .5em;
}


/* بالا اومدن قیمت */
/* خوده صفحه ی آبی  */
.a6 { 
    position: absolute;
    bottom: -130%;
    left: 0;
    background-color: #415166;
    height: 100%;
    width: 100%;
    transition: 0.3s ease;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20%;
    transform: skew(0, -20deg) scale(1.5);
    
}
/* 600000 */
.a6 span {
    font-size: 1.8rem;
    color: #fff;
    font-weight: bold;
    
}

.a2:hover .a6 {
    bottom: 0;
    transform: skew(0);
}
/* بکگراند کتاب  */
.a2{
    background-color: #f7f7f8;
    margin: 0.8rem;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    box-shadow: 0 5px 5px 0 rgba(63, 63, 63, 0.16);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
/* بالا اومدن قیمت */




.a3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #111;

}
/* کتاب */
.a4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #111;
}
/* نویسنده */
.a5 {
    font-size: 1rem;
    color: #7c7d83;
    line-height: 1.8rem;
}


/* _______________________________________________________________________________ */
/* رسپانسیو  */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #3d3d3d;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

nav {
    text-align: center;
    margin: 20px 0;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #f3f3f3;
}

.product-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px;
}

.product {
    background-color: white;
    padding: 15px;
    margin: 15px;
    width: 200px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product h3 {
    margin: 10px 0;
    color: #333;
}

.product p {
    color: #888;
}

.product .price {
    font-size: 18px;
    color: #e74c3c;
    margin: 10px 0;
}

.product button {
    background-color: #27ae60;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.product button:hover {
    background-color: #2ecc71;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
}

.m {
    height: 180px;
    background-color: #2ecc71;
    border-radius: 50px;
}

.p {
    font-size: xx-large;
    margin-top: 5%;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        display: block;
        margin: 10px 0;
    }
    
    .product-container {
        flex-direction: column;
        align-items: center;
    }
    
    .product {
        width: 90%;
    }
    
    .list {
        flex-direction: column;
        align-items: center;
    }
    
    .item {
        width: 90%;
    }
}

