/*
Theme Name: My Shop
Author: Your Name
Version: 1.0
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html{
    direction: rtl;
}

body{
    direction: rtl;
    text-align: right;
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f5f5;
    color:#333;
}

header{
    background:#232f3e;
    color:white;
    padding:20px;
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

nav{
    float:none;
}

nav a{
    margin-right:20px;
    margin-left:0;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:20px;
}

.container{
    width:1200px;
    margin:auto;
}

.products{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.product{
    text-align:right;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
    transition: .3s;
}

.product:hover{
    transform:translateY(-5px);
}

.product img{
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.price{
    color:green;
    font-size:24px;
    margin:15px 0;
}

.button{
    display:inline-block;
    background:#ff9900;
    color:white;
    text-decoration:none;
    padding:10px 18px;
    border-radius:6px;
}

footer{
    margin-top:60px;
    background:#232f3e;
    color:white;
    text-align:center;
    padding:20px;
}
.product-page {
    direction: rtl;
    text-align: right;
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.product-title {
    font-size: 28px;
    margin-bottom: 5px;
}

.product-category {
    color: gray;
    margin-bottom: 20px;
}

.slider{

    position:relative;

    width:100%;

    margin:30px auto;

}

.slider img{

    width:100%;

    height:500px;

    object-fit:contain;

    background:#fff;

    border-radius:10px;

}

.slider-btn{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.6);

    color:white;

    font-size:28px;

    cursor:pointer;

    transition:.3s;

}

.slider-btn:hover{

    background:black;

}

#prev{
    right:10px;
}

#next{
    left:10px;
}

.product-category{
    color: #666;
    font-size: 14px;
    margin: 6px 0 10px;
}

/* ===== SEARCH & FILTER - SMALLER & INLINE ===== */
.search-row{
    display:flex;
    gap:15px;
    align-items:center;
    margin:20px 0;
}

.product-search,
.category-filter{
    background:#fff;
    padding:10px 15px;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    gap:8px;
}

.product-search{
    flex:1;
}

.product-search input{
    flex:1;
    padding:6px 10px;
    border:1px solid #e0e0e0;
    border-radius:6px;
    font-size:13px;
    outline:none;
}

.product-search input:focus{
    border-color:#ff9900;
}

.product-search .search-btn{
    background:#ff9900;
    color:white;
    border:none;
    padding:6px 14px;
    border-radius:6px;
    cursor:pointer;
    font-size:13px;
    font-weight:bold;
    transition:.3s;
}

.product-search .search-btn:hover{
    background:#e68a00;
}

.category-filter{
    width:auto;
    min-width:150px;
}

.category-filter select{
    padding:6px 10px;
    border:1px solid #e0e0e0;
    border-radius:6px;
    font-size:13px;
    background:white;
    cursor:pointer;
    outline:none;
    width:100%;
}

.category-filter select:focus{
    border-color:#ff9900;
}

.category-dropdown{
    position:relative;
    width:100%;
}

.dropdown-btn{
    width:100%;
    padding:6px 10px;
    background:white;
    border:1px solid #e0e0e0;
    border-radius:6px;
    cursor:pointer;
    text-align:right;
    font-size:13px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.dropdown-btn:hover{
    border-color:#ff9900;
}

.dropdown-content{
    display:none;
    position:absolute;
    top:110%;
    right:0;
    width:100%;
    min-width:200px;
    background:white;
    border:1px solid #ddd;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    max-height:200px;
    overflow-y:auto;
    z-index:1000;
}

.dropdown-content label{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    cursor:pointer;
    font-size:13px;
}

.dropdown-content label:hover{
    background:#f5f5f5;
}

.dropdown-content input[type="checkbox"]{
    width:14px;
    height:14px;
    cursor:pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap:10px;
    }

    .category-filter {
        width:100%;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: 1fr 1fr;
    }

    .product-search {
        flex-direction: column;
        align-items:stretch;
    }
}
.page-box{
    max-width:700px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,.1);
}

.page-box h1{
    margin-bottom:25px;
}

.page-box p{
    margin-bottom:20px;
}

.page-box input,
.page-box textarea{
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:15px;
}

.page-box button{
    background:#ff9900;
    color:#fff;
    border:none;
    padding:12px 25px;
    border-radius:6px;
    cursor:pointer;
}

.page-box button:hover{
    background:#e68a00;
}