/* ══════════════════════════════════════════════════════════════
   FRONTEND STYLES FOR MAISON & MENU SHORTCODES
══════════════════════════════════════════════════════════════ */

.sushibox-wrap {
    font-family: 'Inter', sans-serif;
    color: #222;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    margin: 0 auto;
}

.sushibox-wrap a { text-decoration: none; color: inherit; }
.sushibox-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── GRID COMMON ── */
.sbx-maison-grid, .sbx-grid {
    display: grid;
    gap: 0;
}
.sbx-maison-grid { grid-template-columns: repeat(5, 1fr); }
.sbx-grid        { grid-template-columns: repeat(4, 1fr); gap: 2px; } /* Menu 4 columns, 2px gap */

/* ── CARDS ── */
.sbx-m-card, .sbx-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid #EDEAE4;
}
/* Maison cards collapse borders */
.sbx-m-card { margin-right: -1px; margin-bottom: -1px; }
/* Menu cards have gaps, borders are only on images */
.sbx-card { border: none; }
.sbx-card .card-img { border: 1px solid #EDEAE4; }

.card-img {
    overflow: hidden;
    flex-shrink: 0;
}
.card-img img { transition: transform 0.5s ease; }
.sbx-m-card:hover .card-img img,
.sbx-card:hover .card-img img { transform: scale(1.05); }

/* Body */
.sbx-m-card .card-body { padding: 14px 16px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.sbx-card .card-body   { padding: 14px 16px 24px 16px; display: flex; flex-direction: column; flex: 1; }

/* Featured Wide Card */
.sbx-m-card.featured, .sbx-card.featured { grid-column: span 2; }
.sbx-m-card.featured .card-img { height: 240px; }
.sbx-card.featured .card-img   { height: 240px; }
.sbx-m-card.featured .card-body,
.sbx-card.featured .card-body { padding: 16px 20px 24px 16px; }
.sbx-m-card.featured .card-title,
.sbx-card.featured .card-title { font-size: 22px; }

/* Small Card */
.sbx-m-card:not(.featured) .card-img { height: 190px; }
.sbx-card:not(.featured) .card-img   { height: 180px; }

/* Text elements */
.card-tag {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #a08a5b;
    margin-bottom: 6px;
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.card-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 14px 0;
    flex: 1;
}
.card-order {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a08a5b;
    transition: gap 0.25s ease;
    margin-top: auto;
}
.card-order:hover { gap: 9px; }
.card-order .arrow { transition: transform 0.25s ease; }
.card-order:hover .arrow { transform: translateX(3px); }


/* ── MENU SIDEBAR & LAYOUT ── */
.sbx-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 48px;
}
.sbx-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-self: start;
    position: sticky;
    top: 80px;
}
.sbx-widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px 0;
    color: #222;
    padding-bottom: 8px;
    border-bottom: 1px solid #EDEAE4;
}

