/* =========================================================
   THEBELLABYTE — PREMIUM DESIGN SYSTEM
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --primary: #e63946;
    --primary-dark: #c92534;
    --dark: #171717;
    --dark-soft: #242424;
    --cream: #fffaf6;
    --cream-2: #f8f1eb;
    --white: #ffffff;
    --gold: #c9a227;
    --green: #16865b;
    --text: #222222;
    --muted: #747474;
    --border: #ece7e2;
    --shadow: 0 15px 45px rgba(30, 20, 15, 0.08);
    --shadow-hover: 0 22px 55px rgba(30, 20, 15, 0.14);
    --radius: 22px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
    width: 100%;
    min-height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

nav a {
    font-size: 15px;
    font-weight: 600;
    color: #242424;
    position: relative;
    transition: 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.login-btn {
    border: none;
    background: var(--dark);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.3s ease;
}
/* =========================================================
   PREMIUM CART BUTTON
   ========================================================= */

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e8e2dc;
    border-radius: 30px;
    background: #ffffff;
    color: #171717;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(30,20,15,0.06);
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(230,57,70,0.12);
}

.cart-btn .cart-icon {
    font-size: 17px;
}

.cart-btn .cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}
.login-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230,57,70,0.25);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 640px;
    padding: 90px 7% 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 25%, rgba(230,57,70,0.08), transparent 28%),
        radial-gradient(circle at 85% 70%, rgba(201,162,39,0.09), transparent 28%),
        linear-gradient(135deg, #fffaf7 0%, #ffffff 55%, #fff8f2 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    border: 1px solid rgba(201,162,39,0.15);
    right: -150px;
    top: -160px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(230,57,70,0.12);
    left: -120px;
    bottom: -130px;
}

.hero-content {
    width: min(1000px, 100%);
    position: relative;
    z-index: 2;
}

.hero-content::before {
    content: "THEBELLABYTE • FOOD • GROCERY • DELIVERY";
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    max-width: 950px;
    margin: auto;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--dark);
}

.hero h1::first-line {
    color: var(--dark);
}

.hero p {
    max-width: 680px;
    margin: 28px auto 38px;
    font-size: 18px;
    color: var(--muted);
}

/* =========================================================
   SEARCH
   ========================================================= */

.search-box {
    width: min(720px, 100%);
    min-height: 70px;
    margin: auto;
    padding: 7px 8px 7px 25px;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #eee7e1;
    border-radius: 40px;
    box-shadow: 0 20px 55px rgba(30,20,15,0.12);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text);
    background: transparent;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button,
.search-btn {
    border: none;
    background: var(--primary);
    color: white;
    padding: 16px 30px;
    border-radius: 32px;
    font-weight: 700;
    transition: 0.3s ease;
}

.search-box button:hover,
.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.categories,
.popular {
    padding: 90px 7%;
}

.categories {
    background: #fff;
}

.popular {
    background: linear-gradient(180deg, #fff 0%, #fffaf7 100%);
}

.section-heading {
    max-width: 1100px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2,
.categories h2,
.popular h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 4vw, 48px);
    color: var(--dark);
    line-height: 1.15;
}

.section-heading p {
    margin-top: 12px;
    color: var(--muted);
}

/* =========================================================
   CATEGORY CARDS
   ========================================================= */

.category-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    padding: 42px 30px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(20,20,20,0.05);
    transition: 0.35s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(230,57,70,0.2);
}

.category-icon {
    width: 78px;
    height: 78px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    font-size: 43px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 7px;
}

.category-card p {
    color: var(--muted);
}

/* =========================================================
   RESTAURANTS
   ========================================================= */

.restaurant-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.restaurant-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(20,20,20,0.06);
    transition: 0.35s ease;
}

.restaurant-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

/* =========================================================
   RESTAURANT IMAGE
   ========================================================= */

.restaurant-image {
    height: 235px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #fff0ea, #f8e4da);
}
.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.food-placeholder {
    font-size: 95px;
    transition: 0.4s ease;
    filter: drop-shadow(0 15px 12px rgba(0,0,0,0.12));
}

.restaurant-card:hover .food-placeholder {
    transform: scale(1.1) rotate(-3deg);
}

.offer-badge {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 8px 13px;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(230,57,70,0.25);
}

.favorite-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    font-size: 17px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.08);
    background: var(--primary);
    color: white;
}

/* =========================================================
   RESTAURANT INFO
   ========================================================= */

.restaurant-info {
    padding: 24px;
}

.restaurant-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.restaurant-title h3 {
    font-size: 20px;
    line-height: 1.25;
}

