:root {
    --accent-pink: #f4a2b2;
    --brand-dark: #5d4a44;
    --price-gold: #c9a55c;
    --bg-glass: rgba(255, 255, 255, 0.96);
    --font-main: 'Vazirmatn', sans-serif;
    --font-title: 'Cinzel', serif;
    --font-script: 'Great Vibes', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
body { font-family: var(--font-main); color: var(--brand-dark); background-color: #fdf5ef; min-height: 100vh; line-height: 1.6; cursor: auto; }

#main-bg { position: fixed; inset: 0; background: url('assets/background.jpg') no-repeat center center; background-size: cover; opacity: 0.15; z-index: -1; }

.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 1rem; }
.logo-box { width: 110px; }
.logo-box img { width: 100%; }
.brand-info { text-align: left; }
.brand-info h1 { font-family: var(--font-title); font-size: 2rem; color: #5d5d4d; }
.brand-info span { font-family: var(--font-script); font-size: 1.6rem; color: var(--accent-pink); display: block; text-align: right; margin-top: -5px; }

.filter-section { display: flex; justify-content: center; margin-bottom: 2.5rem; position: sticky; top: 15px; z-index: 50; }
.filter-bar { background: var(--bg-glass); padding: 0.4rem; border-radius: 50px; display: flex; gap: 0.4rem; box-shadow: 0 8px 25px rgba(0,0,0,0.04); backdrop-filter: blur(10px); }
.filter-btn { background: transparent; border: none; font-family: var(--font-main); font-size: 0.85rem; font-weight: 600; color: #999; padding: 0.5rem 1.4rem; border-radius: 50px; transition: 0.3s; cursor: pointer; }
.filter-btn.active { background: var(--accent-pink); color: #fff; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; padding-bottom: 100px; }

.card { 
    background: var(--bg-glass); 
    border-radius: 20px; 
    padding: 10px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    border: 1px solid rgba(255,255,255,0.7); 
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(93, 74, 68, 0.15);
    border-color: var(--accent-pink);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
    z-index: 5;
}

.card:hover::before {
    left: 150%;
}

.slider-container { width: 100%; aspect-ratio: 1/1; border-radius: 15px; overflow: hidden; position: relative; background: #eee; z-index: 2; }
.slider-wrapper { display: flex; width: 100%; height: 100%; overflow-x: scroll; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-wrapper::-webkit-scrollbar { display: none; }
.slider-wrapper img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; scroll-snap-align: start; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none; }
.dot { width: 5px; height: 5px; background: rgba(255,255,255,0.4); border-radius: 50%; transition: 0.3s; }
.dot.active { background: var(--accent-pink); width: 12px; border-radius: 10px; }

.card-details { padding: 0.8rem 0.4rem; z-index: 2; position: relative; }
.card-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.price { color: var(--price-gold); font-weight: 800; font-size: 1rem; }
.title { font-size: 1rem; font-weight: 700; transition: color 0.3s; }
.card:hover .title { color: var(--accent-pink); }
.desc { font-size: 0.8rem; color: #999; margin-bottom: 0.8rem; min-height: 35px; }
.card-footer { display: flex; justify-content: flex-end; }
.tag { background: #f9f9f9; color: #bbb; font-size: 0.65rem; padding: 2px 10px; border-radius: 50px; border: 1px solid #eee; transition: 0.3s; }
.card:hover .tag { background: var(--accent-pink); color: white; border-color: var(--accent-pink); }

footer { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; }
.dev-pill { background: var(--bg-glass); padding: 0.6rem 1.8rem; border-radius: 50px; text-decoration: none; color: var(--brand-dark); font-size: 0.8rem; font-weight: 600; box-shadow: 0 5px 20px rgba(0,0,0,0.08); display: flex; gap: 6px; align-items: center; backdrop-filter: blur(10px); }

.admin-btn { position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; background: var(--bg-glass); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--accent-pink); box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 101; backdrop-filter: blur(10px); cursor: pointer; }

.admin-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); z-index: 20000; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.admin-overlay.active { opacity: 1; display: flex; }
.admin-panel { width: 95%; max-width: 450px; background: #fff; border-radius: 25px; padding: 1.5rem; max-height: 90vh; overflow-y: auto; font-family: var(--font-main); }
.admin-panel.full-width { max-width: 850px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 1.5rem; background: #f5f5f5; padding: 4px; border-radius: 12px; }
.tab-btn { flex: 1; border: none; padding: 8px; border-radius: 10px; font-family: var(--font-main); font-weight: 600; color: #888; background: transparent; transition: 0.3s; cursor: pointer; }
.tab-btn.active { background: #fff; color: var(--accent-pink); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.admin-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.admin-preview { background: #fcfcfc; border-radius: 15px; padding: 10px; border: 1px dashed #ddd; display: flex; flex-direction: column; align-items: center; }

.form-group { margin-bottom: 0.8rem; }
.form-row { display: flex; gap: 8px; }
.form-label { font-size: 0.75rem; font-weight: 700; margin-bottom: 0.3rem; display: block; color: var(--accent-pink); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px; border: 1px solid #eee; border-radius: 10px; font-family: var(--font-main); font-size: 0.9rem; }
.btn-submit { width: 100%; padding: 12px; background: var(--accent-pink); color: #fff; border: none; border-radius: 12px; font-weight: 700; margin-top: 0.5rem; transition: 0.3s; font-family: var(--font-main); cursor: pointer; }

.data-list { margin-top: 1.5rem; border-top: 1px solid #eee; padding-top: 1rem; }
.data-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #f9f9f9; border-radius: 12px; margin-bottom: 6px; border: 1px solid #f0f0f0; }
.actions { display: flex; gap: 5px; }
.act-btn { border: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: 0.2s; cursor: pointer; }
.edit-btn { background: #e3f2fd; color: #1976d2; }
.del-btn { background: #ffebee; color: #d32f2f; }

@media (max-width: 768px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .container { padding: 1rem; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-preview { order: -1; }
}