/* Variables */
:root {
    /* Sapin-sapin inspired color palette */
    --primary-color: #7B4397; /* Violet */
    --primary-light: #8E44AD; /* Lighter violet */
    --secondary-color: #FDEB71; /* Pastel yellow */
    --secondary-dark: #F9D342; /* Darker yellow */
    --accent-color: #FF6B6B; /* Warm accent */
    --text-color: #2C3E50; /* Dark blue-gray */
    --light-text: #FFFFFF;
    --background-color: #FFF8E7; /* Soft cream */
    --form-bg: #FFFFFF;
    --border-color: #E8D5C4; /* Warm beige */
    --shadow-color: rgba(123, 67, 151, 0.1); /* Violet shadow */
    --success-color: #2ECC71;
    --error-color: #E74C3C;
    --navbar-height: 70px;
    --navbar-text: #FFFFFF;
    --navbar-hover: #FF8F00;
    --navbar-shadow: rgba(0, 0, 0, 0.1);
    --hero-auth-width: 400px;
    --hero-auth-bg: rgba(255, 255, 255, 0.95);
    --hero-auth-shadow: rgba(123, 67, 151, 0.15);
    --card-radius: 20px;
    --button-radius: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--form-bg);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.feature-card {
    background-color: var(--form-bg);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--primary-light));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px var(--shadow-color);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--light-text);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-auth-container {
        width: 100%;
        max-width: var(--hero-auth-width);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-auth-container {
        margin: 0 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Password Visibility Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-group.password-group {
    position: relative;
}

.form-group.password-group input {
    padding-right: 3rem;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    min-height: 80vh;
}

.hero-left {
    flex: 1 1 0;
    text-align: left;
    max-width: 600px;
    z-index: 2;
}

.hero-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-img-placeholder {
    width: 420px;
    height: 340px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(123,67,151,0.13);
    margin-bottom: 1.5rem;
    background: #f3e9ff url('https://placehold.co/420x340?text=Food+Image') center/cover no-repeat;
    display: block;
}

.hero-auth-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 370px;
    max-width: 95vw;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(123,67,151,0.13);
}

@media (max-width: 1024px) {
    .hero-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .hero-right {
        width: 100%;
        align-items: flex-start;
    }
    .hero-img-placeholder {
        width: 100%;
        max-width: 420px;
        height: 220px;
    }
    .hero-auth-container {
        position: static;
        transform: none;
        margin: 0 auto;
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .hero-flex {
        flex-direction: column;
        gap: 1.2rem;
        padding: 0;
    }
    .hero-left {
        max-width: 100%;
        text-align: center;
    }
    .hero-img-placeholder {
        width: 100%;
        height: 140px;
        border-radius: 1rem;
    }
    .hero-auth-container {
        width: 100%;
        max-width: 100vw;
        border-radius: 1rem;
    }
}

.hero-modern {
    background: linear-gradient(90deg, #fff 60%, #fdf6e3 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-modern-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    min-height: 80vh;
}

.hero-modern-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 2vw;
}

.hero-modern-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #7B4397;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero-modern-subtitle {
    font-size: 1.2rem;
    color: #7B4397;
    margin-bottom: 2.5rem;
    max-width: 420px;
    line-height: 1.6;
}

.hero-modern-buttons {
    display: flex;
    gap: 1.2rem;
}

.btn-modern {
    padding: 0.9rem 2.2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    outline: none;
    box-shadow: 0 4px 16px rgba(123,67,151,0.07);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-modern-yellow {
    background: linear-gradient(90deg, #FDEB71 80%, #F9D342 100%);
    color: #7B4397;
    box-shadow: 0 2px 8px #fde47144;
}

.btn-modern-yellow:hover {
    background: #F9D342;
    color: #7B4397;
    box-shadow: 0 6px 20px #fde47144;
}

.btn-modern-purple {
    background: linear-gradient(90deg, #7B4397 80%, #8E44AD 100%);
    color: #fff;
    box-shadow: 0 2px 8px #7B439744;
}

.btn-modern-purple:hover {
    background: #8E44AD;
    color: #fff;
    box-shadow: 0 6px 20px #7B439744;
}

.hero-modern-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-modern-img-wrap {
    position: relative;
    width: 420px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-modern-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(123,67,151,0.13);
    z-index: 1;
    transform: rotate(6deg);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.hero-modern-img:hover {
    transform: rotate(0deg);
}

.hero-modern-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    opacity: 0.85;
}

.hero-modern-circle-yellow {
    width: 70px;
    height: 70px;
    background: #FDEB71;
    top: -30px;
    left: -30px;
}

.hero-modern-circle-purple {
    width: 90px;
    height: 90px;
    background: #7B4397;
    bottom: -40px;
    right: -40px;
}

@media (max-width: 1024px) {
    .hero-modern-flex {
        flex-direction: column;
        gap: 2rem;
        min-height: 60vh;
    }
    .hero-modern-left {
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
    .hero-modern-img-wrap {
        width: 320px;
        height: 220px;
    }
}

@media (max-width: 600px) {
    .hero-modern-title {
        font-size: 2.1rem;
    }
    .hero-modern-subtitle {
        font-size: 1rem;
        max-width: 95vw;
    }
    .hero-modern-img-wrap {
        width: 95vw;
        height: 140px;
    }
    .hero-modern-circle-yellow {
        width: 40px;
        height: 40px;
        top: -15px;
        left: -15px;
    }
    .hero-modern-circle-purple {
        width: 50px;
        height: 50px;
        bottom: -20px;
        right: -20px;
    }
}

/* Modern Auth Modal Styles */
.modal-content {
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(123,67,151,0.13);
    background: rgba(255,255,255,0.97);
    border: none;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
}
.modal-header {
    border: none;
    padding-bottom: 0;
}
.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #7B4397;
    letter-spacing: 1px;
}
.modal-body {
    padding-top: 0.5rem;
}
.form-label {
    font-weight: 500;
    color: #7B4397;
}
.btn.btn-primary.w-100 {
    background: #7B4397;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    box-shadow: 0 2px 8px #7B439744;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn.btn-primary.w-100:hover {
    background: #FDEB71;
    color: #7B4397;
}
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}
.input-group .form-control {
    border-radius: 2rem;
    padding-right: 2.5rem;
}
.input-group-text {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7B4397;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
}
@media (max-width: 600px) {
    .modal-content {
        border-radius: 1rem;
        padding: 0.2rem 0.2rem 1rem 0.2rem;
    }
    .modal-title {
        font-size: 1.3rem;
    }
}

.about-modern-section {
    background: #fff;
    padding: 4rem 0 3rem 0;
    margin: 0;
}
.about-modern-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.about-modern-img-wrap {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-modern-img {
    width: 440px;
    height: 380px;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(123,67,151,0.13);
    background: #f3e9ff url('https://placehold.co/340x280?text=About+Image') center/cover no-repeat;
    transform: rotate(6deg);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.about-modern-img:hover {
    transform: rotate(0deg);
}
.about-modern-content {
    flex: 2 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 1vw;
}
.about-modern-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #7B4397;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    line-height: 1.2;
}
.about-modern-gradient {
    background: linear-gradient(90deg, #FDEB71 20%, #7B4397 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
}
.about-modern-desc {
    font-size: 1.08rem;
    color: #7B4397;
    margin-bottom: 2.2rem;
    max-width: 600px;
    line-height: 1.7;
}
.about-modern-stats {
    display: flex;
    gap: 3.5rem;
    margin-top: 1.2rem;
}
.about-modern-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}
.about-modern-stat-num {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}
.about-modern-stat-label {
    font-size: 1rem;
    color: #7B4397;
    opacity: 0.85;
    font-weight: 500;
    text-align: center;
}
.about-modern-stat-num i {
    color: #FDEB71;
    margin-right: 0.2rem;
}
@media (max-width: 1024px) {
    .about-modern-flex {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    .about-modern-img {
        width: 95vw;
        max-width: 340px;
        height: 180px;
    }
    .about-modern-content {
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
    .about-modern-desc {
        max-width: 95vw;
    }
    .about-modern-stats {
        gap: 1.5rem;
        justify-content: center;
    }
}
@media (max-width: 600px) {
    .about-modern-section {
        padding: 2rem 0 1.5rem 0;
    }
    .about-modern-title {
        font-size: 1.3rem;
    }
    .about-modern-img {
        width: 95vw;
        height: 120px;
        border-radius: 1rem;
    }
    .about-modern-stat-num {
        font-size: 1.2rem;
    }
    .about-modern-stat-label {
        font-size: 0.95rem;
    }
}

.menu-modern-section {
    background: #fff;
    padding: 4rem 0 3rem 0;
    margin: 0;
}
.menu-modern-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #7B4397;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
    text-align: center;
}
.menu-modern-gradient {
    background: linear-gradient(90deg, #FDEB71 20%, #7B4397 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
}
.menu-modern-subtitle {
    font-size: 1.08rem;
    color: #7B4397;
    margin-bottom: 2.2rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.menu-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    margin: 0 auto 2.5rem auto;
    max-width: 1100px;
}
.menu-modern-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(123,67,151,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.menu-modern-card:hover {
    box-shadow: 0 8px 32px rgba(123,67,151,0.13);
    transform: translateY(-4px) scale(1.01);
}
.menu-modern-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #f3e9ff url('https://placehold.co/320x170?text=Menu+Image') center/cover no-repeat;
}
.menu-modern-card-body {
    padding: 1.2rem 1.2rem 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
}
.menu-modern-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.menu-modern-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E50;
}
.menu-modern-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #F9D342;
    margin-left: 0.5rem;
}
.menu-modern-card-desc {
    font-size: 0.98rem;
    color: #7B4397;
    margin-bottom: 1.2rem;
    min-height: 38px;
}
.menu-modern-cart-btn {
    background: linear-gradient(90deg, #FDEB71 80%, #F9D342 100%);
    color: #7B4397;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    padding: 0.7rem 0;
    font-size: 1rem;
    box-shadow: 0 2px 8px #fde47144;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    width: 100%;
}
.menu-modern-cart-btn:hover {
    background: #F9D342;
    color: #7B4397;
    box-shadow: 0 6px 20px #fde47144;
}
.menu-modern-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.menu-modern-view-btn {
    background: linear-gradient(90deg, #7B4397 80%, #8E44AD 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px #7B439744;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.menu-modern-view-btn:hover {
    background: #8E44AD;
    color: #fff;
    box-shadow: 0 6px 20px #7B439744;
}
@media (max-width: 1024px) {
    .menu-modern-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
}
@media (max-width: 700px) {
    .menu-modern-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .menu-modern-title {
        font-size: 1.3rem;
    }
}

/* Scroll Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
}

/* Ensure horizontal scroll containers do not show vertical scrollbars */
.best-sale-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}