.rating {
    flex-shrink: 0;
    padding: 6px 10px;
    background: var(--green);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.restaurant-type {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
}

.restaurant-meta span {
    padding: 7px 11px;
    border-radius: 18px;
    background: #f6f5f3;
    color: #555;
    font-size: 12px;
    font-weight: 600;
}

.restaurant-meta span:first-child {
    color: var(--green);
    background: #eef8f3;
}

.order-btn {
    width: 100%;
    margin-top: 20px;
    padding: 13px 18px;
    border: none;
    border-radius: 13px;
    background: var(--dark);
    color: white;
    font-weight: 700;
    transition: 0.3s ease;
}

.order-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.popular > .order-btn,
.popular > button {
    display: block;
    width: fit-content;
    margin: 32px auto 0;
    padding: 13px 22px;
    border: 1px solid var(--dark);
    border-radius: 30px;
    background: transparent;
    color: var(--dark);
    font-weight: 700;
}

.popular > .order-btn:hover,
.popular > button:hover {
    background: var(--dark);
    color: white;
}

/* =========================================================
   PREMIUM DIVIDER
   ========================================================= */

.popular::before {
    content: "THEBELLABYTE SELECT";
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 70px 7% 35px;
    background: var(--dark);
    color: white;
    text-align: center;
}

footer h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    color: white;
}

footer p {
    margin-top: 12px;
    color: #aaa;
}

.footer-links {
    margin: 28px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-links a {
    color: #ddd;
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: #888;
    font-size: 13px;
}

/* =========================================================
   PREMIUM ANIMATIONS
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeUp 0.8s ease both;
}

.category-card,
.restaurant-card {
    animation: fadeUp 0.7s ease both;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    header {
        padding: 0 5%;
    }

    nav {
        gap: 20px;
    }

    .category-container,
    .restaurant-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {

    header {
        min-height: 70px;
        padding: 12px 5%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 23px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        padding-bottom: 5px;
    }

    nav a {
        font-size: 13px;
    }

    .login-btn {
        padding: 9px 18px;
        font-size: 13px;
    }

    .hero {
        min-height: 560px;
        padding: 70px 5%;
    }

    .hero-content::before {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 15px;
    }

    .search-box {
        min-height: 60px;
        padding-left: 18px;
    }

    .search-box button,
    .search-btn {
        padding: 13px 20px;
    }

    .categories,
    .popular {
        padding: 65px 5%;
    }

    .category-container,
    .restaurant-container {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 210px;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 36px;
    }

    .search-box {
        flex-direction: column;
        padding: 8px;
        border-radius: 20px;
        gap: 8px;
    }

    .search-box input {
        width: 100%;
        padding: 13px;
    }

    .search-box button {
        width: 100%;
    }

    .restaurant-image {
        height: 220px;
    }

    .food-placeholder {
        font-size: 80px;
    }
}/* Premium Explore All Restaurants Button */
.explore-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 14px 28px;
    background: #171717;
    color: #ffffff;
    border: 1px solid #171717;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.explore-all-btn:hover {
    background: #e9364f;
    border-color: #e9364f;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(233, 54, 79, 0.22);
}/* Premium Explore All Restaurants Button */

   LOGIN SECTION
================================ */

.login-section {
    width: 100%;
    padding: 60px 20px;
    background: #fffaf8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.login-box {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-sizing: border-box;
}

.login-box {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    padding: 45px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.login-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #d4a017;
}

.login-box h2 {
    margin: 0 0 12px;
    font-size: 36px;
    color: #171717;
}

.login-box > p {
    color: #777;
    margin-bottom: 30px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
}

.login-box input:focus {
    border-color: #e73546;
}

.login-box form button {
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #171717;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.login-box form button:hover {
    background: #e73546;
}

.signup-text {
    margin-top: 25px;
    font-size: 14px;
}

.signup-text a {
    color: #e73546;
    font-weight: 700;
    text-decoration: none;
}/* =========================
   SIGNUP SECTION
========================= */

.signup-section {
    min-height: 650px;
    padding: 90px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fffaf8;
}

.signup-box {
    width: 100%;
    max-width: 460px;
    padding: 50px 45px;
    background: #ffffff;
    border-radius: 26px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.signup-label {
    display: block;
    margin-bottom: 22px;
    color: #d99a00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
}

.signup-box h2 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.2;
    color: #171717;
}

.signup-box > p {
    margin-bottom: 30px;
    color: #777;
    font-size: 16px;
}

.signup-box form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.signup-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.signup-box input:focus {
    border-color: #ef3340;
}