/* Search */
.sbx-search-wrap { position: relative; }
.sbx-search-input {
    width: 100%;
    padding: 11px 16px 11px 45px !important;
    border: 1px solid #EDEAE4;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    color: #333;
    box-sizing: border-box;
    background: transparent;
}
.sbx-search-input:focus { border-color: #FFD200; }
.sbx-search-icon {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    display: flex;
}

/* Price */
.sbx-price-slider {
    -webkit-appearance: none;
    width: 100%; height: 3px;
    border-radius: 2px;
    background: #FFD200;
    outline: none;
    margin: 14px 0 10px;
}
.sbx-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 15px; width: 15px;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
    border: 2px solid #FFD200;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.sbx-price-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: #666; font-weight: 600; }

/* Categories */
.sbx-categories-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sbx-category-item { font-size: 13.5px; color: #333; cursor: pointer; display: flex; align-items: center; transition: color 0.2s; }
.sbx-category-item::before { content: '•'; margin-right: 8px; color: #111; font-size: 18px; line-height: 1; }
.sbx-category-item:hover, .sbx-category-item.active { font-weight: 700; color: #000; }

/* Tags */
.sbx-tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.sbx-tag-pill {
    font-size: 11.5px;
    padding: 5px 11px;
    background: #fff;
    border: 1px solid #EDEAE4;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-family: inherit;
    border-radius: 3px;
}
.sbx-tag-pill:hover { border-color: #a08a5b; color: #a08a5b; }
.sbx-tag-pill.active { background: #FFD200; border-color: #FFD200; color: #000; font-weight: 600; }

/* Promo */
.sbx-promo-card {
    background: #111;
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.sbx-promo-badge { font-size: 9px; font-weight: 700; color: #FFD200; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.sbx-promo-title { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 16px; color: #FFF; line-height: 1.5; margin: 0 0 20px 0; }
.sbx-promo-btn {
    width: 100%; height: 42px; border: none; font-weight: 700; font-size: 13px;
    cursor: pointer; letter-spacing: 0.5px; text-transform: uppercase; border-radius: 4px;
    transition: all 0.2s ease; margin-bottom: 8px; font-family: inherit;
}
.sbx-promo-btn:last-child { margin-bottom: 0; }
.sbx-btn-talabat { background: #FF5E00; color: #FFF; }
.sbx-btn-talabat:hover { background: #E05300; transform: translateY(-1px); }
.sbx-btn-taste { background: #FFD200; color: #000; }
.sbx-btn-taste:hover { background: #E6BD00; transform: translateY(-1px); }

/* Pagination */
.sbx-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 48px 0 0; }
.sbx-page-item {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; color: #555; user-select: none;
}
.sbx-page-item:hover { background: #f5f3ef; color: #1a1a1a; }
.sbx-page-item.active { background: #FFD200; color: #000; }
.sbx-page-item.disabled { color: #ccc; cursor: not-allowed; pointer-events: none; }
.sbx-no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; font-size: 15px; color: #777; background: #FAF8F5; border: 1px dashed #E5E5E5; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .sbx-maison-grid { grid-template-columns: repeat(3, 1fr); }
    .sbx-m-card.featured .card-img { height: 200px; }
    .sbx-layout { grid-template-columns: 1fr; }
    .sbx-sidebar { position: static; }
    .sbx-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .sbx-maison-grid { grid-template-columns: repeat(2, 1fr); }
    .sbx-m-card:not(.featured) .card-img { height: 160px; }
}
@media (max-width: 600px) {
    .sbx-maison-grid, .sbx-grid { grid-template-columns: 1fr; }
    .sbx-m-card.featured, .sbx-card.featured { grid-column: span 1; }
    .sbx-m-card.featured .card-img, .sbx-card.featured .card-img { height: 200px; }
}

/* ── CATEGORY HERO ── */
.sbx-cat-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-color: #111;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 20px 140px; /* Extra bottom padding for floating nav */
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: #FFF;
}
.sbx-cat-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
.sbx-cat-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}
.sbx-cat-breadcrumbs {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFD200;
    margin-bottom: 24px;
}
.sbx-cat-breadcrumbs span {
    color: #FFD200;
}
.sbx-cat-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #FFF;
}
.sbx-cat-desc {
    font-size: 15px;
    color: #DDD;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 30px;
}
.sbx-cat-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.sbx-cat-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 30px;
    border-radius: 23px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.sbx-btn-primary { background: #FFD200; color: #000; }
.sbx-btn-primary:hover { background: #FFF; }
.sbx-btn-outline { border: 2px solid #FFF; color: #FFF; background: transparent; }
.sbx-btn-outline:hover { background: #FFF; color: #000; }

/* ── CATEGORY NAV ── */
.sbx-cat-nav-wrapper {
    position: relative;
    z-index: 10;
    margin: -50px auto 0;
    max-width: 1140px;
    width: calc(100% - 40px);
    background: #FFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
}
.sbx-cat-nav-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
}
.sbx-cat-nav-container::-webkit-scrollbar { display: none; }
.sbx-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    min-width: 90px;
    text-decoration: none;
    color: #555;
    position: relative;
    transition: all 0.2s ease;
}
.sbx-cat-item:hover, .sbx-cat-item.active { color: #FFD200; }
.sbx-cat-icon {
    width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center;
}
.sbx-cat-icon img { width: 100%; height: 100%; object-fit: contain; }
.sbx-cat-name {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}
.sbx-cat-item.active::after {
    content: '';
    position: absolute;
    bottom: -11px; left: 0; right: 0;
    height: 2px;
    background: #FFD200;
}

/* ── COLLECTION HEADER ── */
.sbx-collection-header {
    max-width: 1140px;
    margin: 60px auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 0 20px;
}

/* ── ELEMENTOR HEADER MENU CUSTOM STYLES ── */
header .elementor-item-active,
header .current-menu-item > a,
header .current-menu-ancestor > a,
header .elementor-item:hover,
header .e-n-menu-title.e-current,
header .e-n-menu-title:hover {
    color: #000000 !important;
    -webkit-text-stroke: 1px #FFD200 !important;
    text-shadow: 0px 6px 15px rgba(255, 210, 0, 0.6) !important;
}
.sbx-chopsticks {
    height: 20px;
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid #222;
}
.sbx-collection-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.2;
}
.sbx-collection-title p {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .sbx-cat-title { font-size: 36px; }
    .sbx-collection-header { flex-direction: column; gap: 10px; margin-top: 40px; }
    .sbx-chopsticks { display: none; }
}
