body, html {
    font-family: 'Tajawal', Arial, sans-serif;
    background: #f8f9fb;
    color: #181818;
}

.clothing-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 10px 20px;
}

.clothing-title {
    font-size: 2rem;
    margin-bottom: 1.3rem;
    color: #2d3748;
    text-align: center;
}

.clothing-search {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
}
.clothing-search input, .clothing-search select, .clothing-search button {
    border-radius: 10px;
    padding: 7px 11px;
    border: 1px solid #bbb;
}

.stores-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}
.store-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 12px #0001;
    width: 260px;
    padding: 13px 13px 7px 13px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.store-card.pinned {
    border: 2px solid #f5b702;
    background: #fffbe6;
}
.store-main-image {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 9px;
    background: #eee;
}
.store-card h4 {
    margin: 0 0 5px 0;
}
.store-specialties {
    color: #757575;
    font-size: 15px;
}
.pin-form {
    position: absolute;
    top: 9px;
    left: 12px;
}
.pin-btn, .unpin-btn {
    background: #f5b702;
    border: none;
    color: #fff;
    border-radius: 7px;
    padding: 3px 13px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 4px;
}

.store-main {
    display: flex;
    gap: 20px;
    margin: 30px 10px;
}
.store-info-box {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 12px #0001;
    padding: 23px 15px;
    min-width: 270px;
    max-width: 290px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.main-image {
    width: 100%;
    border-radius: 11px;
    object-fit: cover;
    margin-bottom: 10px;
}
.settings-link, .add-ad-link {
    display: block;
    margin: 12px 0 3px 0;
    background: #2d3748;
    color: #fff !important;
    border-radius: 6px;
    padding: 6px 16px;
    text-align: center;
    text-decoration: none;
}
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 18px;
    flex: 1;
}
.ad-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
    padding: 9px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ad-img {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 6px;
    cursor: pointer;
}
.ad-title {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 3px;
}
.ad-desc {
    color: #666;
    font-size: 15px;
    margin-bottom: 4px;
}
.ad-price {
    color: #00b67a;
    font-size: 16px;
    margin-bottom: 7px;
}
.add-ad-box, .settings-box {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 12px #0001;
    max-width: 450px;
    margin: 40px auto;
    padding: 24px 22px;
}
.add-ad-box label, .settings-box label {
    display: block;
    margin-bottom: 3px;
    margin-top: 13px;
    color: #555;
    font-weight: 500;
}
.add-ad-box input, .settings-box input,
.add-ad-box textarea, .settings-box textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #bbb;
    padding: 8px;
    margin-bottom: 7px;
    font-size: 15px;
}
.add-ad-box button, .settings-box button {
    background: #2d3748;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
#gallery-modal {
    position: fixed; top:0; left:0; width:100vw; height:100vh;
    background: #000c; display: none; justify-content: center; align-items: center; z-index: 9999;
    flex-direction: column;
}
#gallery-modal img { max-width: 90vw; max-height: 75vh; border-radius: 16px; }
.close-gallery { margin-top: 25px; padding: 6px 16px; background: #2d3748; color: #fff; border-radius: 10px; border: none; font-size: 18px;}
@media (max-width: 800px) {
    .store-main { flex-direction: column; gap: 0; }
    .store-info-box { max-width: 100%; min-width: unset; width: 100%; margin-bottom: 20px; }
    .ads-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
    .ads-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .store-info-box, .ad-card { padding: 11px !important; }
    .main-image { max-height: 170px; }
}
.rating-widget label { color: #ffd700; font-size: 23px; }