.signup-box button {
    width: 100%;
    padding: 16px;
    margin-top: 5px;
    border: none;
    border-radius: 12px;
    background: #171717;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.signup-box button:hover {
    background: #ef3340;
}

.login-text {
    margin-top: 25px !important;
    margin-bottom: 0 !important;
    color: #777;
    font-size: 14px !important;
}

.login-text a {
    color: #ef3340;
    font-weight: 700;
    text-decoration: none;
}

.login-text a:hover {
    text-decoration: underline;
}


/* Mobile */
@media (max-width: 600px) {

    .signup-section {
        padding: 60px 15px;
    }

    .signup-box {
        padding: 40px 25px;
    }

    .signup-box h2 {
        font-size: 30px;
    }

}
/* FORCE VIEW MENU BUTTONS TO SHOW */
.restaurant-card .order-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    background: #171717 !important;
    color: #ffffff !important;
    padding: 13px 18px !important;
    margin-top: 20px !important;
    border: none !important;
    border-radius: 13px !important;
    cursor: pointer !important;
}
/* =========================================================
   LOGIN SECTION — FINAL CENTER FIX
   ========================================================= */

.login-section {
    width: 100%;
    min-height: 650px;
    padding: 90px 20px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    background: #fffaf8;
}

.login-box {
    width: 100%;
    max-width: 460px;
    margin: 0 auto !important;
    box-sizing: border-box;
}
/* Explore All Restaurants alignment */
.section-action {
    width: calc(100% - 40px);
    max-width: 1000px;
    margin: 28px auto 0;
    box-sizing: border-box;
}

/* TheBellaByte - Premium Mobile Layout */
@media (max-width: 768px) {
    .header {
        position: relative;
        top: auto;
        width: 100%;
        min-height: auto;
        padding: 16px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 12px;
        background: #fff;
        border-bottom: 1px solid #eee7e2;
        box-shadow: 0 5px 20px rgba(25, 20, 15, 0.05);
    }

    .header .logo {
        min-width: 0;
        font-size: clamp(19px, 5.2vw, 25px);
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: -0.8px;
        color: #e63946;
    }

    .header .cart-btn {
        grid-column: 2;
        grid-row: 1;
        padding: 9px 12px;
        border: 1px solid #eee1dc;
        border-radius: 24px;
        background: #fffaf6;
        font-size: 13px;
        white-space: nowrap;
    }

    .header .login-btn {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        padding: 9px 18px;
        border-radius: 24px;
        font-size: 13px;
    }

    .header nav {
        grid-column: 1 / -1;
        grid-row: 3;
        order: initial;
        width: 100%;
        min-width: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 24px;
        padding: 5px 0 9px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .header nav::-webkit-scrollbar {
        display: none;
    }

    .header nav a {
        flex: 0 0 auto;
        font-size: 14px;
        font-weight: 600;
    }

    .hero {
        min-height: auto;
        padding: 58px 18px 64px;
    }

    .hero h1 {
        font-size: clamp(34px, 8.5vw, 44px);
        line-height: 1.12;
        letter-spacing: -1px;
    }

    .hero p {
        margin: 20px auto 28px;
        font-size: 15px;
        line-height: 1.7;
    }

    .search-box {
        width: 100%;
        min-height: auto;
        padding: 10px;
        gap: 10px;
    }

    .search-box input {
        min-width: 0;
        width: 100%;
        padding: 12px;
    }

    .categories,
    .popular {
        padding: 54px 18px;
    }

    .categories h2,
    .section-heading h2 {
        font-size: clamp(29px, 7vw, 38px);
        line-height: 1.2;
    }

    .category-container,
    .restaurant-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-card {
        min-height: auto;
        padding: 28px 20px;
    }

    .restaurant-image {
        height: 220px;
    }

    .restaurant-info {
        padding: 20px;
    }

    .login-section,
    .signup-section {
        min-height: auto;
        padding: 48px 16px;
    }

    .login-box,
    .signup-box {
        padding: 30px 22px;
    }

    .orders-section {
        min-height: auto !important;
        padding: 44px 16px !important;
    }

    #orders-container {
        width: 100%;
    }

    footer {
        padding: 44px 20px 28px;
    }

    .footer-links {
        gap: 16px 22px;
    }
}

@media (max-width: 380px) {
    .header {
        padding-left: 12px;
        padding-right: 12px;
        column-gap: 8px;
    }

    .header .logo {
        font-size: 19px;
    }

    .header .cart-btn {
        padding: 8px 9px;
        font-size: 12px;
    }

    .header nav {
        gap: 20px;
    }

    .header nav a {
        font-size: 13px;
    }
}
