: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;
}

* { 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: none; }

#main-bg { position: fixed; inset: 0; background: url('assets/background.jpg') no-repeat center center; background-size: cover; opacity: 0.15; z-index: -1; }

.cursor-dot { position: fixed; width: 6px; height: 6px; background: var(--brand-dark); border-radius: 50%; z-index: 1000001; pointer-events: none; transform: translate(-50%, -50%); }
.cursor-outline { position: fixed; width: 28px; height: 28px; border: 1.5px solid var(--accent-pink); border-radius: 50%; z-index: 1000000; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s, transform 0.1s ease-out; }
body.hovered .cursor-outline { width: 55px; height: 55px; background: rgba(244, 162, 178, 0.1); border-color: transparent; }

.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: 'Great Vibes', cursive; 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.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-tap-highlight-color: transparent;
}

.card:active { transform: scale(0.95) translateY(5px); }

.tap-ripple {
    position: absolute; background: rgba(244, 162, 178, 0.3); border-radius: 50%;
    transform: scale(0); animation: ripple-effect 0.6s ease-out; pointer-events: none; z-index: 15;
}

@keyframes ripple-effect { to { transform: scale(4); opacity: 0; } }

.card:hover { transform: translateY(-10px); 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; }
.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); }

@media (max-width: 1024px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none !important; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

.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); }
.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; }
.tab-btn.active { background: #fff; color: var(--accent-pink); }
.admin-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
.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); }
.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; }
.act-btn { border: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.edit-btn { background: #e3f2fd; color: #1976d2; }
.del-btn { background: #ffebee; color: #d32f2f; }