/* --- VARIABLES --- */
:root {
    --jd-primary: #ec2459;  /* Brand Pink */
    --jd-secondary: #028ad7; /* Brand Blue */
    --jd-dark: #2d3436;
    --jd-light: #f8f9fa;
    --jd-white: #ffffff;
    --jd-radius: 12px;
}

/* --- GRID LAYOUTS (Shortcodes) --- */
.jd-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.jd-category-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.jd-cat-card {
    background: var(--jd-white);
    border: 2px solid #eee;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--jd-dark);
    text-align: center;
    transition: all 0.3s;
}

.jd-cat-card:hover {
    background: var(--jd-primary);
    color: white;
    border-color: var(--jd-primary);
}

.jd-cat-card h3 { margin: 0; font-size: 1.1rem; }
.jd-cat-card span { font-size: 0.8rem; display: block; opacity: 0.8; }

.jd-section-title {
    border-left: 5px solid var(--jd-secondary);
    padding-left: 15px;
    margin: 40px 0 20px;
    color: var(--jd-dark);
}

/* --- CARD DESIGN --- */
.jd-food-card {
    background: var(--jd-white);
    border-radius: var(--jd-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.jd-food-card:hover { transform: translateY(-5px); border-color: var(--jd-secondary); }

.jd-card-image { height: 220px; overflow: hidden; }
.jd-card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.jd-food-card:hover img { transform: scale(1.1); }

.jd-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.jd-card-title { font-size: 1.2rem; margin: 0 0 10px; }
.jd-card-title a { color: var(--jd-dark); text-decoration: none; }
.jd-card-desc { font-size: 0.9rem; color: #666; flex-grow: 1; margin-bottom: 20px; }

.jd-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 15px; }
.jd-price { font-size: 1.3rem; font-weight: bold; color: var(--jd-primary); }
.jd-btn { 
    background: transparent; color: var(--jd-secondary); 
    border: 2px solid var(--jd-secondary); padding: 5px 15px; 
    border-radius: 20px; text-decoration: none; font-weight: bold; transition: 0.3s;
}
.jd-btn:hover { background: var(--jd-secondary); color: white; }

/* --- SINGLE PAGE STYLES --- */
.jd-single-hero {
    background: var(--jd-light);
    border-top: 5px solid var(--jd-secondary);
    padding: 60px 0;
    margin-bottom: 50px;
}
.jd-hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.jd-hero-img img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: rotate(-2deg); }
.jd-hero-text h1 { font-size: 3rem; color: var(--jd-dark); line-height: 1.2; }
.jd-hero-text h1 span { color: var(--jd-primary); }
.jd-big-price { display: inline-block; background: var(--jd-primary); color: white; padding: 10px 30px; border-radius: 50px; font-size: 1.5rem; margin-top: 20px; }

.jd-content-layout {
    display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
    max-width: 1200px; margin: 0 auto; padding: 0 20px 60px;
}

/* FAQ Accordion */
.jd-faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.jd-faq-q { font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; font-size: 1.1rem; }
.jd-faq-q:hover { color: var(--jd-secondary); }
.jd-faq-a { display: none; margin-top: 10px; color: #666; padding-left: 10px; border-left: 3px solid var(--jd-primary); }
.jd-faq-a.open { display: block; }

/* Sidebar */
.jd-sidebar-card { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding: 10px; border: 1px solid #eee; border-radius: 10px; cursor: pointer; transition: 0.3s; }
.jd-sidebar-card:hover { border-color: var(--jd-secondary); transform: translateX(5px); }
.jd-sidebar-card img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }

/* Responsive */
@media (max-width: 900px) {
    .jd-hero-grid, .jd-content-layout { grid-template-columns: 1fr; text-align: center; }
    .jd-hero-img { order: -1; }
    .jd-hero-img img { max-width: 400px; transform: rotate(0); }
}
/* --- Fix Single Page Title on Mobile --- */
@media (max-width: 768px) {
    .jd-hero-text h1 {
        font-size: 1rem !important; /* Size thoda chota kiya */
        line-height: 1.2 !important;
        word-wrap: break-word;      /* Agar lamba word ho to toot jaye */
        overflow-wrap: break-word;
        margin-bottom: 10px;
    }
}