/* assets/style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: vazir;
    direction: rtl;
    background: #f5f7fb;
    color: #222;
    min-height: 100vh;
    padding: 20px
}

@font-face {
    font-family: vazir;
    src: url("Vazirmatn-Regular.ttf")
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px
}

.site-header h1 {
    font-size: 22px;
    color: #2b2b2b
}

.admin-link {
    background: #7a5af5;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* کارت محصول */
.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(30, 30, 70, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(30, 30, 70, 0.1)
}

.card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafd, #eef5ff)
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b
}

.card-price {
    font-size: 15px;
    color: #7a5af5;
    font-weight: 700
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.tag {
    background: #eef2ff;
    color: #333;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px
}

.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px
}

.size-btn {
    border: none;
    padding: 6px 9px;
    border-radius: 8px;
    background: #eee;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s
}

.size-btn.unavailable {
    opacity: .35;
    cursor: not-allowed
}

.size-btn.available:hover {
    transform: scale(1.06)
}

.size-btn.selected {
    background: #7a5af5;
    color: #fff;
    box-shadow: 0 6px 18px rgba(122, 90, 245, 0.18)
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center
}

.btn {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer
}

.btn.primary {
    background: #7a5af5;
    color: white;
    border: none
}

/* پیام در صورت نبود محصول */
.no-products {
    padding: 30px;
    text-align: center;
    color: #666
}

/* فوتر */
.site-footer {
    margin-top: 30px;
    text-align: center;
    color: #777;
    font-size: 13px
}