/* RESTO Modern Coffee & Restaurant Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --coffee-dark: #3C2A21;
    --coffee-medium: #4B2C20;
    --coffee-light: #6F4E37;
    --coffee-accent: #A67B5B;
    --cream: #F5F5DC;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

html, body {
    font-family: 'Montserrat', 'poppins';
    color: var(--coffee-dark);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h6,
h5,
h6,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    padding: 0.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.7rem;
    color: var(--white) !important;
    letter-spacing: 2px;
}

.navbar.scrolled .navbar-brand {
    color: var(--coffee-dark) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--coffee-dark) !important;
}

.navbar.scrolled .nav-link.active {
    color: var(--coffee-accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coffee-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../images/resto.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease;
}

/* Category Section */
.section-padding {
    padding: 40px 0 100px;
}

.category-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card img {
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(60, 42, 33, 0.9));
    color: var(--white);
}

/* About Section */
.about-section {
    background-color: var(--cream);
}

.about-img {
    border-radius: 30px;
    box-shadow: 20px 20px 0 var(--coffee-light);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--cream);
    padding: 100px 0;
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-img {
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.5s ease;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.gallery-img:hover {
    transform: scale(1.08);
    filter: brightness(0.85) contrast(1.1);
    box-shadow: 0 10px 30px rgba(60, 42, 33, 0.3);
}

/* Vlog Section */
.vlog-card {
    border: none;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background: var(--coffee-dark);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--coffee-accent);
    padding-left: 5px;
}

/* Newsletter Alignment */
.newsletter-group {
    background: var(--white);
    border-radius: 50px;
    padding: 4px;
    display: flex;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-group .form-control {
    border: none;
    background: transparent;
    padding: 10px 25px;
    margin-bottom: 0 !important;
    height: auto;
    color: var(--coffee-dark);
}

.newsletter-group .form-control:focus {
    box-shadow: none;
}

.newsletter-group .btn-resto {
    border-radius: 50px;
    padding: 10px 35px;
    white-space: nowrap;
    border: none;
}

/* Buttons */
.btn-resto {
    background: var(--coffee-medium);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--coffee-medium);
    transition: var(--transition);
}

.btn-resto:hover {
    background: var(--coffee-accent);
    color: var(--white);
    border-color: var(--coffee-accent);
    box-shadow: 0 5px 15px rgba(166, 123, 91, 0.4);
    transform: translateY(-2px);
}

.btn-resto:active {
    transform: scale(0.96);
    background: var(--coffee-dark);
}

.btn-white {
    background: var(--white);
    color: var(--coffee-dark);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.btn-white:hover {
    background: var(--coffee-dark);
    color: var(--white);
    border-color: var(--coffee-dark);
    box-shadow: 0 5px 15px rgba(60, 42, 33, 0.3);
    transform: translateY(-2px);
}

.btn-white:active {
    transform: scale(0.96);
    background: var(--white);
    color: var(--coffee-dark);
}

.btn-nav-order {
    background: linear-gradient(135deg, var(--coffee-medium) 0%, var(--coffee-accent) 100%);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-nav-order:hover {
    background: var(--white);
    color: var(--coffee-medium) !important;
    border-color: var(--coffee-medium);
}

.btn-hero-order {
    background: #4B2C20;
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-hero-order:hover {
    background: var(--coffee-accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 50%;
    height: 3px;
    background: var(--coffee-accent);
    position: absolute;
    bottom: -10px;
    left: 25%;
}

/* Products Page Styles */
.text-coffee-accent {
    color: var(--coffee-accent) !important;
}

.hero-products {
    min-height: 50vh;
    background: var(--coffee-dark);
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 100px 0 40px;
    overflow: hidden;
    position: relative;
}

.hero-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--coffee-accent) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.blob-1 {
    top: -200px;
    left: -100px;
    animation: floatBlob 20s infinite alternate;
}

.blob-2 {
    bottom: -250px;
    right: -100px;
    background: radial-gradient(circle, var(--white) 0%, transparent 70%);
    opacity: 0.08;
    animation: floatBlob 25s infinite alternate-reverse;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 80px) scale(1.1); }
}

/* Vertical Offer Slider */
.offer-slider-wrapper {
    height: 380px; 
    overflow: hidden;
    position: relative;
    border-radius: 25px;
}

.offer-slider-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.offer-card {
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    height: 380px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: 0.8s ease-in-out;
    flex-shrink: 0;
    opacity: 0.3;
    transform: scale(0.9) translateY(20px);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.offer-card.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    border-color: var(--coffee-accent);
    box-shadow: 0 0 40px rgba(188, 150, 107, 0.4);
}

.btn-resto-accent {
    background: var(--coffee-accent);
    color: var(--white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
}

.btn-resto-accent:hover {
    background: var(--white);
    color: var(--coffee-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-content-half h1 {
    margin-bottom: 2rem !important;
    line-height: 1.2;
}

.hero-content-half p {
    margin-bottom: 3rem !important;
    line-height: 1.8;
}

.offer-banner-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.offer-card {
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    height: 380px; /* Match wrapper height */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    flex-shrink: 0;
}

.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.offer-card:hover img {
    transform: scale(1.1);
}

.offer-card .category-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.offer-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.offer-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--coffee-accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Sidebar Filters */
.filters-sidebar {
    background: var(--cream);
    padding: 30px;
    border-radius: 25px;
}

.filter-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--coffee-dark);
    font-weight: 700;
}

.filter-group {
    margin-bottom: 30px;
}

.form-check-input:checked {
    background-color: var(--coffee-accent);
    border-color: var(--coffee-accent);
}

/* Product Cards */
.product-card {
    border: none;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--coffee-dark);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--coffee-accent);
    margin-bottom: 20px;
}

.product-btn {
    margin-top: auto;
    width: 100%;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.dropdown-selected {
    background: var(--white);
    border: 1px solid rgba(166, 123, 91, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.custom-dropdown.open .dropdown-selected {
    border-color: var(--coffee-accent);
    box-shadow: 0 0 0 4px rgba(166, 123, 91, 0.1);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px;
    list-style: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-options li {
    padding: 12px 15px;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
    color: var(--coffee-dark);
}

.dropdown-options li:hover {
    background: var(--coffee-accent);
    color: var(--white);
}

.dropdown-options li.active {
    background: var(--coffee-medium);
    color: var(--white);
}

/* Pagination */
.pagination-container {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-pagination {
    background: var(--white);
    border: 2px solid var(--coffee-medium);
    color: var(--coffee-medium);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

@media (max-width: 575.98px) {
    .btn-pagination {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .pagination-container {
        gap: 10px;
    }
    #pageNumber {
        font-size: 0.9rem;
        margin: 0 !important;
        order: -1;
        width: 100%;
        margin-bottom: 10px !important;
    }
}


.bg-cream {
    background-color: var(--cream) !important;
}

.bg-coffee-dark {
    background-color: var(--coffee-accent) !important;
}

.bg-coffee-medium {
    background-color: var(--coffee-dark) !important;
}

.about-story-img {
    border: 6px solid var(--coffee-light);
    transition: var(--transition);
}

.about-story-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.icon-box-about {
    width: 60px;
    height: 60px;
    background-color: var(--coffee-medium);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(166, 123, 91, 0.2);
}

.value-card {
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--coffee-accent);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .navbar {
        background: var(--white) !important;
        padding: 0.8rem 1rem !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    .navbar-brand {
        color: var(--coffee-dark) !important;
    }
    .nav-link {
        color: var(--coffee-dark) !important;
        margin: 5px 0;
        width: fit-content;
    }
    .navbar-toggler {
        border: none !important;
        padding: 0;
    }
    .navbar-toggler:focus {
        box-shadow: none !important;
        outline: none !important;
    }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(60, 42, 33, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    .btn-nav-order {
        display: inline-block;
        margin-top: 15px;
    }
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .hero .btn-resto, .hero .btn-white {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    .hero .btn-resto {
        margin-top: 50px;
    }
    .hero .btn-white.ms-3 {
        margin-left: 0 !important;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 120px 0;
    background: var(--white);
}

.contact-info-card {
    background: var(--cream);
    padding: 40px;
    border-radius: 25px;
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--coffee-medium);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.form-control {
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid rgba(166, 123, 91, 0.2);
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--coffee-accent);
    box-shadow: 0 0 0 0.25rem rgba(166, 123, 91, 0.1);
}

.map-container {
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.btn-pagination:hover {
    background: var(--coffee-medium);
    color: var(--white);
}